From 8894d0bb48530950ec181a1e35cfbbf88511b8a7 Mon Sep 17 00:00:00 2001 From: lzq <2495532633@qq.com> Date: Mon, 9 Feb 2026 18:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/app/app-user-store.ts | 4 + src/dts/components.d.ts | 2 + .../cst/customer/purchaser/Purchaser.vue | 5 +- .../cst/customer/transport/Transport.vue | 5 +- .../cst/customer/waste-prod/WasteProd.vue | 5 +- .../gds/goods-category/GoodsCategory.vue | 4 +- .../goods-category/GoodsCategorySelect.vue | 70 ++++++++++++++++++ src/pages/gds/goods/Goods.vue | 20 +---- src/pages/gds/goods/GoodsForm.vue | 73 +++++++++++++++---- src/pages/gds/goods/goods.d.ts | 65 +++++++++++++---- src/pages/order/book/Book.vue | 10 +-- src/pages/order/book/product/ProductBook.vue | 2 +- src/pages/order/book/waste/WasteBook.vue | 2 +- src/pages/order/cancel/Cancel.vue | 3 +- .../order/cancel/product/ProductCancel.vue | 2 +- src/pages/order/cancel/waste/WasteCancel.vue | 2 +- src/pages/order/history/History.vue | 3 +- .../order/history/product/ProductHistory.vue | 2 +- .../order/history/waste/WasteHistory.vue | 2 +- src/pages/order/realtime/Realtime.vue | 3 +- .../realtime/product/ProductRealtime.vue | 2 +- .../order/realtime/waste/WasteRealtime.vue | 2 +- src/pages/sys/user/UserDropTable.vue | 6 +- 23 files changed, 213 insertions(+), 81 deletions(-) create mode 100644 src/pages/gds/goods-category/GoodsCategorySelect.vue diff --git a/src/common/app/app-user-store.ts b/src/common/app/app-user-store.ts index 3cc1257..f2867d5 100644 --- a/src/common/app/app-user-store.ts +++ b/src/common/app/app-user-store.ts @@ -16,6 +16,9 @@ export const useAppUserStore = defineStore('AppUser', () => { const tenantId = ref(null) const tenantName = ref(null) const isAuthenticated = computed(() => !Strings.isEmpty(token.value)) + const isXiaoNa = computed(() => { + return false + }) function $reset() { userId.value = null @@ -40,6 +43,7 @@ export const useAppUserStore = defineStore('AppUser', () => { bizObj, isAuthenticated, roles, + isXiaoNa, $reset, } }, { diff --git a/src/dts/components.d.ts b/src/dts/components.d.ts index 0f866c9..c559daa 100644 --- a/src/dts/components.d.ts +++ b/src/dts/components.d.ts @@ -48,6 +48,7 @@ declare module 'vue' { ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSelectV2: typeof import('element-plus/es')['ElSelectV2'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] @@ -106,6 +107,7 @@ declare global { const ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] const ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] const ElSelect: typeof import('element-plus/es')['ElSelect'] + const ElSelectV2: typeof import('element-plus/es')['ElSelectV2'] const ElSwitch: typeof import('element-plus/es')['ElSwitch'] const ElTable: typeof import('element-plus/es')['ElTable'] const ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] diff --git a/src/pages/cst/customer/purchaser/Purchaser.vue b/src/pages/cst/customer/purchaser/Purchaser.vue index 71b5079..ae54efb 100644 --- a/src/pages/cst/customer/purchaser/Purchaser.vue +++ b/src/pages/cst/customer/purchaser/Purchaser.vue @@ -47,8 +47,8 @@ @@ -96,7 +91,6 @@ import ATablePage, { buildTablePageProps, } from '@/components/a-page/a-table-page/ATablePage.tsx' import { - checkStatusColor, orderCategory, paymentStatusColor, transStatus, @@ -108,7 +102,7 @@ import DispatchForm from '@/pages/order/book/DispatchForm.vue' import OrderApi from '@/pages/order/order-api.ts' const props = defineProps<{ - defaultOrderCategory: typeof orderCategory[number]['val'] + defaultOrderCategory: 'XiaoShou' | 'HuiShou' | 'DuanBo' }>() const tablePageIns = useTemplateRef('tablePage') @@ -128,7 +122,7 @@ const tablePageProps = buildTablePageProps