|
|
@ -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'] |
|
|
|