From 941320790571485f48cad09e2d43b261c36e68e3 Mon Sep 17 00:00:00 2001 From: ctw <> Date: Wed, 8 Jan 2025 17:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=B8=82=E8=A1=A8=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=B8=83=E5=B1=80=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=95=86?= =?UTF-8?q?=E6=88=B7=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/canteenOnlineSpu/form.vue | 1 + .../supermarket/supermarketBrand/form.vue | 22 +- .../supermarket/supermarketBrand/index.vue | 9 +- .../supermarket/supermarketCategory/form.vue | 159 +++++++------ .../supermarket/supermarketCategory/index.vue | 18 +- .../supermarketAuxiliaryCode/form.vue | 2 +- .../components/supermarketUnit/form.vue | 18 +- src/views/supermarket/supermarketSpu/form.vue | 82 ++++--- .../supermarketerp/smErpSupplier/form.vue | 24 +- .../supermarketerp/smErpSupplier/index.vue | 16 +- .../supermarketerp/smErpSupplierType/form.vue | 105 +++++---- .../smErpSupplierType/index.vue | 212 ++++++++++-------- 12 files changed, 349 insertions(+), 319 deletions(-) diff --git a/src/views/canteen/canteenOnlineSpu/form.vue b/src/views/canteen/canteenOnlineSpu/form.vue index 42eb444..f909c89 100644 --- a/src/views/canteen/canteenOnlineSpu/form.vue +++ b/src/views/canteen/canteenOnlineSpu/form.vue @@ -163,6 +163,7 @@ const getcanteenOnlineSpuData = (id: string) => { Object.assign(form, res.data, { price: Number(displayPrice(res.data.price, '')), marketPrice: Number(displayPrice(res.data.marketPrice, '')), + status: '' + res.data.status, }); }) .finally(() => { diff --git a/src/views/supermarket/supermarketBrand/form.vue b/src/views/supermarket/supermarketBrand/form.vue index 77d67da..3bddb84 100644 --- a/src/views/supermarket/supermarketBrand/form.vue +++ b/src/views/supermarket/supermarketBrand/form.vue @@ -2,31 +2,37 @@ - + + + + + + + - + - + - + - + - + - + {{ item.label }} @@ -61,6 +67,7 @@ const { status } = useDict('status'); // 提交表单数据 const form = reactive({ id: '', + merchantId: '', name: '', picUrl: '', sort: 0, @@ -70,6 +77,7 @@ const form = reactive({ // 定义校验规则 const dataRules = ref({ + merchantId: [{ required: true, message: '商户不能为空', trigger: 'blur' }], name: [{ required: true, message: '品牌名称不能为空', trigger: 'blur' }], sort: [{ validator: rule.number, trigger: 'blur' }], }); diff --git a/src/views/supermarket/supermarketBrand/index.vue b/src/views/supermarket/supermarketBrand/index.vue index aeb3663..af7a60f 100644 --- a/src/views/supermarket/supermarketBrand/index.vue +++ b/src/views/supermarket/supermarketBrand/index.vue @@ -50,15 +50,15 @@ -