|
@@ -274,6 +274,17 @@ export default {
|
|
this.bigDis = true
|
|
this.bigDis = true
|
|
this.subDis = true
|
|
this.subDis = true
|
|
this.supplyDis = true
|
|
this.supplyDis = true
|
|
|
|
+ this.strItems1 = []
|
|
|
|
+ this.strItems2 = []
|
|
|
|
+ this.strItems3 = []
|
|
|
|
+ this.strItems4 = []
|
|
|
|
+ this.strItems5 = []
|
|
|
|
+ this.optionDis1 = false
|
|
|
|
+ this.optionDis2 = false
|
|
|
|
+ this.optionDis3 = false
|
|
|
|
+ this.optionDis4 = false
|
|
|
|
+ this.optionDis5 = false
|
|
|
|
+ this.optionDis6 = false
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
let sigs = this.$refs.sigleRef
|
|
let sigs = this.$refs.sigleRef
|
|
let uploads = this.$refs.uploadRef
|
|
let uploads = this.$refs.uploadRef
|
|
@@ -526,29 +537,37 @@ export default {
|
|
this.serData = []
|
|
this.serData = []
|
|
this.pacData = []
|
|
this.pacData = []
|
|
const resList = []
|
|
const resList = []
|
|
|
|
+ this.resArr1 = []
|
|
this.resArr2 = []
|
|
this.resArr2 = []
|
|
|
|
+ this.resArr3 = []
|
|
|
|
+ this.resArr4 = []
|
|
|
|
+ this.resArr5 = []
|
|
this.$request('/order/getServer').data().success((res) => {// 获取自定义套餐所有服务选项
|
|
this.$request('/order/getServer').data().success((res) => {// 获取自定义套餐所有服务选项
|
|
this.servedData = res.data.lists
|
|
this.servedData = res.data.lists
|
|
res.data.lists.forEach(v => {
|
|
res.data.lists.forEach(v => {
|
|
if (v.i_isserver == 1) {
|
|
if (v.i_isserver == 1) {
|
|
- if (this.repair == '1') {
|
|
|
|
|
|
+ if (this.repair == '1' || this.repair == '2') {
|
|
if (v.id == 17 || v.id == 18) {
|
|
if (v.id == 17 || v.id == 18) {
|
|
|
|
+ this.resArr1.push(v)
|
|
|
|
+ } else if (v.id == 4 || v.id == 19) {
|
|
this.resArr2.push(v)
|
|
this.resArr2.push(v)
|
|
|
|
+ } else if (v.id == 20 || v.id == 23) {
|
|
|
|
+ this.resArr3.push(v)
|
|
|
|
+ } else if (v.id == 13 || v.id == 21) {
|
|
|
|
+ this.resArr4.push(v)
|
|
|
|
+ } else if (v.id == 14 || v.id == 22) {
|
|
|
|
+ this.resArr5.push(v)
|
|
} else {
|
|
} else {
|
|
- resList.push(v)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (this.repair == '2') {
|
|
|
|
- if (v.id == 17 || v.id == 18) {
|
|
|
|
- this.resArr2.push(v)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.repair == '1') {
|
|
|
|
+ resList.push(v)
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ if (this.repair == '2' || this.repair == '3') {
|
|
if (v.id == 17 || v.id == 18) {
|
|
if (v.id == 17 || v.id == 18) {
|
|
if (this.currentId.indexOf(v.id) > -1) {
|
|
if (this.currentId.indexOf(v.id) > -1) {
|
|
resList.splice(1, 0, v)
|
|
resList.splice(1, 0, v)
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- resList.push(v)
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -556,7 +575,7 @@ export default {
|
|
this.pacData.push(v)
|
|
this.pacData.push(v)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.resArr1 = {
|
|
|
|
|
|
+ let arr1 = {
|
|
i_ispackage: 0,
|
|
i_ispackage: 0,
|
|
i_isserver: 1,
|
|
i_isserver: 1,
|
|
i_pkprice: null,
|
|
i_pkprice: null,
|
|
@@ -568,14 +587,66 @@ export default {
|
|
s_pkcount: null,
|
|
s_pkcount: null,
|
|
_checked: false
|
|
_checked: false
|
|
}
|
|
}
|
|
- if (this.repair == '1') {
|
|
|
|
- resList.splice(1, 0, this.resArr1)
|
|
|
|
|
|
+ let arr2 = {
|
|
|
|
+ i_ispackage: 0,
|
|
|
|
+ i_isserver: 1,
|
|
|
|
+ i_pkprice: null,
|
|
|
|
+ i_price_month: null,
|
|
|
|
+ i_price_year: null,
|
|
|
|
+ s_count_year: null,
|
|
|
|
+ id: 9120,
|
|
|
|
+ s_name: '',
|
|
|
|
+ s_pkcount: null,
|
|
|
|
+ _checked: false
|
|
|
|
+ }
|
|
|
|
+ let arr3 = {
|
|
|
|
+ i_ispackage: 0,
|
|
|
|
+ i_isserver: 1,
|
|
|
|
+ i_pkprice: null,
|
|
|
|
+ i_price_month: null,
|
|
|
|
+ i_price_year: null,
|
|
|
|
+ s_count_year: null,
|
|
|
|
+ id: 9121,
|
|
|
|
+ s_name: '',
|
|
|
|
+ s_pkcount: null,
|
|
|
|
+ _checked: false
|
|
|
|
+ }
|
|
|
|
+ let arr4 = {
|
|
|
|
+ i_ispackage: 0,
|
|
|
|
+ i_isserver: 1,
|
|
|
|
+ i_pkprice: null,
|
|
|
|
+ i_price_month: null,
|
|
|
|
+ i_price_year: null,
|
|
|
|
+ s_count_year: null,
|
|
|
|
+ id: 9122,
|
|
|
|
+ s_name: '',
|
|
|
|
+ s_pkcount: null,
|
|
|
|
+ _checked: false
|
|
|
|
+ }
|
|
|
|
+ let arr5 = {
|
|
|
|
+ i_ispackage: 0,
|
|
|
|
+ i_isserver: 1,
|
|
|
|
+ i_pkprice: null,
|
|
|
|
+ i_price_month: null,
|
|
|
|
+ i_price_year: null,
|
|
|
|
+ s_count_year: null,
|
|
|
|
+ id: 9123,
|
|
|
|
+ s_name: '',
|
|
|
|
+ s_pkcount: null,
|
|
|
|
+ _checked: false
|
|
|
|
+ }
|
|
|
|
+ if (this.repair == '1' || this.repair == '2') {
|
|
|
|
+ resList.splice(1, 0, arr1)
|
|
|
|
+ resList.splice(3, 0, arr2)
|
|
|
|
+ resList.splice(13, 0, arr3)
|
|
|
|
+ resList.splice(14, 0, arr4)
|
|
|
|
+ resList.splice(15, 0, arr5)
|
|
}
|
|
}
|
|
if (this.repair == '2') {
|
|
if (this.repair == '2') {
|
|
if (this.currentId.indexOf(17) > -1 || this.currentId.indexOf(18) > -1) {
|
|
if (this.currentId.indexOf(17) > -1 || this.currentId.indexOf(18) > -1) {
|
|
console.log('111')
|
|
console.log('111')
|
|
} else {
|
|
} else {
|
|
- resList.splice(1, 0, this.resArr1)
|
|
|
|
|
|
+ // resList.splice(1, 0, arr1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.serData = resList
|
|
this.serData = resList
|
|
@@ -1028,12 +1099,12 @@ export default {
|
|
},
|
|
},
|
|
// 多选
|
|
// 多选
|
|
selChage(selection) {
|
|
selChage(selection) {
|
|
- const arrs = [], arrs1 = []
|
|
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
this.selData = selection
|
|
this.selData = selection
|
|
selection.map(v => {
|
|
selection.map(v => {
|
|
arrs1.push(v.id)
|
|
arrs1.push(v.id)
|
|
if (this.repair == '1') {
|
|
if (this.repair == '1') {
|
|
- if (v.id != 9119) {
|
|
|
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
arrs.push(v)
|
|
arrs.push(v)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -1041,9 +1112,20 @@ export default {
|
|
arrs.push(v)
|
|
arrs.push(v)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- if (arrs1.indexOf(9119) > -1) {
|
|
|
|
- this.sumSel = arrs.concat(this.strItems)
|
|
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
} else {
|
|
} else {
|
|
this.sumSel = arrs
|
|
this.sumSel = arrs
|
|
}
|
|
}
|
|
@@ -1333,6 +1415,15 @@ export default {
|
|
pacData: [],
|
|
pacData: [],
|
|
resArr1: [],
|
|
resArr1: [],
|
|
resArr2: [],
|
|
resArr2: [],
|
|
|
|
+ resArr3: [],
|
|
|
|
+ resArr4: [],
|
|
|
|
+ resArr5: [],
|
|
|
|
+ optionDis1: false,
|
|
|
|
+ optionDis2: false,
|
|
|
|
+ optionDis3: false,
|
|
|
|
+ optionDis4: false,
|
|
|
|
+ optionDis5: false,
|
|
|
|
+ optionDis6: false,
|
|
repair: '1',
|
|
repair: '1',
|
|
spinShow: false,
|
|
spinShow: false,
|
|
bShow: false,
|
|
bShow: false,
|
|
@@ -1499,7 +1590,11 @@ export default {
|
|
datas1: [],
|
|
datas1: [],
|
|
datas2: [],
|
|
datas2: [],
|
|
selStr: [],
|
|
selStr: [],
|
|
- strItems: [],
|
|
|
|
|
|
+ strItems1: [],
|
|
|
|
+ strItems2: [],
|
|
|
|
+ strItems3: [],
|
|
|
|
+ strItems4: [],
|
|
|
|
+ strItems5: [],
|
|
columns2: [
|
|
columns2: [
|
|
{
|
|
{
|
|
title: '金额明细',
|
|
title: '金额明细',
|
|
@@ -1544,8 +1639,8 @@ export default {
|
|
row.i_price_month = JSON.parse(val).i_price_month
|
|
row.i_price_month = JSON.parse(val).i_price_month
|
|
},
|
|
},
|
|
'on-select': val => {
|
|
'on-select': val => {
|
|
- this.strItems = JSON.parse(val.value)
|
|
|
|
- const arrs = [], arrs1 = []
|
|
|
|
|
|
+ this.strItems1 = JSON.parse(val.value)
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
this.serData.forEach(s => {
|
|
this.serData.forEach(s => {
|
|
if (this.selData.length == 0) {
|
|
if (this.selData.length == 0) {
|
|
if (this.repair == '1') {
|
|
if (this.repair == '1') {
|
|
@@ -1562,7 +1657,7 @@ export default {
|
|
this.selData.map(v => {
|
|
this.selData.map(v => {
|
|
arrs1.push(v.id)
|
|
arrs1.push(v.id)
|
|
if (this.repair == '1') {
|
|
if (this.repair == '1') {
|
|
- if (v.id != 9119) {
|
|
|
|
|
|
+ if (v.id != 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
arrs.push(v)
|
|
arrs.push(v)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -1570,16 +1665,27 @@ export default {
|
|
arrs.push(v)
|
|
arrs.push(v)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- if (arrs1.indexOf(9119) > -1) {
|
|
|
|
- this.sumSel = arrs.concat(this.strItems)
|
|
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
} else {
|
|
} else {
|
|
this.sumSel = arrs
|
|
this.sumSel = arrs
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- this.resArr2.map(item => {
|
|
|
|
|
|
+ this.resArr1.map(item => {
|
|
return h('Option', {
|
|
return h('Option', {
|
|
props: {
|
|
props: {
|
|
value: JSON.stringify(item)
|
|
value: JSON.stringify(item)
|
|
@@ -1587,6 +1693,335 @@ export default {
|
|
}, item.s_name)
|
|
}, item.s_name)
|
|
})
|
|
})
|
|
)
|
|
)
|
|
|
|
+ } else if (row.id == 9120) {
|
|
|
|
+ return h('Select', {
|
|
|
|
+ props: {
|
|
|
|
+ placeholder: '请选择企业全景分析',
|
|
|
|
+ value: '',
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ 'on-change': (val) => {
|
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
|
+ console.log(ids)
|
|
|
|
+ if (ids == 4) {
|
|
|
|
+ this.optionDis3 = true
|
|
|
|
+ this.optionDis4 = false
|
|
|
|
+ this.optionDis5 = true
|
|
|
|
+ this.optionDis6 = false
|
|
|
|
+ } else if (ids == 19) {
|
|
|
|
+ this.optionDis3 = false
|
|
|
|
+ this.optionDis4 = true
|
|
|
|
+ this.optionDis5 = false
|
|
|
|
+ this.optionDis6 = true
|
|
|
|
+ }
|
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
|
+ },
|
|
|
|
+ 'on-select': val => {
|
|
|
|
+ this.strItems2 = JSON.parse(val.value)
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
|
+ this.serData.forEach(s => {
|
|
|
|
+ if (this.selData.length == 0) {
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (s.id == 1) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!s._disabled) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.selData.map(v => {
|
|
|
|
+ arrs1.push(v.id)
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (v.id != 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (v.id != 9119 && !v._disabled) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
|
+ } else {
|
|
|
|
+ this.sumSel = arrs
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr2[1]),
|
|
|
|
+ disabled: this.optionDis1
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr2[1].s_name),
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr2[0]),
|
|
|
|
+ disabled: this.optionDis2
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr2[0].s_name)
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ } else if (row.id == 9121) {
|
|
|
|
+ return h('Select', {
|
|
|
|
+ props: {
|
|
|
|
+ placeholder: '请选择企业情报监控',
|
|
|
|
+ value: '',
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ 'on-change': (val) => {
|
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
|
+ console.log(ids)
|
|
|
|
+ if (ids == 20) {
|
|
|
|
+ this.optionDis1 = false
|
|
|
|
+ this.optionDis2 = true
|
|
|
|
+ this.optionDis5 = false
|
|
|
|
+ this.optionDis6 = true
|
|
|
|
+ } else if (ids == 23) {
|
|
|
|
+ this.optionDis1 = true
|
|
|
|
+ this.optionDis2 = false
|
|
|
|
+ this.optionDis5 = true
|
|
|
|
+ this.optionDis6 = false
|
|
|
|
+ }
|
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
|
+ },
|
|
|
|
+ 'on-select': val => {
|
|
|
|
+ this.strItems3 = JSON.parse(val.value)
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
|
+ this.serData.forEach(s => {
|
|
|
|
+ if (this.selData.length == 0) {
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (s.id == 1) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!s._disabled) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.selData.map(v => {
|
|
|
|
+ arrs1.push(v.id)
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (v.id != 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (v.id != 9119 && !v._disabled) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
|
+ } else {
|
|
|
|
+ this.sumSel = arrs
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr3[0]),
|
|
|
|
+ disabled: this.optionDis3
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr3[0].s_name),
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr3[1]),
|
|
|
|
+ disabled: this.optionDis4
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr3[1].s_name)
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ } else if (row.id == 9122) {
|
|
|
|
+ return h('Select', {
|
|
|
|
+ props: {
|
|
|
|
+ placeholder: '请选择企业中标动态',
|
|
|
|
+ value: '',
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ 'on-change': (val) => {
|
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
|
+ console.log(ids)
|
|
|
|
+ if (ids == 21) {
|
|
|
|
+ this.optionDis1 = false
|
|
|
|
+ this.optionDis2 = true
|
|
|
|
+ this.optionDis3 = false
|
|
|
|
+ this.optionDis4 = true
|
|
|
|
+ } else if (ids == 20) {
|
|
|
|
+ this.optionDis1 = true
|
|
|
|
+ this.optionDis2 = false
|
|
|
|
+ this.optionDis3 = true
|
|
|
|
+ this.optionDis4 = false
|
|
|
|
+ }
|
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
|
+ },
|
|
|
|
+ 'on-select': val => {
|
|
|
|
+ this.strItems4 = JSON.parse(val.value)
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
|
+ this.serData.forEach(s => {
|
|
|
|
+ if (this.selData.length == 0) {
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (s.id == 1) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!s._disabled) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.selData.map(v => {
|
|
|
|
+ arrs1.push(v.id)
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (v.id != 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (v.id != 9119 && !v._disabled) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
|
+ } else {
|
|
|
|
+ this.sumSel = arrs
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr4[1]),
|
|
|
|
+ disabled: this.optionDis5
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr4[1].s_name),
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr3[0]),
|
|
|
|
+ disabled: this.optionDis6
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr4[0].s_name)
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ } else if (row.id == 9123) {
|
|
|
|
+ return h('Select', {
|
|
|
|
+ props: {
|
|
|
|
+ placeholder: '请选择项目进度监控',
|
|
|
|
+ value: '',
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ 'on-change': (val) => {
|
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
|
+ },
|
|
|
|
+ 'on-select': val => {
|
|
|
|
+ this.strItems5 = JSON.parse(val.value)
|
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
|
+ this.serData.forEach(s => {
|
|
|
|
+ if (this.selData.length == 0) {
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (s.id == 1) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (!s._disabled) {
|
|
|
|
+ this.selData.push(s)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.selData.map(v => {
|
|
|
|
+ arrs1.push(v.id)
|
|
|
|
+ if (this.repair == '1') {
|
|
|
|
+ if (v.id != 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (v.id != 9119 && !v._disabled) {
|
|
|
|
+ arrs.push(v)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (v.id == 9119) {
|
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
|
+ } else if (v.id == 9120) {
|
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
|
+ } else if (v.id == 9121) {
|
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
|
+ } else if (v.id == 9122) {
|
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
|
+ } else if (v.id == 9123) {
|
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
|
+ } else {
|
|
|
|
+ this.sumSel = arrs
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr5[1])
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr5[1].s_name),
|
|
|
|
+ h('Option',{
|
|
|
|
+ props: {
|
|
|
|
+ value: JSON.stringify(this.resArr5[0])
|
|
|
|
+ }
|
|
|
|
+ }, this.resArr5[0].s_name)
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
} else {
|
|
} else {
|
|
return h('span', row.s_name ? row.s_name : '-')
|
|
return h('span', row.s_name ? row.s_name : '-')
|
|
}
|
|
}
|