Commit 0b9c5053 by 杨北旺

修复bug

1 parent 6a3a968d
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,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, 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>
<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">
...@@ -676,7 +676,8 @@ export default { ...@@ -676,7 +676,8 @@ export default {
leftDisable: false, leftDisable: false,
pickerOptions:{}, pickerOptions:{},
pickerOptions2:{}, pickerOptions2:{},
hotline:'' hotline:'',
compensationNameDisable:false
} }
}, },
...@@ -689,7 +690,10 @@ export default { ...@@ -689,7 +690,10 @@ export default {
}, },
'editFormPro.additional_price'(newValue, oldValue) { 'editFormPro.additional_price'(newValue, oldValue) {
this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2) this.editFormPro.additional_price = limitPrice(newValue, oldValue, 6, 2)
} },
// 'editForm.customerName'(newValue,oldValue){
// this.compensationNameDisable = newValue?true:false
// }
}, },
components: { components: {
...@@ -842,6 +846,16 @@ export default { ...@@ -842,6 +846,16 @@ export default {
// 自选权益产品套餐处理参数--选择框 // 自选权益产品套餐处理参数--选择框
getCurChangeSelect(e, pack, attr) { getCurChangeSelect(e, pack, attr) {
this.commonPart(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) { getCurChangeInput(e, pack, attr, faIndex, childIndex) {
...@@ -1612,6 +1626,10 @@ export default { ...@@ -1612,6 +1626,10 @@ export default {
effectiveDate: new Date(new Date().setDate(new Date().getDate() + 1)), effectiveDate: new Date(new Date().setDate(new Date().getDate() + 1)),
customerType: 1, customerType: 1,
cardType: 1, cardType: 1,
merchantName: '',
merchantPhone: '',
merchantAddress: '',
specialAppoint: '',
vehicle: { vehicle: {
vehicleBrandId: '', vehicleBrandId: '',
vehicleSubBrandId: '', vehicleSubBrandId: '',
...@@ -1639,6 +1657,7 @@ export default { ...@@ -1639,6 +1657,7 @@ export default {
this.productList = [] this.productList = []
this.getPackageList() this.getPackageList()
this.reset = true this.reset = true
this.getHotline()
this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => { this.$apis.beforeSale.getDefaultCarbrandApi({}).then(res => {
if (res) { if (res) {
this.defaultBrandForm.vehicleBrandId = res.vehicleBrandId 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!