Commit 501bef9d by YG8999

修改退款操作:是否使用优惠券不可修改

parent 6d790157
......@@ -505,14 +505,7 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="是否使用优惠券" prop="isUseCoupon">
<el-radio-group v-model="refundForm.isUseCoupon" :readonly="true">
<el-radio
v-for="dict in dict.type.store_is_use_coupon"
:key="dict.value"
:label="dict.value"
>{{ dict.label }}
</el-radio>
</el-radio-group>
<el-input v-model="refundForm.isUseCoupon" :readonly="true" />
</el-form-item>
</el-col>
</el-row>
......@@ -917,7 +910,8 @@ export default {
this.refundForm.orderNo = row.orderNo;
this.refundForm.orderStatus = this.orderStatusFormat(row.status);
this.refundForm.isUseCoupon = row.couponId ? '1' : '0';
let isUseCoupon = row.couponId ? '1' : '0';
this.refundForm.isUseCoupon = this.selectDictLabel(this.dict.type.store_is_use_coupon, isUseCoupon);
if (row.couponId) {
let coupon = this.couponList.find(item => item.id === row.couponId);
this.refundForm.couponName = coupon.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment