|
@@ -14,7 +14,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="addData.type === 1" label="是否新用户注册发放:">
|
|
|
- <el-switch
|
|
|
+ <el-switch :disabled="readonly"
|
|
|
v-model="addData.isNewUserCoupon"
|
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
@@ -60,6 +60,9 @@
|
|
|
<template slot="append">天有效</template>
|
|
|
</el-input> -->
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="已使用数量:" v-if="readonly || addData.status === 'on' || addData.status === 'off'">
|
|
|
+ <div style="color:#606266">{{ addData.usedQty }}</div>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="使用说明:" prop="description">
|
|
|
<el-input type="textarea" rows="4" :readonly="readonly" v-model="addData.description" placeholder="请输入使用说明 对用户可见"/>
|
|
|
</el-form-item>
|
|
@@ -220,7 +223,7 @@ export default {
|
|
|
created() {
|
|
|
if (this.id) {
|
|
|
getCouponDetail(this.id).then(res => {
|
|
|
- const { couponId, title,isNewUserCoupon, quantity, discount, channelSharedRate, minOrderAmt, dueDays, description, ticketBoxList, channelList, status } = res.data
|
|
|
+ const { couponId, title,isNewUserCoupon, quantity, discount, channelSharedRate, minOrderAmt, dueDays, description,usedQty, ticketBoxList, channelList, status } = res.data
|
|
|
this.addData = {
|
|
|
type: JSON.parse(res.data.type).value,
|
|
|
useArea: JSON.parse(res.data.useArea).value,
|
|
@@ -228,7 +231,7 @@ export default {
|
|
|
status: JSON.parse(res.data.status).value,
|
|
|
discount: accDiv(discount, 100),
|
|
|
minOrderAmt: accDiv(minOrderAmt, 100),
|
|
|
- couponId, title, quantity, channelSharedRate, dueDays, description, ticketBoxList
|
|
|
+ couponId, title, quantity, channelSharedRate, dueDays, description, ticketBoxList,usedQty
|
|
|
}
|
|
|
this.channelList = channelList
|
|
|
})
|