{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/main_pending.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/main_pending.vue","mtime":1739760944329},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _typeof from \"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/typeof.js\";\nimport form_selectApprover_flowpanel from \"@/components/form_selectApprover_flowpanel.vue\";\nimport dateFormat from '@/assets/js/dateFormat';\nexport default {\n inject: [\"reload\"],\n props: [\"openParams\"],\n components: {\n form_selectApprover_flowpanel: form_selectApprover_flowpanel\n },\n data: function data() {\n return {\n loading: true,\n softwareList: [],\n //软件列表\n currentSoftwareFlowList: [],\n //当前软件流程列表\n putaside: [],\n Formrendering: [],\n //表格里面首次渲染的数据\n backlogRight: \"\",\n //$t('placeholder.theme')框的v-model\n backlogProposer: \"\",\n //申请框的v-model\n ChildList: '',\n //按部门的穿梭框的v-model\n dialogVisible: false,\n //弹出框是否弹出\n activeName: \"first\",\n //标签页默认选中第一个\n Storage: [],\n //储存按角色为树形的用户数据\n Shuttle: \"\",\n //按角色的穿梭框的v-model\n userSublist: [],\n //按角色储存子列表的数据\n DepartmentSublist: [],\n //按部门储存子列表数据\n submitDocId: [],\n //流程中心中我的待办里面的{{$t('view.all_submit')}}按钮选中的那一行,存储在一个数组里面,这里是存储该数组的docId属性\n\n //按部门选择的节点展示\n props: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n },\n row_count: 0,\n isUpcoming: true,\n initiatorId: '',\n currentSelectFlowId: '',\n currentAppId: '',\n //当前appId\n isRouterOpen: false,\n currentPage: 1,\n //当前页\n pagesize: 15 //默认每页显示15\n };\n },\n created: function created() {\n if (!this.openParams) {\n //没有props参数,认定是路由打开\n this.isRouterOpen = true;\n }\n this.navigation();\n },\n methods: {\n handleSelectionChange: function handleSelectionChange(v) {\n this.submitDocId = v.map(function (item) {\n return item.docId;\n });\n },\n //全部提交按钮\n allSubmit: function allSubmit() {\n var _this = this;\n var attitude = '';\n var op = this.openParams;\n var appId = op && op.appId ? op.appId : this.currentAppId;\n var doJson = {\n actId: '',\n attitude: attitude,\n docIds: this.submitDocId,\n limistStrList: '',\n remark: ''\n };\n this.$api.batchApprove(appId, doJson, {\n onSucess: function onSucess(res) {\n if (res.data.errcode == 0) {\n _this.$notify.success({\n //弹窗\n title: _this.$t('success'),\n message: res.data.data.content\n });\n _this.navigation(); //刷新界面\n } else if (res.data.errcode == 4001) {\n _this.$notify.error({\n title: _this.$t('msg.err'),\n message: res.data.errmsg\n });\n }\n },\n onError: function onError(error) {\n if (error.response.data) {\n if (error.response.data.errcode == 500) {\n var errmsg;\n if (error.response.data.errmsg == 'Please choose one') {\n errmsg = _this.$t('msg.select_atLeastOne');\n }\n _this.$notify({\n title: _this.$t('msg.err'),\n message: errmsg,\n type: 'error'\n });\n }\n }\n }\n });\n },\n markAsRead: function markAsRead() {\n var _this2 = this;\n this.$api.markAsRead({\n onSucess: function onSucess(res) {\n if (res.data.errcode == 0) {\n _this2.$notify({\n title: _this2.$t('success'),\n message: '',\n type: 'success'\n });\n _this2.navigation();\n }\n }\n });\n },\n setSubjectFormat: function setSubjectFormat(str) {\n if (str && typeof str == 'string') {\n try {\n var 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 selectApprover: function selectApprover(name, id) {\n this.dialogVisible = false;\n this.backlogProposer = name;\n this.initiatorId = id;\n },\n tableRowClassName: function tableRowClassName(_ref) {\n var row = _ref.row,\n rowIndex = _ref.rowIndex;\n row.index = rowIndex;\n if (rowIndex % 2 != 0) {\n return 'table-row-color';\n } else {\n return '';\n }\n },\n onRowClick: function onRowClick(row) {\n var op = this.openParams;\n var appId = op && op.appId ? op.appId : this.currentAppId;\n var 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({\n name: \"open\",\n query: params\n });\n } else {\n this.$emit(\"add-tab\", params);\n this.Formrendering[row.index].read = true;\n this.$forceUpdate();\n }\n },\n writeCurrentDate: function writeCurrentDate(val) {\n var now = new Date(val);\n var year = now.getFullYear();\n var month = now.getMonth() + 1 < 10 ? '0' + (now.getMonth() + 1) : now.getMonth() + 1;\n var date = now.getDate() < 10 ? '0' + now.getDate() : now.getDate();\n var hour = now.getHours() < 10 ? '0' + now.getHours() : now.getHours();\n var minute = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes();\n var second = now.getSeconds() < 10 ? '0' + now.getSeconds() : now.getSeconds();\n return year + \"-\" + month + \"-\" + date + \" \" + hour + \":\" + minute + \":\" + second;\n },\n setCurrentSoftware: function setCurrentSoftware(appid, index) {\n var _this3 = this;\n this.currentPage = 1;\n var op = this.openParams;\n this.currentSelectFlowId = '';\n var appId = op && op.appId ? op.appId : appid;\n var softwareList = this.softwareList;\n if (softwareList.length > 0) {\n this.currentSoftwareFlowList = softwareList[index].pendingFlowList.slice(0, softwareList[index].pendingFlowList.length - 1);\n this.currentAppId = softwareList[index].id;\n }\n var params = {\n title: '',\n linesPerPage: this.pagesize,\n pageNo: 1,\n initiatorId: this.initiatorId\n };\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this3.row_count = res.data.data.rowCount;\n var newData = res.data.data.datas.map(function (item) {\n var flowName = item.auditorNames.split(\",\");\n var isagent = true;\n for (var i = 0; i < flowName.length; i++) {\n if (flowName[i] == _this3.$store.state.myProfile.name) {\n isagent = false;\n }\n }\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this3.writeCurrentDate(item.lastProcessTime),\n //.substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this3.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName,\n auditorNames: item.auditorNames,\n //代理\n isagent: isagent\n };\n });\n _this3.Formrendering = newData;\n }\n });\n },\n //点击重新加载表格数据\n primaryNavigationSystem: function primaryNavigationSystem() {\n var _this4 = this;\n this.currentSelectFlowId = '';\n var op = this.openParams;\n var appId = op && op.appId ? op.appId : this.currentAppId;\n var params = {\n title: '',\n linesPerPage: 10,\n pageNo: 1,\n initiatorId: this.initiatorId\n };\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this4.row_count = res.data.data.rowCount;\n var newData = res.data.data.datas.map(function (item) {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this4.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this4.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName\n };\n });\n _this4.Formrendering = newData;\n }\n });\n },\n //服务器返回待办导航的结果\n navigation: function navigation() {\n var _this5 = this;\n // let appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n this.$api.getPendings('', {\n onSucess: function onSucess(res) {\n var softwareList = res.data.data;\n _this5.softwareList = softwareList;\n if (softwareList && softwareList.length > 0) {\n _this5.currentSoftwareFlowList = softwareList[0].pendingFlowList.slice(0, softwareList[0].pendingFlowList.length - 1);\n _this5.currentAppId = softwareList[0].id;\n _this5.flowcenters();\n } else {\n _this5.loading = false;\n }\n }\n });\n },\n getAllSoftwareList: function getAllSoftwareList() {\n var _this6 = this;\n //let appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n this.$api.getNavsPeddings('', {\n onSucess: function onSucess(res) {\n var newData = res.data.data.map(function (item) {\n return {\n id: item.id,\n name: item.name\n };\n });\n _this6.putaside = newData;\n }\n });\n },\n //获取待办事项\n flowcenters: function flowcenters() {\n var _this7 = this;\n var appId = this.$route.query.applicationId;\n if (!appId) {\n appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n }\n // let appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var params = {\n title: this.backlogRight,\n linesPerPage: this.pagesize,\n pageNo: 1,\n initiatorId: this.initiatorId,\n flowId: this.currentSelectFlowId\n };\n this.currentPage = 1;\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this7.row_count = res.data.data.rowCount;\n var docs = res.data.data.datas;\n _this7.loading = false;\n if (docs && docs.length > 0) {\n var newData = docs.map(function (item) {\n var flowName = item.auditorNames.split(\",\");\n var isagent = true;\n for (var i = 0; i < flowName.length; i++) {\n if (flowName[i] == _this7.$store.state.myProfile.name) {\n isagent = false;\n }\n }\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this7.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime))this.writeCurrentDate(item.lastProcessTime), //.substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this7.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName,\n auditorNames: item.auditorNames,\n //代理\n isagent: isagent\n };\n });\n _this7.Formrendering = newData;\n } else {\n _this7.Formrendering = [];\n }\n }\n });\n },\n //{{$t('btns.clean')}}$t('placeholder.theme')框和申请框里面面对数据\n eliminating: function eliminating() {\n this.backlogProposer = '';\n this.initiatorId = '';\n this.backlogRight = '';\n this.flowcenters();\n },\n //切换每页显示条数数据\n handleSizeChange: function handleSizeChange(ev) {\n var _this8 = this;\n this.pagesize = ev;\n this.currentPage = 1;\n var appId = this.$route.query.applicationId;\n if (!appId) {\n appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n }\n var params = {\n flowId: this.currentSelectFlowId,\n linesPerPage: this.pagesize,\n title: this.backlogRight\n };\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this8.row_count = res.data.data.rowCount;\n var newData = res.data.data.datas.map(function (item) {\n var flowName = item.auditorNames.split(\",\");\n var isagent = true;\n for (var i = 0; i < flowName.length; i++) {\n if (flowName[i] == _this8.$store.state.myProfile.name) {\n isagent = false;\n }\n }\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this8.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this8.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName,\n auditorNames: item.auditorNames,\n //代理\n isagent: isagent\n };\n });\n _this8.Formrendering = newData;\n }\n });\n },\n //分页请求\n onPageChange: function onPageChange(num) {\n var _this9 = this;\n var op = this.openParams;\n var appId = op && op.appId ? op.appId : this.currentAppId;\n var params = {\n title: this.backlogRight,\n linesPerPage: this.pagesize,\n pageNo: num,\n flowId: this.currentSelectFlowId,\n applicationId: appId,\n domainId: '',\n initiatorId: this.initiatorId\n };\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this9.row_count = res.data.data.rowCount;\n var newData = res.data.data.datas.map(function (item) {\n var flowName = item.auditorNames.split(\",\");\n var isagent = true;\n for (var i = 0; i < flowName.length; i++) {\n if (flowName[i] == _this9.$store.state.myProfile.name) {\n isagent = false;\n }\n }\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this9.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this9.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName,\n auditorNames: item.auditorNames,\n //代理\n isagent: isagent\n };\n });\n _this9.Formrendering = newData;\n }\n });\n },\n //$t('placeholder.theme')框的出发事件\n activate: function activate() {\n if (this.backlogRight.length === 0) {}\n },\n //点击左侧导航触发待办事项\n onClickSoftware: function onClickSoftware(id) {\n var _this10 = this;\n this.currentPage = 1;\n var op = this.openParams;\n var appId = op && op.appId ? op.appId : this.currentAppId;\n this.currentSelectFlowId = id;\n var params = {\n flowId: id,\n linesPerPage: this.pagesize,\n title: this.backlogRight\n };\n this.$api.getMainPendings(appId, params, {\n onSucess: function onSucess(res) {\n _this10.row_count = res.data.data.rowCount;\n var newData = res.data.data.datas.map(function (item) {\n var flowName = item.auditorNames.split(\",\");\n var isagent = true;\n for (var i = 0; i < flowName.length; i++) {\n if (flowName[i] == _this10.$store.state.myProfile.name) {\n isagent = false;\n }\n }\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: _this10.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this10.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read: item.read,\n formName: item.formName,\n auditorNames: item.auditorNames,\n //代理\n isagent: isagent\n };\n });\n _this10.Formrendering = newData;\n }\n });\n },\n //点击添加弹出\n AddPopup: function AddPopup() {\n this.dialogVisible = true;\n }\n }\n};",null]}