Commit 6a99777d by zhangquan

修复 bug

1 parent c4119f4e
......@@ -152,7 +152,7 @@
<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.packageCode" :disabled="item.disabled">
<el-checkbox @change="changeRaido($event, item)" :label="item.packageCode" :disabled="item.disabled">
<div>{{ item.parentName ? item.packageName + '-' + item.parentName : item.packageName }}</div>
</el-checkbox>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
......@@ -1158,7 +1158,8 @@ export default {
let hasRefitFlagList = this.allProdList.filter(item => this.packageCodeList.includes(item.packageCode))
this.refitFormObj.autoFlag = !!hasRefitFlagList?.find(item => item.qsFlag)
},
changeRaido(e, item) {
changeRaido(e, item, isDel) {
// isDel 删除选中的
if (e) {
// this.checkCodeList = []
// this.autoPackageCodeList = []
......@@ -1188,6 +1189,9 @@ export default {
} else {
this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode)
this.autoPackageCodeList = this.autoPackageCodeList.filter(t => t != item.packageCode)
if (isDel) {
this.curSelectCustomPro = this.curSelectCustomPro.filter(t => t != item.packageCode)
}
for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) {
......@@ -1734,7 +1738,7 @@ export default {
_list.push(item)
} else {
if (this.autoPackageCodeList.includes(item.packageCode)) {
this.changeRaido(false, item)
this.changeRaido(false, item, true)
}
}
})
......
......@@ -508,7 +508,9 @@ export default {
params.exclusionsResponsibility = params.exclusionsResponsibility.join(',')
params.buyConditions = params.buyConditions.join(',')
params.salePeriod = params.salePeriod.join(',')
params.guorenCode = params.copyServiceName
if (!params.copyServiceCode) {
params.guorenCode = params.copyServiceName
}
if (this.routeInfo.id) params.id = this.routeInfo.id
delete params.copyServiceName
this.$apis.serviceConfig.addServicesProject(params).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!