Browse Source

前端增加校验:当存在托时,托的包装数量要大于箱的包装数量

hella_online_20240829
zhang_li 5 months ago
parent
commit
1965e3ae3a
  1. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

7
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -670,6 +670,13 @@ const footButtonClick = async (val) => {
message.warning('有数据没有选择箱规格') message.warning('有数据没有选择箱规格')
return return
} }
let isNext1 = detatableData1.value.some((item) => {
return item.secondPackQty && item.packQty && parseFloat(item.packQty) > parseFloat(item.secondPackQty)
})
if (isNext1) {
message.warning('托的包装数量要大于箱的包装数量,请修改')
return
}
const data = JSON.parse(JSON.stringify(detatableData1.value)) const data = JSON.parse(JSON.stringify(detatableData1.value))
labelFormRef.value.openLabel(data) labelFormRef.value.openLabel(data)
} else if (val == 'close') { } else if (val == 'close') {

Loading…
Cancel
Save