{"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\\specialProjectManagement\\flowComponents\\RectificationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\flowComponents\\RectificationDialog.vue","mtime":1720721627152},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 eipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nimport processApproval from \"./processApproval.vue\";\nexport default {\n name: 'RectificationDialog',\n components: {\n fileUpload: fileUpload,\n eipUserSelector: eipUserSelector,\n processApproval: processApproval\n },\n data: function data() {\n return {\n form: {\n reformFlag: 1,\n reformDepart: '',\n reformUseId: ''\n },\n // 整改前\n bizEngineeringAccessoriesListBefore: {\n bizPath: 'specialproject',\n fileList: []\n },\n // 整改后\n bizEngineeringAccessoriesListAfter: {\n bizPath: 'specialproject',\n fileList: []\n },\n dialogVisible: false,\n userRules: {\n reformDepart: {\n required: true,\n message: '请输入整改责任人',\n trigger: 'blur'\n },\n reformDate: {\n required: true,\n message: '请选择整改日期',\n trigger: 'blur'\n },\n reformOpinion: {\n required: true,\n message: '请输入整改意见',\n trigger: 'blur'\n },\n reformDescription: {\n required: true,\n message: '请输入整改要求',\n trigger: 'blur'\n },\n rectifyResult: {\n required: true,\n message: '请输入整改结果',\n trigger: 'blur'\n },\n bizEngineeringAccessoriesListAfter: {\n required: true,\n message: '请上传整改后附件',\n trigger: 'change'\n }\n },\n type: '',\n // 'approval'审批 'flow'整改 'record'记录查看 ''添加记录\n flowStatusOptions: [{\n label: '待整改',\n name: '待整改',\n value: 0\n }, {\n label: '待审批',\n name: '待审批',\n value: 1\n }, {\n label: '已完成',\n name: '已完成',\n value: 2\n }],\n alterType: [{\n label: '质量管理',\n text: '质量管理',\n value: '1'\n }, {\n label: '安全环保',\n text: '安全环保',\n value: '2'\n }],\n disable: false\n };\n },\n methods: {\n reload: function reload() {\n this.handleCancel();\n this.$emit('reload');\n },\n handleApproval: function handleApproval(flag) {\n this.approvalFlag = flag;\n this.$refs.processApproval.handleOpen(this.form, flag, 4); // 4整改\n },\n handleSubmit: function handleSubmit() {\n var _this = this;\n if (this.type == 'record') {\n this.handleCancel();\n } else if (this.type == 'flow') {\n this.$refs.form.validate(function (bool) {\n if (bool) {\n var data = {\n bizRectificationCommon: _this.form,\n bizEngineeringAccessoriesListBefore: _this.bizEngineeringAccessoriesListBefore.fileList || [],\n bizEngineeringAccessoriesListAfter: _this.bizEngineeringAccessoriesListAfter.fileList || []\n };\n delete data.bizRectificationCommon.bizEngineeringAccessoriesListBefore;\n delete data.bizRectificationCommon.bizEngineeringAccessoriesListAfter;\n _this.$http.post('${form}/bizRectificationCommon/v1/commit/todo', data).then(function (response) {\n if (response.data && response.data.state) {\n _this.$message.success(response.data.message);\n _this.reload();\n } else {\n _this.$message.warning(response.data.message);\n }\n });\n }\n });\n } else {\n this.$refs.form.validate(function (bool) {\n if (bool) {\n var data = {\n bizRectificationCommon: _this.form,\n bizEngineeringAccessoriesListBefore: _this.bizEngineeringAccessoriesListBefore.fileList || [],\n bizEngineeringAccessoriesListAfter: _this.bizEngineeringAccessoriesListAfter.fileList || []\n };\n _this.$emit('handleSave', data);\n _this.handleCancel();\n }\n });\n }\n },\n open: function open(row, type) {\n this.dialogVisible = true;\n if (type) {\n this.type = type;\n if (type === 'record' || type === 'flow' || type === 'approval') {\n this.disabled = true;\n }\n this.form = _objectSpread(_objectSpread({}, row.bizRectificationCommon), {}, {\n bizEngineeringAccessoriesListBefore: row.bizEngineeringAccessoriesListBefore,\n bizEngineeringAccessoriesListAfter: row.bizEngineeringAccessoriesListAfter\n });\n } else {\n this.form = _objectSpread(_objectSpread({\n reformFlag: 1\n }, row.bizRectificationCommon), {}, {\n bizEngineeringAccessoriesListBefore: row.bizEngineeringAccessoriesListBefore,\n bizEngineeringAccessoriesListAfter: row.bizEngineeringAccessoriesListAfter\n });\n }\n this.bizEngineeringAccessoriesListBefore.fileList = row.bizEngineeringAccessoriesListBefore;\n this.bizEngineeringAccessoriesListAfter.fileList = row.bizEngineeringAccessoriesListAfter;\n },\n sonToDad: function sonToDad(data, key) {\n var arr = [];\n data.forEach(function (item) {\n arr.push({\n isDele: item.isDele,\n attachmentName: item.name,\n attachmentPath: item.url,\n attachmentSuffix: item.suffix,\n attachmentType: item.type,\n type: 0\n });\n });\n if (key == 'before') {\n this.bizEngineeringAccessoriesListBefore.fileList = arr;\n this.form.bizEngineeringAccessoriesListBefore = arr.length > 0 ? arr : '';\n }\n if (key == 'after') {\n this.bizEngineeringAccessoriesListAfter.fileList = arr;\n this.form.bizEngineeringAccessoriesListAfter = arr.length > 0 ? arr : '';\n }\n\n // 文件效验\n if (this.form.bizEngineeringAccessoriesListBefore) {\n this.$refs.form.clearValidate('bizEngineeringAccessoriesListBefore');\n } else {\n this.$refs.form.validateField('bizEngineeringAccessoriesListBefore');\n }\n if (this.form.bizEngineeringAccessoriesListAfter) {\n this.$refs.form.clearValidate('bizEngineeringAccessoriesListAfter');\n } else {\n this.$refs.form.validateField('bizEngineeringAccessoriesListAfter');\n }\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n this.form = {\n reformFlag: 1\n };\n this.bizEngineeringAccessoriesListBefore = {\n fileList: []\n };\n this.bizEngineeringAccessoriesListAfter = {\n fileList: []\n };\n this.dialogVisible = false;\n },\n handleCloseDialog: function handleCloseDialog() {\n this.dialogVisible = false;\n this.form = {\n reformFlag: 1\n };\n this.bizEngineeringAccessoriesListBefore = {\n fileList: []\n };\n this.bizEngineeringAccessoriesListAfter = {\n fileList: []\n };\n }\n }\n};",null]}