{"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\\StatisticalReport\\InvestmentProgressAccount.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\StatisticalReport\\InvestmentProgressAccount.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/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nvar BigNumber = require('bignumber.js');\nvar monthOptions = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\nexport default {\n  name: 'investmentProgressAccount',\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        projectName: '合计',\n        projectManager: '----',\n        projectStatus: '----',\n        projectType: '----',\n        totalEstimate: 0,\n        completedEstimate: 0,\n        currentEstimate: 0,\n        engineeringCost: 0,\n        twoTypePrice: 0,\n        landPrice: 0,\n        adminPaymentAmount: 0\n      },\n      justShowSearch: this.isShow,\n      loading: false,\n      searchForm: {\n        projectName: '',\n        type: '',\n        createTime: new Date().getFullYear() //当前年份\n      },\n\n      optionYears: [],\n      //顶部搜索年份选择数组\n      details: {},\n      data: [],\n      year: 2023,\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      form: {},\n      dialogVisible: false,\n      landManagerDialog: {\n        show: false,\n        form: {\n          landUnit: 1\n        },\n        loading: false\n      },\n      checkAll: false,\n      checkedMonths: [new Date().getMonth(), new Date().getMonth() + 1],\n      months: monthOptions,\n      isIndeterminate: true,\n      checkedMonthsList: [new Date().getMonth(), new Date().getMonth() + 1],\n      payTotal: 0,\n      investTotal: 0\n    };\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/projectApproval/decisionBasis/v1/delete';\n    }\n  },\n  created: function created() {\n    this.year = 2023;\n    this.getYear();\n    this.getYearTotal();\n  },\n  methods: {\n    getYearTotal: function getYearTotal() {\n      var _this = this;\n      if (this.searchForm.createTime && this.searchForm.createTime != '') {\n        var formData = new FormData();\n        formData.append('year', this.searchForm.createTime);\n        this.$http.post('${cqxy}/biz/ledger/investment/v1/totalInvestByYear', formData).then(function (res) {\n          var data = res.data.value;\n          _this.payTotal = res.data.value;\n          _this.investTotal = data.investTotal;\n        });\n      } else {\n        var _formData = new FormData();\n        _formData.append('year', 0);\n        this.$http.post('${cqxy}/biz/ledger/investment/v1/totalInvestByYear', _formData).then(function (res) {\n          console.log(res, 'wwwww');\n          var data = res.data.value;\n          _this.payTotal = res.data.value;\n          _this.investTotal = data.investTotal;\n        });\n        this.investTotal = 0;\n        this.currentYear = null;\n      }\n    },\n    //获取顶部搜索的年份区间\n    getYear: function getYear() {\n      var myDate = new Date();\n      this.currentYear = myDate.getFullYear();\n      this.beforeYear = this.currentYear - 1;\n      var startYear = 2006; //起始年份\n      var endYear = myDate.getFullYear(); //结束年份\n      for (var i = endYear; i >= startYear; i--) {\n        this.optionYears.push({\n          label: i + '年',\n          value: i\n        });\n      }\n    },\n    handleReset: function handleReset() {\n      var _this2 = this;\n      this.searchForm.projectName = '';\n      this.searchForm.projectType = '';\n      this.searchForm.createTime = '';\n      this.searchForm.yearMonth = '';\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    //导出\n    handleExport: function handleExport() {\n      var _this3 = this;\n      this.loading = true;\n      var query = [];\n      var search = {\n        projectName: this.searchForm.projectName,\n        project_type_: this.searchForm.projectType,\n        CREATE_TIME_: this.searchForm.createTime,\n        year_month_: this.searchForm.yearMonth\n      };\n      if (!this.isShow) {\n        // search.projectName = this.pid\n        delete search.CREATE_TIME_;\n      }\n      for (var i in search) {\n        if (search[i]) {\n          if (i == 'CREATE_TIME_') {\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              parentGroup: '',\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            // {\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 if (i == 'year_month_') {\n            var lastDate = search[i][1];\n            var str = lastDate.split('-');\n            var year = parseInt(str[0]);\n            var month = parseInt(str[1]);\n            var date = new Date(year, month, 0).getDate();\n            var arr = [\"\".concat(search[i][0], \"-01 00:00:00\"), \"\".concat(search[i][1], \"-\").concat(date, \" 23:59:59\")];\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              parentGroup: '',\n              property: 'commencement_time_',\n              relation: 'OR',\n              value: arr\n            }, {\n              group: 'createTimeSubGroup',\n              operation: 'LESS_EQUAL',\n              parentGroup: 'createTimeGroup',\n              property: 'commencement_time_',\n              relation: 'AND',\n              value: arr[1]\n            }, {\n              group: 'createTimeSubGroup',\n              operation: 'LESS',\n              parentGroup: 'createTimeGroup',\n              property: 'PROJECT_STATUS_',\n              relation: 'AND',\n              value: '12'\n            });\n          } else if (i == 'projectName') {\n            query.push({\n              group: 'advance',\n              operation: 'LIKE',\n              property: i,\n              relation: 'AND',\n              value: search[i]\n            });\n          } else {\n            query.push({\n              group: 'advance',\n              operation: 'EQUAL',\n              property: i,\n              relation: 'AND',\n              value: search[i]\n            });\n          }\n        }\n      }\n      var param = {\n        pageBean: {\n          page: 1,\n          pageSize: -1,\n          showTotal: true\n        },\n        querys: query\n      };\n      req.downloadPostCopy('${cqxy}/biz/ledger/investment/v1/exportDataToExcel', param).then(function (res) {\n        if (res.status == 200) {\n          _this3.loading = false;\n          _this3.$message.success('导出成功');\n        } else {\n          _this3.loading = false;\n          _this3.$message.error('导出失败');\n        }\n      });\n    },\n    //查询\n    handleSearch: function handleSearch() {\n      this.$refs.AtTable.load();\n    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      this.dialogVisible = true;\n      this.details = data;\n    },\n    handleSelect: function handleSelect(selection) {},\n    loadData: function loadData(param, cb) {\n      var _this4 = this;\n      if (this.isShow) {\n        // this.$refs.projectInfo.getProjectData(this.searchForm.createTime)\n      }\n      var query = [];\n      var search = {\n        projectName: this.searchForm.projectName,\n        project_type_: this.searchForm.projectType,\n        CREATE_TIME_: this.searchForm.createTime,\n        year_month_: this.searchForm.yearMonth\n      };\n      if (!this.isShow) {\n        search.ID_ = this.pid;\n        delete search.CREATE_TIME_;\n      }\n      for (var i in search) {\n        if (search[i]) {\n          if (i == 'CREATE_TIME_') {\n            this.currentYear = this.searchForm.createTime;\n            this.beforeYear = this.currentYear - 1;\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              parentGroup: '',\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            // {\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 if (i == 'year_month_') {\n            var lastDate = search[i][1];\n            var str = lastDate.split('-');\n            var year = parseInt(str[0]);\n            var month = parseInt(str[1]);\n            var date = new Date(year, month, 0).getDate();\n            var arr = [\"\".concat(search[i][0], \"-01 00:00:00\"), \"\".concat(search[i][1], \"-\").concat(date, \" 23:59:59\")];\n            query.push({\n              group: 'createTimeGroup',\n              operation: 'BETWEEN',\n              parentGroup: '',\n              property: 'commencement_time_',\n              relation: 'OR',\n              value: arr\n            }, {\n              group: 'createTimeSubGroup',\n              operation: 'LESS_EQUAL',\n              parentGroup: 'createTimeGroup',\n              property: 'commencement_time_',\n              relation: 'AND',\n              value: arr[1]\n            }, {\n              group: 'createTimeSubGroup',\n              operation: 'LESS',\n              parentGroup: 'createTimeGroup',\n              property: 'PROJECT_STATUS_',\n              relation: 'AND',\n              value: '12'\n            });\n          } else if (i == 'projectName') {\n            query.push({\n              group: 'advance',\n              operation: 'LIKE',\n              property: i,\n              relation: 'AND',\n              value: search[i]\n            });\n          } else {\n            query.push({\n              group: 'advance',\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        (_param$querys = param.querys).push.apply(_param$querys, query);\n      } else {\n        param.querys = query;\n      }\n      this.$http.post('${cqxy}/biz/ledger/investment/v1/page', param).then(function (resp) {\n        //  <!-- engineeringCost建安费用(万元)  twoTypePrice二类费用(万元)  landPrice土地费用(万元) actualSettlementAmount安全文明施工费-->\n        var response = resp.data.value;\n        // response.data.forEach(item => {\n        //   if(item.engineeringCost && item.engineeringCost!=='0'){\n        //     item.engineeringCost= FormMath.tofixed(\n        //       FormMath.toNumber(item.engineeringCost) / 10000,\n        //       2\n        //     )\n        //   }\n        //   // if(item.twoTypePrice && item.twoTypePrice!=='0'){\n        //   //   item.twoTypePrice= FormMath.tofixed(\n        //   //     FormMath.toNumber(item.twoTypePrice) / 10000,\n        //   //     2\n        //   //   )\n        //   // }\n        //   if(item.landPrice!==0){\n        //      item.landPrice= FormMath.tofixed(\n        //       FormMath.toNumber(item.landPrice) / 10000,\n        //       2\n        //     )\n        //   }\n        //   item.monthCount.forEach(item1 => {\n        //     item1.currentInvestment = FormMath.tofixed(\n        //       FormMath.toNumber(item1.currentInvestment) / 10000,\n        //       2\n        //     )\n        //     item1.totalInvestment = FormMath.tofixed(\n        //       FormMath.toNumber(item1.totalInvestment) / 10000,\n        //       2\n        //     )\n        //   })\n        // })\n        var data = response.data;\n        _this4.total.totalEstimate = _this4.calculationTotal(data, 'totalEstimate');\n        _this4.total.completedEstimate = _this4.calculationTotal(data, 'completedEstimate');\n        _this4.total.currentEstimate = _this4.calculationTotal(data, 'currentEstimate');\n        _this4.total.engineeringCost = _this4.calculationTotal(data, 'engineeringCost');\n        _this4.total.twoTypePrice = _this4.calculationTotal(data, 'twoTypePrice');\n        _this4.total.landPrice = _this4.calculationTotal(data, 'landPrice');\n        _this4.total.adminPaymentAmount = _this4.calculationTotal(data, 'adminPaymentAmount');\n        if (data.length !== 0) {\n          data.push(_this4.total);\n        }\n        _this4.data = data;\n        _this4.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n        _this4.getYearTotal();\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    },\n    landManager: function landManager(id) {\n      this.landManagerDialog.form = {\n        landUnit: 1\n      };\n      this.landManagerDialog.form.id = id;\n      this.landManagerDialog.show = true;\n    },\n    handleLandManagerSubmit: function handleLandManagerSubmit() {\n      var _this5 = this;\n      this.landManagerDialog.loading = true;\n      var params = this.landManagerDialog.form;\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/updateLandCostById', params).then(function (res) {\n        if (res.data.state) {\n          _this5.$message.success(res.data.message);\n          _this5.landManagerDialog.show = false;\n          _this5.$refs.AtTable.load();\n        } else {\n          _this5.$message.error(res.data.message);\n        }\n        _this5.landManagerDialog.loading = false;\n      }).catch(function (err) {\n        _this5.landManagerDialog.loading = false;\n        _this5.$message.error(err.data.message);\n      });\n    },\n    // handleCheckAllChange(val) {\n    //   this.checkedMonthsList = val ? monthOptions : []\n    //   this.checkedMonths = val ? monthOptions : []\n    //   this.isIndeterminate = false\n    //   this.$refs.AtTable.load()\n    //   this.$nextTick(() => {\n    //     this.$refs.AtTable.doLayout()\n    //   })\n    // },\n    // handleCheckedMonthsChange(value) {\n    //   value = value && value.sort(this.sortNumber)\n    //   this.checkedMonthsList = value\n    //   let checkedCount = value.length\n    //   this.checkAll = checkedCount === this.months.length\n    //   this.isIndeterminate =\n    //     checkedCount > 0 && checkedCount < this.months.length\n    //   this.$refs.AtTable.load()\n    //   this.$nextTick(() => {\n    //     this.$refs.AtTable.doLayout()\n    //   })\n    // },\n    sortNumber: function sortNumber(a, b) {\n      return a - b;\n    },\n    // getIsShowMonth(arr) {\n    //   let arr_ = [new Date().getMonth(), new Date().getMonth() + 1]\n    //   return arr.length !== 0 ? arr : this.isIndeterminate ? arr_ : []\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.projectName === '合计') {\n        return 'table-column-hidden';\n      }\n    }\n  }\n};",null]}