Browse Source

Merge branch 'test' into 'master'

Test

See merge request quanshu/mp-ui-pc!342
zhong chunping 3 years ago
parent
commit
fd222423e4

+ 6 - 6
src/router/index.js

@@ -177,7 +177,7 @@ export const constantRoutes = [
         path: 'add',
         component: (resolve) => require(['@/views/business/goods/add'], resolve),
         name: 'GoodsAdd',
-        meta: { title: '添加商品', activeMenu: '/goods/list', noCache: true }
+        meta: { title: '添加商品', activeMenu: '/goods/list' }
       },
       {
         path: 'edit',
@@ -196,7 +196,7 @@ export const constantRoutes = [
         path: 'add',
         component: (resolve) => require(['@/views/business/coupon/add'], resolve),
         name: 'CouponAdd',
-        meta: { title: '生成优惠券', activeMenu: '/coupon/list', noCache: true }
+        meta: { title: '生成优惠券', activeMenu: '/coupon/list' }
       },
       {
         path: 'query',
@@ -214,7 +214,7 @@ export const constantRoutes = [
         path: 'pkg/add',
         component: (resolve) => require(['@/views/business/couponPkg/create'], resolve),
         name: 'CouponPkgAdd',
-        meta: { title: '生成券包', activeMenu: '/coupon/listCouponPkg', noCache: true }
+        meta: { title: '生成券包', activeMenu: '/coupon/listCouponPkg' }
       },
       {
         path: 'pkg/query',
@@ -239,7 +239,7 @@ export const constantRoutes = [
         path: 'create',
         component: (resolve) => require(['@/views/business/ticket/create'], resolve),
         name: 'TicketCreate',
-        meta: { title: '添加盲票组' , activeMenu: '/ticket/ticket', noCache: true }
+        meta: { title: '添加盲票组' , activeMenu: '/ticket/ticket' }
       },
       {
         path: 'edit',
@@ -264,7 +264,7 @@ export const constantRoutes = [
         path: 'add',
         component: (resolve) => require(['@/views/business/marketing/add'], resolve),
         name: 'MarketingAdd',
-        meta: { title: '创建抽奖活动' , activeMenu: '/marketing/marketing', noCache: true }
+        meta: { title: '创建抽奖活动' , activeMenu: '/marketing/marketing' }
       },
       {
         path: 'edit',
@@ -314,7 +314,7 @@ export const constantRoutes = [
         path: 'template/create',
         component: (resolve) => require(['@/views/setting/template/create'], resolve),
         name: 'TemplateCreate',
-        meta: { title: '添加运费模板' , activeMenu: '/setting/template', noCache: true }
+        meta: { title: '添加运费模板' , activeMenu: '/setting/template' }
       },
       {
         path: 'template/edit',

+ 52 - 7
src/views/business/coupon/add.vue

@@ -56,6 +56,8 @@
           <el-form-item v-if="addData.type === 2" label="使用范围:" prop="useArea">
             <el-radio-group v-model="addData.useArea" :disabled="readonly">
               <el-radio :label="2">进票门店</el-radio>
+              <el-radio :label="1">指定门店</el-radio>
+              <el-radio :label="0">所有门店</el-radio>
             </el-radio-group>
           </el-form-item>
           <el-form-item v-else label="使用范围:" prop="useArea">
@@ -71,7 +73,7 @@
     </el-row>
     <el-row :gutter="18">
      <el-col :span="18" :offset="2">
-       <div v-if="addData.useArea === 1" style="padding: 0 20px">
+       <div v-if="addData.useArea === 1 && addData.type === 1" style="padding: 0 20px">
          <el-table :data="addData.ticketBoxList" height="300px">
            <el-table-column label="盲票ID" prop="boxId" min-width="90" />
            <el-table-column label="盲票图片" prop="picUrl" align="center">
@@ -88,12 +90,12 @@
            </el-table-column>
            <el-table-column label="盲票类型" prop="type">
              <template slot-scope="{row}">
-               {{ JSON.parse(row.type).desc }}
+               {{ row.type && JSON.parse(row.type).desc }}
              </template>
            </el-table-column>
            <el-table-column label="盲票状态" prop="status">
              <template slot-scope="{row}">
-               <el-tag :type="JSON.parse(row.status).value === 'on' ? 'success' : 'info'">{{ JSON.parse(row.status).desc }}</el-tag>
+               <el-tag :type="row.status && JSON.parse(row.status).value === 'on' ? 'success' : 'info'">{{ row.status && JSON.parse(row.status).desc }}</el-tag>
              </template>
            </el-table-column>
            <el-table-column v-if="!readonly" prop="date" label="操作">
@@ -105,6 +107,27 @@
          <br>
          <el-button v-if="!readonly" type="primary" size="small" plain @click="funSelectShow">选择盲票</el-button> <span style="margin-left: 10px">已选盲票({{ addData.ticketBoxList.length }})</span>
        </div>
+<!--        =========================================================================-->
+       <div v-if="addData.useArea === 1 && addData.type === 2" style="padding: 0 20px">
+         <el-table :data="channelList" height="300px">
+           <el-table-column label="门店编号" prop="channelId" min-width="90" />
+           <el-table-column label="门店名称" prop="name" />
+           <el-table-column label="手机号码" prop="mobile" />
+           <el-table-column label="上级渠道" prop="parentsName"/>
+           <el-table-column label="认证状态" prop="status">
+             <template slot-scope="{row}">
+               <el-tag :type="row.certifyStatus && JSON.parse(row.certifyStatus).value === 'y' ? 'success' : 'info'">{{ row.certifyStatus && JSON.parse(row.certifyStatus).desc }}</el-tag>
+             </template>
+           </el-table-column>
+           <el-table-column v-if="!readonly" prop="date" label="操作">
+             <template slot-scope="{ $index }">
+               <el-button type="text" class="del" @click="channelList.splice($index, 1)">删除</el-button>
+             </template>
+           </el-table-column>
+         </el-table>
+         <br>
+         <el-button v-if="!readonly" type="primary" size="small" plain @click="funChannelShow">选择门店</el-button> <span style="margin-left: 10px">已选门店({{ channelList.length }})</span>
+       </div>
      </el-col>
     </el-row>
 
@@ -117,11 +140,14 @@
 
     <!-- 弹出层 -->
     <SelectTicket :select-show="selectShow" :value="addData.ticketBoxList" :excludeBoxIds="excludeBoxIds" @close="selectShow = false" @selectTicket="selectTicket"   v-if="selectShow"/>
+    <!-- 弹出层 -->
+    <ChannelTicket :channel-show="channelShow" :value="channelList" :excludeChannelIds="excludeChannelIds" @close="channelShow = false" @channelTicket="channelTicket"   v-if="channelShow"/>
   </div>
 </template>
 <script>
 import Upload from '@/components/ImageUpload'
 import SelectTicket from './components/selectTicket'
+import ChannelTicket from './components/channelTicket'
 import { publicFileGetUrl } from '@/api/common'
 import { getCouponDetail, addCoupon } from '@/api/business/coupon'
 import { accDiv, accMul } from '@/utils/util'
@@ -130,13 +156,15 @@ export default {
   name: 'CouponAdd',
   components: {
     Upload,
-    SelectTicket
+    SelectTicket,
+    ChannelTicket
   },
   data() {
     return {
       IMG_URL: publicFileGetUrl,
       id: this.$route.query.id,
       readonly: this.$route.name === 'CouponQuery',
+      channelList: [],
       addData: {
         ticketBoxList:[],
         useArea: 5,
@@ -147,7 +175,9 @@ export default {
       },
       addIng: false,
       excludeBoxIds: [],
+      excludeChannelIds: [],
       selectShow: false,
+      channelShow: false,
       rules: {
         title: [{ required: true, message: '请输入券名称', trigger: 'blur' }],
         type: [{ required: true, message: '请输入券类型', trigger: 'blur' }],
@@ -179,7 +209,7 @@ export default {
   created() {
     if (this.id) {
       getCouponDetail(this.id).then(res => {
-        const { couponId, title, quantity, discount, channelSharedRate, minOrderAmt, dueDays, description, ticketBoxList } = res.data
+        const { couponId, title, quantity, discount, channelSharedRate, minOrderAmt, dueDays, description, ticketBoxList, channelList } = res.data
         this.addData = {
           type: JSON.parse(res.data.type).value,
           useArea: JSON.parse(res.data.useArea).value,
@@ -187,6 +217,7 @@ export default {
           minOrderAmt: accDiv(minOrderAmt, 100),
           couponId, title, quantity, channelSharedRate, dueDays, description, ticketBoxList
         }
+        this.channelList = channelList
       })
     }
   },
@@ -195,9 +226,16 @@ export default {
       this.excludeBoxIds = this.addData.ticketBoxList.map(item => { return item.boxId })
       this.selectShow = true
     },
+    funChannelShow(){
+      this.excludeChannelIds = this.channelList.map(item => { return item.channelId })
+      this.channelShow = true
+    },
     selectTicket(select) {
       this.addData.ticketBoxList = this.addData.ticketBoxList.concat(select)
     },
+    channelTicket(select) {
+      this.channelList = this.channelList.concat(select)
+    },
     update() {
       if (this.addData.type == 1) {
         if(this.addData.useArea !== 0 && this.addData.useArea !== 1 && this.addData.useArea !== 3 && this.addData.useArea !== 4) {
@@ -208,7 +246,7 @@ export default {
           return
         }
       } else if (this.addData.type == 2) {
-        if(this.addData.useArea !== 2) {
+        if(this.addData.useArea !== 2 && this.addData.useArea !== 0 && this.addData.useArea !== 1 ) {
           this.$message({
             message: '请选择使用范围!',
             type: 'warning'
@@ -219,9 +257,16 @@ export default {
       this.$refs.addItem.validate((valid, items) => {
         if (valid) {
           this.addIng = true
-          if(this.addData.useArea === 1) {
+          if(this.addData.useArea === 1 && this.addData.type === 1) {
             this.addData.boxIds = this.addData.ticketBoxList.map(item => { return item.boxId }).toString()
           }
+          if(this.addData.useArea === 1 && this.addData.type === 2) {
+            let arr = []
+            for (let i = 0; i < this.channelList.length; i++) {
+              arr.push(this.channelList[i].channelId)
+            }
+            this.addData.channelIdList = arr
+          }
           const { discount, minOrderAmt, ...rest } = this.addData
           addCoupon({...rest, ...{ discount: accMul(discount, 100), minOrderAmt: accMul(minOrderAmt, 100),}}).then(res => {
             this.addIng = false

+ 175 - 0
src/views/business/coupon/components/channelTicket.vue

@@ -0,0 +1,175 @@
+<template>
+  <el-dialog title="选择门店" :visible.sync="channelShow" min-width="800px" :before-close="close">
+    <el-form :model="queryParams" ref="queryForm" label-width="80px" size="small">
+      <el-row :gutter="10">
+        <el-col :span="7">
+          <el-form-item label="上级渠道" prop="parentId">
+            <el-select
+              v-model="queryParams.parentId"
+              placeholder="请选择上级渠道"
+              style="width: 100%;"
+              filterable
+              clearable
+              :filter-method="dataFilter"
+              @change="handleQuery"
+            >
+              <el-option
+                v-for="(item, index) in channelList"
+                :key="item.channelId"
+                :label="item.name"
+                :value="item.channelId">
+                <div>
+                  <span style="float: left;">{{item.name}} </span>
+                  <span style="float: right;">{{item.mobile}}</span>
+                </div>
+              </el-option>
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col :span="7">
+          <el-form-item label="门店名称">
+            <el-input
+              v-model="queryParams.name"
+              placeholder="请输入门店名称"
+              clearable
+              @change="handleQuery"
+            />
+          </el-form-item>
+        </el-col>
+        <el-col :span="7">
+          <el-form-item label="手机号码">
+            <el-input
+              v-model="queryParams.mobile"
+              placeholder="请输入手机号码"
+              clearable
+              @change="handleQuery"
+            />
+          </el-form-item>
+        </el-col>
+        <el-col :span="3">
+          <el-form-item label-width="0">
+            <el-button type="primary" icon="el-icon-search" @click="handleQuery" >搜索</el-button>
+          </el-form-item>
+        </el-col>
+      </el-row>
+    </el-form>
+    <el-table v-loading="loading" :data="tableData" row-key="channelId" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" :reserve-selection="true" />
+      <el-table-column label="门店编号" prop="channelId" min-width="90" />
+      <el-table-column label="门店名称" prop="name" />
+      <el-table-column label="手机号码" prop="mobile" />
+      <el-table-column label="上级渠道" prop="parentsName"/>
+      <el-table-column label="认证状态" prop="status">
+        <template slot-scope="{row}">
+          <el-tag :type="row.certifyStatus && JSON.parse(row.certifyStatus).value === 'y' ? 'success' : 'info'">{{ row.certifyStatus && JSON.parse(row.certifyStatus).desc }}</el-tag>
+        </template>
+      </el-table-column>
+    </el-table>
+    <pagination :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList()" />
+    <span slot="footer">
+      <el-button type="info" plain @click="close">取消</el-button>
+      <el-button type="primary" @click="update">确定</el-button>
+    </span>
+  </el-dialog>
+</template>
+<script>
+import { listSaleSite  } from "@/api/admin/salesite";
+import { publicFileGetUrl } from "@/api/common"
+import { listAllChannel} from "@/api/admin/channel"
+export default {
+  name: "ChannelTicket",
+  props: {
+    value: {
+      type: Array,
+      default: []
+    },
+    channelShow: {
+      type: Boolean,
+      default: false,
+    },
+    excludeChannelIds:{
+      type: Array,
+      default: []
+    },
+  },
+  data() {
+    return {
+      IMG_URL: publicFileGetUrl,
+      loading: false,
+      tableData: [],
+      queryParams: {},
+      total: 0,
+      selection: [],
+      // 上级渠道列表
+      channelList:[],
+    }
+  },
+  created() {
+    this.getChannelList()
+    this.listSaleSite();
+  },
+  methods: {
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.channelList = this.channelCopyList;
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    listSaleSite() {
+      this.getList(true)
+      this.selection = this.value
+      // this.$refs.table.toggleRowSelection(this.selection)
+    },
+    getList(reset) {
+      if (this.loading) {
+        return
+      }
+      this.loading = true
+      if (reset) {
+        this.queryParams = { pageNum: 1, pageSize: 10 }
+      }
+      if(this.excludeChannelIds){
+        this.queryParams.excludeChannelIds = this.excludeChannelIds
+      }
+      listSaleSite('pageNum='+this.queryParams.pageNum + '&pageSize='+this.queryParams.pageSize+'&', this.queryParams).then(res => {
+        this.loading = false
+        if (res.code === 0) {
+          this.tableData = res.rows
+          this.total = res.total
+        }
+      }).catch(() => {
+        this.loading = false
+      })
+    },
+    handleSelectionChange(val) {
+      this.selection = val
+    },
+    update() {
+      this.$emit('channelTicket', this.selection);
+      this.close()
+    },
+    close() {
+      this.$emit("close");
+    },
+    dataFilter(val) {
+      if (val) { //val存在
+        this.channelList = this.channelCopyList.filter((item) => {
+          if (!!~item.mobile.indexOf(val) || !!~item.mobile.toUpperCase().indexOf(val.toUpperCase())
+            || !!~item.name.indexOf(val) || !!~item.name.indexOf(val)) {
+            return true
+          }
+        })
+      } else { //val为空时,还原数组
+        this.channelList = this.channelCopyList;
+      }
+    },
+    // 获取上级渠道下拉列表
+    getChannelList(){
+      listAllChannel().then(response => {
+        this.channelList = response.data || [];
+        this.channelCopyList = response.data || [];
+      });
+    },
+  }
+}
+</script>

+ 1 - 0
src/views/business/couponPkg/create.vue

@@ -75,6 +75,7 @@ import { couponPkgCreate, couponPkgDetail, couponPkgUpdate } from "@/api/busines
 import CouponAdd from "./components/CouponAdd"
 import { accMul } from '@/utils/util'
 export default {
+  name: 'CouponPkgAdd',
   components: {
     CouponAdd
   },

+ 1 - 0
src/views/business/goods/add.vue

@@ -191,6 +191,7 @@ import { publicFileGetUrl } from "@/api/common"
 import { accDiv, accMul } from '@/utils/util'
 import AddSupplier from "../supplier/components/addSupplier";
 export default {
+  name: 'GoodsAdd',
   components: {
     TinyEditor,
     WangEditor,

+ 1 - 1
src/views/business/marketing/add.vue

@@ -90,7 +90,7 @@ import CouponPkgAdd from "./components/CouponPkgAdd"
 import CoinAdd from "./components/CoinAdd"
 
 export default {
-  name: "add",
+  name: 'MarketingAdd',
   components: {
     Upload,
     WangEditor,

+ 49 - 38
src/views/business/ticket/components/AwardsList.vue

@@ -4,12 +4,12 @@
         <div class="prize-top">
           <div>奖级名称:{{ item.name }}</div>
           <div>奖级:{{ item.sort }}</div>
+<!--          <div>-->
+<!--            关联奖级:<el-select v-model="item.awardsLabel" style="width: 120px;">-->
+<!--            <el-option v-for="(item,index) in awardsLabelList"  :label="item.dictLabel" :value="item.dictLabel" :key="index"/>-->
+<!--          </el-select>-->
+<!--          </div>-->
           <div>
-            关联奖级:<el-select v-model="item.awardsLabel" style="width: 120px;">
-            <el-option v-for="(item,index) in awardsLabelList"  :label="item.dictLabel" :value="item.dictLabel" :key="index"/>
-          </el-select>
-          </div>
-          <div v-if="ticketType == 'offline'">
             奖级数量:
             <el-input-number
               v-model="item.quantity"
@@ -20,7 +20,18 @@
               :disabled="item.isEdit"
             ></el-input-number>
           </div>
-          <div v-else>奖级数量:{{ item.quantity }}</div>
+<!--          <div v-if="ticketType == 'offline'">-->
+<!--            奖级数量:-->
+<!--            <el-input-number-->
+<!--              v-model="item.quantity"-->
+<!--              controls-position="right"-->
+<!--              @change="handleChangeAll($event, item)"-->
+<!--              :min="0"-->
+<!--              size="small"-->
+<!--              :disabled="item.isEdit"-->
+<!--            ></el-input-number>-->
+<!--          </div>-->
+<!--          <div v-else>奖级数量:{{ item.quantity }}</div>-->
         </div>
         <div class="prize-table">
           <el-table :data="item.prizeList" class="el-table">
@@ -60,19 +71,19 @@
                  <span v-else>--</span>
               </template>
             </el-table-column>
-            <el-table-column label="奖品数量" prop="quantity" v-if="ticketType != 'offline'" align="center">
-              <template slot-scope="scope">
-                <div>
-                  <el-input-number
-                    v-model="scope.row.quantity"
-                    controls-position="right"
-                    @change="handleChange($event, index)"
-                    :min="1"
-                    size="small"
-                  ></el-input-number>
-                </div>
-              </template>
-            </el-table-column>
+<!--            <el-table-column label="奖品数量" prop="quantity" v-if="ticketType != 'offline'" align="center">-->
+<!--              <template slot-scope="scope">-->
+<!--                <div>-->
+<!--                  <el-input-number-->
+<!--                    v-model="scope.row.quantity"-->
+<!--                    controls-position="right"-->
+<!--                    @change="handleChange($event, index)"-->
+<!--                    :min="1"-->
+<!--                    size="small"-->
+<!--                  ></el-input-number>-->
+<!--                </div>-->
+<!--              </template>-->
+<!--            </el-table-column>-->
             <el-table-column label="已兑数量" prop="cashedQty" align="center" v-if="boxId" />
             <el-table-column label="排序" prop="sortWeight" align="center">
               <template slot-scope="scope">
@@ -232,9 +243,9 @@ export default {
       }
       this.$emit('input', this.awardsList)
       this.$emit('close')
-      if (this.ticketType != 'offline' && this.id == 0) {
-        this.getQuantity();
-      }
+      // if (this.ticketType != 'offline' && this.id == 0) {
+      //   this.getQuantity();
+      // }
     },
 
     changetype(e) {
@@ -251,18 +262,18 @@ export default {
     handleChangeAll(e, item) {
       this.$set(item, "quantity", e);
       this.$forceUpdate();
-      if (this.ticketType != 'offline' && this.id == 0) {
-        this.getQuantity();
-      }
+      // if (this.ticketType != 'offline' && this.id == 0) {
+      //   this.getQuantity();
+      // }
     },
 
     // 改变奖品数量
     handleChange(e, index) {
       this.prizeIndex = index;
       this.$forceUpdate();
-      if (this.ticketType != 'offline' && this.id == 0) {
-        this.getQuantity();
-      }
+      // if (this.ticketType != 'offline' && this.id == 0) {
+      //   this.getQuantity();
+      // }
     },
 
     // 奖级商品删除
@@ -271,19 +282,19 @@ export default {
       let list = item.prizeList;
       list.splice(index, 1);
       this.$set(item, "prizeList", list);
-      if (this.ticketType != 'offline' && this.id == 0) {
-        this.getQuantity();
-      }
+      // if (this.ticketType != 'offline' && this.id == 0) {
+      //   this.getQuantity();
+      // }
     },
 
     // 计算奖级数量
-    getQuantity() {
-      let num = 0;
-        this.awardsList[this.prizeIndex].prizeList.forEach((item) => {
-          num += item.quantity;
-        });
-        this.awardsList[this.prizeIndex].quantity = num;
-    },
+    // getQuantity() {
+    //   let num = 0;
+    //     this.awardsList[this.prizeIndex].prizeList.forEach((item) => {
+    //       num += item.quantity;
+    //     });
+    //     this.awardsList[this.prizeIndex].quantity = num;
+    // },
   },
 };
 </script>

+ 1 - 1
src/views/business/ticket/components/CoinAdd.vue

@@ -63,7 +63,7 @@ export default {
         prizeType: "coin",
         quantity: 1,
         title: `盲豆 x${this.coinForm.quantity}`,
-        picUrl: publicFileGetUrl + "md.jpeg",
+        picUrl: publicFileGetUrl + "md.png",
         coinValue: this.coinForm.quantity,
         sortWeight: 100
       };

+ 11 - 9
src/views/business/ticket/create.vue

@@ -394,9 +394,11 @@ export default {
               // (item.prizeType = JSON.parse(item.prizeType).value);
               (item.prizeType = 'goods');
           });
-          this.$nextTick(() => {
-            this.$refs.awardFrom.add(goodsList)
-          })
+          if(this.$refs.awardFrom && this.form.type != 'offline') {
+            this.$nextTick(() => {
+              this.$refs.awardFrom.add(goodsList)
+            })
+          }
           // this.goodsList = goodsList
         }
       })
@@ -482,12 +484,12 @@ export default {
             return item.quantity != 0;
           });
 
-          for (let i = 0; i < filterArr2.length; i++) {
-            if(filterArr2[i].awardsLabel == "" || filterArr2[i].awardsLabel == undefined){
-              this.$message.error("关联奖级不能为空");
-              return
-            }
-          }
+          // for (let i = 0; i < filterArr2.length; i++) {
+          //   if(filterArr2[i].awardsLabel == "" || filterArr2[i].awardsLabel == undefined){
+          //     this.$message.error("关联奖级不能为空");
+          //     return
+          //   }
+          // }
           if (this.form.type == "offline") {
             this.form.originPrice = null
             for (let i = 0; i < filterArr2.length; i++) {

+ 6 - 6
src/views/business/ticket/detail.vue

@@ -119,7 +119,7 @@
            <div class="prize-top">
              <div>奖级名称:{{ item.name }}</div>
              <div>奖级:{{ item.sort }}</div>
-             <div>关联奖级:{{ item.awardsLabel || '-' }}</div>
+<!--             <div>关联奖级:{{ item.awardsLabel || '-' }}</div>-->
              <div>奖级数量:{{ item.quantity }}</div>
            </div>
            <div class="prize-table">
@@ -160,11 +160,11 @@
                   <span v-else>--</span>
                 </template>
               </el-table-column>
-               <el-table-column v-if="info && info.type && info.type.value == 'online'" label="奖品数量" prop="quantity" align="center">
-                 <template slot-scope="{ row }">
-                   <div>{{ row.quantity }}</div>
-                 </template>
-               </el-table-column>
+<!--               <el-table-column v-if="info && info.type && info.type.value == 'online'" label="奖品数量" prop="quantity" align="center">-->
+<!--                 <template slot-scope="{ row }">-->
+<!--                   <div>{{ row.quantity }}</div>-->
+<!--                 </template>-->
+<!--               </el-table-column>-->
                <el-table-column label="已兑数量" prop="cashedQty" align="center" />
                <el-table-column label="排序" prop="sortWeight" align="center">
                  <template slot-scope="{ row }">

+ 1 - 0
src/views/setting/template/create.vue

@@ -158,6 +158,7 @@ import {accDiv, accMul} from '@/utils/util'
 import {addData} from "../../../api/system/dict/data";
 
 export default {
+  name: 'TemplateCreate',
   components: {RegionList},
   data() {
     return {