{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\AcceptanceTimeAudit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\AcceptanceTimeAudit.vue","mtime":1693770067191},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 _ from 'lodash';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport pilot from '@/api/pilotprojects';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'AcceptanceTimeAudit',\n components: {\n pagination: pagination,\n FileList: FileList,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n detailDialog: false,\n activeCollapse: ['1', '2'],\n markLoading: false,\n auditStatus: false,\n searchForm: {},\n tableMaxHeight: 400,\n tableData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n reqData: {\n querys: [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'iter.STATUS_',\n relation: 'AND',\n value: [1]\n }],\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n tableLoading: false,\n primaryData: {},\n districtName: [],\n title: '审核',\n updateInfo: {},\n reqLoading: false,\n pilotList: [],\n timeList: []\n };\n },\n created: function created() {\n this.getData(this.reqData);\n this.setStatusOptions('ggsdshzt', 0);\n },\n methods: {\n handleClose: function handleClose() {\n this.primaryData = {};\n this.updateInfo = {};\n this.pilotList = [], this.timeList = [];\n this.detailDialog = false;\n },\n openDialog: function openDialog(item, title) {\n var _this = this;\n\n this.title = title;\n this.reqLoading = true;\n var arr = [this.gteProjrctInfo(item.pilotId), this.getIds(item.pilotId, 'pilot'), this.getEntityById(item.id), this.getIds(item.id, 'time')];\n Promise.all(arr).then(function () {\n _this.reqLoading = false;\n });\n this.detailDialog = true;\n },\n // 根据id查询项目信息\n gteProjrctInfo: function gteProjrctInfo(id) {\n var _this2 = this;\n\n return new Promise(function (reslove) {\n pilot.getFindById(id, function (res) {\n _this2.primaryData = res;\n _this2.districtName = res.invs ? res.invs.map(function (val) {\n return val.unitName;\n }) : [];\n reslove();\n });\n });\n },\n // 根据id查询修改验收时间信息\n getEntityById: function getEntityById(id) {\n var _this3 = this;\n\n return new Promise(function (reslove) {\n pilot.getEntityById(id, function (res) {\n _this3.updateInfo = res;\n _this3.updateInfo.approvalComments = res.approvalComments && res.approvalComments.split('$_$');\n reslove();\n });\n });\n },\n // 根据id查询附件信息\n getIds: function getIds(id, type) {\n var _this4 = this;\n\n return new Promise(function (resolve) {\n var data = JSON.parse(JSON.stringify(_this4.reqData));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'biz_id_',\n relation: 'AND',\n value: id\n }];\n pilot.getIds(data, function (res) {\n var arr = [];\n res.rows.forEach(function (item) {\n var id = item.id,\n fileName = item.fileName,\n extensionName = item.extensionName;\n var url = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(id);\n var obj = {\n id: id,\n name: \"\".concat(fileName, \".\").concat(extensionName),\n url: url,\n fileType: extensionName\n };\n arr.push(obj);\n });\n type === 'pilot' ? _this4.pilotList = arr : _this4.timeList = arr;\n resolve();\n });\n });\n },\n // 审核通过\n handleAudit: function handleAudit() {\n var _this5 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u5BA1\\u6838\\u901A\\u8FC7\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this5.markLoading = true;\n var _this5$updateInfo = _this5.updateInfo,\n id = _this5$updateInfo.id,\n iterTimePeriod = _this5$updateInfo.iterTimePeriod,\n iterAcceptanceTime = _this5$updateInfo.iterAcceptanceTime;\n var data = {\n id: id,\n pilotId: _this5.primaryData.id,\n iterTimePeriod: iterTimePeriod,\n iterAcceptanceTime: iterAcceptanceTime,\n status: 3\n };\n pilot.auditTime(data, function (res) {\n if (res.state) {\n _this5.$message.success('审核通过成功');\n\n _this5.handleClose();\n\n _this5.handleSearch(1);\n }\n\n _this5.markLoading = false;\n });\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this6 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this6.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this7 = this;\n\n this.markLoading = true;\n var _this$updateInfo = this.updateInfo,\n id = _this$updateInfo.id,\n iterTimePeriod = _this$updateInfo.iterTimePeriod,\n iterAcceptanceTime = _this$updateInfo.iterAcceptanceTime;\n var data = {\n id: id,\n pilotId: this.primaryData.id,\n iterTimePeriod: iterTimePeriod,\n iterAcceptanceTime: iterAcceptanceTime,\n status: 2,\n approvalComments: approvalComments\n };\n pilot.auditTime(data, function (res) {\n if (res.state) {\n _this7.$message.success('审核驳回成功');\n\n _this7.handleClose();\n }\n\n _this7.markLoading = false;\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n getTableData: function getTableData(val) {\n if (this.auditStatus != val) {\n this.auditStatus = val;\n this.getStatusList();\n }\n },\n getStatusList: _.debounce(function () {\n this.reqData.pageBean.page = 1;\n this.handleSearch(1);\n }, 500),\n //获取数据\n getData: function getData(data) {\n var _this8 = this;\n\n this.tableLoading = true;\n pilot.getAcceptanceTimeList(data, function (res) {\n _this8.pageResult.total = res.total;\n _this8.tableLoading = false;\n _this8.tableData = res.rows;\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch(page) {\n var _this9 = this;\n\n this.tableLoading = true;\n var data = JSON.parse(JSON.stringify(this.reqData));\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n var querys = [{\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'iter.STATUS_',\n relation: 'AND',\n value: this.auditStatus ? [2, 3] : [1]\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'm.PILOT_PROJECT_NAME_' || i == 'm.DOC_NO_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n data.querys = querys;\n data.pageBean.page = page;\n this.pageResult.page = page;\n\n if (querys.length) {\n pilot.getAcceptanceTimeList(data, function (res) {\n _this9.tableData = res.rows;\n _this9.pageResult.total = res.total;\n _this9.tableLoading = false;\n });\n } else {\n this.getData(this.reqData);\n }\n },\n // 分页\n handleCurrentChange: function handleCurrentChange(page) {\n this.reqData.pageBean.page = page;\n this.handleSearch(page);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.reqData.pageBean.pageSize = pageSize;\n this.handleSearch(1);\n }\n }\n};",null]}