wangxiaogang 3 年之前
父节点
当前提交
00ff4282f4

文件差异内容过多而无法显示
+ 0 - 0
qmx_page/css/app.5085871e.css


文件差异内容过多而无法显示
+ 0 - 0
qmx_page/css/chunk-vendors.146ef057.css


二进制
qmx_page/favicon.ico


二进制
qmx_page/fonts/ionicons.143146fa.woff2


二进制
qmx_page/fonts/ionicons.99ac3308.woff


二进制
qmx_page/fonts/ionicons.d535a25a.ttf


二进制
qmx_page/img/404.f73c7d45.png


二进制
qmx_page/img/bg_1.9150a718.png


文件差异内容过多而无法显示
+ 24 - 0
qmx_page/img/ionicons.a2c4a261.svg


二进制
qmx_page/img/login_logo.49667054.png


+ 1 - 1
qmx_page/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>管理后台</title><link href=/css/app.599f6b60.css rel=preload as=style><link href=/css/chunk-vendors.146ef057.css rel=preload as=style><link href=/js/app.eb9a3aae.js rel=preload as=script><link href=/js/chunk-vendors.dbdfae2e.js rel=preload as=script><link href=/css/chunk-vendors.146ef057.css rel=stylesheet><link href=/css/app.599f6b60.css rel=stylesheet></head><body><noscript><strong>We're sorry but doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=loading><div class=spinner><div class=rect1></div><div class=rect2></div><div class=rect3></div><div class=rect4></div><div class=rect5></div></div></div><div id=app></div><script src=/js/chunk-vendors.dbdfae2e.js></script><script src=/js/app.eb9a3aae.js></script></body></html>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>管理后台</title><link href=/css/app.5085871e.css rel=preload as=style><link href=/css/chunk-vendors.146ef057.css rel=preload as=style><link href=/js/app.f0bd8a16.js rel=preload as=script><link href=/js/chunk-vendors.dbdfae2e.js rel=preload as=script><link href=/css/chunk-vendors.146ef057.css rel=stylesheet><link href=/css/app.5085871e.css rel=stylesheet></head><body><noscript><strong>We're sorry but doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=loading><div class=spinner><div class=rect1></div><div class=rect2></div><div class=rect3></div><div class=rect4></div><div class=rect5></div></div></div><div id=app></div><script src=/js/chunk-vendors.dbdfae2e.js></script><script src=/js/app.f0bd8a16.js></script></body></html>

文件差异内容过多而无法显示
+ 0 - 0
qmx_page/js/app.eb9a3aae.js


文件差异内容过多而无法显示
+ 0 - 0
qmx_page/js/app.f0bd8a16.js


文件差异内容过多而无法显示
+ 0 - 0
qmx_page/js/chunk-vendors.dbdfae2e.js


+ 399 - 77
src/views/bigMenber/bigCombo.vue

@@ -72,7 +72,6 @@
                         :columns="columns2" 
                         :data="editData.lists" 
                         @on-selection-change="selChage"
-                        @on-select-cancel="selCancel"
                         :summary-method="handleSummary"
                         show-summary
                     ></Table>
@@ -121,6 +120,9 @@ export default {
                 const resList = []
                 this.resArr1 = []
                 this.resArr2 = []
+                this.resArr3 = []
+                this.resArr4 = []
+                this.resArr5 = []
                 res.data.lists.forEach(v => {
                     if (v.id == 1) {
                         v._checked = true
@@ -132,6 +134,12 @@ export default {
                                 this.resArr1.push(v)
                             } else if (v.id == 4 || v.id == 19) {
                                 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 {
                                 resList.push(v)
                             }
@@ -141,6 +149,22 @@ export default {
                                 if (atrs.indexOf(String(v.id)) > -1) {
                                     resList.splice(1, 0, v)
                                 }
+                            } else if (v.id == 4 || v.id == 19) {
+                                if (atrs.indexOf(String(v.id)) > -1) {
+                                    resList.splice(3, 0, v)
+                                }
+                            } else if (v.id == 20 || v.id == 23) {
+                                if (atrs.indexOf(String(v.id)) > -1) {
+                                    resList.splice(13, 0, v)
+                                }
+                            } else if (v.id == 13 || v.id == 21) {
+                                if (atrs.indexOf(String(v.id)) > -1) {
+                                    resList.splice(14, 0, v)
+                                }
+                            } else if (v.id == 14 || v.id == 22) {
+                                if (atrs.indexOf(String(v.id)) > -1) {
+                                    resList.splice(15, 0, v)
+                                }
                             } else {
                                 resList.push(v)
                             }
@@ -183,9 +207,48 @@ export default {
                     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 (bool == '1') {
                     resList.splice(1, 0, arr1)
-                    resList.splice(3, 0, arr2)
+                    resList.splice(12, 0, arr2)
+                    resList.splice(13, 0, arr3)
+                    resList.splice(14, 0, arr4)
+                    resList.splice(15, 0, arr5)
                 }
                 this.editData = {
                     lists: resList,
@@ -218,8 +281,17 @@ export default {
             this.sumSel = []
             this.strItems1 = []
             this.strItems2 = []
+            this.strItems3 = []
+            this.strItems4 = []
+            this.strItems5 = []
             this.selData = []
             this.selData1 = []
+            this.optionDis1 = false
+            this.optionDis2 = false
+            this.optionDis3 = false
+            this.optionDis4 = false
+            this.optionDis5 = false
+            this.optionDis6 = false
             setTimeout(() => {
                 this.editData = []
             },200)
@@ -231,45 +303,31 @@ export default {
         },
         // 多选
         selChage(selection) {
-            let arrs = [], arrs1 = [], arrs2 = []
+            let arrs = [], arrs1 = [], strItems = []
             this.selData = selection
             selection.map(v => {
                 arrs1.push(v.id)
-                if (v.id !== 9119 && v.id !== 9120) {
+                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
                     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)
+                }
             })
             
-            // arrs2.push(this.strItems1)
-            // console.log(arrs2)
-            if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
-                this.sumSel = arrs.concat(this.strItems1)
+            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
             }
-            // console.log(this.selData)
-            // console.log(this.sumSel)
-        },
-        // 取消选择
-        selCancel(selection, row) {
-            console.log(row)
-            let arr1 = this.strItems1
-            this.strItems1 = []
-            if (row.id == 9119) {
-                arr1.forEach(t => {
-                    if (t.id !== 17 && t.id !== 18) {
-                        this.strItems1.push(t)
-                    }
-                })
-            }
-            if (row.id == 9120) {
-                arr1.forEach(t => {
-                    if (t.id !== 4 && t.id !== 19) {
-                        this.strItems1.push(t)
-                    }
-                })
-            }
-            console.log(this.strItems1)
         },
         // 合计
         handleSummary ({ columns }) {
@@ -356,6 +414,7 @@ export default {
             resArr2: [],
             resArr3: [],
             resArr4: [],
+            resArr5: [],
             selData: [],
             selData1: [],
             filter: {
@@ -404,6 +463,17 @@ export default {
             selStr: '',
             strItems1: [],
             strItems2: [],
+            strItems3: [],
+            strItems4: [],
+            strItems5: [],
+            value1: '',
+            value2: '',
+            optionDis1: false,
+            optionDis2: false,
+            optionDis3: false,
+            optionDis4: false,
+            optionDis5: false,
+            optionDis6: false,
             columns2: [
                 {
                     type: 'selection',
@@ -429,26 +499,37 @@ export default {
                                             row.i_price_month = JSON.parse(val).i_price_month
                                         },
                                         'on-select': val => {
-                                            this.strItems1.push(JSON.parse(val.value))
-                                            // const arrs = [], arrs1 = []
-                                            // this.editData.lists.forEach(s => {
-                                            //     if (this.selData.length == 0) {
-                                            //         if (s.id == 1) {
-                                            //             this.selData.push(s)
-                                            //         }
-                                            //     }
-                                            // })
-                                            // this.selData.map(v => {
-                                            //     arrs1.push(v.id)
-                                            //     if (v.id !== 9119 && v.id !== 9120) {
-                                            //         arrs.push(v)
-                                            //     }
-                                            // })
-                                            // if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
-                                            //     this.sumSel = arrs.concat(this.strItems1)
-                                            // } else {
-                                            //     this.sumSel = arrs
-                                            // }
+                                            this.strItems1 = JSON.parse(val.value)
+                                            const arrs = [], arrs1 = [], strItems = []
+                                            this.editData.lists.forEach(s => {
+                                                if (this.selData.length == 0) {
+                                                    if (s.id == 1) {
+                                                        this.selData.push(s)
+                                                    }
+                                                }
+                                            })
+                                            this.selData.map(v => {
+                                                arrs1.push(v.id)
+                                                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
+                                                    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
+                                            }
                                         }
                                     }
                                 },
@@ -464,44 +545,285 @@ export default {
                                 return h('Select', {
                                     props: {
                                         placeholder: '请选择企业全景分析',
+                                        value: this.value1,
+                                    },
+                                    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.editData.lists.forEach(s => {
+                                                if (this.selData.length == 0) {
+                                                    if (s.id == 1) {
+                                                        this.selData.push(s)
+                                                    }
+                                                }
+                                            })
+                                            this.selData.map(v => {
+                                                arrs1.push(v.id)
+                                                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
+                                                    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: {
+                                        ref: 'optionRef2',
+                                        placeholder: '请选择企业情报监控',
+                                        value: this.value2,
+                                        clearable: true
+                                    },
+                                    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 => {
+                                            console.log(this.value1)
+                                            this.strItems3 = JSON.parse(val.value)
+                                            const arrs = [], arrs1 = [], strItems = []
+                                            this.editData.lists.forEach(s => {
+                                                if (this.selData.length == 0) {
+                                                    if (s.id == 1) {
+                                                        this.selData.push(s)
+                                                    }
+                                                }
+                                            })
+                                            this.selData.map(v => {
+                                                arrs1.push(v.id)
+                                                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
+                                                    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.strItems1.push(JSON.parse(val.value))
-                                            // const arrs = [], arrs1 = []
-                                            // this.editData.lists.forEach(s => {
-                                            //     if (this.selData.length == 0) {
-                                            //         if (s.id == 1) {
-                                            //             this.selData.push(s)
-                                            //         }
-                                            //     }
-                                            // })
-                                            // this.selData.map(v => {
-                                            //     arrs1.push(v.id)
-                                            //     if (v.id !== 9119 && v.id !== 9120) {
-                                            //         arrs.push(v)
-                                            //     }
-                                            // })
-                                            // if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
-                                            //     this.sumSel = arrs.concat(this.strItems1)
-                                            // } else {
-                                            //     this.sumSel = arrs
-                                            // }
+                                            this.strItems4 = JSON.parse(val.value)
+                                            const arrs = [], arrs1 = [], strItems = []
+                                            this.editData.lists.forEach(s => {
+                                                if (this.selData.length == 0) {
+                                                    if (s.id == 1) {
+                                                        this.selData.push(s)
+                                                    }
+                                                }
+                                            })
+                                            this.selData.map(v => {
+                                                arrs1.push(v.id)
+                                                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
+                                                    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
+                                            }
                                         }
                                     }
                                 },
-                                this.resArr2.map(item => {
-                                    return h('Option', {
-                                        props: {
-                                            value: JSON.stringify(item)
+                                [  
+                                    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.editData.lists.forEach(s => {
+                                                if (this.selData.length == 0) {
+                                                    if (s.id == 1) {
+                                                        this.selData.push(s)
+                                                    }
+                                                }
+                                            })
+                                            this.selData.map(v => {
+                                                arrs1.push(v.id)
+                                                if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
+                                                    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
+                                            }
                                         }
-                                    }, item.s_name)
-                                })
+                                    }
+                                },
+                                [  
+                                    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 {
                                 return h('span', row.s_name ? row.s_name : '-')

+ 460 - 25
src/views/order/components/bigOrder.vue

@@ -274,6 +274,17 @@ export default {
             this.bigDis = true
             this.subDis = 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(() => {
                 let sigs = this.$refs.sigleRef
                 let uploads = this.$refs.uploadRef
@@ -526,29 +537,37 @@ export default {
             this.serData = []
             this.pacData = []
             const resList = []
+            this.resArr1 = []
             this.resArr2 = []
+            this.resArr3 = []
+            this.resArr4 = []
+            this.resArr5 = []
             this.$request('/order/getServer').data().success((res) => {// 获取自定义套餐所有服务选项
                 this.servedData = res.data.lists
                 res.data.lists.forEach(v => {
                     if (v.i_isserver == 1) {
-                        if (this.repair == '1') {
+                        if (this.repair == '1' || this.repair == '2') {
                             if (v.id == 17 || v.id == 18) {
+                                this.resArr1.push(v)
+                            } else if (v.id == 4 || v.id == 19) {
                                 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 {
-                                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 (this.currentId.indexOf(v.id) > -1) {
                                     resList.splice(1, 0, v)
                                 }
-                            } else {
-                                resList.push(v)
                             }
                         }
                     }
@@ -556,7 +575,7 @@ export default {
                         this.pacData.push(v)
                     }
                 })
-                this.resArr1 = {
+                let arr1 = {
                     i_ispackage: 0,
                     i_isserver: 1,
                     i_pkprice: null,
@@ -568,14 +587,66 @@ export default {
                     s_pkcount: null,
                     _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.currentId.indexOf(17) > -1 || this.currentId.indexOf(18) > -1) {
                         console.log('111')
                     } else {
-                        resList.splice(1, 0, this.resArr1)
+                        // resList.splice(1, 0, arr1)
                     }
                 }
                 this.serData = resList
@@ -1028,12 +1099,12 @@ export default {
         },
         // 多选
         selChage(selection) {
-            const arrs = [], arrs1 = []
+            const arrs = [], arrs1 = [], strItems = []
             this.selData = selection
             selection.map(v => {
                 arrs1.push(v.id)
                 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)
                     }
                 } else {
@@ -1041,9 +1112,20 @@ export default {
                         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 {
                 this.sumSel = arrs
             }
@@ -1333,6 +1415,15 @@ export default {
             pacData: [],
             resArr1: [],
             resArr2: [],
+            resArr3: [],
+            resArr4: [],
+            resArr5: [],
+            optionDis1: false,
+            optionDis2: false,
+            optionDis3: false,
+            optionDis4: false,
+            optionDis5: false,
+            optionDis6: false,
             repair: '1',
             spinShow: false,
             bShow: false,
@@ -1499,7 +1590,11 @@ export default {
             datas1: [],
             datas2: [],
             selStr: [],
-            strItems: [],
+            strItems1: [],
+            strItems2: [],
+            strItems3: [],
+            strItems4: [],
+            strItems5: [],
             columns2: [
                 {
                     title: '金额明细',
@@ -1544,8 +1639,8 @@ export default {
                                             row.i_price_month = JSON.parse(val).i_price_month
                                         },
                                         '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 => {
                                                 if (this.selData.length == 0) {
                                                     if (this.repair == '1') {
@@ -1562,7 +1657,7 @@ export default {
                                             this.selData.map(v => {
                                                 arrs1.push(v.id)
                                                 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)
                                                     } 
                                                 } else {
@@ -1570,16 +1665,27 @@ export default {
                                                         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 {
                                                 this.sumSel = arrs
                                             }
                                         }
                                     }
                                 },
-                                    this.resArr2.map(item => {
+                                    this.resArr1.map(item => {
                                         return h('Option', {
                                             props: {
                                                 value: JSON.stringify(item)
@@ -1587,6 +1693,335 @@ export default {
                                         }, 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 {
                                 return h('span', row.s_name ? row.s_name : '-')
                             }

部分文件因为文件数量过多而无法显示