|
@ -53,6 +53,8 @@ |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
|
|
|
fieldTableColumn="fromPackingNumber" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:rules="InventorychangeRequestMainRules" |
|
|
:rules="InventorychangeRequestMainRules" |
|
|
:formAllSchemas="InventorychangeRequestMain.allSchemas" |
|
|
:formAllSchemas="InventorychangeRequestMain.allSchemas" |
|
@ -130,30 +132,34 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
if(formField=='toOwnerCode'){ |
|
|
if(formField=='toOwnerCode'){ |
|
|
//到货主代码 |
|
|
//到货主代码 |
|
|
row['toOwnerCode'] = val[0]['code'] |
|
|
row['toOwnerCode'] = val[0]['code'] |
|
|
}else{ |
|
|
}else if(formField == 'fromPackingNumber'){ |
|
|
row[formField] = val[0][searchField] |
|
|
val.forEach(item=>{ |
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
row['toPackingNumber'] = val[0]['packingNumber'] |
|
|
newRow[formField] = item[searchField] |
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
newRow['fromPackingNumber'] = item['packingNumber'] |
|
|
row['toBatch'] = val[0]['batch'] |
|
|
newRow['toPackingNumber'] = item['packingNumber'] |
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
newRow['fromBatch'] = item['batch'] |
|
|
row['toInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
newRow['toBatch'] = item['batch'] |
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
newRow['fromInventoryStatus'] = item['inventoryStatus'] |
|
|
row['toContainerNumber'] = val[0]['containerNumber'] |
|
|
newRow['toInventoryStatus'] = item['inventoryStatus'] |
|
|
row['fromQty'] = val[0]['qty'] |
|
|
newRow['fromContainerNumber'] = item['containerNumber'] |
|
|
row['toQty'] = val[0]['qty'] |
|
|
newRow['toContainerNumber'] = item['containerNumber'] |
|
|
row['fromOwnerCode'] = val[0]['ownerCode'] |
|
|
newRow['fromQty'] = item['qty'] |
|
|
row['fromAltBatch'] = val[0]['altBatch'] |
|
|
newRow['toQty'] = item['qty'] |
|
|
row['toAltBatch'] = val[0]['altBatch'] |
|
|
newRow['fromOwnerCode'] = item['ownerCode'] |
|
|
row['fromArriveDate'] = val[0]['arriveDate'] |
|
|
newRow['fromAltBatch'] = item['altBatch'] |
|
|
row['toArriveDate'] = val[0]['arriveDate'] |
|
|
newRow['toAltBatch'] = item['altBatch'] |
|
|
row['fromProduceDate'] = val[0]['produceDate'] |
|
|
newRow['fromArriveDate'] = item['arriveDate'] |
|
|
row['toProduceDate'] = val[0]['produceDate'] |
|
|
newRow['toArriveDate'] = item['arriveDate'] |
|
|
row['fromExpireDate'] = val[0]['expireDate'] |
|
|
newRow['fromProduceDate'] = item['produceDate'] |
|
|
row['toExpireDate'] = val[0]['expireDate'] |
|
|
newRow['toProduceDate'] = item['produceDate'] |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
newRow['fromExpireDate'] = item['expireDate'] |
|
|
row['locationCode'] = val[0]['locationCode'] |
|
|
newRow['toExpireDate'] = item['expireDate'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
|
|
|
newRow['locationCode'] = item['locationCode'] |
|
|
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|