Browse Source

合格转隔离申请添加明细

master_hella_20240701
wangyufei 5 months ago
parent
commit
490b675447
  1. 47
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  2. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

47
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -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]
} }

1
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -545,6 +545,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm:{ tableForm:{
multiple:true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号', searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber', searchField: 'packingNumber',

Loading…
Cancel
Save