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)