Browse Source

HL-6005提示时候应加个批次,现同一物料不同批次,不知道哪个被占用 @王宇飞

hella_online_20240927
yufei_wang 2 months ago
parent
commit
952c2c728c
  1. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

4
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -749,7 +749,7 @@ const inputNumberChange = (field, val,row, index) => {
console.log('inputNumberChange',formRef.value.formRef)
if(field=='qty'){
if(row['subReturnedQty']<=0){
message.error(`发货记录单号${formRef.value.formRef.formModel['deliverRecordNumber']}物料${row['itemCode']}被占用`)
message.error(`发货记录单号${formRef.value.formRef.formModel['deliverRecordNumber']}物料${row['itemCode']}批次${row['batch']}被占用`)
}
if(row['subReturnedQty']!=null&&row['qty']>row['subReturnedQty']){
message.error(`物料${row['itemCode']}最大数量为${row['subReturnedQty']}`)
@ -768,7 +768,7 @@ const submitForm = async (formType, submitData) => {
tableData.value.forEach(item=>{
if(item['subReturnedQty']<=0){
flag = false
message.error(`发货记录单号${data['deliverRecordNumber']}物料${item['itemCode']}被占用`)
message.error(`发货记录单号${data['deliverRecordNumber']}物料${item['itemCode']}批次${item['batch']}被占用`)
}
if(item['subReturnedQty']!=null&&item['qty']>item['subReturnedQty']){
flag = false

Loading…
Cancel
Save