Commit 0b9c5053 by 杨北旺

修复bug

1 parent 6a3a968d
......@@ -63,7 +63,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, index, attrindex)" 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, index, attrindex)" 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">
......@@ -676,7 +676,8 @@ export default {
leftDisable: false,
pickerOptions:{},
pickerOptions2:{},
hotline:''
hotline:'',
compensationNameDisable:false
}
},
......@@ -689,7 +690,10 @@ export default {
},
'editFormPro.additional_price'(newValue, oldValue) {
this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2)
}
},
// 'editForm.customerName'(newValue,oldValue){
// this.compensationNameDisable = newValue?true:false
// }
},
components: {
......@@ -842,6 +846,16 @@ export default {
// 自选权益产品套餐处理参数--选择框
getCurChangeSelect(e, pack, attr) {
this.commonPart(e, pack, attr)
if(attr.attributeName=='buy_car_type'&&e==1){
// 购车类型为全款车--带入客户姓名
const Newattr = {
attributeName:'compensation_name',
attributeGroup:'compensation_name'
}
this.compensationNameDisable = this.editForm.customerName?true: false
this.productModal[pack.idName]['compensation_name'] = this.editForm.customerName
this.commonPart(this.editForm.customerName,pack,Newattr)
}
},
// 自选权益产品套餐处理参数---输入框
getCurChangeInput(e, pack, attr, faIndex, childIndex) {
......@@ -1612,6 +1626,10 @@ export default {
effectiveDate: new Date(new Date().setDate(new Date().getDate() + 1)),
customerType: 1,
cardType: 1,
merchantName: '',
merchantPhone: '',
merchantAddress: '',
specialAppoint: '',
vehicle: {
vehicleBrandId: '',
vehicleSubBrandId: '',
......@@ -1639,6 +1657,7 @@ export default {
this.productList = []
this.getPackageList()
this.reset = true
this.getHotline()
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
if (res) {
this.defaultBrandForm.vehicleBrandId = res.vehicleBrandId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!