{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\InstanceDetail.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\InstanceDetail.vue","mtime":1675071992835},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 flow from \"@/api/flow.js\";\nimport utils from \"@/hotent-ui-util.js\";\nimport req from \"@/request.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\nimport InstanceModifyOpinion from \"@/views/flow/InstanceModifyOpinion.vue\";\n\nvar FlowImage = function FlowImage() {\n return import(\"@/components/flow/FlowImage.vue\");\n};\n\nimport { Base64 } from \"js-base64\";\nimport { mapState, mapActions } from \"vuex\";\nexport default {\n name: \"instance-detail\",\n props: [\"instance\"],\n components: {\n EipUserDialog: EipUserDialog,\n InstanceModifyOpinion: InstanceModifyOpinion,\n FlowImage: FlowImage,\n htmlSrc: \"\"\n },\n data: function data() {\n return {\n activeName: \"approvalManage\",\n dialogVisible: false,\n modifyDialogVisible: false,\n opinionData: [],\n statusConf: {\n start: {\n val: \"提交\",\n color: \"#2761ff\"\n },\n agree: {\n val: \"通过\",\n color: \"#2761ff\"\n },\n awaiting_check: {\n val: \"待审批\",\n color: \"#2761ff\"\n },\n feedback: {\n val: \"沟通反馈\",\n color: \"#2761ff\"\n },\n transAgree: {\n val: \"征询回复\",\n color: \"#2761ff\"\n },\n reject: {\n val: \"驳回\",\n color: \"#2761ff\"\n },\n admin_agree: {\n val: \"通过\",\n color: \"#2761ff\"\n },\n admin_manual_end: {\n val: \"结束\",\n color: \"#fd0d00\"\n },\n revoker: {\n val: \"撤回\",\n color: \"#fd0d00\"\n },\n copyto_reply: {\n val: \"抄送回复\",\n color: \"rgba(0,0,0,0.65)\"\n },\n end: {\n val: \"结束\",\n color: \"rgba(0,0,0,0.65)\"\n },\n skip: {\n val: \"跳过\",\n color: \"rgba(0,0,0,0.65)\"\n },\n manual_end: {\n val: \"人工终止\",\n color: \"#fd0d00\"\n },\n reSubmit: {\n val: \"驳回提交\",\n color: \"#2761ff\"\n },\n flow_turnover: {\n val: \"流程移交\",\n color: \"#2761ff\"\n }\n },\n curModifyIndex: \"-1\",\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n curRow: {}\n };\n },\n computed: mapState({\n account: function account(state) {\n return state.login.currentUser.account;\n },\n token: function token(state) {\n return state.login.currentUser.token;\n },\n htmlSrc: function htmlSrc(state) {\n return window.context.front + \"/formManage/\" + this.instance.id + \"/manage?token=\" + this.token // Base64.encode(this.account)\n ;\n },\n deleteUrl: function deleteUrl() {\n return window.context.bpmRunTime + \"/bpm/boDataModifyRecord/v1/remove\";\n }\n }),\n methods: {\n openModifyDetail: function openModifyDetail(row) {\n this.curRow = row;\n this.modifyDialogVisible = true;\n },\n loadRecordData: function loadRecordData(param, cb) {\n var _this = this;\n\n var this_ = this;\n this.$http.post(window.context.bpmRunTime + \"/bpm/boDataModifyRecord/v1/listJson\", param).then(function (data) {\n var response = data.data;\n _this.data = response.rows;\n _this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n modifyOpinion: function modifyOpinion(row, index) {\n this.curModifyIndex = index;\n this.$refs.instanceModifyOpinion.show(row);\n },\n handleModifySuccess: function handleModifySuccess(row) {\n this.opinionData.splice(this.curModifyIndex, 1, row);\n },\n handleStatus: function handleStatus(row) {\n if (row && row.status && this.statusConf[row.status]) {\n return this.statusConf[row.status];\n }\n\n return {\n val: row.statusVal,\n color: \"#2761ff\"\n };\n },\n dialogCancle: function dialogCancle(dialogVisible) {\n this[dialogVisible] = false;\n },\n loadData: function loadData(param, cb) {\n var this_ = this;\n req.get(window.context.bpmRunTime + \"/runtime/instance/v1/instanceFlowOpinions?instId=\" + this.instance.id).then(function (response) {\n this_.opinionData = response.data;\n }).finally(function () {\n return cb();\n });\n },\n handleCommand: function handleCommand(params) {\n switch (params.command) {\n case \"detail\":\n //查看\n this.showDialog(params.row);\n break;\n\n case \"restore\":\n //恢复\n break;\n\n case \"isForbidden\":\n //挂起/取消挂起\n this.forbiddenOrUnForbiddenInst(params);\n break;\n\n default:\n break;\n }\n },\n forbiddenOrUnForbiddenInst: function forbiddenOrUnForbiddenInst(row) {\n flow.forbiddenOrUnForbiddenInst(row).then(function (response) {\n if (response.state) {\n row.isForbidden = row.isForbidden == \"1\" ? \"0\" : \"1\";\n }\n });\n },\n handleDetele: function handleDetele(row, index) {\n var html = \"';\n var this_ = this;\n this.$alert(html, \"请输入删除原因\", {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == \"confirm\") {\n var se = document.getElementById(\"approvalLeaderSelect\");\n\n if (!se.value) {\n this.$message.warning(\"请输入原因\");\n } else {\n req.post(window.context.bpmRunTime + \"/runtime/instance/v1/delFlowOpinions?id=\" + row.id + \"&adminpose=\" + row.adminInterPose + \"&status=\" + row.status, se.value).then(function (rep) {\n var data = rep.data;\n\n if (data.state) {\n this_.opinionData.splice(index, 1);\n instance.close();\n this_.$message.success(\"删除成功\");\n } else {\n this_.$message.fail(data.message);\n }\n });\n }\n } else {\n instance.close();\n }\n }\n }).catch(function () {});\n }\n }\n};",null]}