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