|
@@ -124,7 +124,8 @@
|
|
|
<Select v-model="two.id" :disabled="two.disabled || !two.choose" placeholder="请选择产品"
|
|
|
style="width:120px;margin-right:10px;" v-if="two.list.length > 1"
|
|
|
@on-change="chooseChange($event, 'select')">
|
|
|
- <Option v-for="(three, three_index) in two.list" :key="three_index" :value="three.id" v-show="!three.hide">
|
|
|
+ <Option v-for="(three, three_index) in two.list" :key="three_index" :value="three.id"
|
|
|
+ v-show="!three.hide">
|
|
|
{{ three.s_count_year + three.dw }}</Option>
|
|
|
</Select>
|
|
|
</div>
|
|
@@ -480,6 +481,7 @@ import bUpload from '@/components/uploadFile.vue'
|
|
|
import saleSelect from './salesSelect.vue'
|
|
|
import reviewRecord from './reviewRecord.vue'
|
|
|
import { debounce } from '@/helper.js'
|
|
|
+import serveNames from '@/assets/js/serveName.js'
|
|
|
export default {
|
|
|
name: 'EditBigOrderModal',
|
|
|
components: {
|
|
@@ -838,12 +840,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getNewservedata(status) {
|
|
|
- this.$request('/order/getServerNew').data({sType: 2}).success((res) => { // 获取自定义套餐所有服务选项
|
|
|
+ this.$request('/order/getServerNew').data({ sType: 2 }).success((res) => { // 获取自定义套餐所有服务选项
|
|
|
let data = res.data.lists
|
|
|
// 处理为符合前端结构数据
|
|
|
data.forEach(ele => {
|
|
|
if (ele.Children.length > 0) {
|
|
|
- ele.maps = groupByProperty(ele.Children, 's_new_name')
|
|
|
+ for (const key in serveNames) { // 服务名称替换
|
|
|
+ ele.Children.forEach(item => {
|
|
|
+ if (item.s_new_name == key) {
|
|
|
+ item.s_new_name = serveNames[key]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ ele.maps = groupByProperty(ele.Children, 's_new_name') // 相同名称合并分组
|
|
|
}
|
|
|
})
|
|
|
// data.forEach(ele => {
|
|
@@ -876,7 +885,7 @@ export default {
|
|
|
obj.id = e.id
|
|
|
}
|
|
|
} else if (e.s_new_name.includes('企业分析') || e.s_new_name.includes('业主分析') || e.s_new_name.includes('市场分析定制报告')) {
|
|
|
- if (!e.s_count_year || e.s_count_year == 500){ // 企业分析count500是基础产品与一份下载包重合因此隐藏,其他两种的基础产品count是null
|
|
|
+ if (!e.s_count_year || e.s_count_year == 500) { // 企业分析count500是基础产品与一份下载包重合因此隐藏,其他两种的基础产品count是null
|
|
|
e.hide = true
|
|
|
}
|
|
|
e.dw = '份' // 单位
|
|
@@ -1026,15 +1035,15 @@ export default {
|
|
|
} else if (e.name.includes('市场分析定制报告') || e.name.includes('企业分析') || e.name.includes('业主分析')) {
|
|
|
e.list.forEach(item => {
|
|
|
if (e.id == item.id) {
|
|
|
- if(item.s_count_year){
|
|
|
- if(item.s_new_name.includes('企业分析') && item.s_count_year == 500){
|
|
|
+ if (item.s_count_year) {
|
|
|
+ if (item.s_new_name.includes('企业分析') && item.s_count_year == 500) {
|
|
|
names.push(item.s_new_name)
|
|
|
- }else{
|
|
|
- names.push(item.s_new_name.replace(',报告下载:','') + `(报告下载:${item.s_count_year}${item.dw})`)
|
|
|
- }
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
+ names.push(item.s_new_name.replace(',报告下载:', '') + `(报告下载:${item.s_count_year}${item.dw})`)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
names.push(item.s_new_name)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -1055,14 +1064,14 @@ export default {
|
|
|
if (ids.includes(23) && !ids.includes(13)) {
|
|
|
ids.push(13)
|
|
|
}
|
|
|
- if(names_str.includes('市场分析定制报告') && !ids.includes(26)){ // 选中下载包的ID时则存在没有基础产品的ID,这里补上 基础产品和下载包是绑定的,但是有两个ID
|
|
|
+ if (names_str.includes('市场分析定制报告') && !ids.includes(26)) { // 选中下载包的ID时则存在没有基础产品的ID,这里补上 基础产品和下载包是绑定的,但是有两个ID
|
|
|
ids.push(26)
|
|
|
}
|
|
|
- if(names_str.includes('企业分析') && !ids.includes(4)){
|
|
|
- ids.push(4)
|
|
|
+ if (names_str.includes('企业分析') && !ids.includes(4)) {
|
|
|
+ ids.push(4)
|
|
|
}
|
|
|
- if(names_str.includes('业主分析') && !ids.includes(5)){
|
|
|
- ids.push(5)
|
|
|
+ if (names_str.includes('业主分析') && !ids.includes(5)) {
|
|
|
+ ids.push(5)
|
|
|
}
|
|
|
// console.log(ids,names)
|
|
|
if (type == 'getbuyserve') {
|
|
@@ -1096,9 +1105,9 @@ export default {
|
|
|
ele.lists.forEach(e => {
|
|
|
e.list.forEach(item => {
|
|
|
if (data.includes(item.id)) {
|
|
|
- if(item.id != 4 && item.id!=5 && item.id!=26){ // 企业分析 业主分析 市场分析定制报告 这三个基础服务不选中ID (捆绑的有下载包 选中下载包的ID)
|
|
|
- e.id = item.id
|
|
|
- }
|
|
|
+ if (item.id != 4 && item.id != 5 && item.id != 26) { // 企业分析 业主分析 市场分析定制报告 这三个基础服务不选中ID (捆绑的有下载包 选中下载包的ID)
|
|
|
+ e.id = item.id
|
|
|
+ }
|
|
|
e.choose = true
|
|
|
if (type == 'dis') { // 禁用已勾选
|
|
|
e.disabled = true
|
|
@@ -4527,7 +4536,7 @@ export default {
|
|
|
{ v: 0, n: '免费' },
|
|
|
{ v: 1, n: '收费' }
|
|
|
],
|
|
|
- currentServerid:''
|
|
|
+ currentServerid: ''
|
|
|
}
|
|
|
}
|
|
|
}
|