forked from zhurui/management
1 line
9.3 KiB
JSON
1 line
9.3 KiB
JSON
{"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<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" @keyup.enter.native=\"dataFormSubmitHandle()\" :label-width=\"$i18n.locale === 'en-US' ? '120px' : '80px'\">\n <el-form-item :label=\"$t('correction.post')\" prop=\"applyPost\">\n <el-input v-model=\"dataForm.applyPost\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.post')\"></el-input>\n </el-form-item>\n <el-row :gutter=\"40\">\n <el-col :span=\"12\">\n <el-form-item :label=\"$t('correction.entryDate')\" prop=\"entryDate\">\n <el-date-picker v-model=\"dataForm.entryDate\" :disabled=\"fieldDisabled\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.entryDate')\" style=\"width: 100%\"></el-date-picker>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item :label=\"$t('correction.correctionDate')\" prop=\"correctionDate\">\n <el-date-picker v-model=\"dataForm.correctionDate\" :disabled=\"fieldDisabled\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.correctionDate')\" style=\"width: 100%\"></el-date-picker>\n </el-form-item>\n </el-col>\n </el-row>\n <el-form-item :label=\"$t('correction.workContent')\" prop=\"workContent\">\n <el-input type=\"textarea\" v-model=\"dataForm.workContent\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.workContent')\"></el-input>\n </el-form-item>\n <el-form-item :label=\"$t('correction.achievement')\" prop=\"achievement\">\n <el-input type=\"textarea\" v-model=\"dataForm.achievement\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.achievement')\"></el-input>\n </el-form-item>\n </el-form>\n <!-- 流程综合组件 -->\n <ren-process-multiple v-if=\"processVisible\" updateInstanceIdUrl=\"/activiti/demo/correction/updateInstanceId\" saveFormUrl=\"/activiti/demo/correction\" dataFormName=\"dataForm\" ref=\"renProcessMultiple\" ></ren-process-multiple>\n </el-card>\n</template>\n\n<script>\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</script>\n"]}]} |