Commit 7b872158 by 杨北旺

v1.1.0

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