{"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/widget_carboncopy.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/widget_carboncopy.vue","mtime":1740130327259},{"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//\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//\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//\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 API from \"@/api.js\";\n\n//import axios from \"axios\";\nexport default {\n inject: [\"reload\"],\n props: [\n \"systemData\"\n ],\n created() {\n let appId = this.$root.appid;\n let params = {\n title: '',\n linesPerPage: 5,\n pageNo: 1,\n initiatorId: '',\n flowId: '',\n isRead: false,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n this.showPending = true;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)),//this.writeCurrentDate(item.lastProcessTime), //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = \"流转\"),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n flowName: item.flowName,\n };\n });\n this.pendingList = newData;\n }\n }\n )\n this.finished();\n },\n data: function() {\n return {\n selected: \"tab_pending\",\n rowCount: \"\",\n pendingList: [],\n processedList: [],\n conceal: false,\n dispose: true, //控制流程处理隐藏或这显示\n GonnaSelect: \"pending\",\n showPending:false,\n showProcessed:false,\n system_workflow:'',\n row_count:0,\n };\n },\n methods: {\n writeCurrentDate(val){\n let now = new Date(val);\n let year=now.getFullYear(); \n let month=now.getMonth()+1; \n let date=now.getDate(); \n let hour=now.getHours(); \n let minute=now.getMinutes(); \n let second=now.getSeconds(); \n return year+\"-\"+month+\"-\"+date+\" \"+hour+\":\"+minute+\":\"+second; \n },\n\n loadTop() {\n API.getPendingList(this.$root.appid, { pageNo: 1, linesPerPage: 5 },\n {\n onSucess: response => {\n this.pendingList = response.data.data.datas;\n this.showPending = true;\n this.rowCount = response.data.data.rowCount;\n this.$refs.loadmorepending.onTopLoaded();\n for(let i=0; i {\n this.pendingList[i].photo = response.data.data;\n this.$forceUpdate();\n }\n })\n }\n }\n }\n );\n },\n\n finished() {\n let appId = this.$root.appid;\n let params = {\n title: '',\n linesPerPage: 5,\n pageNo: 1,\n initiatorId: '',\n flowId: '',\n isRead: true,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\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 initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)), //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = \"流转\"),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n flowName: item.flowName,\n };\n });\n this.processedList = newData;\n }\n }\n )\n\n\n\n },\n //流程处理的局部刷新\n Partialrefresh() {\n this.reload();\n }\n },\n filters: {\n formatDate: function (value) {// 时间戳转换日期格式方法\n if (value == null) {\n return '';\n } else {\n let date = new Date(value);\n let y = date.getFullYear();// 年\n let MM = date.getMonth() + 1;// 月\n MM = MM < 10 ? ('0' + MM) : MM;\n let d = date.getDate();// 日\n d = d < 10 ? ('0' + d) : d;\n let h = date.getHours();// 时\n h = h < 10 ? ('0' + h) : h;\n let m = date.getMinutes();// 分\n m = m < 10 ? ('0' + m) : m;\n let s = date.getSeconds();// 秒\n s = s < 10 ? ('0' + s) : s;\n return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;\n }\n }\n }\n};\n",null]}