{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/activity.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/activity.vue","mtime":1725957645719},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["\n// import { constants } from 'crypto';\nexport default {\n props: [\n \"info\",\n \"isBlockClick\"\n ],\n data: function () {\n return {\n path: window.location.origin + '/obpm/uploads/lib/icon',\n isShowBtn: true,//是否显示按钮\n }\n },\n computed: {\n activeColor() {\n let data = {\n bg: '', //背景色\n btnIcon: '', //图标\n bd: '' //边框颜色\n }\n let currentColor = '';\n if (this.info.colorType) {\n // warning success danger primary info default 为视图按钮的颜色\n if (this.info.colorType == 'warning') {\n currentColor = \"#ec971f\";\n } else if (this.info.colorType == \"success\") {\n currentColor = \"#449d44\";\n } else if (this.info.colorType == \"danger\") {\n currentColor = \"#d9534e\";\n } else if (this.info.colorType == \"primary\") {\n currentColor = \"#337ab7\";\n } else if (this.info.colorType == \"info\") {\n currentColor = \"#5bc0de\";\n } else if (this.info.colorType == \"default\") {\n currentColor = \"\";\n } else {\n currentColor = this.info.colorType;\n }\n }\n switch (this.info.type) {\n case 1: //载入视图\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 2: //创建\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'createBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 3: //删除\n data = {\n bg: currentColor ? currentColor : '#d9534f',\n btnIcon: 'deleteBtnicon',\n bd: currentColor ? currentColor : '#d9534f',\n };\n return data;\n case 4: //保存并启动流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 5: //流程处理\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #40D0FF 0%, #409EFF 100%)',\n btnIcon: 'submitflowicon',\n // bd: currentColor?currentColor:'#337ab7',\n };\n return data;\n case 8: //关闭窗口\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 10: //返回\n data = {\n bg: currentColor ? currentColor : '#fff',\n btnIcon: 'backBtnicon',\n bd: currentColor ? currentColor : '#ccc',\n fc: '#000',\n };\n return data;\n case 11: //保存并返回\n // data = {\n // bg: currentColor?currentColor:'#337ab7',\n // btnIcon: 'queryBtnicon',\n // bd: currentColor?currentColor:'#337ab7',\n // };\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #40D0FF 0%, #409EFF 100%)',\n btnIcon: 'submitflowicon',\n };\n return data;\n case 13: //无\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 14: //网页打印(表单)\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 15: //网页打印含历史\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 16: //导出excel\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'exportToExcelBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 19: //保存草稿不校检\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 18: //清空所有数据\n data = {\n bg: currentColor ? currentColor : '#d9534f',\n btnIcon: 'clearAllBtnicon',\n bd: currentColor ? currentColor : '#d9534f',\n };\n return data;\n case 20: //批量提交\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'batchApproveBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 21: //保存并复制\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 25: //PDF导出\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 26: //文件下载\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'fileDownloadBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 27: //导入excel\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'excelImportBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 28: //电子签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 29: //批量签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'batchSignatureBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 30: //自定义打印\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#5bc0de',\n };\n return data;\n case 33: //流程启动\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 34: //保存\n data = {\n bg: currentColor ? currentColor : 'linear-gradient(90deg, #7AD34F 0%, #67C23A 100%)',\n btnIcon: 'saveBtnicon',\n // bd: currentColor?currentColor:'#5cb85c'\n };\n return data;\n case 36: //网页打印(视图)\n data = {\n bg: currentColor ? currentColor : '#5bc0de',\n btnIcon: 'printViewBtnicon',\n bd: currentColor ? currentColor : '#5bc0de'\n };\n return data;\n case 37: //邮件短信分享\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 42: //保存并新建\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 43: //跳转\n data = {\n bg: currentColor ? currentColor : '#f0ad4e',\n btnIcon: 'jumpToBtnicon',\n bd: currentColor ? currentColor : '#f0ad4e'\n };\n return data;\n case 45: //归档\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 46: //签章\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 47: //回退流程\n data = {\n bg: currentColor ? currentColor : '#ec971f',\n btnIcon: 'regressesflowicon',\n bd: currentColor ? currentColor : '#ec971f',\n };\n return data;\n case 48: //催办流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 49: //挂起流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 50: //恢复流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 51: //回撤流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 52: //终止流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 53: //编辑流程审批人\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 54: //调整流程\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 55: //点评\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 56: //补签\n data = {\n bg: currentColor ? currentColor : '#337ab7',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#337ab7',\n };\n return data;\n case 57: //加签主办\n case 58: //加签协办\n data = {\n bg: currentColor ? currentColor : '#31b0d5',\n btnIcon: 'queryBtnicon',\n bd: currentColor ? currentColor : '#31b0d5',\n };\n return data;\n case 0: //流程处理在流程的表单权限里设置了隐藏,type返回0\n this.isShowBtn = false\n default:\n break;\n }\n return '';\n }\n },\n\n methods: {\n onClick(val) {\n if (val) {\n return;\n }\n this.onAction(this.info);\n },\n\n onAction(act) {\n let activityType = act.type;\n if (this.isBlockClick) return // 按钮事件执行前,未请求前防止重复点击--form_normalform.vue--runBeforeAction()\n switch (act.type) {\n case 1: //载入视图\n this.$emit(\"action\", act);\n break;\n case 2: //创建\n this.$emit(\"action\", act);\n break;\n case 3: //删除\n this.$emit(\"action\", act);\n break;\n case 4: //保存并启动流程\n act.flowType = '1';\n this.$emit(\"action\", act);\n break;\n case 5: //流程处理\n this.$store.commit('searchFlag', 2)//高级查询返回记住状态\n act.flowType = '80';\n this.$parent.flowHandle(act);\n break;\n case 8: //关闭窗口\n this.$parent.runBeforeAction(this.info.id, '', '', activityType);\n break;\n case 10: //返回\n this.$store.commit('searchFlag', 2)//高级查询返回记住状态\n this.$emit(\"action\", act);\n break;\n case 11: //保存并返回\n this.$store.commit('searchFlag', 2)//高级查询返回记住状态\n this.$emit(\"action\", act);\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 13: //无\n this.$emit(\"action\", act);\n break;\n case 14: //网页打印(表单)\n // this.$parent.runBeforeAction(act.id, '', '', activityType, );\n this.$emit(\"action\", act);\n break;\n case 15: //网页打印含历史\n this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 16: //导出excel\n this.$emit(\"action\", act);\n break;\n case 19: //保存草稿不校检\n this.$parent.runBeforeAction(act.id, '', '', activityType, '', act);\n break;\n case 18: //清空所有数据\n this.$emit(\"action\", act);\n break;\n case 20: //批量提交\n act.flowType = '80';\n this.$emit(\"action\", act);\n break;\n case 21: //保存并复制\n // this.$parent.runBeforeAction(act.id, '', '', activityType); \n this.$emit(\"action\", act);\n break;\n case 25: //PDF导出\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n this.$emit(\"action\", act);\n break;\n case 26: //文件下载\n this.$emit(\"action\", act);\n break;\n case 27: //导入excel\n this.$emit(\"action\", act);\n break;\n case 28: //电子签章\n this.$emit(\"action\", act);\n break;\n case 29: //批量签章\n this.$emit(\"action\", act);\n break;\n case 30: //自定义打印\n this.$emit(\"action\", act);\n break;\n case 33: //流程启动\n act.flowType = '1';\n this.$emit(\"action\", act);\n break;\n case 34: //保存\n // this.$parent.runBeforeAction(act.id, '', '', activityType);\n this.$emit(\"action\", act);\n break;\n case 36: //网页\n this.$emit(\"action\", act);\n break;\n case 37: //邮件短信分享\n this.$emit(\"action\", act);\n break;\n case 42: //保存并新建\n this.$emit(\"action\", act);\n //this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 43: //跳转\n this.$emit(\"action\", act);\n break;\n case 45: //归档\n this.$parent.runBeforeAction(act.id, '', '', activityType);\n break;\n case 46: //签章\n this.$emit(\"action\", act);\n break;\n case 47: //回退流程\n this.$parent.flowHandle(act);\n break;\n case 48: //催办流程\n this.$emit(\"action\", act);\n break;\n case 49: //挂起流程\n act.flowType = '88';\n this.$emit(\"action\", act);\n break;\n case 50: //恢复流程\n act.flowType = '89';\n this.$emit(\"action\", act);\n break;\n case 51: //回撤流程\n act.flowType = '85';\n this.$emit(\"action\", act);\n break;\n case 52: //终止流程\n act.flowType = '8';\n this.$emit(\"action\", act);\n break;\n case 53: //编辑流程审批人\n this.$emit(\"action\", act);\n break;\n case 54: //调整流程\n break;\n case 55: //点评\n this.$emit(\"action\", act);\n break;\n case 56: //补签\n this.$emit(\"action\", act);\n break;\n case 57: //加签主办\n this.$emit(\"action\", act);\n break;\n case 58: //加签协办\n this.$emit(\"action\", act);\n break;\n default:\n break;\n }\n }\n }\n};\n",null]}