Browse Source

子表差额

master_hella_20240701
yufei0306 7 months ago
parent
commit
ac8ba2b2f4
  1. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

6
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -586,9 +586,9 @@ const handleImport = () => {
//
const submitForm = async (formType, data) => {
data.differencePrice = tableData.value.reduce((prev,item)=>{
return (0)+Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(6))
},0)
tableData.value.forEach((item) => {
item.differencePrice = Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(6))
})
data.subList = tableData.value //
try {
if (formType === 'create') {

Loading…
Cancel
Save