是否发送短信

master
lion 2 months ago
parent 1f58dc3648
commit 33bec2bf14

@ -146,6 +146,19 @@
</div>
</div>
</template>
<template v-slot:send_cancel_sms>
<div class="xy-table-item">
<div class="xy-table-item-label">
是否发送取消短信
</div>
<div class="xy-table-item-content number-input">
<el-select placeholder="请选择是否发送取消短信" style="width: 300px" v-model="form.send_cancel_sms">
<el-option v-for="item in [{id:1,name:'是'},{id:0,name:'否'}]" :key="item.id" :value="item.id" :label="item.name">
</el-option>
</el-select>
</div>
</div>
</template>
<template v-slot:originalPrice>
<div class="xy-table-item">
<div class="xy-table-item-label">
@ -353,6 +366,7 @@
policy_id: '',
model:[],
can_buy:1,
send_cancel_sms: 1,
originalPrice: '',
price: '',
fee: '',
@ -472,6 +486,7 @@
policy_id: res?.policy_id || '',
model:res.model?JSON.parse(res.model):[],
can_buy:res?.can_buy,
send_cancel_sms: res?.send_cancel_sms !== undefined ? res?.send_cancel_sms : 1,
originalPrice: res?.original_price,
price: res?.price,
@ -574,6 +589,7 @@
policy_id: this.form.policy_id,
model:this.form.model,
can_buy:this.form.can_buy,
send_cancel_sms: this.form.send_cancel_sms,
original_price: this.form.originalPrice.toString(),
price: this.form.price.toString(),
fee: this.form.fee.toString(),
@ -634,7 +650,8 @@
product_type_id: this.form.productTypeId,
policy_id: this.form.policy_id,
model:this.form.model,
can_buy:this.form.can_buy,
can_buy:this.form.can_buy,
send_cancel_sms: this.form.send_cancel_sms,
original_price: this.form.originalPrice.toString(),
price: this.form.price.toString(),
fee: this.form.fee.toString(),
@ -694,6 +711,7 @@
}
if(this.type==='add'){
this.form.can_buy = 1
this.form.send_cancel_sms = 1
}
} else {

Loading…
Cancel
Save