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) => { const submitForm = async (formType, data) => {
data.differencePrice = tableData.value.reduce((prev,item)=>{ tableData.value.forEach((item) => {
return (0)+Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(6)) item.differencePrice = Number((Number(item?.singlePrice)-Number(item?.purchasePrice)).toFixed(6))
},0) })
data.subList = tableData.value // data.subList = tableData.value //
try { try {
if (formType === 'create') { if (formType === 'create') {

Loading…
Cancel
Save