{"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\\qualityManagement\\RectificationData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\qualityManagement\\RectificationData.vue","mtime":1706175429319},{"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 _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.reflect.delete-property\";\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//\n//\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 basicData from '@/api/basicData.js';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nexport default {\n name: 'RectificationData',\n components: {\n fileUpload: fileUpload\n },\n data: function data() {\n return {\n rowData: {},\n visible: false,\n loading: false,\n data: [],\n fullscreenLoading: false,\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n dialogVisible: false,\n dadToSon: {\n bizPath: 'specialproject',\n fileList: []\n },\n form: {\n type: 0,\n reformFlag: 1,\n accessories: []\n },\n disabledSave: 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 }\n };\n },\n methods: {\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this = this;\n //验证表单是否填写完\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this.disabledSave = true;\n _this.fullscreenLoading = true;\n //请求保存提交\n Reflect.deleteProperty(_this.form, 'accessories');\n var data = {\n bizEngineeringAccessoriesList: _this.accessories,\n bizRectificationCommon: _this.form\n };\n _this.$http.post('${yhxt}/bizRectificationCommon/v1/saveVo', data).then(function (res) {\n if (res.data.state) {\n _this.$message.success(res.data.message);\n _this.dialogVisible = false;\n _this.$refs.htTable.load();\n } else {\n _this.$message.error(res.data.message);\n }\n _this.fullscreenLoading = false;\n _this.isShow = false;\n _this.isShowForm = false;\n });\n }\n });\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n this.form = {\n reformFlag: 1,\n type: 0,\n accessories: []\n };\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n },\n sonToDad: function sonToDad(data) {\n console.log(data);\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 this.accessories = arr;\n this.form.accessories = arr;\n // 防止用户打开了文件选择框之后不选择文件而出现效验失败\n if (this.form.accessories) {\n this.$refs.form.clearValidate('accessories');\n }\n },\n handleOpen: function handleOpen(row) {\n console.log('this.rowData', this.rowData);\n this.rowData = row;\n this.form = _objectSpread({\n companyName: this.rowData.companyName,\n companyId: this.rowData.companyId,\n roadSegmentName: this.rowData.roadSegmentName,\n roadSegmentId: this.rowData.roadSegmentId,\n projectId: this.rowData.projectId,\n projectName: this.rowData.projectName,\n sourceId: this.rowData.id\n }, this.form);\n console.log('fdsfsdfdsf', row, this.form);\n this.visible = true;\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n }\n if (param.querys && param.querys.length) {\n param.querys.push({\n group: 'advance',\n operation: 'EQUAL',\n property: 'sourceId',\n relation: 'AND',\n value: this.rowData.id\n });\n } else {\n param.querys = [{\n group: 'advance',\n operation: 'EQUAL',\n property: 'sourceId',\n relation: 'AND',\n value: this.rowData.id\n }];\n }\n this.exportQuery = param;\n this.$http.post('${yhxt}/bizRectificationCommon/v1/getJsonVo', param).then(function (response) {\n console.log(response);\n response.data.rows.forEach(function (item, index) {\n item.reformDate = item.bizRectificationCommon.reformDate;\n item.reformDepart = item.bizRectificationCommon.reformDepart;\n item.reformDescription = item.bizRectificationCommon.reformDescription;\n item.reformOpinion = item.bizRectificationCommon.reformOpinion;\n item.indexNo = index + 1;\n });\n _this2.data = response.data.rows;\n _this2.pageResult = {\n page: response.data.page,\n pageSize: response.data.pageSize,\n total: response.data.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n //新增\n handleAdd: function handleAdd() {\n this.projectOptions = [];\n this.disabledSave = false;\n this.disabled = false;\n this.isShowForm = true;\n this.dialogVisible = true;\n this.type = 'add';\n },\n handleDetail: function handleDetail(row) {\n this.dialogVisible = true;\n this.type = 'detail';\n this.form = row;\n },\n handleRoadSegmentChanged: function handleRoadSegmentChanged(id) {\n var _this3 = this;\n this.roadSegmentOptions.forEach(function (item) {\n if (item.id == id) {\n _this3.form = _objectSpread({\n companyName: item.companyName,\n companyId: item.companyId,\n roadSegmentName: item.name,\n roadSegmentId: id\n }, _this3.form);\n _this3.projectOptions = [];\n _this3.getProjectInfo(id);\n }\n });\n },\n getProjectInfo: function getProjectInfo(roadSegmentId) {\n var _this4 = this;\n this.projectParams.querys[0].value = roadSegmentId;\n this.$http.post('${yhxt}/bizEngineeringProject/v1/getJson', this.projectParams).then(function (res) {\n _this4.projectOptions = res.data.rows;\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n this.data = [];\n },\n handleCloseDialog: function handleCloseDialog() {\n this.dialogVisible = false;\n this.form = {\n reformFlag: 1,\n type: 0,\n accessories: []\n };\n }\n }\n};",null]}