{"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/views/main_processing.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/views/main_processing.vue","mtime":1725957645735},{"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/thread-loader/dist/cjs.js","mtime":499162500000},{"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 form_selectApprover_flowpanel from \"@/components/form_selectApprover_flowpanel.vue\";\n// import dateFormat from '@/assets/js/dateFormat'; \nexport default {\n inject: [\"reload\"],\n props: [\n \"openParams\",\n ],\n components: {\n form_selectApprover_flowpanel,\n },\n data() {\n return {\n loading:true,\n softwareList: [],\n currentSoftwareFlowList: [],\n currentAppId:'',\n Navigationlists: [],\n omniselector: [],\n motif: \"\", //$t('placeholder.theme')框的v-model\n chkReadOnly: false, //复选框的v-model\n preservation: [], //保存获取的经办事项\n backlogProposer:'',\n options: [{\n value: 'all',\n label: this.$t('form.all')\n }, {\n value: 'completed',\n label: this.$t('view.finish')\n }, {\n value: 'pending',\n label: this.$t('view.no_finish')\n }],\n status: 'all',\n row_count:0,\n total:0,\n dialogVisible: false,\n initiatorId:'',\n isUpcoming:true,\n currentSelectFlowId:'',\n isMyWorkFlow: false,\n isRouterOpen: false,\n currentPage:1,//当前页\n pagesize: 15, //默认每页显示15\n };\n },\n created() {\n if(!this.openParams) { //没有props参数,认定是路由打开\n this.isRouterOpen = true\n }\n this.navigation();\n },\n methods: {\n tableRowClassName({row, rowIndex}){\n if (rowIndex%2!=0) {\n return 'table-row-color'\n } else {\n return ''\n }\n },\n\n setSubjectFormat(str) {\n if (str && typeof str == 'string') {\n try {\n let obj = JSON.parse(str);\n if (typeof obj == 'object' && obj) {\n return obj.summaryText\n } else {\n return str\n }\n } catch (e) {\n return str\n }\n }\n },\n\n selectApprover(name, id) {\n this.dialogVisible = false\n this.backlogProposer = name\n this.initiatorId = id\n },\n\n isComplete() {\n let op = this.openParams\n this.currentPage = 1;\n let appId = (op && op.appId) ? op.appId : this.currentAppId\n let params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n initiatorId: '',\n flowId: this.currentSelectFlowId?this.currentSelectFlowId:'',\n domainId: '',\n initiatorId: this.initiatorId,\n linesPerPage: this.pagesize,\n pageNo: 1\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)) //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n };\n });\n this.preservation = newData;\n }\n }\n )\n },\n\n //点击添加弹出\n AddPopup() {\n this.dialogVisible = true\n },\n \n onRowClick(row) {\n let op = this.openParams\n let appId = (op && op.appId) ? op.appId : this.currentAppId\n let params = {\n id: row.docId,\n appId: appId,\n linkType:'00',\n actionContent:row.formId,\n name: row.formName,\n docId:row.docId,\n _select:row.docId,\n refreshId: op ? op.id : '',\n }\n if(this.isRouterOpen) {\n params.isRouterOpen = true\n this.$router.push({ name: \"open\", query: params });\n }else {\n this.$emit(\"add-tab\", params)\n }\n },\n\n writeCurrentDate(val){\n let now = new Date(val);\n let year=now.getFullYear(); \n let month=(now.getMonth() + 1 < 10 ? '0' + (now.getMonth() + 1) : now.getMonth() + 1) \n let date=(now.getDate() < 10 ? '0' + now.getDate() : now.getDate()); \n let hour=(now.getHours() < 10 ? '0' + now.getHours() : now.getHours()); \n let minute=(now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes()); \n let second=(now.getSeconds() < 10 ? '0' + now.getSeconds() : now.getSeconds()); \n return year+\"-\"+month+\"-\"+date+\" \"+hour+\":\"+minute+\":\"+second; \n },\n\n setCurrentSoftware(appid, index){\n this.currentPage = 1;\n let op = this.openParams\n this.currentSelectFlowId = ''\n let appId = (op && op.appId) ? op.appId : appid\n let softwareList = this.softwareList\n if(softwareList.length > 0) {\n this.currentSoftwareFlowList = softwareList[index].processedFlowList.slice(0,softwareList[index].processedFlowList.length-1)\n this.currentAppId = softwareList[index].id\n }\n let params = {\n title: this.motif,\n status: this.status,\n linesPerPage: this.pagesize,\n pageNo: 1,\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount\n this.total = this.total?this.total:res.data.data.rowCount\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime), //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n };\n });\n this.preservation = newData\n this.loading = false\n }\n }\n )\n },\n \n navigation() {\n // let appId = this.openParams.appId ? this.openParams.appId : this.$root.appid;\n this.$api.getNavsProcesseds(\n '',\n {\n onSucess: res => {\n let softwareList = res.data.data;\n this.softwareList = softwareList;\n if(softwareList && softwareList.length > 0) {\n this.currentSoftwareFlowList = softwareList[0].processedFlowList.slice(0,softwareList[0].processedFlowList.length-1);\n this.currentAppId = softwareList[0].id;\n this.flowcenters();\n }else {\n this.loading = false;\n }\n }\n }\n )\n },\n \n //获取经办事项\n flowcenters() {\n this.currentSelectFlowId = '';\n let appId = this.$route.query.applicationId\n if(!appId) {\n appId = this.openParams.appId ? this.openParams.appId : this.currentAppId\n }\n let params = {\n title: this.motif,\n // linesPerPage: 10,\n linesPerPage: this.pagesize,\n pageNo: 1,\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n this.total = this.total?this.total:res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime), //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n };\n });\n this.preservation = newData;\n this.loading = false;\n }\n }\n )\n \n },\n //切换每页显示条数数据\n handleSizeChange(ev) {\n this.pagesize = ev\n this.currentPage = 1\n this.isMyWorkFlow = false\n let appId = this.$route.query.applicationId\n if(!appId) {\n appId = this.openParams.appId ? this.openParams.appId : this.currentAppId\n }\n // this.currentSelectFlowId = id;\n let params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n flowId: this.currentSelectFlowId,\n domainId: '',\n initiatorId: this.initiatorId,\n // linesPerPage: 10,\n linesPerPage: this.pagesize,\n pageNo: 1\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime), //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n };\n });\n this.preservation = newData;\n }\n }\n )\n },\n //数据分页\n onPageChange(value) {\n let op = this.openParams\n let appId = (op && op.appId) ? op.appId : this.currentAppId\n let params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n flowId: this.currentSelectFlowId,\n domainId: '',\n initiatorId: this.initiatorId,\n // linesPerPage: 10,\n linesPerPage: this.pagesize,\n pageNo: value,\n };\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n let newData = res.data.data.datas.map(item => {\n return {\n\t\t\t\t formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime))item.lastProcessTime.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n }\n })\n this.preservation = newData\n }\n }\n )\n\n },\n\n //{{$t('btns.clean')}}$t('placeholder.theme')框里面的数据\n eliminate() {\n this.backlogProposer = '';\n this.initiatorId = ''; \n\t this.motif = '';\n this.isComplete();\n },\n\n //当$t('placeholder.theme')框的内容长度为null时重新刷新\n ToRefresh() {\n if (this.motif.length === 0) {\n //this.reload();\n }\n },\n \n //左侧导航重新加载数据\n onClickSoftware(id) {\n this.currentPage = 1;\n\t let op = this.openParams\n let appId = (op && op.appId) ? op.appId : this.currentAppId;\n this.currentSelectFlowId = id;\n let params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n flowId: id,\n domainId: '',\n initiatorId: this.initiatorId,\n // linesPerPage: 10,\n linesPerPage: this.pagesize,\n pageNo: 1\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime), //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n };\n });\n this.preservation = newData;\n }\n }\n )\n },\n\n //点击滑块触发回调刷新数据\n reluctance() {\n this.currentPage = 1;\n let op = this.openParams\n let appId = (op && op.appId) ? op.appId : this.currentAppId;\n let params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n flowId: this.currentSelectFlowId?this.currentSelectFlowId:'',\n domainId: '',\n initiatorId: this.initiatorId,\n linesPerPage: this.pagesize,\n pageNo: 1\n }\n this.$api.getMainProcesseds(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime), //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName,\n }\n })\n this.preservation = newData\n }\n }\n )\n }\n }\n};\n",null]}