Commit 7b872158 by 杨北旺

v1.1.0

1 parent 0b9c5053
......@@ -120,7 +120,7 @@
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled" @input="getCurChangeInput($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName=='compensation_name'&&compensationNameDisable)" @input="getCurChangeInput($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
......@@ -459,7 +459,7 @@ export default {
label: '联系地址',
name: 'customerAddress',
type: 'input',
maxlength: 30
maxlength: 100
}
],
// 选择产品
......@@ -642,6 +642,12 @@ export default {
label: '3年'
}
],
servicePeriodList2:[
{
value: '1',
label: '1年'
},
],
carBrandOptions: [],
carChildOptions: [],
carSeriesOptions: [],
......@@ -815,6 +821,11 @@ export default {
}
})
}
const customAttr = {
attributeGroup:'planId',
attributeName:'planId'
}
this.commonPart(this.productModal['vip']['planId'], item, customAttr)
}
},
// 获取店铺信息
......@@ -976,11 +987,13 @@ export default {
concactArr.forEach(item => {
this.formatProduct = Object.assign(this.formatProduct, item)
})
console.log(this.formatProduct);
console.log(this.formatProduct,'自选权益');
} else {
concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
})
console.log(this.autoFormatProduct,'定制权益');
}
},
// 处理传参价格问题
......@@ -1013,6 +1026,7 @@ export default {
} else if (item.packageName.includes('碰撞无忧')) {
item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId)
} else if (item.packageName.includes('盗抢全损无忧')) {
item.idName = 'stolen'
......@@ -1028,12 +1042,16 @@ export default {
let newArr = []
item.groupAttributeList.map(ele => {
ele.attributeList.map(e => {
if (e.attributeDesc == '服务期限') {
if ((item.idName == 'stolen' || item.idName=='car')&&e.attributeDesc=="服务期限") {
e.optionList = this.baseData.servicePeriodList
this.productModal[item.idName][e.attributeName] = '1'
} else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList
this.productModal[item.idName][e.attributeName] = '0'
}else if((item.idName == 'tire' || item.idName=='crash' || item.idName=="vip")&&e.attributeDesc=="服务期限"){
e.optionList = this.baseData.servicePeriodList2
this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true
}
ele.tempobj = { ...e }
})
......@@ -1510,6 +1528,9 @@ export default {
this.updateEquity(params)
},
updateEquity(params) {
if(!params.sn){
delete params.sn
}
this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!