{"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\\DesignEstimate\\Eia.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\DesignEstimate\\Eia.vue","mtime":1675214577917},{"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":456789000000},{"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/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nexport default {\n  name: 'Eia',\n  components: {\n    ProjectInfoDialog: ProjectInfoDialog\n  },\n  data: function data() {\n    return {\n      searchForm: {},\n      //顶部搜索参数\n      dataBaseOptions: {\n        dataBaseId: '',\n        tableName: '',\n        // 必填\n        tableSchema: ''\n      },\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: 20,\n        total: 0\n      },\n      form: {},\n      dialogTitle: '添加',\n      dialogVisible: false,\n      loading: false,\n      rules: {\n        'projectInfo.projectName': {\n          required: true,\n          message: '请选择项目名称',\n          trigger: 'blur'\n        },\n        documentNumber: {\n          required: true,\n          message: '请输入编号',\n          trigger: 'blur'\n        },\n        reviewUnit: {\n          required: true,\n          message: '请输入审查单位',\n          trigger: 'blur'\n        },\n        establishmentDate: {\n          required: true,\n          message: '请选择审查日期',\n          trigger: 'blur'\n        }\n      }\n    };\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/designEstimate/environmentalAssessment/v1/delete';\n    }\n  },\n  methods: {\n    handleAdd: function handleAdd() {\n      this.dialogTitle = '添加';\n      this.form = {\n        projectInfo: {\n          projectCode: '',\n          projectName: ''\n        },\n        accessoryInfo: []\n      };\n      this.dialogVisible = true;\n    },\n    handleSelect: function handleSelect(selection) {},\n    handleDialogCancel: function handleDialogCancel() {\n      this.dialogVisible = false;\n    },\n    handleDialogClose: function handleDialogClose() {\n      this.dialogVisible = false;\n    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      this.form = data;\n      this.dialogTitle = '修改';\n      this.dialogVisible = true;\n    },\n    handleFocusProject: function handleFocusProject() {\n      this.$refs.project.open();\n    },\n    handleSelectProject: function handleSelectProject(data) {\n      this.form.projectId = data.id;\n      this.form.projectInfo.projectCode = data.projectCode;\n      this.form.projectInfo.projectName = data.projectName;\n      this.$refs.form.clearValidate();\n    },\n    handleFile: function handleFile(file) {\n      this.form.accessoryInfo = file;\n    },\n    handleDialogSubmit: function handleDialogSubmit() {\n      var _this = this;\n      this.$refs.form.validate(function (valid) {\n        if (valid && _this.form.accessoryInfo.length !== 0) {\n          _this.form.accessoryInfo.forEach(function (item) {\n            if (item.id) {\n              delete item.id;\n            }\n          });\n          _this.loading = true;\n          _this.$http.post('${cqxy}/biz/designEstimate/environmentalAssessment/v1/save', _this.form).then(function (res) {\n            if (res.data.state) {\n              _this.$refs.form.resetFields();\n              _this.$message.success(res.data.message);\n              _this.dialogVisible = false;\n              _this.$refs.AtTable.load();\n            } else {\n              _this.$message.error(res.data.message);\n            }\n            _this.loading = false;\n          });\n        } else if (_this.form.accessoryInfo.length === 0) {\n          _this.$message.error('请至少上传一个附件');\n        }\n      });\n    },\n    findinfo: function findinfo() {\n      var _this2 = this;\n      var query = [];\n      var search = {\n        project_id_: this.searchForm.projectId,\n        establishment_date_: this.searchForm.establishmentDate\n      };\n      for (var i in search) {\n        if (search[i]) {\n          query.push({\n            group: 'advance',\n            operation: 'LIKE',\n            property: i,\n            relation: 'AND',\n            value: search[i]\n          });\n        }\n      }\n      var data = {\n        pageBean: {\n          page: 1,\n          pageSize: 20,\n          showTotal: true\n        },\n        querys: query\n      };\n      this.$http.post('${cqxy}/biz/designEstimate/environmentalAssessment/v1/page', data).then(function (resp) {\n        var response = resp.data.value;\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      });\n    },\n    //上传发送事件\n    handleUpload: function handleUpload() {\n      this.$bus.$emit('openUploader');\n    },\n    loadData: function loadData(param, cb) {\n      var _this3 = this;\n      param.params = {\n        projectId: this.$route.params.id\n      };\n      this.$http.post('${cqxy}/biz/designEstimate/environmentalAssessment/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this3.data = response.rows;\n        _this3.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  }\n};",null]}