From 21e7326b415597938fba463ebb8b3507b7fdbdfd Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 15 三月 2025 13:57:57 +0800
Subject: [PATCH] 修改原材料下单报异常捕获方式
---
src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue | 40 ++--------------------------------------
1 files changed, 2 insertions(+), 38 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
index 3ab5cc0..e332606 100644
--- a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
@@ -101,6 +101,7 @@
pageManageDocumentList,
} from '@/api/cnas/systemManagement/documentControl.js'
export default {
+ name: 'CancellationRecord',
components: {
limsTable
},
@@ -191,43 +192,6 @@
this.getFileList()
},
methods: {
- getPower() {
- let power = JSON.parse(sessionStorage.getItem('power'))
- let add = false
- let del = false
- let up = false;
- let out = false;
- let ratify = false
- for (var i = 0; i < power.length; i++) {
- if (power[i].menuMethod == 'addManageRecordCancel') {
- add = true
- }
- if (power[i].menuMethod == 'delManageRecordCancel') {
- del = true
- }
- if (power[i].menuMethod == 'exportInManageRecordCancel') {
- up = true
- }
- if (power[i].menuMethod == 'ratifyManageRecordCancel') {
- ratify = true
- }
- if (power[i].menuMethod == 'exportOutManageRecordCancel') {
- out = true
- }
- }
- if (!ratify) {
- this.componentData.do.splice(2, 1)
- }
- if (!add) {
- this.componentData.do.splice(1, 1)
- }
- if (!del) {
- this.componentData.do.splice(0, 1)
- }
- this.addPower = add
- this.outPower = out
- this.upPower = up
- },
openAdd() {
this.addInfo = {}
this.title = '鏂板'
@@ -243,7 +207,7 @@
this.outLoading = true
exportOutManageRecordCancel(this.queryParams).then(res => {
this.outLoading = false
- this.$download.downloadFileFromUrl(res.data, "浣滃簾鏂囦欢閿�姣佽褰�");
+ this.$download.saveAs(res.data, "浣滃簾鏂囦欢閿�姣佽褰�");
})
},
getList() {
--
Gitblit v1.9.3