Browse Source

HL-5657结算出库 根据订单行的数量做校验(目前存在问题在于订单行数量已经满足了,但还能创建申请,容易产生迷惑性)

hella_online_20240828
wangyufei 3 months ago
parent
commit
6ee23e0729
  1. 4
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

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

@ -359,7 +359,7 @@ const openForm = (type: string, row?: any) => {
const inputNumberChange = (field, val,row, index) => {
if(field=='qty'){
if(row['subSettleQty']&&row['qty']>row['subSettleQty']){
if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){
message.error(`物料${row['itemCode']}最大数量为${row['subSettleQty']}`)
}
}
@ -373,7 +373,7 @@ const submitForm = async (formType, submitData) => {
}
let flag = true
tableData.value.forEach(item=>{
if(item['subSettleQty']&&item['qty']>item['subSettleQty']){
if(item['subSettleQty']!=null&&item['qty']>item['subSettleQty']){
flag = false
message.error(`物料${item['itemCode']}最大数量为${item['subSettleQty']}`)
}

Loading…
Cancel
Save