{"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\\ProcessManagement\\ScheduleManagement\\fundPlan.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\ProcessManagement\\ScheduleManagement\\fundPlan.vue","mtime":1675214577980},{"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/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//\nimport ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nimport utils from '@/utils.js';\nimport req from '@/request.js';\nexport default {\n  name: 'fundPlan',\n  components: {\n    ProjectInfoDialog: ProjectInfoDialog\n  },\n  data: function data() {\n    return {\n      options: [{\n        label: '是',\n        value: '是'\n      }, {\n        label: '否',\n        value: '否'\n      }],\n      options2: [{\n        label: '是',\n        value: '是'\n      }, {\n        label: '否',\n        value: '否'\n      }],\n      searchForm: {\n        purpose: '',\n        contractDate: ''\n      },\n      rules: {},\n      form: {},\n      loading: false,\n      dialogVisible: false,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      dialogTitle: '添加',\n      importData: {\n        title: '资金计划导入',\n        templateName: '资金计划模板.xls',\n        downloadUrl: './../static/excel/fundPlan.xlsx',\n        importUrl: window.context.cqxy + '/biz/contract/fundPlan/v1/importExcelData',\n        projectId: '',\n        contractId: ''\n      },\n      routerParams: null\n    };\n  },\n  mounted: function mounted() {\n    this.routerParams = JSON.parse(sessionStorage.getItem('routerParams'));\n    this.importData.projectId = this.routerParams.project.id;\n    this.importData.contractId = this.routerParams.contract.id;\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/contract/fundPlan/v1/delete';\n    }\n  },\n  methods: {\n    handleFile: function handleFile(file) {\n      this.form.accessoryInfo = file;\n    },\n    //重置\n    handleReset: function handleReset() {\n      var _this = this;\n\n      this.searchForm.purpose = '';\n      this.searchForm.contractDate = '';\n      this.$refs['searchForm'].resetFields();\n      this.pageResult = {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      };\n      this.$nextTick(function () {\n        _this.$refs.AtTable.load();\n      });\n    },\n    load: function load() {\n      this.$refs.AtTable.load();\n    },\n    handleExport: function handleExport() {\n      var _this2 = this;\n\n      this.loading = true;\n      var params = {\n        pageBean: {\n          page: 1,\n          pageSize: -1,\n          showTotal: true\n        },\n        querys: [{\n          group: 'main',\n          operation: 'EQUAL',\n          parentGroup: '',\n          property: 'pm.ID_',\n          relation: 'AND',\n          value: this.$route.params.id\n        }, {\n          group: 'main',\n          operation: 'EQUAL',\n          parentGroup: '',\n          property: 'contract_id_',\n          relation: 'AND',\n          value: this.routerParams.contract.id\n        }]\n      };\n\n      if (this.data.length > 0) {\n        req.downloadPostCopy('${cqxy}/biz/contract/fundPlan/v1/exportDataToExcel', params).then(function (res) {\n          if (res.status === 200) {\n            _this2.loading = false;\n\n            _this2.$message.success('导出成功');\n          } else {\n            _this2.loading = false;\n\n            _this2.$message.error('导出失败');\n          }\n        });\n      } else {\n        this.loading = false;\n        this.$message.warning('暂无数据导出');\n      }\n    },\n    loadData: function loadData(param, cb) {\n      var _this3 = this;\n\n      this.routerParams = JSON.parse(sessionStorage.getItem('routerParams'));\n      var querys = [];\n      var search = {\n        purpose_: this.searchForm.purpose,\n        contract_date_: this.searchForm.contractDate\n      };\n\n      for (var i in search) {\n        if (search[i]) {\n          querys.push({\n            group: 'main',\n            operation: 'EQUAL',\n            property: i,\n            relation: 'AND',\n            value: search[i]\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, querys);\n      } else {\n        param.querys = querys;\n      }\n\n      this.$http.post('${cqxy}/biz/contract/fundPlan/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this3.data = response.rows.map(function (item) {\n          item.projectName = _this3.$route.params.projectName;\n          return item;\n        });\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    findinfo: function findinfo() {\n      this.$refs.AtTable.load();\n    },\n    handleAdd: function handleAdd() {\n      this.dialogVisible = true;\n      var date = new Date();\n      this.form = {\n        projectName: this.$route.params.projectName,\n        projectId: this.$route.params.id,\n        contractId: this.routerParams.contract.id,\n        purpose: '',\n        unitNname: this.routerParams.contract.secondParty,\n        contractDate: utils.formatMothYear(date),\n        contractAmount: '',\n        hasNew: '',\n        hasSpecial: '',\n        remarks: '',\n        accessoryInfo: []\n      };\n    },\n    handleSelect: function handleSelect(data) {},\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    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      this.dialogVisible = true;\n      this.form = data;\n    },\n    //保存\n    handleDialogSubmit: function handleDialogSubmit() {\n      var _this4 = this;\n\n      if (this.form.accessoryInfo && this.form.accessoryInfo.length > 0) {\n        this.form.accessoryInfo.forEach(function (item) {\n          if (item.id) {\n            delete item.id;\n          }\n        });\n      }\n\n      this.$http.post('${cqxy}/biz/contract/fundPlan/v1/save', this.form).then(function (res) {\n        if (res.data.state) {\n          _this4.$message.success(res.data.message);\n\n          _this4.$refs.AtTable.load();\n\n          _this4.dialogVisible = false;\n        } else {\n          _this4.$message.error(res.data.message);\n        }\n      });\n    },\n    handleDialogCancel: function handleDialogCancel() {\n      this.dialogVisible = false;\n    },\n    //返回\n    handleBack: function handleBack() {\n      this.$router.push({\n        name: 'ProjectFlowChart',\n        params: {\n          id: this.$route.params.id,\n          alias: this.routerParams.alias\n        }\n      });\n    }\n  }\n};",null]}