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 @@ -