{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\DelegationEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\DelegationEdit.vue","mtime":1675071991756},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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 flow from \"@/api/flow.js\";\n\nvar eipUserSelector = function eipUserSelector() {\n return import(\"@/components/selector/EipUserSelector.vue\");\n};\n\nvar eipFlowDialog = function eipFlowDialog() {\n return import(\"@/components/dialog/EipFlowDialog.vue\");\n};\n\nexport default {\n components: {\n eipUserSelector: eipUserSelector,\n eipFlowDialog: eipFlowDialog\n },\n props: [\"editData\"],\n data: function data() {\n return {\n initData: {\n type: 1,\n isEnabled: \"Y\"\n },\n data: {\n authName: \"\",\n type: 1,\n subject: \"\",\n startData: \"\",\n endData: \"\",\n isEnabled: \"Y\",\n agent: \"\"\n },\n dialogVisible: false,\n saveUrl: window.context.bpmModel + \"/flow/agent/v1/save\",\n defList: [],\n isSubmit: false\n };\n },\n methods: {\n beforeClose: function beforeClose() {\n this.dialogVisible = false;\n },\n handleOpen: function handleOpen() {\n var _this = this;\n\n this.dialogVisible = true;\n this.$nextTick(function () {\n if (!_this.editData.subject) {\n _this.data = _objectSpread({}, _this.initData);\n } else {\n _this.data = _this.editData;\n _this.defList = _this.editData.defList;\n }\n });\n },\n close: function close() {\n this.dialogVisible = false;\n },\n afterSaveData: function afterSaveData() {\n this.close();\n this.$emit(\"after-save\", {});\n },\n showDialog: function showDialog() {\n this.$refs.eipFlowDialog.showDialog();\n },\n dialogOnConfirm: function dialogOnConfirm(data) {\n for (var i = 0; i < data.length; i++) {\n this.defList.push({\n flowKey: data[i].defKey,\n flowName: data[i].name\n });\n }\n\n this.defList = this.defList.unique(\"flowKey\");\n },\n deleteRow: function deleteRow(index, rows) {\n rows.splice(index, 1);\n },\n beforeSaveData: function beforeSaveData() {\n this.isSubmit = true;\n\n if (this.defList.length <= 0 && this.data.type === 2) {\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '部分委托流程不能为空'\n });\n return;\n }\n\n if (Date.parse(this.data.startDate) > Date.parse(this.data.endDate)) {\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '开始日期不可大于结束日期'\n });\n return;\n }\n\n if (!this.data.startDate) {\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '请添加开始时间'\n });\n return;\n }\n\n if (!this.data.endDate) {\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '请添加结束时间'\n });\n return;\n }\n\n if (this.data.agent === this.data.authName) {\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '委托人与别委托人不能相同'\n });\n return;\n }\n\n this.data.defList = this.defList;\n }\n }\n};",null]}