Commit be3d2ec2 by 杨北旺

修改联调

1 parent c72b5280
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 自选权益 --> <!-- 自选权益 -->
<div v-if="equityRadio == '1'" class="auto_widget"> <div v-if="equityRadio == '1'" class="auto_widget">
<el-checkbox-group v-model="curSelectPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in productList" :key="index" class="product_wrapper"> <div v-for="(item, index) in productList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> --> <!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> -->
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<!-- 定制权益 --> <!-- 定制权益 -->
<div v-if="equityRadio == '2'" class="auto_widget"> <div v-if="equityRadio == '2'" class="auto_widget">
<el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper"> <div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled"> <el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled">
...@@ -150,37 +150,6 @@ ...@@ -150,37 +150,6 @@
</div> </div>
</div> </div>
</el-checkbox-group> </el-checkbox-group>
<!-- <el-radio-group v-model="curSelectCustomPro" :disabled="disabled">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px">
<el-radio @change="changeRaido($event, item)" :disabled="item.disabled" :label="item.packageName"></el-radio>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div>
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap custom-made">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
<span v-if="attr.required == 1" style="color: red">*</span>
{{ attr.attributeDesc }}
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr,index, attrindex,2)" 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">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
</div>
</div>
</div>
</el-radio-group> -->
</div> </div>
</div> </div>
...@@ -712,7 +681,8 @@ export default { ...@@ -712,7 +681,8 @@ export default {
pickerOptions2: {}, pickerOptions2: {},
hotline: '', hotline: '',
compensationNameDisable: false, compensationNameDisable: false,
errGlassName: '' errGlassName: '',
dataSourceDisable: false
} }
}, },
...@@ -1111,16 +1081,16 @@ export default { ...@@ -1111,16 +1081,16 @@ export default {
blackArr.push([]) blackArr.push([])
} }
const newParaArr = [] const newParaArr = []
codeList.forEach((item, index) => { // codeList.forEach((item, index) => {
let attrStr = `attributes[${index}].packageCode` // // 2023 7月底版本 多商品
// 2023 7月底版本 多商品 // let attrStr = `attributes[${index}].packageCode`
let contractNoStr = `attributes[${index}].contractNo` // let contractNoStr = `attributes[${index}].contractNo`
let obj = { // let obj = {
[attrStr]: item, // [attrStr]: item,
[contractNoStr]: this.routeInfo.contractNo && this.routeInfo.contractNo > -1 ? this.routeInfo.contractNo : '' // [contractNoStr]: this.routeInfo.contractNo && this.routeInfo.contractNo > -1 ? this.routeInfo.contractNo : ''
} // }
newArr.push(obj) // newArr.push(obj)
}) // })
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < codeList.length; j++) { for (let j = 0; j < codeList.length; j++) {
if (arr[i].packageCode == codeList[j]) { if (arr[i].packageCode == codeList[j]) {
...@@ -1135,6 +1105,14 @@ export default { ...@@ -1135,6 +1105,14 @@ export default {
} }
} }
blackArr[j].push(obj) blackArr[j].push(obj)
// 2023 7月底版本 多商品
let attrStr = `attributes[${j}].packageCode`
let contractNoStr = `attributes[${j}].contractNo`
let temp = {
[attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo
}
newArr.push(temp)
} }
} }
} }
...@@ -1192,7 +1170,7 @@ export default { ...@@ -1192,7 +1170,7 @@ export default {
if (item.packageType == 1) { if (item.packageType == 1) {
//定制权益 //定制权益
item.idName = `vip${item.packageCode}` item.idName = `vip${item.packageCode}`
this.$set(this.productModal,item.idName,{}) this.$set(this.productModal, item.idName, {})
this.productModal[item.idName]['planId'] = item.planId this.productModal[item.idName]['planId'] = item.planId
} else { } else {
// 自选权益 // 自选权益
...@@ -1359,6 +1337,7 @@ export default { ...@@ -1359,6 +1337,7 @@ export default {
if (spaItem) { if (spaItem) {
this.editForm.specialAppoint = spaItem.spaContent this.editForm.specialAppoint = spaItem.spaContent
} }
this.dataSourceDisable = res.dataSource == 'car'
}) })
}, },
getPackageList() { getPackageList() {
...@@ -1406,6 +1385,7 @@ export default { ...@@ -1406,6 +1385,7 @@ export default {
if (targetItem.packageType == 1) { if (targetItem.packageType == 1) {
this.equityRadio = 2 this.equityRadio = 2
this.curSelectCustomPro.push(targetItem.packageName) this.curSelectCustomPro.push(targetItem.packageName)
this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro))
item.attributeDTOList.forEach(a => { item.attributeDTOList.forEach(a => {
if (a.attributeName.includes('price')) { if (a.attributeName.includes('price')) {
a.attributeValue = a.attributeValue / 100 a.attributeValue = a.attributeValue / 100
...@@ -1439,6 +1419,7 @@ export default { ...@@ -1439,6 +1419,7 @@ export default {
} else { } else {
this.equityRadio = 1 this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName) this.curSelectPro.push(targetItem.packageName)
this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => { item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) { if (b.attributeName.includes('price')) {
b.attributeValue = b.attributeValue / 100 b.attributeValue = b.attributeValue / 100
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!