Commit d7783459 by zhangquan

权益提单联调

1 parent 79f56e26
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<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">
<div>{{ item.packageName }}</div> <div>{{ item.parentName ? item.packageName + '-' + item.parentName : item.packageName }}</div>
</el-checkbox> </el-checkbox>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p> <p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div> </div>
...@@ -1279,6 +1279,10 @@ export default { ...@@ -1279,6 +1279,10 @@ export default {
packageCode: pack.packageCode, packageCode: pack.packageCode,
printType: pack.printType printType: pack.printType
} }
if (pack.parentId && pack.parentName) {
temp.parentId = pack.parentId
temp.parentName = pack.parentName
}
this.productModal[pack.idName] = { this.productModal[pack.idName] = {
...temp, ...temp,
...orgin, ...orgin,
...@@ -1373,11 +1377,17 @@ export default { ...@@ -1373,11 +1377,17 @@ export default {
let attrStr = `attributes[${j}].packageCode` let attrStr = `attributes[${j}].packageCode`
let contractNoStr = `attributes[${j}].contractNo` let contractNoStr = `attributes[${j}].contractNo`
let printType = `attributes[${j}].printType` let printType = `attributes[${j}].printType`
let parentId = `attributes[${j}].parentId`
let parentName = `attributes[${j}].parentName`
let temp = { let temp = {
[attrStr]: codeList[j], [attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo, [contractNoStr]: arr[i].contractNo,
[printType]: arr[i].printType [printType]: arr[i].printType
} }
if (arr[i].parentName) {
temp[parentId] = arr[i].parentId
temp[parentName] = arr[i].parentName
}
newArr.push(temp) newArr.push(temp)
} }
} }
...@@ -1673,6 +1683,9 @@ export default { ...@@ -1673,6 +1683,9 @@ export default {
params.tireFlag = 1 params.tireFlag = 1
} }
this.$apis.beforeSale.getNewPackageListApi(params).then(res => { this.$apis.beforeSale.getNewPackageListApi(params).then(res => {
if (this.routeInfo.addOrEdit == 1) {
res = res?.filter(item => item.shelfStatus !== 0) || []
}
this.allProdList = res || [] this.allProdList = res || []
res.forEach((item, index) => { res.forEach((item, index) => {
let obj = null let obj = null
...@@ -1730,6 +1743,10 @@ export default { ...@@ -1730,6 +1743,10 @@ export default {
packCode = [] packCode = []
detailInfo.attributes.forEach(item => { detailInfo.attributes.forEach(item => {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode) let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
if (targetItem && item.parentId) {
targetItem.parentId = item.parentId
targetItem.parentName = item.parentName
}
const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList) const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList)
if (defalutAttr.length) { if (defalutAttr.length) {
item.attributeDTOList = this.handlerAttrSetValue(this.unique(defalutAttr), item.attributeDTOList) item.attributeDTOList = this.handlerAttrSetValue(this.unique(defalutAttr), item.attributeDTOList)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!