|
@@ -507,7 +507,8 @@
|
|
|
item.money=item.discountedAmount
|
|
|
item.taxPrice = item.discountedPrice
|
|
|
})
|
|
|
- var arrProduct = data.concat(deliveryDetailFormProductTable.dataSource)
|
|
|
+ var xTable = deliveryDetailFormProductTableRef.value!.getXTable();//关键代码 如果不更新 重新加载表格即可
|
|
|
+ var arrProduct = xTable.data.concat(data)
|
|
|
deliveryDetailFormProductTable.dataSource=arrProduct
|
|
|
notAllowEdit.value=true
|
|
|
formData.sourceCode =data[0].billCode
|
|
@@ -544,7 +545,13 @@
|
|
|
if(prop.col.key=='quantity'){
|
|
|
if(prop.row.quantity){
|
|
|
var num= prop.row.quantity*Number(prop.row.taxPrice)
|
|
|
- prop.row.money = num.toFixed(2)
|
|
|
+ prop.row.money =isNaN(num)?'': num.toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(prop.col.key=='taxPrice'){
|
|
|
+ if(prop.row.taxPrice){
|
|
|
+ var num= prop.row.quantity*Number(prop.row.taxPrice)
|
|
|
+ prop.row.money =isNaN(num)?'': num.toFixed(2)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -557,7 +564,8 @@
|
|
|
item.productCode = item.code
|
|
|
item.productId = item.id
|
|
|
})
|
|
|
- var arrProduct = deliveryDetailFormProductTable.dataSource.concat(data)
|
|
|
+ var xTable = deliveryDetailFormProductTableRef.value!.getXTable();//关键代码 如果不更新 重新加载表格即可
|
|
|
+ var arrProduct = xTable.data.concat(data)
|
|
|
deliveryDetailFormProductTable.dataSource=arrProduct
|
|
|
}
|
|
|
return {
|