{"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\\blockageCardTransfer\\BlockPointConfire.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\blockageCardTransfer\\BlockPointConfire.vue","mtime":1687156009951},{"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/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 OrgSelectDialog from '@/components/dialog/OrgSelectDialog.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\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: 'BlockPointConfire',\n components: {\n pagination: pagination,\n FileList: FileList,\n filePreview: filePreview,\n OrgSelectDialog: OrgSelectDialog,\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 multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n property: 'r.status_',\n relation: 'AND',\n value: 3\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n activeCollapse1: ['1', '2', '3'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n dialogForm_: {},\n disabled: false,\n // 是否禁止输入输入\n isShowBtn: false,\n // 是否显示底部按钮\n isTag: false,\n // 是否显示选择填写需求状态\n rules: {\n propulsiveStatus: {\n required: true,\n message: '请选择推进状态',\n trigger: 'blur'\n }\n }\n };\n },\n created: function created() {\n this.loadData(this.params);\n },\n methods: {\n // 撤回\n demandWithdrawal: function demandWithdrawal(row) {\n var _this = this;\n\n this.tableLoading = true;\n var formData = new FormData();\n formData.append('id', row.id);\n req.post(portal + '/bizBlockageCardTransfer/v1/queryById', formData).then(function (res) {\n if (res.data.records && res.data.records.length) {\n _this.dialogForm_ = res.data;\n\n _this.handleVerify(3);\n }\n\n _this.tableLoading = false;\n });\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 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 //获取数据\n loadData: function loadData(params) {\n var _this2 = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizBlockageCardTransfer/v1/queryAudit?isAffirm=true', 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,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n // 审核通过\n handleVerify: function handleVerify(status) {\n var _this3 = this;\n\n var msg = status == 5 ? '通过' : '撤回';\n var data = this.dialogForm_.records[0];\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.$confirm(\"\\u786E\\u8BA4\".concat(msg, \"\\u5417\\uFF1F\"), _this3.$t('common.tips'), {\n confirmButtonText: _this3.$t('common.confirm'),\n cancelButtonText: _this3.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this3.loading = true;\n data.status = status;\n\n if (status === 3) {\n _this3.tableLoading = true;\n data.approvalResults = 2;\n }\n\n req.post(portal + '/bizBlockageCardTransferRecord/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this3.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n } else {\n _this3.$message.error(\"\".concat(msg, \"\\u5931\\u8D25\"));\n }\n\n _this3.loading = false;\n _this3.dialog.visible = false;\n\n _this3.loadData(_this3.params);\n }).catch(function () {\n _this3.loading = false;\n\n _this3.$message.error(\"\".concat(msg, \"\\u5931\\u8D25\"));\n });\n });\n }\n });\n },\n // 审核驳回\n handleReject: function handleReject() {\n var _this4 = this;\n\n var data = this.dialogForm_.records[0];\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 _this4.$refs.rejectInfoDialog.open('/bizBlockageCardTransferRecord/v1/updateAuditStatus', 4); // data.status = 4\n // this.loading = true\n // req\n // .post(\n // portal + '/bizBlockageCardTransferRecord/v1/updateAuditStatus',\n // data\n // )\n // .then(res => {\n // if (res.data.state) {\n // this.$message.success('驳回成功')\n // } else {\n // this.$message.error('驳回失败')\n // }\n // this.loading = false\n // this.dialog.visible = false\n // this.loadData(this.params)\n // })\n\n });\n },\n // 打标签\n handleTagClick: function handleTagClick(row) {\n var _this5 = this;\n\n this.tableLoading = true;\n var formData = new FormData();\n formData.append('id', row.id);\n req.post(portal + '/bizBlockageCardTransfer/v1/queryById', formData).then(function (res) {\n _this5.tableLoading = false;\n var data = res && res.data || {};\n\n if (data.records && (data.records.length == 0 || data.records[0].status != 3)) {\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 _this5.dialogForm_ = data;\n _this5.disabledDetils = true;\n _this5.isShowBtn = false;\n _this5.isTag = false;\n _this5.disabled = false;\n _this5.dialog.visible = true;\n\n if (_this5.dialogForm_.records && _this5.dialogForm_.records.length) {\n _this5.hisData = _this5.dialogForm_.records.filter(function (item) {\n return item.isHis == true;\n });\n _this5.currentUpadte = _this5.dialogForm_.records.filter(function (item) {\n return item.isHis == false;\n });\n\n if (_this5.currentUpadte.length) {\n _this5.$set(_this5.dialogForm, 'propulsiveStatus', _this5.currentUpadte[0].propulsiveStatus + '');\n\n _this5.$set(_this5.dialogForm, 'propulsiveDetailed', _this5.currentUpadte[0].propulsiveDetailed);\n\n _this5.$set(_this5.dialogForm, 'existingProblems', _this5.currentUpadte[0].existingProblems);\n }\n }\n\n if (_this5.hisData.length) {\n var dictData = utils.getDictItemsFromCache('xqzt');\n var status = _this5.hisData[0].propulsiveStatus;\n dictData.forEach(function (item) {\n if (item.value < status) {\n item.disabled = true;\n }\n });\n _this5.propulsiveStatusOptions = dictData;\n }\n });\n } else {\n _this5.dialogForm_ = data;\n _this5.disabledDetils = false;\n _this5.isTag = true;\n _this5.isShowBtn = true;\n _this5.disabled = true;\n _this5.dialog.visible = true;\n\n if (_this5.dialogForm_.records && _this5.dialogForm_.records.length) {\n _this5.hisData = _this5.dialogForm_.records.filter(function (item) {\n return item.isHis == true;\n });\n _this5.currentUpadte = _this5.dialogForm_.records.filter(function (item) {\n return item.isHis == false;\n });\n }\n\n if (_this5.hisData.length) {\n var dictData = utils.getDictItemsFromCache('xqzt');\n var status = _this5.hisData[0].propulsiveStatus;\n dictData.forEach(function (item) {\n if (item.value < status) {\n item.disabled = true;\n }\n });\n _this5.propulsiveStatusOptions = dictData;\n }\n\n if (_this5.currentUpadte.length) {\n _this5.$set(_this5.dialogForm, 'propulsiveStatus', _this5.currentUpadte[0].propulsiveStatus + '');\n\n _this5.$set(_this5.dialogForm, 'propulsiveDetailed', _this5.currentUpadte[0].propulsiveDetailed);\n\n _this5.$set(_this5.dialogForm, 'existingProblems', _this5.currentUpadte[0].existingProblems);\n }\n }\n });\n },\n //审核\n handleDbClick: function handleDbClick(data) {\n this.fileList = data.files || [];\n this.isTag = false;\n this.isShowBtn = true;\n this.disabled = true;\n this.dialogForm_ = data;\n this.dialog.visible = true;\n },\n // 详情\n handleDetils: function handleDetils(row) {\n this.fileList = row.files || [];\n this.$refs.form.clearValidate();\n this.disabledDetils = true;\n this.dialog.visible = true;\n this.dialogForm = row;\n this.fileList = row.files || [];\n this.isTag = false;\n this.isShowBtn = false;\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n\n if (!obj.status) {\n obj.status = 3;\n this.operation = 'EQUAL';\n }\n\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n if (typeof obj[i] == 'string') {\n querys.push({\n group: 'main',\n operation: i == 'blockageCardTopic' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else if (i == 'status') {\n querys.push({\n group: 'main',\n operation: this.operation,\n property: 'r.' + i + '_',\n relation: 'AND',\n value: obj[i]\n });\n } else {\n querys.push({\n group: 'main',\n operation: 'BETWEEN',\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) {\n // 已办\n this.operation = 'IN';\n this.searchForm.status = [4, 5];\n } else {\n // 代办\n this.operation = 'EQUAL';\n this.searchForm.status = 3;\n }\n\n this.handleSearch();\n },\n handleFilter: function handleFilter(value, row, column) {\n var property = column['property'];\n return row[property] == value;\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n this.hisData = [];\n this.currentUpadte = [];\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n }\n};",null]}