This commit is contained in:
faiz 2024-11-19 14:10:52 +08:00
parent 4014376426
commit da6c6dd539
1 changed files with 79 additions and 77 deletions

View File

@ -4054,45 +4054,45 @@ export default {
}, },
// //
onChangeBenefit(val) { onChangeBenefit(val) {
let proportionList = [ let proportionList = [
{ {
value: "0.45", value: "0.45",
label: "0.45", label: "0.45",
coupon: 0.45, coupon: 0.45,
growth: 0.65 growth: 0.65
}, },
{ {
value: "0.40", value: "0.40",
label: "0.40", label: "0.40",
coupon: 0.5, coupon: 0.5,
growth: 0.7 growth: 0.7
}, },
{ {
value: "0.35", value: "0.35",
label: "0.35", label: "0.35",
coupon: 0.55, coupon: 0.55,
growth: 0.75 growth: 0.75
}, },
{ {
value: "0.30", value: "0.30",
label: "0.30", label: "0.30",
coupon: 0.6, coupon: 0.6,
growth: 0.8 growth: 0.8
}, },
{ {
value: "0.25", value: "0.25",
label: "0.25", label: "0.25",
coupon: 0.65, coupon: 0.65,
growth: 0.85 growth: 0.85
}, },
{ {
value: "0.20", value: "0.20",
label: "0.20", label: "0.20",
coupon: 0.7, coupon: 0.7,
growth: 0.9 growth: 0.9
} }
]; ];
this.proportionList = val?proportionList:this.proportionList; this.proportionList = val ? proportionList : this.proportionList;
this.OneattrValue.map(item => { this.OneattrValue.map(item => {
let obj = this.proportionList.find( let obj = this.proportionList.find(
items => items.value == item.proportion items => items.value == item.proportion
@ -4500,44 +4500,46 @@ export default {
is_benefit: info.is_benefit || 0 is_benefit: info.is_benefit || 0
}; };
let proportionList = [ let proportionList = [
{ {
value: "0.45", value: "0.45",
label: "0.45", label: "0.45",
coupon: 0.45, coupon: 0.45,
growth: 0.65 growth: 0.65
}, },
{ {
value: "0.40", value: "0.40",
label: "0.40", label: "0.40",
coupon: 0.5, coupon: 0.5,
growth: 0.7 growth: 0.7
}, },
{ {
value: "0.35", value: "0.35",
label: "0.35", label: "0.35",
coupon: 0.55, coupon: 0.55,
growth: 0.75 growth: 0.75
}, },
{ {
value: "0.30", value: "0.30",
label: "0.30", label: "0.30",
coupon: 0.6, coupon: 0.6,
growth: 0.8 growth: 0.8
}, },
{ {
value: "0.25", value: "0.25",
label: "0.25", label: "0.25",
coupon: 0.65, coupon: 0.65,
growth: 0.85 growth: 0.85
}, },
{ {
value: "0.20", value: "0.20",
label: "0.20", label: "0.20",
coupon: 0.7, coupon: 0.7,
growth: 0.9 growth: 0.9
} }
]; ];
this.proportionList = this.formValidate.is_benefit ? proportionList : this.proportionList; this.proportionList = this.formValidate.is_benefit
? proportionList
: this.proportionList;
console.log(info.qualification); console.log(info.qualification);
if (info.svip_price_type != 0 && info.mer_svip_status) if (info.svip_price_type != 0 && info.mer_svip_status)
this.attrVal = { this.attrVal = {