Browse Source

SCP供应商发货,编辑包装数量时,只允许小于等于物料包装信息中的数量

linshi20240813
zhang_li 3 months ago
parent
commit
d06aae6276
  1. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

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

@ -566,11 +566,11 @@ const blurOne = (oneRow, twoRow) => {
} }
// //
const blurTwo = (oneRow, twoRow, threeRow) => { const blurTwo = (oneRow, twoRow, threeRow) => {
// if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) { if (parseFloat(threeRow.qtyTwo) > parseFloat(oneRow.packQty)) {
// message.warning('' + oneRow.packQty) message.warning('数量最多为' + oneRow.packQty)
// threeRow.qtyTwo = oneRow.packQty threeRow.qtyTwo = oneRow.packQty
// return return
// } }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo)) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))
@ -579,10 +579,10 @@ const blurTwo = (oneRow, twoRow, threeRow) => {
} }
// //
const blurThree = (oneRow, twoRow, thereeRow) => { const blurThree = (oneRow, twoRow, thereeRow) => {
// if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) {
// message.warning('' + oneRow.packQty) message.warning('每箱个数最多' + oneRow.packQty)
// thereeRow.qtyTwo = oneRow.packQty thereeRow.qtyTwo = oneRow.packQty
// } }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo)) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))

Loading…
Cancel
Save