Commit 56c37d33 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复单据数量显示错误的问题

parent 631d396a
......@@ -197,8 +197,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
const details = invoicesDetailsList ? invoicesDetailsList.map(item => ({
...item,
// 单据数量,需要判断是 入库 还是 发货 单 匹配对应的字段值
productCount: transforDirection(rest.invoicesTypeId) ? item.storageCount : item.shipmentQuantity,
// 单据数量,不是 入库数量 就是 发货数量
productCount: item.storageCount || item.shipmentQuantity || 0,
// 生成通知单字段不同,做兼容
product: item.produceNoticeOrderDetailId || item.relationInvoicesId,
amount: `¥${((transforDirection(rest.invoicesTypeId) ? item.storageCount : item.shipmentQuantity) * item.price).toFixed(2)}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment