{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\views\\projectManagent\\projectManagentSub.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\projectManagent\\projectManagentSub.vue","mtime":1676577074063},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport _defineProperty from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import projectArr from '../../../src/assets/data.json'\nimport req from '@/request.js';\nimport merge from \"./Merge.vue\";\n\nvar eipUserSelector = function eipUserSelector() {\n  return import('@/components/selector/EipUserSelector.vue');\n};\n\nexport default {\n  name: 'projectManagentSub',\n  components: {\n    merge: merge,\n    eipUserSelector: eipUserSelector\n  },\n  data: function data() {\n    return {\n      loading2: false,\n      importData: {\n        title: '项目管理导入',\n        templateName: '项目管理模板.xls',\n        downloadUrl: './../static/excel/ExportProjectManagent.xlsx',\n        importUrl: window.context.cqxy + '/biz/projectManagement/pm/v1/importExcelData'\n      },\n      searchForm: {\n        projectId: '',\n        projectName: '',\n        projectType: '',\n        // projectModel: '',\n        projectMoneyOne: '',\n        projectMoneyTwo: '',\n        isStart: '',\n        //是否已开工\n        year: '',\n        createTime: '' //new Date().getFullYear()\n\n      },\n      //顶部搜索参数\n      optionYears: [],\n      //顶部搜索年份选择数组\n      optionsIsStart: [{\n        label: '是',\n        value: 1\n      }, {\n        label: '否',\n        value: 2\n      }],\n      //顶部搜索是否开工选择数据\n      dataBaseOptions: {\n        dataBaseId: '',\n        tableName: '',\n        // 必填\n        tableSchema: ''\n      },\n      ConstructionModeArr: [],\n      ProjectTypeArr: [],\n      originAPIOptions: {\n        url: '',\n        // 列表请求接口地址\n        method: 'post',\n        // 列表请求方法\n        moduleRoot: '' // 微服务根路径\n\n      },\n      exportQuery: {},\n      data: [],\n      //表格数据\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      form: {},\n      //基本信息表单\n      dialogVisible: false,\n      dialogTitle: '添加',\n      indexArr: [],\n      // activeNames: ['1', '2', '3', '4'],\n      active: 0,\n      loading: false,\n      expandTableData: [],\n      currentPage: 1,\n\n      /* 合并新项目 */\n      newProjectIds: '',\n      pageSizes: [10, 20, 50, 100, 200, 300, 500],\n      pagerCount: 11,\n      pagination: {\n        page: 1,\n        pageSize: 10,\n        total: 0\n      },\n      parent: '',\n      querySearch: [],\n      //导出时传入查询的参数\n      elTableSection: null,\n      commencementTime: '',\n      //查看修改回调建设时间\n      rules: {\n        // projectCode: {\n        //   required: true,\n        //   message: '请输入项目代码',\n        //   trigger: 'blur',\n        // },\n        projectName: {\n          required: true,\n          message: '请输入项目名称',\n          trigger: 'blur'\n        },\n        projectManager: {\n          required: true,\n          message: '必填',\n          trigger: 'blur'\n        },\n        // projectNature: {\n        //   required: true,\n        //   message: '请选择工程属性',\n        //   trigger: 'blur'\n        // },\n        // projectMoney: {\n        //   required: true,\n        //   message: '请输入项目金额',\n        //   trigger: 'blur',\n        // },\n        projectType: {\n          required: true,\n          message: '请选择项目类型',\n          trigger: 'blur'\n        },\n        ownerUnit: {\n          required: true,\n          message: '请输入业主单位',\n          trigger: 'blur'\n        } // responsibleUnit: {\n        //   required: true,\n        //   message: '请输入责任单位',\n        //   trigger: 'blur',\n        // },\n        // constructUnit: {\n        //   required: true,\n        //   message: '请输入施工单位',\n        //   trigger: 'blur',\n        // },\n        // projectModel: {\n        //   required: true,\n        //   message: '请选择建设模式',\n        //   trigger: 'blur',\n        // },\n        // projectAddress: {\n        //   required: true,\n        //   message: '请输入项目地址',\n        //   trigger: 'blur',\n        // },\n        // preliminaryEstimate: {\n        //   required: true,\n        //   message: '请输入初设概算总投资',\n        //   trigger: 'blur',\n        // },\n        // projectStatus: {\n        //   required: true,\n        //   message: '请选择项目状态',\n        //   trigger: 'blur',\n        // },\n        // commencementTime: {\n        //   required: true,\n        //   message: '请选择开工时间',\n        //   trigger: 'blur',\n        // },\n        // completionTime: {\n        //   required: true,\n        //   message: '请选择完工时间',\n        //   trigger: 'blur',\n        // },\n\n      }\n    };\n  },\n  mounted: function mounted() {},\n  created: function created() {\n    this.getYear();\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/projectManagement/pm/v1/delete';\n    }\n  },\n  methods: {\n    //跳转单个项目页面\n    handleGo: function handleGo(row) {\n      var _this$$router$resolve = this.$router.resolve({\n        name: 'projectBefore',\n        params: {\n          id: row.id,\n          projectName: row.projectName\n        }\n      }),\n          href = _this$$router$resolve.href;\n\n      window.open(href, '_blank');\n    },\n    handleRouterClick: function handleRouterClick(params) {\n      this.$router.push({\n        name: 'ProjectFlowChart',\n        params: {\n          id: params.id\n        }\n      });\n    },\n    handleCommand: function handleCommand(params) {\n      if (params.command == 'bianzhi') {\n        this.$router.push({\n          name: 'ProjectFlowChart',\n          params: {\n            id: params.row.id,\n            projectName: params.row.projectName\n          }\n        });\n      } else if (params.command == 'person') {\n        this.$router.push({\n          name: 'PersonnelManagement',\n          params: params.row\n        });\n      }\n    },\n    //重置\n    handleReset: function handleReset() {\n      var _this2 = this;\n\n      this.searchForm.projectName = '';\n      this.searchForm.createTime = '';\n      this.searchForm.projectId = '';\n      this.searchForm.projectType = '';\n      this.searchForm.projectModel = '';\n      this.searchForm.projectMoneyOne = '';\n      this.searchForm.projectMoneyTwo = '';\n      this.searchForm.isStart = '';\n      this.$refs['searchForm'].resetFields();\n      this.pageResult = {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      };\n      this.$nextTick(function () {\n        _this2.$refs.AtTable.handleClearFilter();\n      });\n    },\n    //导入后重新加载数据\n    load: function load() {\n      this.$refs.AtTable.load(true);\n      this.pagination = _objectSpread(_objectSpread({}, this.pagination), {}, {\n        page: page\n      });\n      this.handleExpandChange(this.parent, true);\n    },\n    //导出\n    handleExport: function handleExport() {\n      var _this3 = this;\n\n      this.loading2 = true;\n      var query = [{\n        group: 'defaultQueryGroup',\n        operation: 'EQUAL',\n        relation: 'AND',\n        property: 'parent_id_',\n        value: 'root'\n      }];\n      var search = {\n        id_: this.searchForm.projectId,\n        project_name_: this.searchForm.projectName,\n        project_type_: this.searchForm.projectType,\n        // project_model_: this.searchForm.projectModel\n        CREATE_TIME_: this.searchForm.createTime,\n        project_status_: this.searchForm.isStart,\n        project_money_: [this.searchForm.projectMoneyOne, this.searchForm.projectMoneyTwo]\n      };\n\n      for (var i in search) {\n        if (search[i] && typeof search[i] !== 'undefined') {\n          //判断是否已开工\n          if (i == 'project_status_') {\n            for (var j = 1; j <= 9; j++) {\n              if (search[i] == 2) {\n                query.push({\n                  group: 'advance',\n                  operation: 'LIKE',\n                  property: i,\n                  relation: 'OR',\n                  value: j\n                });\n              } else {\n                query.push({\n                  group: 'advance',\n                  operation: 'LIKE',\n                  property: i,\n                  relation: 'OR',\n                  value: j + 6\n                });\n              }\n            } //判断投资金额范围\n\n          } else if (i == 'project_money_') {\n            if (search[i][0] && typeof search[i][0] !== 'undefined') {\n              query.push({\n                group: 'advance',\n                operation: 'GREAT',\n                property: i,\n                relation: 'AND',\n                value: search[i][0]\n              });\n            }\n\n            if (search[i][1] && typeof search[i][1] !== 'undefined') {\n              query.push({\n                group: 'advance',\n                operation: 'LESS',\n                property: i,\n                relation: 'AND',\n                value: search[i][1]\n              });\n            }\n          } else if (i == 'CREATE_TIME_') {\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              property: 'commencement_time_',\n              relation: 'OR',\n              value: [\"\".concat(search[i], \"-01-01 00:00:00\"), \"\".concat(search[i], \"-12-31 23:59:59\")]\n            } // {\n            //   group: 'createTimeGroup',\n            //   operation: 'BETWEEN',\n            //   parentGroup: '',\n            //   property: 'COMPLETION_TIME_',\n            //   relation: 'OR',\n            //   value: [\n            //     `${search[i]}-01-01 00:00:00`,\n            //     `${search[i]}-12-31 23:59:59`,\n            //   ],\n            // },\n            // {\n            //   group: 'createTimeSubGroup',\n            //   operation: 'LESS_EQUAL',\n            //   parentGroup: 'createTimeGroup',\n            //   property: 'commencement_time_',\n            //   relation: 'AND',\n            //   value: `${search[i]}-12-31 23:59:59`,\n            // },\n            // {\n            //   group: 'createTimeSubGroup',\n            //   operation: 'LESS',\n            //   parentGroup: 'createTimeGroup',\n            //   property: 'PROJECT_STATUS_',\n            //   relation: 'AND',\n            //   value: '12',\n            // }\n            );\n          } else {\n            query.push({\n              group: 'advance',\n              operation: 'LIKE',\n              property: i,\n              relation: 'AND',\n              value: search[i]\n            });\n          }\n        }\n      }\n\n      var data = {\n        pageBean: {\n          page: 1,\n          pageSize: -1,\n          showTotal: true\n        },\n        querys: query\n      };\n      req.downloadPostCopy('${cqxy}/biz/projectManagement/pm/v1/exportDataToExcel', data).then(function (res) {\n        if (res.status == 200) {\n          _this3.loading2 = false;\n\n          _this3.$message.success('导出成功');\n        } else {\n          _this3.loading2 = false;\n\n          _this3.$message.error('导出失败');\n        }\n      });\n    },\n    //上一步\n    prevSteps: function prevSteps() {\n      this.active--;\n      this.active = this.active;\n    },\n    //下一步\n    nextSteps: function nextSteps() {\n      var _this4 = this;\n\n      if (this.active !== 0) {\n        this.active++;\n        this.active = this.active;\n        this.$refs['form'].clearValidate();\n      }\n\n      var _this = this;\n\n      var vaitalArr = [// 'projectCode',\n      'projectName' // 'projectManager',\n      // 'projectNature',\n      // 'projectMoney',\n      // 'projectType',\n      // 'ownerUnit',\n      // 'responsibleUnit',\n      // 'constructUnit',\n      // 'projectModel',\n      // 'projectAddress',\n      // 'preliminaryEstimate',\n      // 'projectStatus',\n      // 'commencementTime',\n      // 'completionTime',\n      ];\n      Promise.all(vaitalArr.map(function (item) {\n        var p = new Promise(function (resolve, reject) {\n          _this.$refs.form.validateField(item, function (vaild) {\n            resolve(vaild);\n          });\n        });\n        return p;\n      })).then(function (result) {\n        result = result.filter(function (item) {\n          return item;\n        });\n\n        if (!result.length) {\n          _this4.active++;\n          _this4.active = _this4.active;\n\n          _this4.$refs['form'].clearValidate();\n        }\n      });\n    },\n    handleDict: function handleDict(val, obj, str) {\n      if (str === 'xmgl-xmzt') {\n        this.form.projectStatusValue = obj.name;\n      } else if (str === 'xmgl-xmlx') {\n        this.form.projectTypeValue = obj.name;\n      } else if (str === 'xmgl-jsms') {\n        this.form.projectModelValue = obj.name;\n      } else if (str === 'xmgl-shsjfs') {\n        this.form.socialAuditTypeValue = obj.name;\n      } else if (str === 'xmgl-gjsjjg') {\n        this.form.stateAuditOfficeValue = obj.name;\n      }\n    },\n    handleAdd: function handleAdd() {\n      this.dialogTitle = '添加';\n      this.commencementTime = []; // 获取当前登录用户名\n\n      var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n      this.form = {\n        projectCode: '',\n        projectName: '',\n        projectType: 1,\n        //项目类型\n        // projectModel: 1, //建设模式\n        // projectStatus: 1, //项目状态\n        // socialAuditType: 1, //社会审计方式\n        // stateAuditOffice: 1, //国家审计机关\n        projectNature: 1,\n        //工程属性\n        // projectApprovalAuthority: 1, //立项审批机关\n        // commencementTime: this.getDate(),\n        // completionTime: this.getDate(),\n        // commencementTime: '',\n        // completionTime: ''\n        ownerUnit: '重庆西永微电子产业园区开发有限公司',\n        projectManagerId: currentUser.userId,\n        projectManager: currentUser.username\n      };\n      this.dialogVisible = true;\n    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      var _this5 = this;\n\n      // if (this.getMethodauth('project_update')) {\n      this.$http.get('${cqxy}/biz/projectManagement/pm/v1/' + data.id).then(function (res) {\n        if (res.status == 200) {\n          _this5.dialogTitle = '修改';\n          _this5.dialogVisible = true;\n          _this5.form = res.data;\n          _this5.commencementTime = [_this5.form.commencementTime || '', _this5.form.completionTime || ''];\n        } else {\n          _this5.$message.error('请求出错,请重新选择');\n        }\n      }); // }\n    },\n    handleSelect: function handleSelect(selection) {\n      this.indexArr = selection;\n    },\n    handleDialogCancel: function handleDialogCancel() {\n      this.dialogVisible = false;\n      this.active = 0;\n      /* 发送一个事件用于侧边栏按钮监听是否显示 */\n\n      this.$bus.$emit('handleAsideBtn', true);\n    },\n    handleDialogClose: function handleDialogClose() {\n      this.dialogVisible = false;\n      this.active = 0;\n    },\n    handleSetCurrent: function handleSetCurrent() {\n      var _this6 = this;\n\n      if (this.indexArr.length === 1) {\n        this.$http.post('${cqxy}/biz/projectManagement/pm/v1/currentProject/' + this.indexArr[0].id).then(function (res) {\n          var data = res.data;\n\n          if (data.state) {\n            _this6.$message.success(data.message);\n          } else {\n            _this6.$message.error(data.message);\n          }\n\n          _this6.$refs.AtTable.load();\n        });\n      } else {\n        this.$message.info('请选择一个项目作为当前项目!');\n      }\n    },\n    handleDialogSubmit: function handleDialogSubmit() {\n      var _this7 = this;\n\n      var url, params;\n\n      if (this.newProjectIds) {\n        url = '/biz/projectManagement/pm/v1/mergeItems';\n        params = {\n          projectIds: this.newProjectIds,\n          projectManagement: this.form\n        };\n      } else {\n        url = '/biz/projectManagement/pm/v1/save';\n        params = this.form;\n      }\n\n      this.$refs.form.validate(function (valid) {\n        if (valid) {\n          _this7.loading = true;\n\n          _this7.$http.post('${cqxy}' + url, params).then(function (res) {\n            _this7.loading = false;\n\n            if (res.data.state) {\n              // this.$refs.projectInfoSelector.getProjectData()\n              _this7.$refs.form.resetFields();\n\n              _this7.$message.success(res.data.message);\n\n              _this7.dialogVisible = false;\n\n              _this7.$refs.AtTable.load();\n\n              _this7.active = 0;\n            } else {\n              _this7.$message.error(res.data.message);\n            }\n          });\n        }\n      });\n    },\n    //上传发送事件\n    handleUpload: function handleUpload() {\n      this.$bus.$emit('openUploader');\n    },\n    loadData: function loadData(param, cb) {\n      var _this8 = this;\n\n      //   this.$refs.projectInfoSelector.getProjectData(this.searchForm.createTime)\n      var query = [];\n      var search = {\n        id_: this.searchForm.projectId,\n        project_name_: this.searchForm.projectName,\n        project_type_: this.searchForm.projectType,\n        // project_model_: this.searchForm.projectModel\n        CREATE_TIME_: this.searchForm.createTime,\n        project_status_: this.searchForm.isStart,\n        project_money_: [this.searchForm.projectMoneyOne, this.searchForm.projectMoneyTwo]\n      };\n\n      for (var i in search) {\n        if (search[i] && typeof search[i] !== 'undefined') {\n          //判断是否已开工\n          if (i == 'project_status_') {\n            for (var j = 1; j <= 9; j++) {\n              if (search[i] == 2) {\n                query.push({\n                  group: 'advance',\n                  operation: 'EQUAL',\n                  property: i,\n                  relation: 'OR',\n                  value: j\n                });\n              } else {\n                query.push({\n                  group: 'advance',\n                  operation: 'EQUAL',\n                  property: i,\n                  relation: 'OR',\n                  value: j + 6\n                });\n              }\n            } //判断投资金额范围\n\n          } else if (i == 'project_money_') {\n            if (search[i][0] && typeof search[i][0] !== 'undefined') {\n              query.push({\n                group: 'advance',\n                operation: 'GREAT',\n                property: i,\n                relation: 'AND',\n                value: search[i][0]\n              });\n            }\n\n            if (search[i][1] && typeof search[i][1] !== 'undefined') {\n              query.push({\n                group: 'advance',\n                operation: 'LESS',\n                property: i,\n                relation: 'AND',\n                value: search[i][1]\n              });\n            }\n          } else if (i == 'CREATE_TIME_') {\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              parentGroup: '',\n              property: 'commencement_time_',\n              relation: 'AND',\n              value: [\"\".concat(search[i], \"-01-01 00:00:00\"), \"\".concat(search[i], \"-12-31 23:59:59\")]\n            } // {\n            //   group: 'createTimeGroup',\n            //   operation: 'BETWEEN',\n            //   parentGroup: '',\n            //   property: 'COMPLETION_TIME_',\n            //   relation: 'OR',\n            //   value: [\n            //     `${search[i]}-01-01 00:00:00`,\n            //     `${search[i]}-12-31 23:59:59`,\n            //   ],\n            // },\n            // {\n            //   group: 'createTimeSubGroup',\n            //   operation: 'LESS_EQUAL',\n            //   parentGroup: 'createTimeGroup',\n            //   property: 'commencement_time_',\n            //   relation: 'AND',\n            //   value: `${search[i]}-12-31 23:59:59`,\n            // },\n            // {\n            //   group: 'createTimeSubGroup',\n            //   operation: 'LESS',\n            //   parentGroup: 'createTimeGroup',\n            //   property: 'PROJECT_STATUS_',\n            //   relation: 'AND',\n            //   value: '12',\n            // }\n            );\n          } else {\n            query.push({\n              group: 'advance',\n              operation: 'LIKE',\n              property: i,\n              relation: 'AND',\n              value: search[i]\n            });\n          }\n        }\n      }\n\n      if (param.querys && param.querys.length) {\n        var _param$querys;\n\n        (_param$querys = param.querys).push.apply(_param$querys, query);\n      } else {\n        param.querys = query;\n      }\n\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this8.data = response.rows;\n        _this8.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    },\n    findinfo: function findinfo() {\n      this.$refs.AtTable.load(); // this.loadData()\n    },\n\n    /* 项目合并方法 */\n    handleSizeChange: function handleSizeChange(pageSize) {\n      this.pagination = _objectSpread(_objectSpread({}, this.pagination), {}, {\n        pageSize: pageSize\n      });\n      this.handleExpandChange(this.parent);\n    },\n    handleCurrentChange: function handleCurrentChange(page) {\n      this.pagination = _objectSpread(_objectSpread({}, this.pagination), {}, {\n        page: page\n      });\n      this.handleExpandChange(this.parent, true);\n    },\n    handleMergeNewProject: function handleMergeNewProject(ids) {\n      var currentUser = JSON.parse(window.sessionStorage.getItem('currentUser'));\n      this.form = {\n        projectCode: '',\n        projectName: '',\n        projectType: 1,\n        //项目类型\n        projectNature: 1,\n        //工程属性\n        ownerUnit: '重庆西永微电子产业园区开发有限公司',\n        projectManagerId: currentUser.userId,\n        projectManager: currentUser.username\n      };\n      this.newProjectIds = ids;\n      this.dialogVisible = true;\n    },\n    handleExpandChange: function handleExpandChange(row, doNotResetPage) {\n      var _this9 = this;\n\n      this.parent = {\n        id: row.id\n      }; // 默认重置页码为第一页\n\n      if (!doNotResetPage) {\n        this.pagination.page = 1;\n      }\n\n      var param = {\n        pageBean: _objectSpread(_objectSpread({}, this.pagination), {}, {\n          showTotal: true\n        }),\n        querys: [{\n          group: 'main',\n          operation: 'EQUAL',\n          property: 'parent_Id_',\n          relation: 'AND',\n          value: this.parent.id\n        }] // params: {\n        //   parentId: this.parent.id,\n        // },\n\n      };\n      delete param.pageBean.total;\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this9.expandTableData = response.rows;\n        _this9.pagination = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      });\n    },\n    //返回一个boolean类型，是否显示列表按钮\n    getMethodauth: function getMethodauth(elAuth) {\n      var allMethod = window.sessionStorage.allMethod;\n      var methodAuth = window.sessionStorage.methodAuth;\n      var allMethodArray = allMethod && allMethod.split(',');\n      var methodAuthArray = methodAuth && methodAuth.split(','); // 无权限则隐藏按钮\n\n      if (methodAuthArray && methodAuthArray.includes(elAuth) && allMethodArray && allMethodArray.includes(elAuth)) {\n        return true;\n      } else {\n        return false;\n      }\n    },\n    //获取顶部搜索的年份区间\n    getYear: function getYear() {\n      var myDate = new Date();\n      var startYear = 2006; //起始年份\n\n      var endYear = myDate.getFullYear() + 3; //结束年份\n\n      for (var i = endYear; i >= startYear; i--) {\n        this.optionYears.push({\n          label: i + '年',\n          value: i\n        });\n      }\n    },\n    getByYearTime: function getByYearTime() {\n      var arr = [];\n\n      if (typeof this.searchForm.commencementTime !== 'undefined') {\n        var year = this.searchForm.year;\n        arr = [year + '01-01', year + '12-30'];\n        this.searchForm.year = arr;\n      }\n    },\n    handleExpSelect: function handleExpSelect(selection) {\n      this.elTableSection = selection;\n    },\n    splitProject: function splitProject() {\n      var _this10 = this;\n\n      this.ids = [];\n\n      if (this.$refs.AtTable.selection && this.$refs.AtTable.selection.length !== 0 && !this.elTableSection) {\n        this.$message.error('请选择展开的项目');\n        return;\n      }\n\n      if (!this.elTableSection) {\n        this.$message.error('请至少选择一条数据');\n        return;\n      }\n\n      if (this.elTableSection && this.elTableSection.length == 0 && !this.row) {\n        this.$message.error('请至少选择一条数据');\n        return;\n      }\n\n      if (this.row) {\n        this.ids.push(this.row.id);\n      } else {\n        var _iterator = _createForOfIteratorHelper(this.elTableSection),\n            _step;\n\n        try {\n          for (_iterator.s(); !(_step = _iterator.n()).done;) {\n            var item = _step.value;\n            this.ids.push(item.id);\n          }\n        } catch (err) {\n          _iterator.e(err);\n        } finally {\n          _iterator.f();\n        }\n      }\n\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/splitItems?ids=' + this.ids).then(function (res) {\n        if (res.data.state) {\n          _this10.$message.success(res.data.message);\n\n          _this10.$refs.AtTable.load(true);\n          /* 刷新合并项目里面的数据 */\n\n\n          _this10.pagination = _objectSpread(_objectSpread({}, _this10.pagination), {}, {\n            page: page\n          });\n\n          _this10.handleExpandChange(_this10.parent, true);\n        } else {\n          _this10.message.error(res.data.message);\n        }\n      });\n    },\n    handleDateChange: function handleDateChange(e) {\n      if (e.length !== 0) {\n        this.form.commencementTime = e[0];\n        this.form.completionTime = e[1];\n      }\n    }\n  }\n};",null]}