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
5adf255d
Commit
5adf255d
authored
Dec 22, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改 生产通知单 相关逻辑
parent
d781fc99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
88 additions
and
6 deletions
+88
-6
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+88
-6
No files found.
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
5adf255d
...
...
@@ -172,12 +172,9 @@ const BillsForm: React.FC<BillsFormProps> = ({
extraData
:
{
productName
:
item
.
productName
,
deliveryType
,
id
:
''
,
// 加工发货单需要,明细id
processNum
:
0
,
// 加工发货单需要,加工数量
orderNo
:
item
.
orderNo
,
// 订单编号
goodsCount
:
item
.
productCount
,
// 采购数量
price
:
item
.
price
,
// 加工发货、入库单需要,加工单价
totalPrice
:
0
,
// 加工发货、入库单需要,加工总价
id
:
item
.
produceNoticeOrderDetailId
,
// 加工发货单需要,明细id
},
}))
:
[];
...
...
@@ -1013,7 +1010,50 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
console
.
log
(
'value'
,
value
)
PublicApi
.
postWarehouseInvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
inventoryRole
:
rest
.
inventoryRole
,
transactionTime
:
newTransactionTime
,
invoicesDetailsRequests
:
newInvoicesDetailsRequests
.
map
(
item
=>
{
const
{
extraData
:
{
id
,
orderNo
,
deliveryType
,
goodsCount
,
price
,
totalPrice
,
...
extraRest
},
itemName
,
amount
,
productCount
,
...
rest
}
=
item
;
return
{
...
rest
,
...
extraRest
,
goodsName
:
itemName
,
storageCount
:
productCount
,
productCount
:
goodsCount
,
produceNoticeOrderDetailId
:
id
,
};
}),
})
.
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
}
setUnsaved
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
});
}
break
;
}
...
...
@@ -1065,7 +1105,49 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
postWarehouseInvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
inventoryRole
:
rest
.
inventoryRole
,
transactionTime
:
newTransactionTime
,
invoicesDetailsRequests
:
newInvoicesDetailsRequests
.
map
(
item
=>
{
const
{
extraData
:
{
id
,
orderNo
,
deliveryType
,
goodsCount
,
price
,
totalPrice
,
...
extraRest
},
itemName
,
amount
,
productCount
,
...
rest
}
=
item
;
return
{
...
rest
,
...
extraRest
,
goodsName
:
itemName
,
shipmentQuantity
:
productCount
,
productCount
:
goodsCount
,
produceNoticeOrderDetailId
:
id
,
};
}),
})
.
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
}
setUnsaved
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
});
}
break
;
}
...
...
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