{"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\\PaymentApproval.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\ProcessManagement\\ScheduleManagement\\PaymentApproval.vue","mtime":1723543352528},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.string.iterator\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nvar eipUserSelector = function eipUserSelector() {\n  return import('@/components/selector/EipUserSelector.vue');\n};\nimport ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nimport ProjectContractDialog from '@/components/dialog/ProjectContractDialog.vue';\nimport { duration } from 'moment';\nimport utils from '@/utils.js';\nimport req from '@/request.js';\nvar BigNumber = require('bignumber.js');\nexport default {\n  name: 'PaymentApproval',\n  components: {\n    ProjectInfoDialog: ProjectInfoDialog,\n    ProjectContractDialog: ProjectContractDialog\n    // eipUserSelector\n  },\n\n  props: {\n    pid: {\n      type: String,\n      default: ''\n    },\n    isShow: {\n      type: Boolean,\n      default: true\n    },\n    alias: {\n      type: String,\n      default: ''\n    }\n  },\n  data: function data() {\n    return {\n      total: {\n        projectInfo: {\n          projectName: '合计'\n        },\n        contractInfo: {\n          name: '----'\n        },\n        purpose: '----',\n        registerDate: '----',\n        totalInvestment: '----',\n        payeeAmountTotal: 0,\n        amountAppropriated: '----'\n      },\n      selected: {\n        numbers: 0,\n        payeeAmountTotal: '0'\n      },\n      options: [{\n        id: '50001023600050001574',\n        label: '50001023600050001574'\n      }, {\n        id: '500501004141000002640040',\n        label: '500501004141000002640040'\n      }],\n      importData: {\n        title: '工程支付导入',\n        templateName: '支付审批模板.xlsx',\n        downloadUrl: '/../fvue/static/excel/PaymentApproval.xlsx',\n        importUrl: window.context.cqxy + '/biz/processManagement/progressManage/v1/importExcelData',\n        showProject: true,\n        showContract: true,\n        projectId: '',\n        contractId: ''\n        // params: {\n        //   contractId: '',\n        //   // registerPersonId: '',\n        //   // registerPersonName: '',\n        // },\n      },\n\n      importDataDetailed: {\n        title: '拨款明细导入',\n        templateName: '拨款明细模板.xls',\n        downloadUrl: '/../fvue/static/excel/PaymentApprovalList.xlsx',\n        importUrl: window.context.cqxy + '/biz/processManagement/progressManageDefinite/v1/readExcelData'\n      },\n      projectObj: {},\n      //获取当前项目\n      searchForm: {\n        projectId: '',\n        dept: '',\n        registerDate: ''\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: 20,\n        total: 0\n      },\n      form: {\n        contractInfo: {\n          name: '',\n          id: ''\n        },\n        projectInfo: {\n          projectName: '',\n          projectCode: ''\n        }\n      },\n      //基本信息表单\n      dialogVisible: false,\n      dialogTitle: '添加',\n      selectionArr: [],\n      active: 0,\n      loading: false,\n      routeKey: '',\n      rules: {\n        'projectInfo.projectName': {\n          required: true,\n          message: '请选择项目名称',\n          trigger: 'blur'\n        },\n        'contractInfo.name': {\n          required: true,\n          message: '请选择合同名称',\n          trigger: 'blur'\n        },\n        purpose: {\n          required: true,\n          message: '请选择用途',\n          trigger: 'change'\n        }\n      },\n      routerParams: null\n    };\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/processManagement/progressManage/v1/delete';\n    }\n  },\n  methods: {\n    //重置\n    handleReset: function handleReset() {\n      var _this2 = this;\n      this.searchForm.projectId = '';\n      this.searchForm.dept = '';\n      this.searchForm.registerDate = '';\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.load();\n      });\n    },\n    countTotal: function countTotal() {\n      var _this3 = this;\n      var arr = this.form.definiteInfo;\n      var total = 0;\n      arr.forEach(function (item) {\n        if (item.payeeAmount !== '') {\n          var pay = parseFloat(item.payeeAmount);\n          total += pay;\n        } else {\n          _this3.form.payeeAmountTotal = 0;\n        }\n      });\n      this.form.payeeAmountTotal = total;\n      this.form.amountTotalWords = utils.convertCurrency(total);\n    },\n    //打开合同信息\n    handleFocusContract: function handleFocusContract() {\n      this.$refs.contract.open(this.form.projectId);\n    },\n    //选择合同信息\n    handleSelectContract: function handleSelectContract(data) {\n      var _this4 = this;\n      // console.log(data,'data')\n      this.form.totalInvestment = data.contractAmount;\n      if (!data.payee) {\n        this.form.registerPersonName = data.payeeAccountPhone;\n      } else {\n        this.form.registerPersonName = data.payee;\n      }\n      this.form.contractId = data.id;\n      this.form.contractInfo.name = data.name;\n      this.form.contractInfo.id = data.id;\n      this.form.handlerPerson = data.payeeAccount;\n      this.form.registerPersonId = data.payeeContactPhone;\n      var params = {\n        projectId: this.form.projectId,\n        registerDate: this.form.registerDate,\n        contractId: this.form.contractId\n      };\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/getAppropriatedl', params).then(function (res) {\n        if (res.data.state) {\n          _this4.form.amountAppropriated = res.data.value;\n        }\n      });\n    },\n    filterHandler: function filterHandler(value, row, column) {\n      var property = column['property'];\n      return row[property] === value;\n    },\n    //导入后重新加载数据\n    load: function load() {\n      this.$refs.AtTable.load();\n    },\n    //导出\n    handleExport: function handleExport() {\n      var _this5 = this;\n      var query = [{\n        group: 'filter',\n        operation: 'EQUAL',\n        property: 'purpose',\n        relation: 'AND',\n        value: '1'\n      }];\n      var search = {\n        'pm.ID_': this.searchForm.projectId,\n        register_date_: this.searchForm.registerDate,\n        register_person_name_: this.searchForm.registerPersonName\n      };\n      if (this.pid) {\n        search['pm.ID_'] = this.pid;\n        this.importData.projectId = this.pid;\n      } else if (this.routerParams) {\n        search['pm.ID_'] = this.$route.params.id;\n        search.contract_id_ = this.routerParams.contract.id;\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 param = {\n        pageBean: {\n          page: 1,\n          pageSize: -1,\n          showTotal: true\n        },\n        querys: query,\n        sorter: []\n      };\n      console.log(param);\n      req.downloadPostCopy('${cqxy}/biz/processManagement/progressManage/v1/exportDataToExcel', param).then(function (res) {\n        if (res.status === 200) {\n          _this5.$message.success('导出成功');\n        } else {\n          _this5.$message.error('导出失败');\n        }\n      });\n    },\n    loadDetailed: function loadDetailed(data) {\n      var _this$form$definiteIn;\n      for (var i = 0; i < data.length; i++) {\n        data[i].key = this.form.definiteInfo.length + i;\n      }\n      (_this$form$definiteIn = this.form.definiteInfo).push.apply(_this$form$definiteIn, _toConsumableArray(data));\n      this.countTotal();\n    },\n    handleExportDetailed: function handleExportDetailed() {\n      var _this6 = this;\n      var param = {\n        pageBean: {\n          page: 1,\n          pageSize: -1,\n          showTotal: true\n        },\n        querys: [],\n        sorter: []\n      };\n      req.downloadPostCopy('${cqxy}/biz/processManagement/progressManageDefinite/v1/exportDataToExcel', param).then(function (res) {\n        if (res.status === 200) {\n          _this6.$message.success('导出成功');\n        } else {\n          _this6.$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 _this7 = this;\n      if (this.active == 0) {\n        var _this = this;\n        var vaitalArr = ['projectInfo.projectName',\n        // 'projectInfo.projectCode',\n        'contractInfo.name'\n        // 'registerPersonName',\n        ];\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          if (!result.length) {\n            _this7.active++;\n            _this7.active = _this7.active;\n            _this7.$refs['form'].clearValidate();\n          }\n        });\n      } else {\n        this.active++;\n        this.active = this.active;\n        this.$refs['form'].clearValidate();\n      }\n    },\n    handleAdd: function handleAdd() {\n      var _this8 = this;\n      this.dialogTitle = '添加';\n      var date = new Date();\n      this.form = {\n        purpose: 1,\n        haveFundPlan: 1,\n        handlerPerson: '',\n        projectId: this.$route.params.id,\n        contractId: '',\n        payeeAmountTotal: 0,\n        registerPersonId: '',\n        registerPersonName: '',\n        totalInvestment: '',\n        amountAppropriated: '',\n        registerDate: utils.formatDateYear(date),\n        month: (date.getMonth() + 1).toString(),\n        year: date.getFullYear().toString(),\n        contractInfo: {\n          name: '',\n          id: ''\n        },\n        definiteInfo: [],\n        dept: '建设部',\n        projectInfo: {\n          projectName: this.$route.params.projectName,\n          projectCode: ''\n        },\n        accessoryInfo: []\n      };\n      if (this.routerParams) {\n        if (this.data.length) {\n          var data = this.data[0];\n          this.form.contractId = data.contractId;\n          this.form.contractInfo.name = data.contractInfo.name;\n          this.form.registerPersonName = data.registerPersonName;\n          this.form.handlerPerson = data.handlerPerson;\n          this.form.registerPersonId = data.registerPersonId;\n          this.form.totalInvestment = data.totalInvestment;\n        } else {\n          var _data = this.routerParams.contract;\n          this.form.contractId = _data.id;\n          this.form.contractInfo.name = _data.name; //合同名称\n          this.form.registerPersonName = _data.payee; //收款单位\n          this.form.totalInvestment = _data.contractAmount;\n        }\n      }\n      var params = {\n        projectId: this.form.projectId,\n        registerDate: this.form.registerDate,\n        contractId: this.form.contractId\n      };\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/getAppropriatedl', params).then(function (res) {\n        if (res.data.state) {\n          _this8.form.amountAppropriated = res.data.value;\n        }\n      });\n      this.dialogVisible = true;\n      // console.log(this.form)\n    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      var _this9 = this;\n      this.dialogTitle = '修改';\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/detail/' + data.id).then(function (res) {\n        _this9.dialogVisible = true;\n        var response = res.data.value;\n        if (!response.contractInfo) {\n          var obj = {\n            contractInfo: {}\n          };\n          _this9.form = _objectSpread(_objectSpread({}, response), obj);\n        } else {\n          _this9.form = response;\n        }\n        // this.form.year = this.form.year\n        _this9.form.month = _this9.form.month.toString();\n      });\n    },\n    handleFocusProject: function handleFocusProject() {\n      this.$refs.project.open();\n    },\n    handleSelectProject: function handleSelectProject(data) {\n      this.form.contractInfo.name = '';\n      this.form.contractInfo.id = '';\n      this.form.projectId = data.id;\n      this.form.projectInfo.projectCode = data.projectCode;\n      this.form.projectInfo.projectName = data.projectName;\n      // this.form.handlerPerson = data.projectManager\n      this.$refs.form.clearValidate();\n    },\n    handleSelect: function handleSelect(selection) {\n      selection.forEach(function (item, index) {\n        if (item.projectInfo.projectName === '合计') {\n          selection.splice(index, 1);\n        }\n      });\n      this.selected.numbers = selection.length;\n      var total = this.calculationTotal(selection, 'payeeAmountTotal');\n      this.selected.payeeAmountTotal = total;\n    },\n    handleDialogCancel: function handleDialogCancel() {\n      this.dialogVisible = false;\n      this.active = 0;\n      this.form = {\n        projectId: '',\n        contractId: '',\n        registerPersonId: '',\n        registerPersonName: '',\n        payeeAmountTotal: 0,\n        contractInfo: {},\n        definiteInfo: [],\n        projectInfo: {},\n        accessoryInfo: []\n      };\n      /* 发送一个事件用于侧边栏按钮监听是否显示 */\n      this.$bus.$emit('handleAsideBtn', true);\n    },\n    handleDialogClose: function handleDialogClose() {\n      this.dialogVisible = false;\n      this.active = 0;\n      this.form = {\n        projectId: '',\n        contractId: '',\n        payeeAmountTotal: 0,\n        registerPersonId: '',\n        registerPersonName: '',\n        contractInfo: {},\n        definiteInfo: [],\n        projectInfo: {},\n        accessoryInfo: []\n      };\n    },\n    handleFile: function handleFile(file) {\n      this.form.accessoryInfo = file;\n    },\n    //保存\n    handleDialogSubmit: function handleDialogSubmit() {\n      var _this10 = this;\n      if (!this.form.contractId) return this.$message.info('请选择合同名称');\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      if (this.form.payeeAmountTotal == 0) {\n        this.$message.error(\"'\\u672C\\u6B21\\u62E8\\u6B3E\\u989D'\\u4E0D\\u80FD\\u4E3A0\\u5143\");\n        return;\n      }\n      this.loading = true;\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/save', this.form).then(function (res) {\n        if (res.data.state) {\n          // this.$refs.form.resetFields()\n          _this10.$message.success(res.data.message);\n          // this.handleDialogClose()\n          _this10.$refs.AtTable.load();\n          _this10.form = res.data.value;\n        } else {\n          _this10.$message.error(res.data.message);\n        }\n        _this10.loading = false;\n      }).catch(function (err) {\n        _this10.loading = false;\n      });\n    },\n    loadData: function loadData(param, cb) {\n      var _this11 = this;\n      var query = [{\n        group: 'filter',\n        operation: 'EQUAL',\n        property: 'purpose',\n        relation: 'AND',\n        value: '1'\n      }];\n      var search = {\n        'pm.ID_': this.searchForm.projectId,\n        register_date_: this.searchForm.registerDate,\n        register_person_name_: this.searchForm.registerPersonName\n      };\n      this.routerParams = JSON.parse(sessionStorage.getItem('routerParams'));\n      if (this.pid) {\n        search['pm.ID_'] = this.pid;\n        this.importData.projectId = this.pid;\n      } else if (this.routerParams) {\n        search['pm.ID_'] = this.$route.params.id;\n        search.contract_id_ = this.routerParams.contract.id;\n        this.importData.projectId = this.$route.params.id;\n        this.importData.contractId = this.routerParams.contract.id;\n        this.importData.showContract = false;\n        query = [];\n      }\n      for (var i in search) {\n        if (search[i]) {\n          query.push({\n            group: 'main',\n            operation: 'LIKE',\n            property: i,\n            relation: 'AND',\n            value: search[i]\n          });\n        }\n      }\n      if (param.querys && param.querys.length) {\n        var _param$querys;\n        (_param$querys = param.querys).push.apply(_param$querys, _toConsumableArray(query));\n      } else {\n        param.querys = query;\n      }\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this11.selected = {\n          numbers: 0,\n          payeeAmountTotal: '0'\n        };\n        var data = response.rows;\n        // this.total.totalInvestment = this.calculationTotal(\n        //   data,\n        //   'totalInvestment'\n        // )\n        _this11.total.payeeAmountTotal = _this11.calculationTotal(data, 'payeeAmountTotal');\n        // this.total.amountAppropriated = this.calculationTotal(\n        //   data,\n        //   'amountAppropriated'\n        // )\n        if (data.length !== 0) {\n          data.push(_this11.total);\n        }\n        _this11.data = data;\n        _this11.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    addListItem: function addListItem() {\n      var length;\n      length = this.form.definiteInfo.length;\n      var newData = {\n        key: length + 1,\n        subjectName: '',\n        payeeUnit: '重庆建工集团股份有限公司',\n        bankOfDeposit: '中国建设银行重庆中山路支行营业部',\n        payeeAmount: '',\n        payeeNum: '',\n        purpose: 1,\n        remarks: ''\n      };\n      this.form.definiteInfo.push(newData);\n    },\n    deleteTableData: function deleteTableData(key, id) {\n      var _this12 = this;\n      this.form.definiteInfo = this.form.definiteInfo.filter(function (item) {\n        if (key) {\n          return item.key !== key;\n        } else {\n          return item.id !== id;\n        }\n      });\n      this.countTotal();\n      if (id) {\n        this.$http.remove('${cqxy}/biz/processManagement/progressManageDefinite/v1/' + id).then(function (res) {\n          if (res.data.state) {\n            _this12.$message.success(res.data.message);\n          } else {\n            _this12.$message.error(res.data.message);\n          }\n        });\n      }\n    },\n    handleChangeRegisterDate: function handleChangeRegisterDate(date) {\n      var _this13 = this;\n      var params = {\n        projectId: this.form.projectId,\n        registerDate: date,\n        contractId: this.form.contractId\n      };\n      this.$http.post('${cqxy}/biz/processManagement/progressManage/v1/getAppropriatedl', params).then(function (res) {\n        if (res.data.state) {\n          _this13.form.amountAppropriated = res.data.value;\n        }\n      });\n    },\n    handleDialogExport: function handleDialogExport() {\n      var _this14 = this;\n      if (this.form.id) {\n        req.downloadGetCopy('${cqxy}/biz/processManagement/progressManage/v1/exportApprovalForm?id=' + this.form.id).then(function (res) {\n          if (res.status == 200) {\n            _this14.$message.success('导出成功');\n          } else {\n            _this14.$message.error('导出失败');\n          }\n        });\n      } else {\n        this.$message.error('请先保存这条数据');\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    calculationTotal: function calculationTotal(data, key) {\n      var total = new BigNumber(0);\n      if (key && data && data.length !== 0) {\n        data.forEach(function (item) {\n          if (item[key]) {\n            total = total.plus(item[key]);\n          } else {\n            total = total.plus(0);\n          }\n        });\n      }\n      return this.moneyFormatter(total);\n    },\n    cellClassNameFn: function cellClassNameFn(row) {\n      // 列表项目名称为【合计】隐藏复选框\n      if (row.row.projectInfo.projectName === '合计') {\n        return 'table-column-hidden';\n      }\n    }\n  },\n  destroyed: function destroyed() {\n    // this.routerParams=JSON.parse( sessionStorage.getItem('routerParams'))\n    sessionStorage.removeItem('routerParams');\n  }\n};",null]}