{"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\\ExperPromotionReview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\ExperPromotion\\ExperPromotionReview.vue","mtime":1716288148563},{"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 _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\n\nvar _methods;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport ExperHisUpDate from \"./components/ExperHisUpDate.vue\";\nimport moment from 'moment';\nexport default {\n name: 'ExperPromotionConfirm',\n components: {\n pagination: pagination,\n filePreview: filePreview,\n RejectInfoBlockDialog: RejectInfoBlockDialog,\n ExperHisUpDate: ExperHisUpDate\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n activeName: 'new',\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n reqLoading: false,\n showDetails: false,\n multipleSelection: [],\n projectInfo: {\n pilotExperiencePushList: [],\n approvalCommentsList: []\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: []\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'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n hisData: null,\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n isShowBtn: false,\n // 是否显示底部按钮\n rules: {},\n verifyling: false,\n rejecting: false,\n switchStatus: false,\n tableColumn: []\n };\n },\n created: function created() {\n this.setTableColumn();\n },\n methods: (_methods = {\n handleHisEdit: function handleHisEdit(row) {\n this.$refs.BrandHisUpDate.openForm(row);\n },\n handleClick: function handleClick() {\n this.calcTableHeight(500);\n this.setTableColumn();\n },\n setTableColumn: function setTableColumn() {\n var _this = this;\n\n var column = [{\n label: '牵头市领导',\n width: 90,\n sortable: true,\n prop: 'leader',\n type: 'new'\n }, {\n label: '所属领域',\n width: 160,\n sortable: true,\n prop: 'projectField',\n type: 'new'\n }, {\n label: '所属跑道',\n width: 160,\n sortable: true,\n prop: 'projectRunway',\n type: 'new'\n }, {\n label: '责任单位',\n width: 160,\n sortable: true,\n prop: 'unitName',\n type: 'new'\n }, {\n label: '本次更新时间',\n width: 160,\n sortable: true,\n prop: 'thisTime',\n type: 'new'\n }, {\n label: '推广方式',\n width: 120,\n sortable: true,\n prop: 'promotionType',\n type: 'old'\n }, {\n label: '推广日期',\n width: 160,\n sortable: true,\n prop: 'promotionDate',\n type: 'old'\n }, {\n label: '具体情况简介',\n width: 300,\n sortable: true,\n prop: 'promotionContent',\n type: 'old'\n }];\n this.tableColumn = column.filter(function (item) {\n return item.type === _this.activeName;\n });\n this.params.pageBean.page = 1;\n this.pageResult = {\n page: 1,\n pageSize: this.params.pageBean.pageSize,\n total: 0\n };\n this.handleSearch(1);\n },\n //历史数据查询\n getHistoryData: function getHistoryData(params) {\n var _this2 = this;\n\n this.tableLoading = true;\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/queryHisByPage', params).then(function (res) {\n _this2.tableLoading = false;\n var data = res && res.data || {};\n _this2.tableData = data.rows || [];\n _this2.pageResult = {\n page: data.page || 1,\n pageSize: data.pageSize || 20,\n total: data.total\n };\n });\n }\n }, _defineProperty(_methods, \"handleHisEdit\", function handleHisEdit(row) {\n this.$refs.ExperHisUpDate.openForm(row);\n }), _defineProperty(_methods, \"flushed\", function flushed() {\n this.getHistoryData(this.params);\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"handleFilter\", function handleFilter(value, row, column) {\n var property = column['property'];\n return row[property] == value;\n }), _defineProperty(_methods, \"handleSelectOrg\", function handleSelectOrg() {\n this.$refs.orgSeleect.open();\n }), _defineProperty(_methods, \"getDictName\", function getDictName(code, value) {\n return utils.getDictName(code, value);\n }), _defineProperty(_methods, \"loadData\", function loadData(params) {\n var _this3 = this;\n\n this.tableLoading = true;\n req.post(portal + '/majorProjects/bizPilotProjectFill/v1/queryPageFillList?flowType=3&isAffirm=true', params).then(function (res) {\n _this3.tableLoading = false;\n var data = res && res.data || {};\n _this3.tableData = data.rows || [];\n _this3.pageResult = {\n page: data.page || 1,\n pageSize: data.pageSize || 20,\n total: data.total\n };\n });\n }), _defineProperty(_methods, \"updateSave\", function updateSave() {\n var _this4 = 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 _this4.verifyling = true;\n _this4.loading = true;\n _this4.projectInfo.pilotProjectFill = {\n id: _this4.projectInfo.id,\n projectId: _this4.projectInfo.projectId,\n status: _this4.projectInfo.status\n };\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', _this4.projectInfo).then(function (res) {\n if (res.data.state) {\n _this4.$message.success('修改保存成功');\n } else {\n _this4.$message.error('修改保存失败');\n }\n\n _this4.verifyling = false;\n _this4.loading = false;\n _this4.formVisible = false;\n\n _this4.loadData(_this4.params);\n });\n });\n }), _defineProperty(_methods, \"handleVerify\", function handleVerify() {\n var _this5 = 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 _this5.verifyling = true;\n _this5.loading = true;\n _this5.projectInfo.status = 5;\n _this5.projectInfo.pilotProjectFill = {\n id: _this5.projectInfo.id,\n projectId: _this5.projectInfo.projectId,\n status: 5\n };\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', _this5.projectInfo).then(function (res) {\n if (res.data.state) {\n _this5.$message.success('通过成功');\n } else {\n _this5.$message.error('通过失败');\n }\n\n _this5.verifyling = false;\n _this5.loading = false;\n _this5.formVisible = false;\n\n _this5.handleClose();\n\n _this5.loadData(_this5.params);\n });\n });\n }), _defineProperty(_methods, \"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.RejectInfoBlockDialog.open();\n });\n }), _defineProperty(_methods, \"sendRejectInfo\", function sendRejectInfo(approvalComments) {\n var _this7 = this;\n\n this.reqLoading = true;\n var data = this.projectInfo;\n data.status = 4;\n data.pilotProjectFill = {\n id: data.id,\n projectId: data.projectId,\n status: 4,\n approvalComments: approvalComments\n };\n req.post(portal + '/majorProjects/bizPilotExperiencePush/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this7.$message.success('审核驳回成功');\n\n _this7.handleClose();\n\n _this7.loadData(_this7.params);\n } else {\n _this7.$message.success('审核驳回失败');\n }\n\n _this7.reqLoading = false;\n });\n }), _defineProperty(_methods, \"handleDbClick\", function handleDbClick(row) {\n var _this8 = this;\n\n this.dialog.title = '审核';\n this.dialogForm = row;\n this.formVisible = true;\n this.reqLoading = true;\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) {\n // return (this.hisData = item)\n // } else {\n // return (this.projectInfo = item)\n // }\n // })\n\n _this8.projectInfo = data[0];\n _this8.hisData = data[1] ? data[1] : null;\n _this8.projectInfo.approvalCommentsList = _this8.projectInfo.approvalComments ? _this8.projectInfo.approvalComments.split('$_$') : [];\n\n if (_this8.hisData && _this8.hisData.approvalComments) {\n _this8.hisData.approvalCommentsList = _this8.hisData && _this8.hisData.approvalComments ? _this8.hisData.approvalComments.split('$_$') : [];\n }\n\n if (_this8.projectInfo.pilotExperiencePushList.length == 0) {\n _this8.$confirm('暂未查询到需要审核的数据!', _this8.$t('common.tips'), {\n confirmButtonText: _this8.$t('common.confirm'),\n cancelButtonText: _this8.$t('common.cancel'),\n type: 'info'\n }).then(function () {});\n }\n\n _this8.markLoading = false;\n _this8.reqLoading = false;\n } else {\n _this8.reqLoading = false;\n }\n });\n }), _defineProperty(_methods, \"handleLookDetiles_\", function handleLookDetiles_(item) {\n var _this9 = this;\n\n this.formVisible = true;\n this.reqLoading = true;\n this.dialog.title = item.status > 0 ? '编辑' : '详情';\n this.dialogForm = item;\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: 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 && res.data.value.length) {\n data = res.data.value;\n _this9.projectInfo = data[0];\n _this9.hisData = data[1] ? data[1] : null;\n _this9.projectInfo.approvalCommentsList = _this9.projectInfo && _this9.projectInfo.approvalComments ? _this9.projectInfo.approvalComments.split('$_$') : [];\n\n if (_this9.hisData && _this9.hisData.approvalComments) {\n _this9.hisData.approvalCommentsList = _this9.hisData && _this9.hisData.approvalComments ? _this9.hisData.approvalComments.split('$_$') : [];\n }\n\n _this9.markLoading = false;\n _this9.reqLoading = false;\n } else {\n _this9.reqLoading = false;\n }\n });\n }), _defineProperty(_methods, \"handleSearch\", function handleSearch(time) {\n var obj = this.searchForm; // if (!obj['a.STATUS_']) {\n // obj['a.STATUS_'] = 3\n // this.operation = 'EQUAL'\n // }\n // let status\n // if (time) {\n // status = [3]\n // } else {\n // status = obj['a.STATUS_']\n // }\n\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'a.STATUS_',\n relation: 'AND',\n value: [] //this.activeName === 'new' ? status : [],\n\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: 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.activeName === 'new' ? this.loadData(this.params) : this.getHistoryData(this.params);\n }), _defineProperty(_methods, \"handleSwitch\", function handleSwitch(bol) {\n this.switchStatus = bol;\n\n if (bol == true) {\n // 已办\n var searchForm = {\n 'a.STATUS_': [4, 5]\n };\n this.operation = 'IN';\n this.searchForm['a.STATUS_'] = searchForm['a.STATUS_'];\n } else {\n // 代办\n var _searchForm = {\n 'a.STATUS_': 3\n };\n this.operation = 'EQUAL';\n this.searchForm['a.STATUS_'] = _searchForm['a.STATUS_'];\n }\n\n this.handleSearch();\n }), _defineProperty(_methods, \"handleClose\", function handleClose() {\n this.formVisible = false;\n this.hisData = null;\n this.projectInfo = {\n pilotExperiencePushList: [],\n approvalCommentsList: []\n };\n }), _defineProperty(_methods, \"handleCurrentChange\", function handleCurrentChange(page) {\n this.params.pageBean.page = page;\n this.handleSearch();\n }), _defineProperty(_methods, \"handleSizeChange\", function handleSizeChange(pageSize) {\n this.params.pageBean.pageSize = pageSize;\n this.handleSearch();\n }), _methods)\n};",null]}