Commit ed092b56 by 前端

Merge branch 'v3.26.0' into 'master'

代码上线合并

See merge request !9
2 parents b2690588 84fb5699
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,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> <div>
<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>
...@@ -1328,6 +1328,10 @@ export default { ...@@ -1328,6 +1328,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,
...@@ -1421,11 +1425,17 @@ export default { ...@@ -1421,11 +1425,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)
} }
} }
...@@ -1716,6 +1726,9 @@ export default { ...@@ -1716,6 +1726,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
...@@ -1773,6 +1786,10 @@ export default { ...@@ -1773,6 +1786,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!