From 72675157c774fc4c6490bd1e49ca3c4aa25581f0 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 08 三月 2025 15:00:22 +0800 Subject: [PATCH] 详情页面搜索更新 --- src/views/tigerprojects/wms/inventory/inventory.data.ts | 86 +++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/views/tigerprojects/wms/inventory/inventory.data.ts b/src/views/tigerprojects/wms/inventory/inventory.data.ts index 20f451b..58016c4 100644 --- a/src/views/tigerprojects/wms/inventory/inventory.data.ts +++ b/src/views/tigerprojects/wms/inventory/inventory.data.ts @@ -1,13 +1,13 @@ -import { BasicColumn } from '/@/components/Table'; -import { FormSchema } from '/@/components/Table'; +import { BasicColumn, FormSchema } from '/@/components/Table'; import { optionsListApi, optionsListApi2, optionsListApi3 } from '/@/api/tigerapi/wms/inventory'; import { h, unref } from 'vue'; import { Tag, Tooltip } from 'ant-design-vue'; import { useI18n } from '/@/hooks/web/useI18n'; import { useLocale } from '/@/locales/useLocale'; + const { getLocale } = useLocale(); -const { t } = useI18n('WMS.Count'); -//鐩樼偣涓荤晫闈� +const { t } = useI18n(); +//鐩樼偣涓荤晫闈� export const columns: BasicColumn[] = [ { title: t('鍗曟嵁缂栫爜'), @@ -43,8 +43,8 @@ width: 180, customRender: ({ record }) => { const status = record.STATUS; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '鏂板垱寤�'; @@ -80,8 +80,8 @@ width: 180, customRender: ({ record }) => { const status = record.COUNT_TYPE; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '骞寸洏'; @@ -138,7 +138,7 @@ label: t('鐩樼偣鍗曞彿'), colProps: { span: 8 }, component: 'Input', - dynamicDisabled: true + dynamicDisabled: true, }, { field: 'COUNT_TYPE', @@ -161,7 +161,7 @@ label: t('闀滃儚鏃堕棿'), colProps: { span: 8 }, component: 'Input', - dynamicDisabled: true + dynamicDisabled: true, }, { field: 'COUNT_MODE', @@ -188,10 +188,10 @@ { field: '0', component: 'Input', - label: t(' '), + label: t(''), colSlot: 'add', colProps: { - span: 8, + span: 4, }, }, { @@ -200,7 +200,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'WH_IDS', @@ -208,7 +208,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'REGION_IDS', @@ -216,7 +216,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'SHELF_IDS', @@ -224,7 +224,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'LOCATION_IDS', @@ -232,7 +232,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'ORG_CODE', @@ -240,7 +240,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'STATUS', @@ -248,7 +248,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'CREATE_USER', @@ -256,7 +256,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'CREATE_TIME', @@ -264,7 +264,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'AUTH_ORE', @@ -272,7 +272,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'AUTH_PROD', @@ -280,7 +280,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'AUTH_WH', @@ -288,7 +288,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'CREATE_USER', @@ -296,14 +296,15 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false - }, { + show: false, + }, + { field: 'UPDATE_USER', label: t('UPDATE_USER'), colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'BEGIN_DATE', @@ -311,7 +312,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, { field: 'END_DATE', @@ -319,7 +320,7 @@ colProps: { span: 8 }, component: 'Input', dynamicDisabled: true, - show: false + show: false, }, ]; //鐩樼偣绠$悊涓殑鐩樼偣鏄庣粏 @@ -508,8 +509,8 @@ width: 180, customRender: ({ record }) => { const status = record.STATUS; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '寰呯洏鐐�'; @@ -533,8 +534,8 @@ width: 180, customRender: ({ record }) => { const status = record.RESULT; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '鏃犵粨鏋�'; @@ -579,7 +580,7 @@ sorter: true, width: 180, }, -] +]; //鍌ㄤ綅鏄庣粏 export const LdtlColumns: BasicColumn[] = [ { @@ -597,8 +598,8 @@ width: 180, customRender: ({ record }) => { const status = record.STATUS; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '寰呯洏鐐�'; @@ -622,8 +623,8 @@ width: 180, customRender: ({ record }) => { const status = record.RESULT; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '鏈牳瀹�'; @@ -671,7 +672,7 @@ sorter: true, width: 180, }, -] +]; //姹囨�绘槑缁� export const SumColumns: BasicColumn[] = [ { @@ -703,8 +704,8 @@ width: 180, customRender: ({ record }) => { const status = record.RESULT; - var text = ''; - var color = ''; + let text = ''; + let color = ''; switch (status) { case 0: text = '鏃犵粨鏋�'; @@ -784,5 +785,4 @@ sorter: true, width: 180, }, - -] +]; -- Gitblit v1.9.3