{"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/components/main_processing.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/main_processing.vue","mtime":1739760944319},{"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 _defineProperty from \"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js\";\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 currentSoftwareFlowList: [],\n currentAppId: '',\n Navigationlists: [],\n omniselector: [],\n motif: \"\",\n //$t('placeholder.theme')框的v-model\n chkReadOnly: false,\n //复选框的v-model\n preservation: [],\n //保存获取的经办事项\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 };\n },\n created: function created() {\n this.navigation();\n // this.avigraph();\n // this.flowcenters();\n },\n methods: {\n tableRowClassName: function tableRowClassName(_ref) {\n var row = _ref.row,\n rowIndex = _ref.rowIndex;\n if (rowIndex % 2 != 0) {\n return 'table-row-color';\n } else {\n return '';\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 isComplete: function isComplete() {\n var _this = this;\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var params = _defineProperty(_defineProperty(_defineProperty({\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), \"linesPerPage\", 10), \"pageNo\", 1);\n this.$api.getMainProcesseds(appId, params, {\n onSucess: function onSucess(res) {\n _this.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 initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: _this.writeCurrentDate(item.lastProcessTime),\n //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 AddPopup: function AddPopup() {\n this.dialogVisible = true;\n },\n onRowClick: function onRowClick(row) {\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var params = {\n appId: appId,\n linkType: '00',\n actionContent: row.formId,\n name: row.formName,\n docId: row.docId,\n _select: row.docId,\n refreshId: '106'\n };\n this.$emit(\"add-tab\", params);\n //this.$emit(\"openNewpage\", params);\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 _this2 = this;\n this.currentSelectFlowId = '';\n var appId = this.openParams.appId ? this.openParams.appId : appid;\n var 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 var params = {\n title: this.motif,\n linesPerPage: 10,\n pageNo: 1\n };\n this.$api.getMainProcesseds(appId, params, {\n onSucess: function onSucess(res) {\n _this2.row_count = res.data.data.rowCount;\n _this2.total = _this2.total ? _this2.total : 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 initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: _this2.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this2.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName\n };\n });\n _this2.preservation = newData;\n _this2.loading = false;\n }\n });\n },\n navigation: function navigation() {\n var _this3 = this;\n // let appId = this.openParams.appId ? this.openParams.appId : this.$root.appid;\n this.$api.getNavsProcesseds('', {\n onSucess: function onSucess(res) {\n var softwareList = res.data.data;\n _this3.softwareList = softwareList;\n if (softwareList && softwareList.length > 0) {\n _this3.currentSoftwareFlowList = softwareList[0].processedFlowList.slice(0, softwareList[0].processedFlowList.length - 1);\n _this3.currentAppId = softwareList[0].id;\n _this3.flowcenters();\n } else {\n _this3.loading = false;\n }\n }\n });\n },\n //获取经办导航\n avigraph: function avigraph() {\n var _this4 = this;\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n this.$api.getNavsProcesseds(appId, {\n onSucess: function onSucess(res) {\n var newData = res.data.data[0].processedFlowList.map(function (item) {\n return {\n id: item.id,\n name: item.name,\n num: item.num\n };\n });\n _this4.omniselector = newData.slice(0, newData.length - 1);\n }\n });\n },\n //获取经办事项\n flowcenters: function flowcenters() {\n var _this5 = this;\n this.currentSelectFlowId = '';\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var params = {\n title: this.motif,\n linesPerPage: 10,\n pageNo: 1\n };\n this.$api.getMainProcesseds(appId, params, {\n onSucess: function onSucess(res) {\n _this5.row_count = res.data.data.rowCount;\n _this5.total = _this5.total ? _this5.total : 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 initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: _this5.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this5.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName\n };\n });\n _this5.preservation = newData;\n _this5.loading = false;\n }\n });\n },\n //数据分页\n algorithm: function algorithm(value) {\n var _this6 = this;\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var params = {\n applicationId: appId,\n status: this.status,\n isMyWorkFlow: this.isMyWorkFlow,\n title: this.motif,\n flowId: '',\n domainId: '',\n initiatorId: this.initiatorId,\n linesPerPage: 10,\n pageNo: value\n };\n this.$api.getMainProcesseds(appId, params, {\n onSucess: function onSucess(res) {\n var newData = res.data.data.datas.map(function (item) {\n return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: _this6.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime))item.lastProcessTime.substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this6.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName\n };\n });\n _this6.preservation = newData;\n }\n });\n },\n //{{$t('btns.clean')}}$t('placeholder.theme')框里面的数据\n eliminate: function eliminate() {\n this.backlogProposer = '';\n this.initiatorId = '';\n },\n //当$t('placeholder.theme')框的内容长度为null时重新刷新\n ToRefresh: function ToRefresh() {\n if (this.motif.length === 0) {\n //this.reload();\n }\n },\n //左侧导航重新加载数据\n onClickSoftware: function onClickSoftware(id) {\n var _this7 = this;\n this.isMyWorkFlow = false;\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n this.currentSelectFlowId = id;\n var 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 pageNo: 1\n };\n this.$api.getMainProcesseds(appId, params, {\n onSucess: function onSucess(res) {\n _this7.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 initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: _this7.writeCurrentDate(item.lastProcessTime),\n //dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)).substring(5, 10),\n lastFlowOperation: item.lastFlowOperation = _this7.$t('flow.circulation'),\n stateLabel: item.stateLabel,\n subject: item.subject,\n formName: item.formName\n };\n });\n _this7.preservation = newData;\n }\n });\n },\n //点击滑块触发回调刷新数据\n reluctance: function reluctance() {\n var _this8 = this;\n var appId = this.openParams.appId ? this.openParams.appId : this.currentAppId;\n var 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: 10,\n pageNo: 1\n };\n this.$api.getMainProcesseds(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 return {\n formId: item.formId,\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\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 formName: item.formName\n };\n });\n _this8.preservation = newData;\n }\n });\n }\n }\n};",null]}