{"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\\QualityReview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\specialProjectManagement\\qualityManagement\\QualityReview.vue","mtime":1681377303705},{"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":315532800000},{"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/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.reflect.delete-property\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 } from 'vuex';\nimport req from '@/request.js';\nimport basicData from '@/api/basicData.js';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue'; // import ProjectInfoDialog from '@/components/dialog/ProjectInfoDialog.vue'\n\nimport QualityManagementDialog from '@/components/dialog/QualityManagementDialog.vue';\nimport eipUserSelector from '@/components/eipControl/selector/EipUserSelector.vue';\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nexport default {\n name: 'QualityReview',\n components: {\n // eipOrgSelector,\n QualityManagementDialog: QualityManagementDialog,\n // eipUserSelector,\n fileUpload: fileUpload,\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n accessories: [],\n dadToSon: {\n bizPath: 'specialproject',\n fileList: []\n },\n fullscreenLoading: false,\n //全屏加载控件\n searchForm: {},\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_project_manage_quality_change',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/bizProjectManageQualityChange/v1/getJsonVo',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n\n },\n exportQuery: {},\n data: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n dialogVisible: false,\n dialogVisibleEnclosure: false,\n //判断是否是添加还是修改\n type: '',\n form: {\n confirmResult: 1,\n accessories: []\n },\n disabledSave: false,\n permission: 'b',\n key: '',\n //附件数据\n enclosureData: [],\n //附件管理所需id\n sourceId: '',\n //删除附件管理ids\n ids: [],\n loading: false,\n //上传附件加载控制\n disabled: false,\n //按钮禁用控制\n downLoading: false,\n //文件导出加载控制\n accept: '.jpg,.jpeg,.png,.bmp,.pdf,.JPG,.JPEG,.PBG,.BMP,.PDF,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.rtf,.txt,.zip,.rar,.vsd,.dwg,',\n files: [],\n rules: {\n confirmResult: {\n required: true,\n message: '请选择',\n trigger: 'blur'\n },\n accessories: {\n required: true,\n message: '请上传附件',\n trigger: 'change'\n }\n }\n };\n },\n mounted: function mounted() {},\n computed: mapState({\n // submitUrl: function () {\n // return `${window.context.portal}/portal/commonBasic/v1/`\n // },\n downLoad: function downLoad() {\n return \"\".concat(window.context.portal, \"/bizEngineeringAccessories/v1/minioDrawingUpload?sourceId=\").concat(this.sourceId);\n },\n deleteUrl: function deleteUrl() {\n return window.context.yhxt + '/bizProjectManageQualityChange/v1/updateManageQualityChange';\n },\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n methods: {\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 afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n //新增\n handleAdd: function handleAdd() {\n this.disabledSave = false;\n this.dialogVisible = true;\n this.type = 'add';\n },\n //修改\n handleEdit: function handleEdit(data) {\n var _this = this;\n\n this.disabledSave = false;\n this.type = 'edit';\n this.$http.get('${form}/bizProjectManageQualityChange/v1/getVo/' + data.id).then(function (res) {\n _this.dialogVisible = true;\n _this.form = res.data.bizProjectManageQualityChange;\n res.data.bizEngineeringAccessoriesList.forEach(function (item) {\n item.url = item.attachmentPath;\n item.name = item.attachmentName;\n });\n _this.dadToSon.fileList = res.data.bizEngineeringAccessoriesList;\n }); // let form = {\n // confirmResult: 1\n // }\n // this.sourceId = data.id\n // this.form = {...form, ...data}\n },\n handleClose: function handleClose(done) {\n //清空表单\n this.form = {\n confirmResult: 1\n };\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n done();\n },\n //取消弹窗\n handleCancel: function handleCancel() {\n //清空表单\n this.form = {\n confirmResult: 1\n };\n this.dadToSon = {\n fileList: []\n };\n this.dialogVisible = false;\n },\n //提交保存或者修改\n handleSubmit: function handleSubmit() {\n var _this2 = this;\n\n //验证表单是否填写完\n this.$refs.form.validate(function (bool) {\n if (bool) {\n _this2.disabledSave = true;\n _this2.fullscreenLoading = true; //请求保存提交\n\n Reflect.deleteProperty(_this2.form, 'accessories');\n var data = {\n bizEngineeringAccessoriesList: _this2.accessories,\n bizProjectManageQualityChange: _this2.form\n };\n basicData.addQualityRectification(data).then(function (res) {\n if (res.state) {\n _this2.$message.success(res.message);\n\n _this2.dialogVisible = false;\n\n _this2.$refs.htTable.load();\n } else {\n _this2.$message.error(res.message);\n }\n\n _this2.fullscreenLoading = false; // this.$message.success(res.message)\n // if (res.message === '添加成功') {\n // this.dialogVisible = true\n // this.type = 'edit'\n // } else {\n // this.dialogVisible = false\n // this.form = {\n // confirmResult: 1\n // } //清空表单\n // }\n // if (this.type === 'add') {\n // this.dialogVisible = true\n // this.handleEdit(res.value)\n // } else {\n // this.dialogVisible = false\n // }\n });\n }\n });\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n findinfo: function findinfo() {\n var _this3 = this;\n\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n confirmResult: parseInt(this.searchForm.confirmResult),\n contractName: this.searchForm.contractName\n };\n\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n basicData.getQualityRectification(data).then(function (response) {\n // console.log(res, '11')\n _this3.data = response.rows;\n _this3.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n });\n },\n loadData: function loadData(param, cb) {\n var _this4 = this;\n\n // this.exportQuery = param\n var query = {\n group: 'main',\n operation: 'EQUAL',\n property: 'reformFlag',\n relation: 'AND',\n value: 1\n };\n param.querys.push(query);\n\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\n basicData.getQualityRectification(param).then(function (response) {\n console.log(response);\n _this4.data = response.rows;\n _this4.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n //附件管理\n handleEnclosure: function handleEnclosure() {\n var _this5 = this;\n\n this.$refs.form.validate(function (bool) {\n // this.dialogVisibleEnclosure = true\n if (bool) {\n if (_this5.type === 'edit') {\n _this5.dialogVisibleEnclosure = true;\n\n _this5.getEnclosureData(_this5.sourceId);\n } else {\n _this5.$message.error('请先保存该表单才能进入附件管理');\n }\n } else {\n _this5.$message.error('请先保存该表单才能进入附件管理');\n }\n });\n },\n getEnclosureData: function getEnclosureData(id) {\n var _this6 = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'sourceId',\n relation: 'AND',\n value: id\n }],\n sorter: []\n };\n basicData.getSpecialProjectManagement(8, params).then(function (res) {\n _this6.enclosureData = res.rows;\n });\n },\n handleCloseEnclosure: function handleCloseEnclosure(done) {\n this.enclosureData = [];\n done();\n },\n //文件上传时的钩子\n progress: function progress(event, file, fileList) {\n //将图标改成加载图标\n this.loading = true; //将按钮禁用\n\n this.disabled = true;\n },\n success: function success(response, file, fileList) {\n this.$message.success('文件上传成功'); //重新加载数据\n\n this.getEnclosureData(this.sourceId); //将图标改成上传图标\n\n this.loading = false; //将按钮解禁\n\n this.disabled = false;\n },\n error: function error(response, file, fileList) {\n this.$message.error('文件上传失败');\n delete this.uploadingFiles[Base64.encode(file.name)];\n },\n // //附件导出\n // downLoadImg() {\n // this.downLoading = true\n // const ids = this.unique(this.ids)\n // const strs = ids.join(',')\n // req\n // .download(\n // window.context.portal +\n // '/bizAccessory/v1/minioDrawingdownFile?ids=' +\n // strs\n // )\n // .then(res => {\n // this.downLoading = false\n // this.$refs.multipleTable.clearSelection()\n // this.ids = []\n // })\n // },\n //附件管理删除\n handleEnclosureDel: function handleEnclosureDel() {\n var _this7 = this;\n\n this.downLoading = true;\n var ids = this.unique(this.ids); // console.log(ids.join(','))\n\n var strs = ids.join(',');\n basicData.deleteSpecialProjectManagement(strs).then(function (res) {\n if (res.state) {\n _this7.$message.success('附件删除成功');\n\n _this7.downLoading = false;\n } else {\n _this7.$message.error('附件删除失败');\n\n _this7.downLoading = false;\n }\n\n _this7.getEnclosureData(_this7.sourceId); //清空ids\n\n\n _this7.ids = [];\n });\n },\n handleSelectionChangeEnclosure: function handleSelectionChangeEnclosure(rows) {\n var _this8 = this;\n\n rows.forEach(function (item) {\n _this8.ids.push(item.id);\n });\n },\n //去重\n unique: function unique(arr) {\n for (var i = 0; i < arr.length; i++) {\n for (var j = i + 1; j < arr.length; j++) {\n if (arr[i] == arr[j]) {\n //第一个等同于第二个,splice方法删除第二个\n arr.splice(j, 1);\n j--;\n }\n }\n }\n\n return arr;\n },\n //所属项目\n handleFocusProject: function handleFocusProject() {\n this.$refs.project.open();\n },\n openProject: function openProject() {\n this.$refs.project.open();\n },\n handleSelectProject: function handleSelectProject(data) {\n console.log(data);\n this.form.projectName = data.projectName;\n this.form.projectId = data.projectId;\n this.$refs.projectName.focus();\n this.$refs.projectName.blur();\n }\n }\n};",null]}