|
@ -42,6 +42,8 @@ |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
|
|
|
fieldTableColumn="fromPackingNumber" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:rules="InventorymoveRequestMainRules" |
|
|
:rules="InventorymoveRequestMainRules" |
|
|
:formAllSchemas="InventorymoveRequestMain.allSchemas" |
|
|
:formAllSchemas="InventorymoveRequestMain.allSchemas" |
|
@ -329,26 +331,31 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
if(formField == 'fromPackingNumber'){ |
|
|
if(formField == 'fromPackingNumber'){ |
|
|
row['fromPackingNumber'] = val[0]['packingNumber'] |
|
|
|
|
|
row['fromContainerNumber'] = val[0]['containerNumber'] |
|
|
val.forEach(item=>{ |
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
row['fromBatch'] = val[0]['batch'] |
|
|
newRow['fromPackingNumber'] = item['packingNumber'] |
|
|
row['fromInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
newRow['fromContainerNumber'] = item['containerNumber'] |
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
newRow['fromBatch'] = item['batch'] |
|
|
if(routeName.value == 'OktoholdRequestMain'){ |
|
|
newRow['fromInventoryStatus'] = item['inventoryStatus'] |
|
|
row['toInventoryStatus'] = "HOLD" |
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
newRow['uom'] = item['uom'] |
|
|
row['toInventoryStatus'] = "OK" |
|
|
if(routeName.value == 'OktoholdRequestMain'){ |
|
|
}else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
newRow['toInventoryStatus'] = "HOLD" |
|
|
row['toInventoryStatus'] = "SCRAP" |
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
newRow['toInventoryStatus'] = "OK" |
|
|
row['toInventoryStatus'] = "SCRAP" |
|
|
}else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
}else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
newRow['toInventoryStatus'] = "SCRAP" |
|
|
row['toInventoryStatus'] = "HOLD" |
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
}else{ |
|
|
newRow['toInventoryStatus'] = "SCRAP" |
|
|
row['toInventoryStatus'] = val[0]['inventoryStatus'] |
|
|
}else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
} |
|
|
newRow['toInventoryStatus'] = "HOLD" |
|
|
|
|
|
}else{ |
|
|
|
|
|
newRow['toInventoryStatus'] = item['inventoryStatus'] |
|
|
|
|
|
} |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
|