Commit ed092b56 by 前端

Merge branch 'v3.26.0' into 'master'

代码上线合并

See merge request !9
2 parents b2690588 84fb5699
......@@ -163,7 +163,7 @@
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div>
<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>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div>
......@@ -1328,6 +1328,10 @@ export default {
packageCode: pack.packageCode,
printType: pack.printType
}
if (pack.parentId && pack.parentName) {
temp.parentId = pack.parentId
temp.parentName = pack.parentName
}
this.productModal[pack.idName] = {
...temp,
...orgin,
......@@ -1421,11 +1425,17 @@ export default {
let attrStr = `attributes[${j}].packageCode`
let contractNoStr = `attributes[${j}].contractNo`
let printType = `attributes[${j}].printType`
let parentId = `attributes[${j}].parentId`
let parentName = `attributes[${j}].parentName`
let temp = {
[attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo,
[printType]: arr[i].printType
}
if (arr[i].parentName) {
temp[parentId] = arr[i].parentId
temp[parentName] = arr[i].parentName
}
newArr.push(temp)
}
}
......@@ -1716,6 +1726,9 @@ export default {
params.tireFlag = 1
}
this.$apis.beforeSale.getNewPackageListApi(params).then(res => {
if (this.routeInfo.addOrEdit == 1) {
res = res?.filter(item => item.shelfStatus !== 0) || []
}
this.allProdList = res
res.forEach((item, index) => {
let obj = null
......@@ -1773,6 +1786,10 @@ export default {
packCode = []
detailInfo.attributes.forEach(item => {
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)
if (defalutAttr.length) {
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!