|
@@ -234,9 +234,10 @@ export default {
|
|
|
useArea: JSON.parse(res.data.useArea).value,
|
|
|
isNewUserCoupon: isNewUserCoupon ? 1 : 0,
|
|
|
status: JSON.parse(res.data.status).value,
|
|
|
+ couponDetail: couponDetail?couponDetail:'',
|
|
|
discount: accDiv(discount, 100),
|
|
|
minOrderAmt: accDiv(minOrderAmt, 100),
|
|
|
- couponId, title, quantity, channelSharedRate, dueDays, description, ticketBoxList, usedQty,couponDetail
|
|
|
+ couponId, title, quantity, channelSharedRate, dueDays, description, ticketBoxList, usedQty,
|
|
|
}
|
|
|
if (couponDetail) {
|
|
|
this.$refs.editor.setContent(couponDetail)
|
|
@@ -293,7 +294,7 @@ export default {
|
|
|
this.addData.channelIdList = arr
|
|
|
}
|
|
|
const { couponDetail, discount, minOrderAmt, ...rest } = this.addData
|
|
|
- addCoupon({ ...rest, ...{ discount: accMul(discount, 100), minOrderAmt: accMul(minOrderAmt, 100), couponDetail: encodeURI(couponDetail)} }).then(res => {
|
|
|
+ addCoupon({ ...rest, ...{ discount: accMul(discount, 100), minOrderAmt: accMul(minOrderAmt, 100), couponDetail: couponDetail?encodeURI(couponDetail):''} }).then(res => {
|
|
|
this.addIng = false
|
|
|
if (res.code === 0) {
|
|
|
this.$message({
|