|
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm ref="basicFormRef" |
|
|
|
:isOpenSearchTable="false" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="itemCode" |
|
|
|
@success="getList" |
|
|
|
:rules="RelegateRequestMainRules" |
|
|
@ -93,15 +93,20 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if (formField == 'itemCode') { |
|
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
row['qty'] = val[0]['qty'] |
|
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['toBatch'] = val[0]['batch'] |
|
|
|
row['toPackingNumber'] = val[0]['packingNumber'] |
|
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
val.forEach(item=>{ |
|
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
newRow['qty'] = item['qty'] |
|
|
|
newRow['fromBatch'] = item['batch'] |
|
|
|
newRow['fromPackingNumber'] = item['packingNumber'] |
|
|
|
newRow['toBatch'] = item['batch'] |
|
|
|
newRow['toPackingNumber'] = item['packingNumber'] |
|
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
|
|
|
|
} else if (formField == 'downItemCode') { |
|
|
|
row['downItemCode'] = val[0]['code'] |
|
|
|
} else if (formField == 'toLocationCode') { |
|
|
|