Browse Source

SCP 供应商发货申请,生成标签时,计算数量出现问题

hella_online_20240829
zhang_li 4 months ago
parent
commit
7a76b7acdd
  1. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -235,10 +235,11 @@ const expandChange = (row: any, expandedRows: any[]) => {
row.manTuoQty = Math.floor(parseFloat(row.manXiangQty) / parseFloat(row.otherNumber))
// **
let num1 = accuracyFun.multiply(parseFloat(row.manTuoQty ),parseFloat(row.otherNumber))
row.tuoInManNumber =accuracyFun.multiply(num1,parseFloat(row.packQty))
row.tuoInManNumber = accuracyFun.multiply(num1, parseFloat(row.packQty))
console.log(11,row.tuoInManNumber )
//
row.lastNumber =
parseFloat(row.qty) > parseFloat(row.tuoInManNumber)
parseFloat(row.qty) >= parseFloat(row.tuoInManNumber)
? accuracyFun.subtract( parseFloat(row.qty),parseFloat(row.tuoInManNumber))
: parseFloat(row.qty)
//

Loading…
Cancel
Save