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

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

Loading…
Cancel
Save