{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\agent\\agentAdd.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\agent\\agentAdd.vue","mtime":1667327528887},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.search\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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 { mapState, mapActions } from \"vuex\";\nimport utils from \"@/utils.js\";\nimport { Message } from \"element-ui\";\nimport HtUserSelector from \"@/components/control/HtUserSelector.vue\";\nexport default {\n name: \"agentAdd\",\n props: [\"id\"],\n components: {\n HtUserSelector: HtUserSelector\n },\n data: function data() {\n return {\n form: {\n type: 2,\n isEnabled: \"Y\",\n defList: []\n },\n itemSavestate: {},\n rules: {\n authNames: [{\n required: true,\n message: \"请选择被委托人\",\n trigger: \"blur\"\n }],\n type: [{\n required: true,\n message: \"请选择类型\",\n trigger: \"blur\"\n }],\n subject: [{\n required: true,\n message: \"请输入标题\",\n trigger: \"blur\"\n }],\n startDate: [{\n required: true,\n message: \"请输入开始时间\",\n trigger: \"blur\"\n }],\n endDate: [{\n required: true,\n message: \"请输入结束时间\",\n trigger: \"blur\"\n }],\n isEnabled: [{\n required: true,\n message: \"请选择是否有效\",\n trigger: \"blur\"\n }]\n },\n flowSelectedDialogVisible: false,\n selectFlowProps: {\n label: \"name\"\n },\n selectFlows: null,\n selectFlowsList: null,\n tableData: \"\",\n treeList: []\n };\n },\n computed: mapState({\n flowRows: function flowRows(state) {\n return state.agent.rows;\n },\n pagination: function pagination(state) {\n return state.agent.pagination;\n },\n total: function total(state) {\n return state.agent.total;\n },\n currentUserDetail: function currentUserDetail(state) {\n return state.user.currentUserDetail;\n }\n }),\n methods: {\n flowSelected: function flowSelected() {\n this.flowSelectedDialogVisible = true;\n var pageBean = {\n pageBean: {\n page: \"1\",\n pageSize: \"10\",\n showTotal: \"true\"\n },\n params: {\n 'bpmDefAuthorizeRightType': 'start'\n }\n }; //初次加载默认pageBean\n\n this.$store.dispatch(\"agent/getDeflistJson\", pageBean);\n },\n back: function back() {\n this.$router.go(-1); //返回上一层\n },\n submitForm: function submitForm(form) {\n var _this = this;\n\n this.$refs[form].validate(function (valid) {\n if (valid) {\n if (new Date(_this.form.startDate).getTime() > new Date(_this.form.endDate).getTime()) {\n Message.warning(\"结束时间要大于开始时间!\");\n return;\n }\n\n if (_this.form.type == 2 && _this.form.defList.length < 1) {\n Message.warning(\"请选择要委托的流程!\");\n return;\n }\n\n if (_this.form.authNames.length > 0) {\n _this.form.agent = _this.form.authNames[0].fullname;\n _this.form.agentId = _this.form.authNames[0].id;\n }\n\n if (_this.currentUserDetail.user.fullname == _this.form.agent) {\n _this.$message.warning(\"不能指定自己为委托人\");\n\n return false;\n }\n\n _this.form.startDate = utils.formatDate(_this.form.startDate);\n _this.form.endDate = utils.formatDate(_this.form.endDate);\n\n _this.$store.dispatch(\"agent/approvalItemSave\", _this.form).then(function (res) {\n if (res.state) {\n Message.success(res.message);\n\n _this.back();\n } else {\n Message.error(res.message);\n }\n });\n } else {\n _this.$message.warning(\"您输入表单信息有误,请重新填写!\");\n\n return false;\n }\n });\n },\n orgRowClick: function orgRowClick(row, column, event) {\n this.$refs.flowTable.toggleRowSelection(row);\n },\n flowTableSelection: function flowTableSelection(selection) {\n this.selectFlows = selection;\n },\n dialogConfirm: function dialogConfirm() {\n var _this2 = this;\n\n this.flowSelectedDialogVisible = false;\n\n if (this.selectFlows) {\n this.form.defList = [];\n this.selectFlows.forEach(function (item) {\n _this2.form.defList.push({\n flowKey: item.defKey,\n flowName: item.name\n });\n });\n }\n },\n remove: function remove(row) {\n this.form.defList.remove(row);\n this.$refs.flowTable.clearSelection();\n },\n cancel: function cancel() {\n this.flowSelectedDialogVisible = false;\n this.$refs.flowTable.clearSelection();\n },\n orgTreeClick: function orgTreeClick(row, column, event) {\n this.treeList.push(row);\n },\n removeselectFlows: function removeselectFlows() {\n var _this3 = this;\n\n if (this.treeList.length > 0) {\n this.treeList.forEach(function (item) {\n _this3.selectFlows.remove(item);\n\n _this3.$refs.flowTable.toggleRowSelection(item, false);\n });\n }\n },\n clearAllselectFlows: function clearAllselectFlows() {\n this.$refs.flowTable.clearSelection();\n this.selectFlows = null;\n },\n handleSizeChange: function handleSizeChange(size) {\n //每页下拉显示数据\n this.$store.dispatch(\"agent/setPaginationSize\", size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch(\"agent/setPaginationPageNum\", currentPage);\n this.search();\n },\n // 查询\n search: function search(str) {\n var querys = []; //查询条件\n\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination,\n params: {\n 'bpmDefAuthorizeRightType': 'start'\n }\n };\n\n if (!this.tableData) {\n this.$store.dispatch(\"agent/getDeflistJson\", pageBean);\n } else {\n querys = [{\n property: \"name\",\n value: this.tableData,\n group: \"main\",\n operation: \"LIKE\",\n relation: \"OR\"\n }, {\n property: \"defKey\",\n value: this.tableData,\n group: \"main\",\n operation: \"LIKE\",\n relation: \"OR\"\n }];\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch(\"agent/getDeflistJson\", queryFilter);\n }\n },\n created: function created() {}\n};",null]}