Commit 6a99777d by zhangquan

修复 bug

1 parent c4119f4e
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
<el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable"> <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.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> <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>
...@@ -1158,7 +1158,8 @@ export default { ...@@ -1158,7 +1158,8 @@ export default {
let hasRefitFlagList = this.allProdList.filter(item => this.packageCodeList.includes(item.packageCode)) let hasRefitFlagList = this.allProdList.filter(item => this.packageCodeList.includes(item.packageCode))
this.refitFormObj.autoFlag = !!hasRefitFlagList?.find(item => item.qsFlag) this.refitFormObj.autoFlag = !!hasRefitFlagList?.find(item => item.qsFlag)
}, },
changeRaido(e, item) { changeRaido(e, item, isDel) {
// isDel 删除选中的
if (e) { if (e) {
// this.checkCodeList = [] // this.checkCodeList = []
// this.autoPackageCodeList = [] // this.autoPackageCodeList = []
...@@ -1188,6 +1189,9 @@ export default { ...@@ -1188,6 +1189,9 @@ export default {
} else { } else {
this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode) this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode)
this.autoPackageCodeList = this.autoPackageCodeList.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]) { for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => { item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) { if (attr.attributeName == key) {
...@@ -1734,7 +1738,7 @@ export default { ...@@ -1734,7 +1738,7 @@ export default {
_list.push(item) _list.push(item)
} else { } else {
if (this.autoPackageCodeList.includes(item.packageCode)) { if (this.autoPackageCodeList.includes(item.packageCode)) {
this.changeRaido(false, item) this.changeRaido(false, item, true)
} }
} }
}) })
......
...@@ -508,7 +508,9 @@ export default { ...@@ -508,7 +508,9 @@ export default {
params.exclusionsResponsibility = params.exclusionsResponsibility.join(',') params.exclusionsResponsibility = params.exclusionsResponsibility.join(',')
params.buyConditions = params.buyConditions.join(',') params.buyConditions = params.buyConditions.join(',')
params.salePeriod = params.salePeriod.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 if (this.routeInfo.id) params.id = this.routeInfo.id
delete params.copyServiceName delete params.copyServiceName
this.$apis.serviceConfig.addServicesProject(params).then(res => { 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!