diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue index 5abf55937..68916d7a5 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue @@ -133,7 +133,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } else { const setV = {} setV[formField] = val[0][searchField] - setV['fromPackingNumber'] = val[0]['packingNumber'] + setV['fromPackingNumber'] = val[0]['fromPackingNumber'] setV['toPackingNumber'] = val[0]['packingNumber'] setV['fromBatch'] = val[0]['batch'] setV['toBatch'] = val[0]['batch'] @@ -164,17 +164,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} - if(formField == 'fromPackingNumber') { - setV['fromPackingNumber'] = val[0]['packingNumber'] - setV['itemCode'] = val[0]['itemCode'] - setV['fromBatch'] = val[0]['batch'] - setV['locationCode'] = val[0]['locationCode'] - setV['fromQty'] = val[0]['qty'] - setV['fromInventoryStatus'] = val[0]['inventoryStatus'] - setV['uom'] = val[0]['uom'] - } else { + if(formField == 'fromPackingNumber') { + setV['fromPackingNumber'] = val[0]['packingNumber'] + setV['itemCode'] = val[0]['itemCode'] + setV['fromBatch'] = val[0]['batch'] + setV['toBatch'] = val[0]['batch'] + setV['locationCode'] = val[0]['locationCode'] + setV['fromQty'] = val[0]['qty'] + setV['fromInventoryStatus'] = val[0]['inventoryStatus'] + setV['uom'] = val[0]['uom'] + } else { setV[formField] = val[0][searchField] - } + } formRef.setValues(setV) }) } diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index 6aedd4873..f0888d2de 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -447,6 +447,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive