Sfoglia il codice sorgente

编辑、查看盲票组奖级奖品新增已兑数量

hwb0 3 anni fa
parent
commit
2466c1d9c7

+ 2 - 0
src/views/business/ticket/components/AwardsList.vue

@@ -73,6 +73,7 @@
                 </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">
                 <div>
@@ -129,6 +130,7 @@ export default {
   },
   data() {
     return {
+      boxId: this.$route.query.id,
       awardsLabelList: [],//关联奖级列表
       prizeIndex: 0, // 奖级下标
       // 奖级列表

+ 0 - 1
src/views/business/ticket/components/GoodsAdd.vue

@@ -190,7 +190,6 @@ export default {
 
     // 选中商品
     handleSelectionGoods(e) {
-      console.log(e);
       this.selectGoodsList = e.map((item) => {
         return {
           prizeType: "goods",

+ 4 - 3
src/views/business/ticket/detail.vue

@@ -26,7 +26,7 @@
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.salePrice && $numberFormat(info.salePrice) }}元
         </el-form-item>
-        <el-form-item label="划线价:" v-if="info.type.value == 'online'">
+        <el-form-item label="划线价:" v-if="info && info.type && info.type.value == 'online'">
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.originPrice && $numberFormat(info.originPrice) }}元
         </el-form-item>
@@ -38,7 +38,7 @@
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.pkgUnit }}张
         </el-form-item>
-        <el-form-item label="采购单价:" v-if="info.type.value == 'offline'">
+        <el-form-item label="采购单价:" v-if="info && info.type && info.type.value == 'offline'">
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.pkgSalePrice && $numberFormat(info.pkgSalePrice) }}元
         </el-form-item>
@@ -105,11 +105,12 @@
                   <span v-else>--</span>
                 </template>
               </el-table-column>
-               <el-table-column v-if="info.type.value == 'online'" label="奖品数量" prop="quantity" align="center">
+               <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 }">
                    <div>{{ row.sortWeight }}</div>