From 98d1ed901b60eb8fc3117af1d11d213a051ca6d6 Mon Sep 17 00:00:00 2001 From: zhang_li Date: Thu, 17 Apr 2025 15:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B0=E5=BA=93=E5=AD=98=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=AA=E6=98=BE=E7=A4=BA=E5=90=88=E6=A0=BC=E5=92=8C=E9=9A=94?= =?UTF-8?q?=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMain.data.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts index 947b306b5..5512d10d3 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts @@ -29,7 +29,10 @@ const queryParams = { const userDept = userStore.userSelfInfo.dept // id 转str 否则form回显匹配不到 userDept.id = userDept.id.toString() - const userDeptArray:any = [userDept] +const userDeptArray: any = [userDept] +import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +const option = getStrDictOptions(DICT_TYPE.INVENTORY_STATUS).filter(item => item.value == 'HOLD' || item.value == 'OK') +console.log(option) /** * @returns {Array} 库存转移申请主表 @@ -88,7 +91,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive([ searchCondition: [ { key: 'businessType', - value: 'OkToHold', + value: 'HoldToOk', isMainValue: false },{ key: 'isIn', @@ -885,7 +888,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( }, tableForm: { disabled: true, - type: 'Select' + type: 'Select', + }, form: { componentProps: { @@ -896,7 +900,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( { label: '到库存状态', field: 'toInventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + // dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', isTable: true, sort: 'custom', @@ -905,7 +909,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( }, tableForm: { // disabled: true, - type: 'Select' + type: 'Select', + initOptions: option }, form: { componentProps: {