From 7d88ee73aea14c4db03b65861adb1ee321b01d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Tue, 18 Nov 2025 14:18:56 +0800 Subject: [PATCH 1/4] Change wallet payment handling to use walletFormRef --- src/views/pay/app/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue index 4c3364e7..37604edd 100644 --- a/src/views/pay/app/index.vue +++ b/src/views/pay/app/index.vue @@ -361,7 +361,7 @@ const openChannelForm = async (row, payCode) => { mockFormRef.value.open(row.id, payCode) } if (payCode.indexOf('wallet') === 0) { - mockFormRef.value.open(row.id, payCode) + walletFormRef.value.open(row.id, payCode) } } From ac724e26d0a1a44d8592f5d032785b9dbf63ab6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Tue, 18 Nov 2025 16:58:43 +0800 Subject: [PATCH 2/4] Change config name from 'mock-conf' to 'wallet-conf' --- src/views/pay/app/components/channel/WalletChannelForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/pay/app/components/channel/WalletChannelForm.vue b/src/views/pay/app/components/channel/WalletChannelForm.vue index 71da0ded..2f636f40 100644 --- a/src/views/pay/app/components/channel/WalletChannelForm.vue +++ b/src/views/pay/app/components/channel/WalletChannelForm.vue @@ -50,7 +50,7 @@ const formData = ref({ feeRate: 0, remark: '', config: { - name: 'mock-conf' + name: 'wallet-conf' } }) const formRules = { @@ -114,7 +114,7 @@ const resetForm = (appId, code) => { remark: '', feeRate: 0, config: { - name: 'mock-conf' + name: 'wallet-conf' } } formRef.value?.resetFields() From 0944d4c82e31a69a9f079e691f549e00bd7a0eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Wed, 19 Nov 2025 15:50:19 +0800 Subject: [PATCH 3/4] Add parentId and sort fields to formData --- src/views/mall/product/category/CategoryForm.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/mall/product/category/CategoryForm.vue b/src/views/mall/product/category/CategoryForm.vue index 8e89ae25..5059bed0 100644 --- a/src/views/mall/product/category/CategoryForm.vue +++ b/src/views/mall/product/category/CategoryForm.vue @@ -62,8 +62,10 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ id: undefined, + parentId: 0, // root parent id name: '', picUrl: '', + sort: 0, status: CommonStatusEnum.ENABLE }) const formRules = reactive({ @@ -126,8 +128,10 @@ const submitForm = async () => { const resetForm = () => { formData.value = { id: undefined, + parentId: 0, // root parent id name: '', picUrl: '', + sort: 0, status: CommonStatusEnum.ENABLE } formRef.value?.resetFields() From ca9b3ab7bdaa7daf794dc8470e93c1c445273141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Wed, 19 Nov 2025 17:06:01 +0800 Subject: [PATCH 4/4] Fix spu form item width --- src/views/mall/product/spu/form/InfoForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/mall/product/spu/form/InfoForm.vue b/src/views/mall/product/spu/form/InfoForm.vue index 28bd309b..52a1f5ca 100644 --- a/src/views/mall/product/spu/form/InfoForm.vue +++ b/src/views/mall/product/spu/form/InfoForm.vue @@ -18,14 +18,14 @@ v-model="formData.categoryId" :options="categoryList" :props="defaultProps" - class="w-80" + class="w-80!" clearable filterable placeholder="请选择商品分类" /> - +