Browse Source

添加字段显示

lex-xin 4 years ago
parent
commit
49276285ee

+ 24 - 0
src/views/businessManager/shopManager/shopList.vue

@@ -117,6 +117,12 @@
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column align='center'
           <el-table-column align='center'
+                           label="是否教务端展示">
+            <template slot-scope="scope">
+              {{ scope.row.educationalShow ? '是' : '否' }}
+            </template>
+          </el-table-column>
+          <el-table-column align='center'
                            label="是否库存预警">
                            label="是否库存预警">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <span v-if="!scope.row.complementGoodsIdList">
               <span v-if="!scope.row.complementGoodsIdList">
@@ -386,6 +392,17 @@
                        :value="0"></el-option>
                        :value="0"></el-option>
           </el-select>
           </el-select>
         </el-form-item>
         </el-form-item>
+        <el-form-item label="是否教务端展示"
+                      prop="educationalShow"
+                      :label-width="formLabelWidth">
+          <el-select v-model="form.educationalShow"
+                     placeholder="请选择是否APP展示">
+            <el-option label="是"
+                       :value="1"></el-option>
+            <el-option label="否"
+                       :value="0"></el-option>
+          </el-select>
+        </el-form-item>
         <!-- <el-form-item label="是否库存预警" prop="stockWarning" :label-width="formLabelWidth">
         <!-- <el-form-item label="是否库存预警" prop="stockWarning" :label-width="formLabelWidth">
           <el-select v-model="form.stockWarning" placeholder="请选择是否库存预警">
           <el-select v-model="form.stockWarning" placeholder="请选择是否库存预警">
             <el-option label="是" :value="1"></el-option>
             <el-option label="是" :value="1"></el-option>
@@ -516,6 +533,7 @@ export default {
         discountPrice: null,
         discountPrice: null,
         groupPurchasePrice: null,
         groupPurchasePrice: null,
         clientShow: null,
         clientShow: null,
+        educationalShow: null,
         stockWarning: null,
         stockWarning: null,
         image: null,
         image: null,
         complementGoodsIdList: null,
         complementGoodsIdList: null,
@@ -603,6 +621,11 @@ export default {
           message: '请选择是否APP展示',
           message: '请选择是否APP展示',
           trigger: 'change'
           trigger: 'change'
         }],
         }],
+        educationalShow: [{
+          required: true,
+          message: '请选择是否教务端展示',
+          trigger: 'change'
+        }],
         stockWarning: [{
         stockWarning: [{
           required: true,
           required: true,
           message: '请选择是否库存预警',
           message: '请选择是否库存预警',
@@ -779,6 +802,7 @@ export default {
         discountPrice: null,
         discountPrice: null,
         groupPurchasePrice: null,
         groupPurchasePrice: null,
         clientShow: null,
         clientShow: null,
+        educationalShow: null,
         stockWarning: null,
         stockWarning: null,
         image: null,
         image: null,
         complementGoodsIdList: null,
         complementGoodsIdList: null,

+ 17 - 0
src/views/businessManager/shopManager/shopOperation.vue

@@ -113,6 +113,17 @@
                        :value="0"></el-option>
                        :value="0"></el-option>
           </el-select>
           </el-select>
         </el-form-item>
         </el-form-item>
+        <el-form-item label="是否教务端展示"
+                      prop="educationalShow">
+          <el-select v-model="form.educationalShow"
+                     placeholder="请选择是否教务端展示"
+                     style="width: 400px !important;">
+            <el-option label="是"
+                       :value="1"></el-option>
+            <el-option label="否"
+                       :value="0"></el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="是否库存预警"
         <el-form-item label="是否库存预警"
                       prop="stockWarning">
                       prop="stockWarning">
           <el-select v-model="form.stockWarning"
           <el-select v-model="form.stockWarning"
@@ -218,6 +229,7 @@ export default {
         discountPrice: null,
         discountPrice: null,
         groupPurchasePrice: null,
         groupPurchasePrice: null,
         clientShow: null,
         clientShow: null,
+        educationalShow: null,
         stockWarning: null,
         stockWarning: null,
         image: null,
         image: null,
         brief: null,
         brief: null,
@@ -301,6 +313,9 @@ export default {
         clientShow: [
         clientShow: [
           { required: true, message: '请选择是否APP展示', trigger: 'change' }
           { required: true, message: '请选择是否APP展示', trigger: 'change' }
         ],
         ],
+        educationalShow: [
+          { required: true, message: '请选择是否教务端展示', trigger: 'change' }
+        ],
         stockWarning: [
         stockWarning: [
           { required: true, message: '请选择是否库存预警', trigger: 'change' }
           { required: true, message: '请选择是否库存预警', trigger: 'change' }
         ],
         ],
@@ -416,6 +431,7 @@ export default {
           discountPrice: null,
           discountPrice: null,
           groupPurchasePrice: null,
           groupPurchasePrice: null,
           clientShow: null,
           clientShow: null,
+          educationalShow: null,
           stockWarning: null,
           stockWarning: null,
           image: null,
           image: null,
           brief: null,
           brief: null,
@@ -445,6 +461,7 @@ export default {
               discountPrice: result.discountPrice,
               discountPrice: result.discountPrice,
               groupPurchasePrice: result.groupPurchasePrice,
               groupPurchasePrice: result.groupPurchasePrice,
               clientShow: result.clientShow,
               clientShow: result.clientShow,
+              educationalShow: result.educationalShow,
               stockWarning: result.stockWarning,
               stockWarning: result.stockWarning,
               image: result.image,
               image: result.image,
               brief: result.brief,
               brief: result.brief,