Browse Source

2023.11.01 - 添加商家详情字段

GuYun-D 1 year ago
parent
commit
b1aae1c466
1 changed files with 13 additions and 2 deletions
  1. 13 2
      src/views/business/businessList/index.vue

+ 13 - 2
src/views/business/businessList/index.vue

@@ -182,7 +182,7 @@
                   </el-time-select>
                 </el-form-item>
 
-                <el-form-item label="是否支持代金" prop="isVoucher">
+                <el-form-item label="是否支持代金" prop="isVoucher">
                   <el-radio-group v-model="ruleForm.isVoucher">
                     <el-radio :disabled="disabled" :label="1">
                       允许
@@ -236,6 +236,11 @@
                     closeable></el-input>
                 </el-form-item>
 
+                <el-form-item prop="shopBrief" label="商家简介">
+                  <el-input :disabled="disabled" autosize maxlength="250" show-word-limit type="textarea"
+                    placeholder="请输入商家简介" v-model="ruleForm.shopBrief" closeable></el-input>
+                </el-form-item>
+
                 <el-form-item prop="advertisement" label="广告图">
                   <el-upload :disabled="disabled" class="avatar-uploader" list-type="picture-card"
                     :file-list="advertisementList" :action="action" :on-success="handleAvatarSuccess"
@@ -351,7 +356,8 @@ export default {
         advertisement: '',
         classificationId: null, // 商家分类id
         startTime: "",
-        endTime: ""
+        endTime: "",
+        shopBrief: '', // 商家簡介
       },
       showPhone: false,
       showAddress: false,
@@ -397,6 +403,11 @@ export default {
         perCapita: [
           { required: true, message: "请输入人均消费额", trigger: "blur" }
         ],
+        shopBrief: [{
+          required: true,
+          message: "请填写商家介绍",
+          trigger: "blur"
+        }],
         isVoucher: [
           {
             required: true,