|
@ -42,6 +42,8 @@ |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
|
|
|
fieldTableColumn="itemCode" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:rules="UnplannedissueRequestMainRules" |
|
|
:rules="UnplannedissueRequestMainRules" |
|
|
:formAllSchemas="UnplannedissueRequestMain.allSchemas" |
|
|
:formAllSchemas="UnplannedissueRequestMain.allSchemas" |
|
@ -112,15 +114,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
if(formField === 'itemCode'){ |
|
|
if(formField === 'itemCode'){ |
|
|
row[formField] = val[0][searchField] |
|
|
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
row['packingNumber'] = val[0]['packingNumber'] |
|
|
val.forEach(item=>{ |
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
newRow[formField] =item[searchField] |
|
|
row['batch'] = val[0]['batch'] |
|
|
newRow['packingNumber'] = item['packingNumber'] |
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
newRow['containerNumber'] = item['containerNumber'] |
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
newRow['batch'] = item['batch'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
row['qty'] = val[0]['qty'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
|
|
newRow['qty'] = item['qty'] |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
if(formField === 'costcentreCode'){ |
|
|
if(formField === 'costcentreCode'){ |
|
|
row['costcentreCode'] = val[0]['costcentreCode'] |
|
|
row['costcentreCode'] = val[0]['costcentreCode'] |
|
|