Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
f8309c68
Commit
f8309c68
authored
May 07, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整售后维修字段
parent
86655bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
index.tsx
...pplication/repairPrSubmit/components/RepairForm/index.tsx
+20
-21
No files found.
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/index.tsx
View file @
f8309c68
...
...
@@ -384,8 +384,6 @@ const RepairForm: React.FC<BillsFormProps> = ({
...
rest
}
=
values
;
console
.
log
(
'values'
,
values
)
setSubmitLoading
(
true
);
const
payload
=
{
repairId
:
id
||
0
,
// 有 id 表示编辑,0表示新增
...
...
@@ -410,13 +408,13 @@ const RepairForm: React.FC<BillsFormProps> = ({
repairCount
:
+
repairCount
,
brand
:
brand
||
''
,
unit
:
unit
||
''
,
associatedGoods
:
extraData
.
productInfo
?
extraData
.
productInfo
.
productName
:
''
,
associatedDataId
:
extraData
.
productInfo
?
extraData
.
productInfo
.
productId
:
''
,
associatedMaterielNo
:
''
,
associatedMaterielName
:
''
,
associatedType
:
''
,
associatedCategory
:
extraData
.
productInfo
?
extraData
.
productInfo
.
category
:
''
,
associatedBrand
:
extraData
.
productInfo
?
extraData
.
productInfo
.
brand
:
''
,
materielId
:
extraData
.
materiel
?
extraData
.
materiel
.
materielId
:
0
,
materielNo
:
extraData
.
materiel
?
extraData
.
materiel
.
materielNo
:
''
,
materielName
:
extraData
.
materiel
?
extraData
.
materiel
.
materielName
:
''
,
materielType
:
extraData
.
materiel
?
extraData
.
materiel
.
materielType
:
''
,
materielCategory
:
extraData
.
materiel
?
extraData
.
materiel
.
materielCategory
:
''
,
materielBrand
:
extraData
.
materiel
?
extraData
.
materiel
.
materielBrand
:
''
,
materielUnit
:
extraData
.
materiel
?
extraData
.
materiel
.
materielUnit
:
''
,
...
rest
,
})),
...
rest
,
...
...
@@ -472,29 +470,30 @@ const RepairForm: React.FC<BillsFormProps> = ({
values
.
forEach
(
item
=>
{
const
atom
=
{
orderNo
:
item
.
orderNo
,
productId
:
!
isMateriel
?
item
.
productId
:
item
.
material
Id
,
productName
:
!
isMateriel
?
item
.
productName
:
item
.
material
Name
,
category
:
!
isMateriel
?
item
.
category
:
item
.
materialC
ategory
,
brand
:
!
isMateriel
?
item
.
brand
:
item
.
materialB
rand
,
productId
:
item
.
product
Id
,
productName
:
item
.
product
Name
,
category
:
item
.
c
ategory
,
brand
:
item
.
b
rand
,
unit
:
item
.
unit
,
materielNo
:
!
isMateriel
?
''
:
item
.
materialCode
,
type
:
!
isMateriel
?
''
:
item
.
materialType
,
associated
:
!
isMateriel
?
''
:
`
${
item
.
productId
}
/
${
item
.
productName
}
/
${
item
.
category
}
/
${
item
.
brand
}
`
,
purchaseCount
:
item
.
purchaseCount
,
isHasTax
:
item
.
taxInclusive
,
taxRate
:
item
.
taxRate
,
contractId
:
item
.
contractId
,
contractNo
:
item
.
contractNo
,
repairReason
:
''
,
associated
:
!
isMateriel
?
''
:
`
${
item
.
productId
}
/
${
item
.
productName
}
/
${
item
.
category
}
/
${
item
.
brand
}
`
,
extraData
:
{
id
:
item
.
id
,
orderId
:
item
.
orderId
,
remaining
:
item
.
purchaseCount
-
(
item
.
repairCount
||
0
),
// 可维修数量
productInfo
:
!
isMateriel
?
null
:
{
productName
:
item
.
productName
,
productId
:
item
.
productId
,
category
:
item
.
category
,
brand
:
item
.
brand
,
materiel
:
!
isMateriel
?
null
:
{
materielId
:
item
.
materialId
,
materielNo
:
item
.
materialCode
,
materielName
:
item
.
materialName
,
materielType
:
item
.
materialType
,
materielCategory
:
item
.
materialCategory
,
materielBrand
:
item
.
materialBrand
,
materielUnit
:
''
,
},
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment