Browse Source

HL-6188 最大数量为

hella_online_20241017
李达明 1 month ago
parent
commit
e0eb540f5c
  1. 4
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

4
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -350,7 +350,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['qty']}于销售订单数量${row['subSettleQty']}`) message.error(`${row['itemCode']}物料开票数量${row['qty']},最大数量${row['subSettleQty']}`)
} }
} }
console.log('inputNumberChange',field, val,row, index) console.log('inputNumberChange',field, val,row, index)
@ -365,7 +365,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['qty']}于销售订单数量${item['subSettleQty']}`) message.error(`${item['itemCode']}物料开票数量${item['qty']},最大数量${item['subSettleQty']}`)
} }
}) })
if(!flag){ if(!flag){

Loading…
Cancel
Save