{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\demo\\correction-process.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\demo\\correction-process.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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// 引入工作流公共方法\nimport processModule from '@/mixins/process-module'\nexport default {\n // 注入公共方法\n mixins: [processModule],\n data () {\n return {\n visible: false,\n // 表单属性是否可编辑\n fieldDisabled: false,\n dataForm: {\n id: '',\n applyPost: '',\n entryDate: '',\n correctionDate: '',\n workContent: '',\n achievement: '',\n creator: '',\n createDate: ''\n }\n }\n },\n created () {\n // 将业务KEY赋值给表单\n this.dataForm.id = this.$route.params.businessKey\n this.init()\n // 流程回调\n var callbacks = {\n startProcessSuccessCallback: this.closeCurrentTab,\n startProcessErrorCallback: this.startProcessErrorCallback,\n taskHandleSuccessCallback: this.closeCurrentTab,\n taskHandleErrorCallback: this.taskHandleErrorCallback,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null\n }\n // 初始化综合组件\n this.initProcessMultiple(callbacks)\n },\n computed: {\n dataRule () {\n return {\n applyPost: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n entryDate: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n correctionDate: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n workContent: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n achievement: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n createTime: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ]\n }\n }\n },\n methods: {\n init () {\n this.visible = true\n this.$nextTick(() => {\n this.$refs['dataForm'].resetFields()\n if (this.dataForm.id) {\n // 如业务KEY已存在,不允许编辑\n this.fieldDisabled = true\n this.getInfo()\n }\n })\n },\n // 获取信息\n getInfo () {\n this.$http.get(`/activiti/demo/correction/${this.dataForm.id}`).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.dataForm = {\n ...this.dataForm,\n ...res.data\n }\n }).catch(() => {})\n },\n // 启动流程出错回调\n startProcessErrorCallback (data) {\n console.log(data)\n },\n // 任务处理出错回调\n taskHandleErrorCallback (data) {\n }\n }\n}\n",{"version":3,"sources":["correction-process.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"correction-process.vue","sourceRoot":"src/views/modules/activiti/demo","sourcesContent":["\n\n\n\n"]}]}