doum
8 小时以前 28db820caf0ed90f4326d29cb0fa7a19cba92775
admin/src/views/business/coupon.vue
@@ -38,21 +38,28 @@
            <span v-if="row.couponType ===1"> 折扣券</span>
          </template>
        </el-table-column>
        <el-table-column label="优惠规则" align="center" min-width="150px" show-overflow-tooltip>
        <el-table-column label="优惠规则" align="center" min-width="200px" show-overflow-tooltip>
          <template slot-scope="{row}">
            <span v-if="row.couponType ===0"> {{ `订单满${row.limitPrice||0}元,减${row.price||0}` }}元</span>
            <span v-if="row.couponType ===1"> {{ `订单满${row.limitPrice||0}元,享${row.price||0}折` }}</span>
            <span v-if="row.couponType ===1"> {{ `订单满${row.limitPrice||0}元,享${row.price||0}折,`}}</span><br>
            <span v-if="row.couponType ===1"> {{ `优惠金额上限${row.maxPrice||0}元 `}}</span>
          </template>
        </el-table-column>
        <el-table-column prop="num" label="发放总量" align="center" min-width="100px"></el-table-column>
        <el-table-column  label="已发送数量" align="center" min-width="100px">
          <template slot-scope="{row}">
            <el-button type="text" @click="showCouponUse(row.id)">{{ row.received||0 }}</el-button>
          </template>
        </el-table-column>
        <el-table-column prop="num" label="发放总量" align="center" min-width="100px">
          <template slot-scope="{row}">
            <span v-if="row.num "> {{ row.num}}</span>
            <span v-if="!row.num ||row.num<=0 ">不限</span><br>
          </template>
        </el-table-column>
        <el-table-column label="剩余数量" align="center" min-width="100px">
          <template slot-scope="{row}">
            {{ (row.num||0) - (row.received||0) }}
              <span v-if="row.num ">  {{ (row.num||0) - (row.received||0) }}</span>
              <span v-if="!row.num ||row.num<=0 ">不限</span><br>
          </template>
        </el-table-column>
<!--
@@ -145,7 +152,6 @@
      this.$refs.operaCouponDetail.open('优惠券详情', row)
    },
    showCouponUse(id) {
      this.$refs.operaCouponUsedDetail.open('优惠券领取详情', id)
    },
    statusChange(row) {