Commit 12b01dbe by 杨北旺

提单修改

1 parent fd9127cf
......@@ -46,7 +46,7 @@
<!-- 自选权益 -->
<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 style="padding-left: 73px">
<!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> -->
......@@ -112,7 +112,7 @@
<!-- 定制权益 -->
<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 style="padding-left: 73px">
<el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled">
......@@ -450,7 +450,7 @@ export default {
// }
// ],
curSelectPro: [],
curSelectCustomPro:[],
curSelectCustomPro: [],
editProductObj: {},
productList: [],
customProductList: [],
......@@ -663,7 +663,8 @@ export default {
pickerOptions2: {},
hotline: '',
compensationNameDisable: false,
errGlassName: ''
errGlassName: '',
dataSourceDisable: false
}
},
......@@ -1028,16 +1029,15 @@ export default {
blackArr.push([])
}
const newParaArr = []
codeList.forEach((item, index) => {
let attrStr = `attributes[${index}].packageCode`
// 2023 7月底版本 多商品
let contractNoStr = `attributes[${index}].contractNo`
let obj = {
[attrStr]: item,
[contractNoStr]: this.routeInfo.contractNo && this.routeInfo.contractNo > -1 ? this.routeInfo.contractNo : ''
}
newArr.push(obj)
})
// codeList.forEach((item, index) => {
// let attrStr = `attributes[${index}].packageCode`
// let contractNoStr = `attributes[${index}].contractNo`
// let obj = {
// [attrStr]: item,
// [contractNoStr]: this.routeInfo.contractNo && this.routeInfo.contractNo > -1 ? this.routeInfo.contractNo : ''
// }
// newArr.push(obj)
// })
for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < codeList.length; j++) {
if (arr[i].packageCode == codeList[j]) {
......@@ -1052,6 +1052,13 @@ export default {
}
}
blackArr[j].push(obj)
let attrStr = `attributes[${index}].packageCode`
let contractNoStr = `attributes[${index}].contractNo`
let temp = {
[attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo
}
newArr.push(temp)
}
}
}
......@@ -1078,7 +1085,7 @@ export default {
})
// console.log(this.formatProduct, '自选权益')
} else {
this.autoFormatProduct = {}
this.autoFormatProduct = {}
concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
})
......@@ -1106,12 +1113,12 @@ export default {
})
},
// 获取产品的数据
toGetProductData(arr) {
toGetProductData(arr) {
arr.forEach(item => {
if (item.packageType == 1) {
//定制权益
item.idName = `vip${item.packageCode}`
this.$set(this.productModal,item.idName,{})
this.$set(this.productModal, item.idName, {})
this.productModal[item.idName]['planId'] = item.planId
} else {
// 自选权益
......@@ -1278,6 +1285,7 @@ export default {
if (spaItem) {
this.editForm.specialAppoint = spaItem.spaContent
}
this.dataSourceDisable = res.dataSource == 'car'
})
},
getPackageList() {
......@@ -1301,7 +1309,7 @@ export default {
})
}
},
packageAttr(recovery = false, productArrData, detailInfo) {
packageAttr(recovery = false, productArrData, detailInfo) {
// 2023 7月底版本 改版
let attrList = [],
packCode = []
......@@ -1310,6 +1318,7 @@ export default {
if (targetItem.packageType == 1) {
this.equityRadio = 2
this.curSelectCustomPro.push(targetItem.packageName)
this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro))
item.attributeDTOList.forEach(a => {
if (a.attributeName.includes('price')) {
a.attributeValue = a.attributeValue / 100
......@@ -1343,6 +1352,7 @@ export default {
} else {
this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName)
this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) {
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!