diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue index 49575f82c..a79c4221d 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue @@ -129,6 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } } else { const setV = {} + setV[formField] = val[0][searchField] //setV['supplierCode'] = val[0]['supplierCode'] formRef.setValues(setV) @@ -139,6 +140,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} + if(formField=='itemCode'){ + //物料代码 + setV['uom'] = val[0]['uom'] + }else if(formField=='packUnit'){ + //包装规格1 + setV['packUnit'] = val[0]['packUnit'] + setV['packQty'] = val[0]['packQty'] + }else if(formField=='secondPackUnit'){ + //包装规格2 + setV['secondPackUnit'] = val[0]['packUnit'] + setV['secondPackQty'] = val[0]['packQty'] + }else if(formField == 'balancePackUnit'){ + // 入库存包装规格 + setV['balancePackUnit'] = val[0]['packUnit'] + } setV[formField] = val[0][searchField] formRef.setValues(setV) }) diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts index e9a8828c2..146a535f0 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts @@ -751,14 +751,12 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( valueFormat: 'x', } }, - { label: '包装规格1', field: 'packUnit', isTable: true, sort: 'custom', - table: { - width: 150, + form: { componentProps: { disabled: true, isSearchList: true, @@ -825,8 +823,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( field: 'secondPackUnit', isTable: true, sort: 'custom', - table: { - width: 150, + form: { componentProps: { disabled: true, isSearchList: true, @@ -893,7 +890,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( label: '入库存包装规格', field: 'balancePackUnit', sort: 'custom', - table: { + form: { width: 150, componentProps: { disabled: true, @@ -948,7 +945,6 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive( dictType: DICT_TYPE.IS_LINE_ITEM, dictClass: 'string', isSearch: false, - isForm: false, isTable: true, sort: 'custom', table: {