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
shenshaokai
jinfa-platform
Commits
25d68206
Commit
25d68206
authored
Oct 30, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:代码修复
parent
a3b4fca8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+2
-0
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+2
-1
index.ts
...es/transaction/purchaseOrder/orderCollect/schema/index.ts
+9
-0
No files found.
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
25d68206
...
...
@@ -136,6 +136,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
ctx
.
setFieldValue
(
'supplyMembersId'
,
initValue
.
supplyMembersId
)
ctx
.
setFieldValue
(
'supplyMembersRoleId'
,
initValue
.
supplyMembersRoleId
)
ctx
.
setFieldValue
(
'supplyMembersName'
,
initValue
.
supplyMembersName
)
initValue
.
idList
&&
ctx
.
setFieldValue
(
'idList'
,
initValue
.
idList
)
initValue
.
productType
&&
ctx
.
setFieldValue
(
'productType'
,
initValue
.
productType
)
ctx
.
setFieldValue
(
'orderProductRequests'
,
await
filterProductDataById
([],
productInfo
.
map
(
v
=>
{
return
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
25d68206
...
...
@@ -173,6 +173,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
v
.
price
=
1
v
.
isMemberPrice
=
Number
(
v
.
isMemberPrice
)
v
.
memberPrice
=
parseInt
(
v
.
memberPrice
)
v
.
imgUrl
=
v
.
mainPic
// v.productId = v.id
// v.productName = v.name
// v.category = v.customerCategoryName
...
...
@@ -186,7 +187,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
omit
(
value
.
deliveryAddresId
,
[
'id'
]),
// 冗余发票信息
theInvoiceId
:
value
.
theInvoiceId
?
value
.
theInvoiceId
.
id
:
undefined
,
theInvoiceInfo
:
value
.
theInvoiceId
||
null
//
theInvoiceInfo: value.theInvoiceId || null
}
setBtnLoading
(
true
)
fnResult
=
id
?
await
PublicApi
.
postOrderProcurementOrderUpdate
({...
params
,
id
})
:
await
PublicApi
.
postOrderProcurementOrderAddReinsurancePolicy
(
params
)
...
...
src/pages/transaction/purchaseOrder/orderCollect/schema/index.ts
View file @
25d68206
...
...
@@ -176,6 +176,15 @@ const basicInfo: ISchema = {
type
:
'string'
,
display
:
false
},
idList
:
{
type
:
'array'
,
display
:
false
},
productType
:
{
type
:
'number'
,
display
:
false
},
orderNo
:
{
type
:
'string'
,
title
:
'订单编号'
,
...
...
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