Browse Source

HL-4885 聂喜婷:@邱晨 @王宇飞 先把数量的校验拿掉

hella_online_20240821
wangyufei 3 months ago
parent
commit
0e48cf4e6c
  1. 22
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 26
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

22
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -208,13 +208,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else {
row['batch'] = '000000'
}
// HL-4885 @ @
// tableform
// TODO: tableFormColumns 10 20 20
ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
if(item.field == 'qty' && val[0]['qty'] > 0) {
item.tableForm.max = val[0]['qty']
}
})
// ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
// if(item.field == 'qty' && val[0]['qty'] > 0) {
// item.tableForm.max = val[0]['qty']
// }
// })
}
} else if(formField == 'workStationCode') {
//
@ -257,12 +258,13 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
} else {
setV['batch'] = '000000'
}
// HL-4885 @ @
// tableform
ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
if(item.field == 'qty' && val[0]['qty'] > 0) {
item.tableForm.max = val[0]['qty']
}
})
// ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
// if(item.field == 'qty' && val[0]['qty'] > 0) {
// item.tableForm.max = val[0]['qty']
// }
// })
}
} else if(formField == 'workStationCode') {
setV['workStationCode'] = val[0]['code']

26
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -193,15 +193,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus']
row['qty'] = Number(val[0]['qty'])
// HL-4885 @ @
// tableform
ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => {
if(item.field == 'qty' && Number(val[0]['qty'])>item.tableForm.min) {
item.tableForm.max = Number(val[0]['qty'])
}
// if(item.field == 'batch') {
// item.tableForm.disabled = false
// ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => {
// if(item.field == 'qty' && Number(val[0]['qty'])>item.tableForm.min) {
// item.tableForm.max = Number(val[0]['qty'])
// }
})
// // if(item.field == 'batch') {
// // item.tableForm.disabled = false
// // }
// })
}
} else if(formField == 'workStationCode') {
val.forEach(item=>{
@ -238,12 +239,13 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['uom'] = val[0]['uom']
setV['inventoryStatus'] = val[0]['inventoryStatus']
setV['qty'] = val[0]['qty']
// HL-4885 @ @
// tableform
ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
if(item.field == 'qty') {
item.tableForm.max = val[0]['qty']
}
})
// ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => {
// if(item.field == 'qty') {
// item.tableForm.max = val[0]['qty']
// }
// })
}
} else if(formField == 'workStationCode') {
setV['workStationCode'] = val[0]['code']

Loading…
Cancel
Save