{"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\\MajorReformProjects\\ExperPromotion\\ExperPromotionConfirm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ExperPromotion\\ExperPromotionConfirm.vue","mtime":1683192779286},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nexport default {\n name: 'ExperPromotionConfirm',\n components: {\n pagination: pagination,\n filePreview: filePreview,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n reqLoading: false,\n showDetails: false,\n multipleSelection: [],\n projectInfo: {\n pilotExperiencePushList: []\n },\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n property: 'a.STATUS_',\n relation: 'AND',\n value: [1, 2, 3]\n }]\n },\n formVisible: false,\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {\n 'a.STATUS_': null\n },\n // 顶部搜索对象\n activeCollapse: ['1', '2', '3', '4'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n hisData: null,\n disabled: false,\n // 是否禁止输入输入\n isShowBtn: false,\n // 是否显示底部按钮\n rules: {},\n verifyling: false,\n rejecting: false,\n switchStatus: false\n };\n },\n created: function created() {\n this.loadData(this.params);\n },\n methods: {\n getDictItemsFromCache: function getDictItemsFromCache(code) {\n var arr = utils.getDictItemsFromCache(code);\n arr = arr.map(function (item) {\n return {\n text: item.name,\n value: item.value\n };\n });\n return arr;\n },\n handleFilter: function handleFilter(value, row, column) {\n var property = column['property'];\n return row[property] == value;\n },\n // 责任单位选择\n handleSelectOrg: function handleSelectOrg() {\n this.$refs.orgSeleect.open();\n },\n handleOrgSelect: function handleOrgSelect(row) {\n this.dialogForm = _objectSpread(_objectSpread({}, this.dialogForm), {}, {\n responsibleUnitId: row[0].id,\n responsibleUnitName: row[0].name,\n responsibleUnitCode: row[0].code,\n responsibleUnitGrade: row[0].grade\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this = this;\n\n this.tableLoading = true;\n req.post(portal + '/majorProjects/bizPilotProjectFill/v1/queryPageFillList?flowType=3&isAffirm=false', params).then(function (res) {\n _this.tableLoading = false;\n var data = res && res.data || {};\n _this.tableData = data.rows || [];\n _this.pageResult = {\n page: data.page || 1,\n pageSize: data.pageSize || 20,\n total: data.total\n };\n });\n },\n // 审核通过\n handleVerify: function handleVerify() {\n var _this2 = this;\n\n this.$confirm('确认通过吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this2.verifyling = true;\n _this2.loading = true;\n _this2.projectInfo.status = 3;\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', _this2.projectInfo).then(function (res) {\n if (res.data.state) {\n _this2.$message.success('通过成功');\n } else {\n _this2.$message.error('通过失败');\n }\n\n _this2.verifyling = false;\n _this2.loading = false;\n _this2.formVisible = false;\n\n _this2.loadData(_this2.params);\n });\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this3 = 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 _this3.$refs.rejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this4 = this;\n\n console.log(approvalComments, 'approvalComments');\n this.reqLoading = true;\n var data = this.projectInfo;\n data.status = 2;\n data.approvalComments = approvalComments;\n console.log(data, 'data');\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this4.$message.success('审核驳回成功');\n\n _this4.handleClose();\n\n _this4.loadData(_this4.params);\n } else {\n _this4.$message.success('审核驳回失败');\n }\n\n _this4.reqLoading = false;\n });\n },\n // 审核\n handleDbClick: function handleDbClick(row) {\n var _this5 = this;\n\n this.dialog.title = '审核';\n this.dialogForm = row;\n this.formVisible = true;\n this.reqLoading = true;\n this.hisData = {\n pilotExperiencePushList: []\n };\n var data = [];\n var param = {\n querys: [],\n pageBean: {\n pageSize: 2\n },\n sorter: [{\n direction: 'DESC',\n property: 'lastTime'\n }]\n };\n param.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectId',\n relation: 'AND',\n value: row.projectId\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'flowType',\n relation: 'AND',\n value: 3\n });\n var url = '/majorProjects/bizPilotExperiencePush/v1/queryHistory';\n req.post(portal + url, param).then(function (res) {\n if (res.data.state) {\n data = res.data.value;\n console.log(data, 'data'); // data.forEach(item => {\n // if (item.status == 5 || item.status == 5) {\n // return (this.hisData = item)\n // } else {\n // return (this.projectInfo = item)\n // }\n // })\n\n _this5.projectInfo = data[0];\n _this5.hisData = data[1] ? data[1] : null;\n _this5.projectInfo.approvalCommentsList = _this5.projectInfo.approvalComments ? _this5.projectInfo.approvalComments.split('$_$') : [];\n\n if (_this5.hisData && _this5.hisData.approvalComments) {\n _this5.hisData.approvalCommentsList = _this5.hisData && _this5.hisData.approvalComments ? _this5.hisData.approvalComments.split('$_$') : [];\n }\n\n if (_this5.projectInfo.pilotExperiencePushList.length == 0) {\n _this5.$confirm('暂未查询到需要审核的数据!', _this5.$t('common.tips'), {\n confirmButtonText: _this5.$t('common.confirm'),\n cancelButtonText: _this5.$t('common.cancel'),\n type: 'info'\n }).then(function () {});\n }\n\n _this5.markLoading = false;\n _this5.reqLoading = false;\n } else {\n _this5.reqLoading = false;\n }\n });\n },\n // 详情\n handleLookDetiles_: function handleLookDetiles_(item) {\n var _this6 = this;\n\n this.formVisible = true;\n this.reqLoading = true;\n this.hisData = {\n pilotExperiencePushList: []\n };\n this.dialog.title = '详情';\n this.dialogForm = item;\n var data = [];\n var param = {\n querys: [],\n pageBean: {\n pageSize: 2\n },\n sorter: [{\n direction: 'DESC',\n property: 'lastTime'\n }]\n };\n param.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectId',\n relation: 'AND',\n value: item.projectId\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'flowType',\n relation: 'AND',\n value: 3\n });\n var url = '/majorProjects/bizPilotExperiencePush/v1/queryHistory';\n req.post(portal + url, param).then(function (res) {\n if (res.data.state) {\n data = res.data.value;\n console.log(data, 'data'); // if (item.status == 5 && data.length > 1) {\n // this.projectInfo = data[0]\n // this.hisData = data[1]\n // } else if (item.status == 5 && data.length <= 1) {\n // this.projectInfo = data[0]\n // this.hisData = {\n // pilotExperiencePushList:[]\n // }\n // } else if (\n // (item.status == 1 ||\n // item.status == 3 ||\n // item.status == 2 ||\n // item.status == 4) &&\n // data.length > 1\n // ) {\n // this.projectInfo = data[0]\n // this.hisData = data[1]\n // } else if (\n // (item.status == 1 ||\n // item.status == 3 ||\n // item.status == 2 ||\n // item.status == 4) &&\n // data.length <= 1\n // ) {\n // this.projectInfo = data[0]\n // this.hisData = {\n // pilotExperiencePushList: []\n // }\n // }\n\n _this6.projectInfo = data[0];\n _this6.hisData = data[1] ? data[1] : null;\n _this6.projectInfo.approvalCommentsList = _this6.projectInfo.approvalComments ? _this6.projectInfo.approvalComments.split('$_$') : [];\n\n if (_this6.hisData && _this6.hisData.approvalComments) {\n _this6.hisData.approvalCommentsList = _this6.hisData && _this6.hisData.approvalComments ? _this6.hisData.approvalComments.split('$_$') : [];\n }\n\n _this6.markLoading = false;\n _this6.reqLoading = false;\n } else {\n _this6.reqLoading = false;\n }\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm; // if (!obj['a.STATUS_']) {\n // obj['a.STATUS_'] = 1\n // this.operation = 'EQUAL'\n // }\n\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'a.STATUS_',\n relation: 'AND',\n value: [1, 2, 3]\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n if (i == 'a.STATUS_') {\n querys.push({\n group: 'main',\n operation: this.operation,\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else {\n querys.push({\n group: 'main',\n operation: i == 'projectName' || i == 'leader' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n // 页面中swatch回调事件\n handleSwitch: function handleSwitch(bol) {\n this.switchStatus = bol;\n\n if (bol == true) {\n // 已办\n var searchForm = {\n 'a.STATUS_': [2, 3, 4, 5]\n };\n this.operation = 'IN';\n this.searchForm['a.STATUS_'] = searchForm['a.STATUS_'];\n } else {\n // 代办\n var _searchForm = {\n 'a.STATUS_': 1\n };\n this.operation = 'EQUAL';\n this.searchForm['a.STATUS_'] = _searchForm['a.STATUS_'];\n }\n\n this.handleSearch();\n },\n // 弹层关闭\n handleClose: function handleClose() {\n this.formVisible = false;\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params = _objectSpread(_objectSpread({}, this.params), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params = _objectSpread(_objectSpread({}, this.params), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n }\n};",null]}