Commit 18e35102 authored by XieZhiXiong's avatar XieZhiXiong

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

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