{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\components\\applyApproval.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\components\\applyApproval.vue","mtime":1723832016853},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 _ from 'lodash';\nimport api from \"./../js/api.js\";\nimport eipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport fileUpload from '@/components/upload/fileListUpload.vue';\nexport default {\n name: 'applyApproval',\n components: {\n fileUpload: fileUpload,\n eipUserSelector: eipUserSelector\n },\n props: {\n startApproval: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n visible: false,\n loading: false,\n type: '',\n approvalform: {\n privateCloudApplyId: '',\n applyRecordFile: [],\n approvalResult: null\n },\n dadToSon: {\n bizPath: 'resourceApply',\n fileList: []\n },\n rules: {\n approvalUserName: {\n required: true,\n message: '请选择审核人',\n trigger: 'blur'\n },\n intranetPort: {\n required: true,\n message: '请输入审核意见',\n trigger: 'change'\n }\n },\n typeText: ''\n };\n },\n mounted: function mounted() {},\n methods: {\n handleOpen: function handleOpen(type, id) {\n this.type = type;\n if (this.type === 'start') {\n this.typeText = '发起审核';\n this.approvalform.approvalResult = 3;\n } else if (this.type === 'reject') {\n this.typeText = '审核驳回';\n this.approvalform.approvalResult = 0;\n } else if (this.type === 'agree') {\n this.typeText = '审核同意';\n this.approvalform.approvalResult = 1;\n } else if (this.type === 'complete') {\n this.typeText = '审核完成';\n this.approvalform.approvalResult = 4;\n }\n this.approvalform.privateCloudApplyId = id;\n this.visible = true;\n },\n handleFileChange: function handleFileChange(data) {\n this.approvalform.applyRecordFile = data;\n },\n handleClose: function handleClose() {\n this.typeText = '';\n this.approvalform = {\n privateCloudApplyId: '',\n applyRecordFile: [],\n approvalResult: null\n };\n this.visible = false;\n },\n handleSubmit: function handleSubmit() {\n var _this = this;\n this.$refs.approvalform.validate(function (bool, object) {\n if (bool) {\n _this.$confirm(\"\\u786E\\u5B9A\".concat(_this.typeText, \"\\u5417\\uFF1F\"), '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this.loading = true;\n api.applyApproval(_this.type, _this.approvalform).then(function (res) {\n if (res.state) {\n _this.$message({\n message: \"\".concat(_this.typeText, \"\\u6210\\u529F\"),\n type: 'success'\n });\n } else {\n _this.$message({\n message: res.message,\n type: 'warning'\n });\n }\n _this.$emit('close');\n _this.handleClose();\n }).catch(function (err) {\n _this.$message({\n message: err,\n type: 'warning'\n });\n }).finally(function () {\n _this.loading = false;\n });\n });\n } else {\n _this.$message.warning(\"\\u6709\".concat(Object.keys(object).length, \"\\u4E2A\\u5B57\\u6BB5\\u672A\\u901A\\u8FC7\\u6821\\u9A8C\\uFF0C\\u8BF7\\u6B63\\u786E\\u586B\\u5199\\u8868\\u5355\\u5185\\u5BB9\\u3002\"));\n }\n });\n }\n }\n};",null]}