{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web-prod\\src\\views\\ProcessManagement\\ScheduleManagement\\administrativePay.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\src\\views\\ProcessManagement\\ScheduleManagement\\administrativePay.vue","mtime":1703133852762},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\babel.config.js","mtime":1667333346259},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\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\nimport ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue';\nimport utils from '@/utils.js';\nimport req from '@/request.js';\nvar BigNumber = require('bignumber.js');\nexport default {\n name: 'administrativePay',\n components: {\n ProjectInfoDialog: ProjectInfoDialog\n },\n data: function data() {\n return {\n total: {\n projectName: '合计',\n paysName: '----',\n paysType: '----',\n paysValue: 0,\n paysDate: '----',\n remarks: '----'\n },\n selected: {\n numbers: 0,\n money: '0'\n },\n showType: false,\n rules: {\n projectName: {\n required: true,\n message: '请选择项目名称',\n trigger: 'blur'\n },\n paysName: {\n required: true,\n message: '请输入缴费名称',\n trigger: 'blur'\n },\n paysType: {\n required: true,\n message: '请选择缴费类型',\n trigger: 'blur'\n },\n paysValue: {\n required: true,\n message: '请输入缴费金额',\n trigger: 'blur'\n },\n paysDate: {\n required: true,\n message: '请输入缴费日期',\n trigger: 'blur'\n }\n },\n form: {\n paysName: '',\n paysValue: '',\n paysType: '',\n paysDate: '',\n remarks: '',\n accessoryInfo: [] //附件信息\n },\n\n loading: false,\n searchForm: {\n paysName: ''\n },\n dialogTitle: '行政缴费',\n dialogVisible: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n };\n },\n computed: {\n deleteUrl: function deleteUrl() {\n return window.context.cqxy + '/biz/contract/administrativePayment/v1/delete';\n }\n },\n methods: {\n changeType: function changeType(value, obj) {\n if (value == '其它费用') {\n this.showType = true;\n this.rules.paysType.message = '请输入缴费类型';\n }\n },\n handleSelectProject: function handleSelectProject(data) {\n this.form.projectName = data.projectName;\n this.form.projectId = data.id;\n },\n handleFocusProject: function handleFocusProject() {\n this.$refs.project.open();\n },\n loadData: function loadData(param, cb) {\n var _this = this;\n var query = [];\n var search = {\n pays_name_: this.searchForm.paysName\n };\n for (var i in search) {\n if (search[i]) {\n query.push({\n group: 'defaultQueryGroup',\n operation: 'LIKE',\n property: 'pays_name_',\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, query);\n } else {\n param.querys = query;\n }\n this.$http.post('${cqxy}/biz/contract/administrativePayment/v1/query', param).then(function (resp) {\n var response = resp.data;\n _this.selected = {\n numbers: 0,\n money: '0'\n };\n var data = response.rows;\n var total = _this.calculationTotal(data, 'paysValue');\n _this.total.paysValue = total;\n if (data.length !== 0) {\n data.push(_this.total);\n }\n _this.data = data;\n _this.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 handleAdd: function handleAdd() {\n this.dialogVisible = true;\n this.form = {\n projectName: this.$route.params.projectName,\n projectId: this.$route.params.id,\n paysName: '',\n paysValue: '',\n paysDate: '',\n remarks: '',\n accessoryInfo: []\n };\n this.showType = false;\n },\n handleSelect: function handleSelect(selection) {\n selection.forEach(function (item, index) {\n if (item.projectName === '合计') {\n selection.splice(index, 1);\n }\n });\n this.selected.numbers = selection.length;\n var total = this.calculationTotal(selection, 'paysValue');\n this.selected.money = total;\n },\n handleDialogCancel: function handleDialogCancel() {\n this.dialogVisible = false;\n },\n handleDialogSubmit: function handleDialogSubmit() {\n var _this2 = this;\n this.$refs.form.validate(function (valid) {\n if (valid) {\n if (_this2.form.accessoryInfo && _this2.form.accessoryInfo.length > 0) {\n _this2.form.accessoryInfo.forEach(function (item) {\n if (item.id) {\n delete item.id;\n }\n });\n var mth = 'post';\n if (_this2.form.id) {\n mth = 'put';\n } else {\n mth = 'post';\n }\n _this2.$http[mth]('${cqxy}/biz/contract/administrativePayment/v1/', _this2.form).then(function (res) {\n if (res.data.state) {\n _this2.$message.success('保存成功');\n _this2.dialogVisible = false;\n _this2.$refs.AtTable.load();\n }\n });\n } else {\n _this2.$message.warning('请上传相关发票');\n }\n }\n });\n },\n handleRowDBClick: function handleRowDBClick(data) {\n this.form = data;\n this.dialogVisible = true;\n },\n handelSearch: function handelSearch() {\n this.$refs.AtTable.load();\n },\n handleReset: function handleReset() {\n this.searchForm.paysName = '';\n this.$refs.AtTable.load();\n },\n handleFile: function handleFile(file) {\n this.form.accessoryInfo = file;\n },\n handleBack: function handleBack() {\n this.$router.push({\n name: 'ProjectFlowChart',\n params: {\n id: this.$route.params.id,\n alias: 'contractInformation'\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.projectName === '合计') {\n return 'table-column-hidden';\n }\n }\n }\n};",null]}