Commit 18e35102 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复查看、修改单据明细金额不对的问题

parent 00b0a217
...@@ -168,7 +168,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -168,7 +168,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 单据数量,需要判断是 入库 还是 发货 单 匹配对应的字段值 // 单据数量,需要判断是 入库 还是 发货 单 匹配对应的字段值
productCount: transforDirection(rest.invoicesTypeId) ? item.storageCount : item.shipmentQuantity, productCount: transforDirection(rest.invoicesTypeId) ? item.storageCount : item.shipmentQuantity,
product: item.productId, product: item.productId,
amount: `¥${(+item.productCount * item.price).toFixed(2)}`, amount: `¥${(transforDirection(rest.invoicesTypeId) ? item.storageCount : item.shipmentQuantity * item.price).toFixed(2)}`,
extraData: { extraData: {
productName: item.productName, productName: item.productName,
deliveryType, deliveryType,
...@@ -1657,6 +1657,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1657,6 +1657,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
<Card> <Card>
<NiceForm <NiceForm
value={billInfo} value={billInfo}
previewPlaceholder=" "
expressionScope={{ expressionScope={{
TableAddButton, TableAddButton,
renderListTableRemove, renderListTableRemove,
......
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