{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\components\\ren-process-start\\src\\ren-process-start.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-process-start\\src\\ren-process-start.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//\nimport qs from 'qs';\nexport default {\n name: 'RenProcessStart',\n data: function data() {\n return {\n formUrl: '',\n instanceIdUrl: '',\n formName: null,\n rootObj: null,\n dataForm: {\n processDefinitionKey: ''\n },\n // 回调函数\n callbacks: {\n startProcessSuccessCallback: null,\n startProcessErrorCallback: null,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null\n }\n };\n },\n components: {},\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n _this.formUrl = _this.saveFormUrl;\n _this.instanceIdUrl = _this.updateInstanceIdUrl;\n _this.formName = _this.dataFormName;\n });\n },\n props: {\n saveFormUrl: String,\n updateInstanceIdUrl: String,\n dataFormName: String\n },\n watch: {\n saveFormUrl: function saveFormUrl(val) {\n this.formUrl = val;\n },\n updateInstanceIdUrl: function updateInstanceIdUrl(val) {\n this.instanceIdUrl = val;\n },\n dataFormName: function dataFormName(val) {\n this.formName = val;\n }\n },\n methods: {\n // 启动流程事件\n processStartHandle: function processStartHandle() {\n var _this2 = this;\n\n if (!this.formUrl) {\n return this.$message.error(this.$t('process.formURLError'));\n }\n\n if (!this.dataForm.processDefinitionKey) {\n return this.$message.error(this.$t('process.keyError'));\n }\n\n if (!this.formName) {\n return this.$message.error(this.$t('process.formNameError'));\n }\n\n this.rootObj.$refs[this.formName].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.$http.get(\"/activiti/process/lastestPage\", {\n params: {\n key: _this2.dataForm.processDefinitionKey\n }\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n if (!res.data.list || res.data.list.length <= 0) {\n return _this2.$message.error(_this2.$t('process.notExistError'));\n }\n\n _this2.$http['post'](_this2.formUrl, _this2.rootObj[_this2.formName]).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n _this2.$message.error(res.msg);\n\n if (_this2.callbacks.formSaveErrorCallback) {\n _this2.callbacks.formSaveErrorCallback(res);\n }\n }\n\n if (_this2.callbacks.formSaveSuccessCallback) {\n _this2.callbacks.formSaveSuccessCallback(res);\n }\n\n if (!res.data.businessKey) {\n return _this2.$message.error(_this2.$t('process.businessKeyError')); // this.startProcess(this.dataForm.processDefinitionKey, null, this.rootObj[this.formName])\n } else {\n _this2.startProcess(_this2.dataForm.processDefinitionKey, res.data.businessKey, _this2.rootObj[_this2.formName]);\n }\n }).catch(function () {});\n }).catch(function () {});\n });\n },\n // 启动流程\n startProcess: function startProcess(processDefinitionKey, businessKey, formData) {\n var _this3 = this;\n\n var data = {\n processDefinitionKey: processDefinitionKey,\n businessKey: businessKey,\n variables: formData\n };\n this.$http['post']('/activiti/running/startOfBusinessKey', data).then(function (_ref3) {\n var res = _ref3.data;\n\n if (res.code !== 0) {\n if (_this3.callbacks.startProcessErrorCallback) {\n _this3.callbacks.startProcessErrorCallback(res.data);\n }\n }\n\n _this3.$message({\n message: _this3.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n if (_this3.callbacks.startProcessSuccessCallback) {\n _this3.callbacks.startProcessSuccessCallback(res.data);\n }\n }\n });\n\n if (_this3.instanceIdUrl) {\n var params = qs.stringify({\n processInstanceId: res.data.processInstanceId,\n processDefinitionKey: processDefinitionKey,\n businessKey: businessKey\n });\n\n _this3.$http['post'](_this3.instanceIdUrl + '?' + params).then(function (_ref4) {\n var res = _ref4.data;\n });\n }\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["ren-process-start.vue"],"names":[],"mappings":";;;;AAKA,OAAA,EAAA,MAAA,IAAA;AACA,eAAA;AACA,EAAA,IAAA,EAAA,iBADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,EADA;AAEA,MAAA,aAAA,EAAA,EAFA;AAGA,MAAA,QAAA,EAAA,IAHA;AAIA,MAAA,OAAA,EAAA,IAJA;AAKA,MAAA,QAAA,EAAA;AACA,QAAA,oBAAA,EAAA;AADA,OALA;AAQA;AACA,MAAA,SAAA,EAAA;AACA,QAAA,2BAAA,EAAA,IADA;AAEA,QAAA,yBAAA,EAAA,IAFA;AAGA,QAAA,uBAAA,EAAA,IAHA;AAIA,QAAA,qBAAA,EAAA;AAJA;AATA,KAAA;AAgBA,GAnBA;AAoBA,EAAA,UAAA,EAAA,EApBA;AAsBA,EAAA,OAtBA,qBAsBA;AAAA;;AACA,SAAA,SAAA,CAAA,YAAA;AACA,MAAA,KAAA,CAAA,OAAA,GAAA,KAAA,CAAA,WAAA;AACA,MAAA,KAAA,CAAA,aAAA,GAAA,KAAA,CAAA,mBAAA;AACA,MAAA,KAAA,CAAA,QAAA,GAAA,KAAA,CAAA,YAAA;AACA,KAJA;AAKA,GA5B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