|
@ -349,7 +349,7 @@ const openForm = (type: string, row?: any) => { |
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
if(field=='qty'){ |
|
|
if(field=='qty'){ |
|
|
if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){ |
|
|
if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){ |
|
|
message.error(`物料${row['itemCode']}最大数量为${row['subSettleQty']}`) |
|
|
message.error(`${row['itemCode']}物料开票数量${row['qty']}大于库存数量${row['subSettleQty']}`) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
console.log('inputNumberChange',field, val,row, index) |
|
|
console.log('inputNumberChange',field, val,row, index) |
|
@ -364,7 +364,7 @@ const submitForm = async (formType, submitData) => { |
|
|
tableData.value.forEach(item=>{ |
|
|
tableData.value.forEach(item=>{ |
|
|
if(item['subSettleQty']!=null&&item['qty']>item['subSettleQty']){ |
|
|
if(item['subSettleQty']!=null&&item['qty']>item['subSettleQty']){ |
|
|
flag = false |
|
|
flag = false |
|
|
message.error(`物料${item['itemCode']}最大数量为${item['subSettleQty']}`) |
|
|
message.error(`${item['itemCode']}物料开票数量${item['qty']}大于库存数量${item['subSettleQty']}`) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if(!flag){ |
|
|
if(!flag){ |
|
|