{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/form_selectedUser_flowpanel.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/form_selectedUser_flowpanel.vue","mtime":1740130327257},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/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\nexport default {\n props: [\n \"act\",\n \"selectedUserList\",\n \"row_count\",\n \"approversObj\",\n \"subflowRowTo\",\n \"isApproverWork\",\n \"buildFormData\"\n ],\n data: function() {\n return {\n userList:[],\n };\n },\n created() {\n this.renderList()\n },\n\n mounted() {\n \n },\n methods: {\n showSelectedUser(){ //调用父组件showSelectedUser()方法\n if(this.act.type == 57) {\n let value = \"TAG\"\n this.$emit(\"showUser\", this.userList, value)\n }else {\n let value = \"TAG\";\n if(this.subflowRowTo && this.subflowRowTo.type) { //有子流程时\n this.subflowRowTo.row = this.userList;\n this.$emit(\"showUser\", '', value, '', '', this.subflowRowTo);\n }else {\n let approverId = \"\";\n if(this.userList.length>0) {\n this.userList.forEach(item => {\n approverId += item.id + \";\";\n });\n }\n this.approversObj.userids = approverId;\n this.approversObj.row = this.userList;\n this.$emit(\"showUser\", this.userList, value, '', this.approversObj);\n }\n }\n \n },\n\n renderList(){\n //子流程的数据\n if(this.subflowRowTo && this.subflowRowTo.row && this.subflowRowTo.row.length > 0) {\n this.userList = [...this.subflowRowTo.row];\n }else {\n this.userList = [...this.selectedUserList];\n }\n \n },\n\n cancelSelection(id) {\n for(let i=0; i {\n checkVal.push(el.id);\n })\n if(checkVal && checkVal.length > 0) {\n let appId = this.$root.appid,\n docId = this.buildFormData.id;\n let flowData = {\n auditorList: checkVal,\n }\n this.$api.approversWorkflow(appId, docId, flowData, {\n onSucess: response => {\n let status;\n if(response.data.errcode==0) {\n status = 'SUCCESS';\n this.$emit(\"closePopup\",status)\n Toast({\n message: response.data.data,\n iconClass: 'fa fa-check fa-2x'\n });\n }else if(response.data.errcode==4001){\n status = 'ERROR';\n this.$emit(\"closePopup\",status)\n Toast({\n message: response.data.errmsg,\n iconClass: 'fa fa-close fa-2x'\n });\n }\n }\n }) \n }else {\n status = 'ERROR';\n this.$emit(\"closePopup\",status)\n }\n }else {\n let approverId = \"\";\n let approverName = \"\";\n if(this.userList.length>0) {\n this.userList.forEach(item => {\n approverId += item.id + \";\";\n approverName += item.name + \";\";\n });\n }\n this.approversObj.userids = approverId;\n this.approversObj.row = this.userList;\n this.$emit(\"action\",approverName,this.approversObj);//调用newSelectedUser()方法\n }\n\n },\n\n reset() {\n this.userList = [];\n }\n }\n};\n",null]}