{"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/form_termination_flowpanel.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/form_termination_flowpanel.vue","mtime":1725957645722},{"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\nimport API from \"@/api.js\";\nexport default {\n props: [\n \"stateId\", \n \"act\",\n \"openParams\",\n \"buildFormData\"\n ],\n data: function() {\n return {\n attitude:'',\n };\n },\n created() {\n \n },\n\n mounted() {\n \n },\n methods: {\n /**\n * 取消\n */\n handleCancel() {\n let cancel = false;\n this.$emit('handleCancel',cancel)\n },\n //提交\n onSubmit() {\n let workFlowType = this.act.workFlowType;\n let appId = this.openParams.appId;\n let docId = this.openParams._select;\n let attitude = this.attitude;\n if(workFlowType == 1) { //自由流程\n let formData = this.buildFormData;\n formData.stateId = this.stateId;\n let docId = formData.id,\n id = formData.id;\n let formId = formData.formId;\n let document = {\n applicationId: appId,\n attitude:attitude,\n docId: docId,\n document: formData,\n formId: formId,\n id: id,\n parentId: \"\",\n templateForm: \"\",\n viewId: \"\"\n };\n this.$api.completeFreeFlow(appId, docId,document, {\n onSucess: response => {\n let act = response.data;\n this.attitude = '';\n this.$emit(\"action\", act);\n }\n });\n }else { //非自由流程\n if(!attitude) {\n this.$message({\n message: this.$t('view.notnull_ss'),\n type: 'warning'\n })\n }else {\n this.$api.terminationWorkflow(appId, docId, attitude, {\n onSucess: response => {\n let act = response.data;\n this.attitude = '';\n this.$emit(\"action\", act);\n }\n });\n }\n }\n },\n\n\n }\n}\n",null]}