From fb8cd34f9beedbb68069c0624aad77fa26acf10a Mon Sep 17 00:00:00 2001 From: lzq <2495532633@qq.com> Date: Thu, 22 Jan 2026 19:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cst/customer/Customer.vue | 43 +++- src/pages/cst/customer/CustomerForm.vue | 227 ++++++++-------------- src/pages/cst/customer/constants.ts | 42 ++++ src/pages/gds/goods-category/constants.ts | 4 +- 4 files changed, 159 insertions(+), 157 deletions(-) create mode 100644 src/pages/cst/customer/constants.ts diff --git a/src/pages/cst/customer/Customer.vue b/src/pages/cst/customer/Customer.vue index d7206d8..bc15df6 100644 --- a/src/pages/cst/customer/Customer.vue +++ b/src/pages/cst/customer/Customer.vue @@ -6,14 +6,37 @@ :paging="paging"> - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -29,9 +52,9 @@ - + - + @@ -44,6 +67,10 @@ import type { ToolType, } from '@/components/page/a-page-type.ts' import type { ComponentExposed } from 'vue-component-type-helpers' +import { + identityCategory, + settlementWay, +} from '@/pages/cst/customer/constants.ts' const payList = [ { diff --git a/src/pages/cst/customer/CustomerForm.vue b/src/pages/cst/customer/CustomerForm.vue index 1a96d8f..cf1732a 100644 --- a/src/pages/cst/customer/CustomerForm.vue +++ b/src/pages/cst/customer/CustomerForm.vue @@ -1,170 +1,103 @@ - - - - - - - - - - - - - - - - - - - - - - - {{ status === "view" ? "关闭" : "取消" }} - 提交 + + + + + + + + + + + + + + + + + + + + - + + diff --git a/src/pages/cst/customer/constants.ts b/src/pages/cst/customer/constants.ts new file mode 100644 index 0000000..46bdc88 --- /dev/null +++ b/src/pages/cst/customer/constants.ts @@ -0,0 +1,42 @@ +import { createEnum } from '@/common/utils/enums.ts' + +const settlementWayList = [ + { + val: 'YueJie', + txt: '月结', + }, + { + val: 'YuE', + txt: '余额', + }, + { + val: 'XianFu', + txt: '现付', + }, +] as const + +const identityCategoryList = [ + { + val: 'ChanFei', + txt: '产废方', + }, + { + val: 'YunShu', + txt: '运输方', + }, + { + val: 'XiaoNa', + txt: '消纳方', + }, + { + val: 'CaiGou', + txt: '采购方', + }, + { + val: 'SiJi', + txt: '司机', + }, +] as const + +export const settlementWay = createEnum(settlementWayList) +export const identityCategory = createEnum(identityCategoryList) diff --git a/src/pages/gds/goods-category/constants.ts b/src/pages/gds/goods-category/constants.ts index 0f505a8..b6dde21 100644 --- a/src/pages/gds/goods-category/constants.ts +++ b/src/pages/gds/goods-category/constants.ts @@ -1,6 +1,6 @@ import { createEnum } from '@/common/utils/enums.ts' -const enums = [ +const bizTypeList = [ { val: 'ZaiShengPin', txt: '再生品', @@ -15,4 +15,4 @@ const enums = [ }, ] as const -export const bizType = createEnum(enums) +export const bizType = createEnum(bizTypeList)