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