Commit 12b01dbe by 杨北旺

提单修改

1 parent fd9127cf
...@@ -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)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> --> <!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> -->
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,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">
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
// } // }
// ], // ],
curSelectPro: [], curSelectPro: [],
curSelectCustomPro:[], curSelectCustomPro: [],
editProductObj: {}, editProductObj: {},
productList: [], productList: [],
customProductList: [], customProductList: [],
...@@ -663,7 +663,8 @@ export default { ...@@ -663,7 +663,8 @@ export default {
pickerOptions2: {}, pickerOptions2: {},
hotline: '', hotline: '',
compensationNameDisable: false, compensationNameDisable: false,
errGlassName: '' errGlassName: '',
dataSourceDisable: false
} }
}, },
...@@ -1028,16 +1029,15 @@ export default { ...@@ -1028,16 +1029,15 @@ export default {
blackArr.push([]) blackArr.push([])
} }
const newParaArr = [] const newParaArr = []
codeList.forEach((item, index) => { // codeList.forEach((item, index) => {
let attrStr = `attributes[${index}].packageCode` // let attrStr = `attributes[${index}].packageCode`
// 2023 7月底版本 多商品 // 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]) {
...@@ -1052,6 +1052,13 @@ export default { ...@@ -1052,6 +1052,13 @@ export default {
} }
} }
blackArr[j].push(obj) 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)
} }
} }
} }
...@@ -1111,7 +1118,7 @@ export default { ...@@ -1111,7 +1118,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 {
// 自选权益 // 自选权益
...@@ -1278,6 +1285,7 @@ export default { ...@@ -1278,6 +1285,7 @@ export default {
if (spaItem) { if (spaItem) {
this.editForm.specialAppoint = spaItem.spaContent this.editForm.specialAppoint = spaItem.spaContent
} }
this.dataSourceDisable = res.dataSource == 'car'
}) })
}, },
getPackageList() { getPackageList() {
...@@ -1310,6 +1318,7 @@ export default { ...@@ -1310,6 +1318,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
...@@ -1343,6 +1352,7 @@ export default { ...@@ -1343,6 +1352,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!