From 573265f7d79341298ba4287be38f00ddbc66e7ec Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 12:00:51 +0800
Subject: [PATCH] 标准查新bug
---
src/views/business/inspectionTask/components/InspectionWord.vue | 4 -
src/views/standard/standardLibrary/index.vue | 50 ------------
src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue | 5 -
src/views/CNAS/process/method/standardMethod/index.vue | 1
src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue | 25 -----
src/views/CNAS/systemManagement/documentControl/components/FileList.vue | 1
src/views/business/productOrder/index.vue | 4 -
src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue | 1
src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue | 1
src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue | 2
src/views/business/inspectionTask/components/EditInspectionItem.vue | 1
src/views/business/inspectionTask/index.vue | 8 --
src/views/CNAS/systemManagement/customerSatisfaction/components/formDialog.vue | 2
src/views/CNAS/systemManagement/customerSatisfaction/index.vue | 4 -
src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue | 1
src/views/business/materialOrder/copperOrder.vue | 2
src/views/business/materialOrder/customsInspection.vue | 1
src/views/standard/standardLibrary/components/BatchCopy.vue | 4 -
src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue | 3
src/views/CNAS/systemManagement/internalAuditManagement/components/auditReport.vue | 1
src/views/structural/capabilityAndLaboratory/laboratory/index.vue | 1
src/views/performance/class/index.vue | 10 --
src/components/Table/value-table.vue | 16 ---
src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspection.vue | 1
src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue | 1
src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue | 2
src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSignDia.vue | 1
src/views/business/productOrder/components/add.vue | 1
src/views/business/inspectionTask/inspection.vue | 5 -
src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue | 11 --
src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSign.vue | 1
src/views/performance/manHour/workTimeManagement.vue | 6 -
src/views/CNAS/systemManagement/correctiveAction/components/correctiveInfo.vue | 1
src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue | 10 --
src/views/performance/manHour/workTimeStatistics.vue | 1
src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue | 5 -
src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue | 3
src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue | 9 --
src/views/CNAS/systemManagement/correctiveAction/index.vue | 3
src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspectionDia.vue | 1
40 files changed, 6 insertions(+), 204 deletions(-)
diff --git a/src/components/Table/value-table.vue b/src/components/Table/value-table.vue
index 5269c88..1d50835 100644
--- a/src/components/Table/value-table.vue
+++ b/src/components/Table/value-table.vue
@@ -1120,10 +1120,6 @@
},
})
.then((res) => {
- if (res.code === 201) {
- this.addLoad = false;
- return;
- }
this.$message.success("娣诲姞鎴愬姛");
this.addDia = false;
this.selectList("page");
@@ -1162,10 +1158,6 @@
}
)
.then((res) => {
- if (res.code === 201) {
- this.loading = false;
- return;
- }
this.downDia = false;
this.loading = false;
this.$message.success("瀵煎嚭鎴愬姛");
@@ -1213,7 +1205,7 @@
this.$refs.upload.clearFiles();
this.uploadDia = false;
this.uploading = false;
- if (response.code == 201) {
+ if (response.code != 200) {
this.$message.error(response.message);
return;
}
@@ -1315,9 +1307,6 @@
),
})
.then((res) => {
- if (res.code === 201) {
- return;
- }
this.$message.success("鍒犻櫎鎴愬姛");
this.selectList("page");
})
@@ -1352,9 +1341,6 @@
}
)
.then((res) => {
- if (res.code === 201) {
- return;
- }
this.$parent.submitBatchCheckDialog();
this.$message.success("鎿嶄綔鎴愬姛");
});
diff --git a/src/views/CNAS/process/method/standardMethod/index.vue b/src/views/CNAS/process/method/standardMethod/index.vue
index bb4602e..ead5404 100644
--- a/src/views/CNAS/process/method/standardMethod/index.vue
+++ b/src/views/CNAS/process/method/standardMethod/index.vue
@@ -385,7 +385,6 @@
})
.then(() => {
delStandardMethod({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.getList();
});
diff --git a/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue b/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue
index 4321fb6..59d2b8c 100644
--- a/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue
+++ b/src/views/CNAS/process/method/standardNoveltyRetrieval/index.vue
@@ -14,7 +14,7 @@
</div>
<div>
<el-button size="medium" type="primary" @click="openApprovalDialog1">寤� 妗�</el-button>
- <el-upload ref='upload' :action="action" :before-upload="beforeUpload" :headers="headers" :on-error="onError"
+ <el-upload ref='upload' :action="action" :before-upload="beforeUpload" :headers="uploadHeader" :on-error="onError"
:on-success="handleSuccessUp" :show-file-list="false"
accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar'
style="display: inline-block; margin-left: 10px;">
@@ -96,6 +96,7 @@
addSearchNewArchived, exportMethodSearchNew,
pageMethodSearchNew, pageSearchNewArchived, pageSearchNewBackups, ratifySearchNewArchivedr
} from '@/api/cnas/process/method/standardNoveltyRetrieval'
+import {selectUserCondition} from "@/api/performance/class";
export default {
name: 'a7-standard-novelty-retrieval',
@@ -468,7 +469,6 @@
writeDate: '',
ratifyDate: '',
},
- userList: [],
approvalDialog: false,
approvalDialog1: false,
viewRocordDia: false,
@@ -670,30 +670,9 @@
this.oldPage.size = page.limit
this.searchList();
},
- //
- getUserList() {
- this.$axios.post(this.$api.user.selectUserList, {
- page: { current: -1, size: -1, },
- entity: { name: null }
- }, {
- headers: {
- 'Content-Type': 'application/json'
- }
- }).then(res => {
- if (res.code === 201) {
- return
- }
- this.userList = res.data.body.records
- })
- },
},
// 鐢ㄤ簬涓婁紶鏂囦欢鐨勪俊鎭�
computed: {
- headers() {
- return {
- 'token': sessionStorage.getItem('token')
- }
- },
action() {
return this.javaApi + '/processMethodSearchNew/importMethodSearchNew'
}
diff --git a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
index 097d40f..1e281d6 100644
--- a/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
+++ b/src/views/CNAS/systemManagement/correctiveAction/components/ViewTestRecord.vue
@@ -94,7 +94,6 @@
this.tableLoading = true
getSuperviseDetailCorrectFileList({ superviseDetailsCorrectId: this.info.superviseDetailsCorrectId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data
}).catch(err => {
this.tableLoading = false
@@ -118,7 +117,6 @@
this.tableLoading = true
delSuperviseDetailCorrectFile({ superviseDetailsCorrectFileId: row.superviseDetailsCorrectFileId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchTableList()
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/correctiveAction/components/correctiveInfo.vue b/src/views/CNAS/systemManagement/correctiveAction/components/correctiveInfo.vue
index 16d0d92..e84cb27 100644
--- a/src/views/CNAS/systemManagement/correctiveAction/components/correctiveInfo.vue
+++ b/src/views/CNAS/systemManagement/correctiveAction/components/correctiveInfo.vue
@@ -203,7 +203,6 @@
searchInfo(row) {
this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId
getSuperviseDetailCorrect({ superviseDetailsId: row.superviseDetailsId }).then(res => {
- if (res.code === 201) return
this.form = res.data
}).catch(err => {
console.log('err---', err);
diff --git a/src/views/CNAS/systemManagement/correctiveAction/index.vue b/src/views/CNAS/systemManagement/correctiveAction/index.vue
index 9360848..b86b2a3 100644
--- a/src/views/CNAS/systemManagement/correctiveAction/index.vue
+++ b/src/views/CNAS/systemManagement/correctiveAction/index.vue
@@ -42,7 +42,7 @@
name: 'a8-corrective-action',
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
components: {
- // QualityInfo,
+ // QualityInfo,
CorrectiveInfo,
limsTable,
TableCard,
@@ -129,7 +129,6 @@
this.tableLoading = true
pageSuperviseDetailCorrect({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
this.page.total = res.data.total
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/customerSatisfaction/components/formDialog.vue b/src/views/CNAS/systemManagement/customerSatisfaction/components/formDialog.vue
index 13e5d6d..0310230 100644
--- a/src/views/CNAS/systemManagement/customerSatisfaction/components/formDialog.vue
+++ b/src/views/CNAS/systemManagement/customerSatisfaction/components/formDialog.vue
@@ -193,7 +193,6 @@
if (this.operationType === 'add') {
addClientSatisfaction(this.form).then(res => {
this.editLoad = false
- if (res.code === 201) return
this.$message.success('鎻愪氦鎴愬姛')
this.closeFormDia()
}).catch(err => {
@@ -203,7 +202,6 @@
} else {
updateClientSatisfaction(this.form).then(res => {
this.editLoad = false
- if (res.code === 201) return
this.$message.success('鎻愪氦鎴愬姛')
this.closeFormDia()
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
index ab7529b..6ea9848 100644
--- a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
+++ b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
@@ -218,7 +218,6 @@
this.tableLoading = true
pageClientSatisfaction({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
this.page.total = res.data.total
}).catch(err => {
@@ -229,7 +228,6 @@
this.tableLoading1 = true
pageAnalyseFile({ ...entity, ...page }).then(res => {
this.tableLoading1 = false
- if (res.code === 201) return
this.tableData1 = res.data.records
this.page1.total = res.data.total
}).catch(err => {
@@ -286,7 +284,6 @@
this.tableLoading = true
delClientSatisfaction({ clientSatisfactionId: row.clientSatisfactionId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchList()
}).catch(err => {
@@ -319,7 +316,6 @@
this.tableLoading = true
delAnalyseFile({ analyseFileId: row.analyseFileId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchList()
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
index 7928ac9..d6cc6d9 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/ControlledFileApplication.vue
@@ -508,7 +508,6 @@
})
.then(() => {
delManageDocumentControlled({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
index 3c08b0d..879f070 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/DistributionCollectionRecord.vue
@@ -542,7 +542,6 @@
})
.then(() => {
delManageDocumentIssueRecycle({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
index 7a61745..8f9d12a 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileChangeRequest.vue
@@ -628,7 +628,6 @@
})
.then(() => {
delManageDocumentAlter({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
index 4a77a2a..4696f3e 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileList.vue
@@ -360,7 +360,6 @@
})
.then(() => {
delManageDocumentList({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
index 128cd8b..0cb20d9 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
@@ -438,7 +438,6 @@
})
.then(() => {
delManageDocumentCancel({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
index 1f13e97..d64c541 100644
--- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue
@@ -311,7 +311,6 @@
if (action === 'confirm') {
// 鐐瑰嚮鈥滅‘瀹氣�濇寜閽紝鍏佽鍏抽棴
checkManageRecordCheck({ id: row.id, checkState: '閫氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -325,7 +324,6 @@
} else if (action === 'cancel') {
// 鐐瑰嚮鈥滃彇娑堚�濇寜閽紝涓嶅厑璁稿叧闂�
checkManageRecordCheck({ id: row.id, checkState: '涓嶉�氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -357,7 +355,6 @@
if (action === 'confirm') {
// 鐐瑰嚮鈥滅‘瀹氣�濇寜閽紝鍏佽鍏抽棴
ratifyManageRecordCheck({ id: row.id, ratifyState: '閫氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -371,7 +368,6 @@
} else if (action === 'cancel') {
// 鐐瑰嚮鈥滃彇娑堚�濇寜閽紝涓嶅厑璁稿叧闂�
ratifyManageRecordCheck({ id: row.id, ratifyState: '涓嶉�氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -460,7 +456,6 @@
})
.then(() => {
delManageRecordCheck({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
index c214077..3ab5cc0 100644
--- a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue
@@ -324,9 +324,6 @@
if (this.title == '鏂板') {
addManageRecordCancel(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -337,9 +334,6 @@
} else {
doManageRecordCancel(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -378,7 +372,6 @@
if (action === 'confirm') {
// 鐐瑰嚮鈥滅‘瀹氣�濇寜閽紝鍏佽鍏抽棴
ratifyManageRecordCancel({ id: row.id, ratifyState: '閫氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -392,7 +385,6 @@
} else if (action === 'cancel') {
// 鐐瑰嚮鈥滃彇娑堚�濇寜閽紝涓嶅厑璁稿叧闂�
ratifyManageRecordCancel({ id: row.id, ratifyState: '涓嶉�氳繃' }).then(res => {
- if (res.code === 201) return
this.refreshTable()
done();
this.$message({
@@ -420,7 +412,6 @@
})
.then(() => {
delManageRecordCancel({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
index 0cc82fa..cf9982a 100644
--- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue
@@ -407,9 +407,6 @@
if (this.title == '鏂板') {
addManageRecordIssueRecycle(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -420,9 +417,6 @@
} else {
doManageRecordIssueRecycle(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -444,9 +438,6 @@
obj = { id, documentCode, documentName, documentVersion, pages, documentType, number, receiveUser, receiveDate, departLims, signedDate: getYearAndMonthAndDays(), signedUser: this.userId }
doManageRecordIssueRecycle(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -470,7 +461,6 @@
})
.then(() => {
delManageRecordIssueRecycle({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
index 6b7dd89..cc13d08 100644
--- a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
@@ -431,7 +431,6 @@
}).then(res => {
this.checkLoading = false
this.noCheckLoading = false
- if (res.code === 201) return
this.$message({
type: 'success',
message: '鎿嶄綔鎴愬姛!'
@@ -448,7 +447,6 @@
})
.then(() => {
delManageRecordVerify({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.getList0()
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
index a2195e4..60eafd1 100644
--- a/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/regularReviewsRecord.vue
@@ -474,9 +474,6 @@
if (this.title == '鏂板') {
addManageRecordIntervals(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -487,9 +484,6 @@
} else {
doManageRecordIntervals(obj).then(res => {
this.addLoading = false
- if (res.code == 201) {
- return
- }
this.addDialogVisible = false
this.$message({
type: 'success',
@@ -516,9 +510,6 @@
ratifyState: state
}).then(res => {
this.checkLoading = false
- if (res.code == 201) {
- return
- }
this.noCheckLoading = false
this.$message({
type: 'success',
@@ -553,7 +544,6 @@
submitManageRecordIntervalsTotal({
id: row.id
}).then(res => {
- if (res.code === 201) return
this.$message({
type: 'success',
message: '鎻愪氦鎴愬姛!'
@@ -575,7 +565,6 @@
})
.then(() => {
delManageRecordIntervals({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refreshTable();
});
diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
index 8619551..47d4106 100644
--- a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -691,9 +691,6 @@
})
.then(() => {
ratifyManageRecordAudit({ id: row.id }).then(res => {
- if (res.code === 201) {
- return;
- }
this.$message.success('鎿嶄綔鎴愬姛');
this.refreshTable();
})
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspection.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspection.vue
index 8b851ca..8fd7254 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspection.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspection.vue
@@ -171,7 +171,6 @@
this.tableLoading = true
pageInternalCheck({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
this.page.total = res.data.total
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspectionDia.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspectionDia.vue
index a1f1e58..8295da4 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspectionDia.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditInspectionDia.vue
@@ -134,7 +134,6 @@
this.diaLoading = true
getInternalCheckOne({ checkId: row.checkId }).then(res => {
this.diaLoading = false
- if (res.code === 201) return
this.form = res.data
this.checkDetailList = this.form.checkDetailList
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSign.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSign.vue
index f18a42f..116cbce 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSign.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSign.vue
@@ -119,7 +119,6 @@
this.tableLoading = true
pageInternalMeeting({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
this.page.total = res.data.total
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSignDia.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSignDia.vue
index e648ee2..892d098 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSignDia.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditMeetingSignDia.vue
@@ -101,7 +101,6 @@
this.diaLoading = true
getInternalMeetingOne({ meetingId: row.meetingId }).then(res => {
this.diaLoading = false
- if (res.code === 201) return
this.form = res.data
this.form.participant = this.form.participant.split(',').map(Number)
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditReport.vue b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditReport.vue
index 6909f5e..a29da33 100644
--- a/src/views/CNAS/systemManagement/internalAuditManagement/components/auditReport.vue
+++ b/src/views/CNAS/systemManagement/internalAuditManagement/components/auditReport.vue
@@ -229,7 +229,6 @@
this.tableLoading = true
pageInternalReport({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
this.page.total = res.data.total
}).catch(err => {
diff --git a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
index bf9e244..988e8e2 100644
--- a/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
+++ b/src/views/CNAS/systemManagement/measuresDealRisks/components/listRiskAnalysisControlPlans.vue
@@ -136,7 +136,6 @@
},
initData() {
getPageList(this.search).then(res => {
- if (res.code === 201) return;
this.tableData = res.data.records;
this.search.total = res.data.total;
});
@@ -166,7 +165,6 @@
// 瀹℃壒鎺ュ彛
approvalApi(userId, status) {
riskAnalysisApprovalOfControlPlanChecklist({ approval: userId, status }).then(res => {
- if (res.code === 201) return;
this.initData()
this.$message({
type: 'success',
@@ -199,7 +197,6 @@
// 鎵瑰噯鎺ュ彛
approveApi(userId, status) {
approvalOfControlPlanChecklist({ approve: userId, status }).then(res => {
- if (res.code === 201) return;
this.initData()
this.$message({
type: 'success',
@@ -214,7 +211,7 @@
});
},
onSuccess(response) {
- if (response.code == 201) {
+ if (response.code != 200) {
this.$message({
type: 'error',
message: response.message,
diff --git a/src/views/business/inspectionTask/components/EditInspectionItem.vue b/src/views/business/inspectionTask/components/EditInspectionItem.vue
index 3b711e9..fc13ce9 100644
--- a/src/views/business/inspectionTask/components/EditInspectionItem.vue
+++ b/src/views/business/inspectionTask/components/EditInspectionItem.vue
@@ -216,7 +216,6 @@
updateProductOnPlan(params)
.then((res) => {
this.handleEditLoading = false;
- if (res.code === 201) return;
this.$message.success("淇敼鎴愬姛");
this.editAskDia = false;
this.getTableData();
diff --git a/src/views/business/inspectionTask/components/InspectionWord.vue b/src/views/business/inspectionTask/components/InspectionWord.vue
index abe220c..51c9645 100644
--- a/src/views/business/inspectionTask/components/InspectionWord.vue
+++ b/src/views/business/inspectionTask/components/InspectionWord.vue
@@ -1848,10 +1848,6 @@
currentTable: this.currentTable,
sampleId: this.currentSample.id
}).then(res => {
- if (res.code == 201) {
- this.$message.error('淇濆瓨澶辫触')
- return
- }
this.$message.success('宸蹭繚瀛�')
})
// 鍚� Worker 鍙戦�佹秷鎭紝寮�濮嬪鐞嗛�昏緫
diff --git a/src/views/business/inspectionTask/index.vue b/src/views/business/inspectionTask/index.vue
index e03b541..d3505bf 100644
--- a/src/views/business/inspectionTask/index.vue
+++ b/src/views/business/inspectionTask/index.vue
@@ -933,10 +933,6 @@
this.bindCurrentInfo = row;
getBindingProductByProductId({ productId: row.insProductId })
.then((res) => {
- if (res.coe == 201) {
- // this.$message.error('鏈粦瀹氭楠岄」')
- return;
- }
// console.log(res)
this.bindTableData = res.data;
this.bindDialogVisible = true;
@@ -950,10 +946,6 @@
productId: this.bindCurrentInfo.insProductId,
})
.then((res) => {
- if (res.coe == 201) {
- // this.$message.error('鏈粦瀹氭楠岄」')
- return;
- }
// console.log(res)
this.bindAddTableData = res.data;
this.bindAddDialogVisible = true;
diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue
index ecb16fd..9df7731 100644
--- a/src/views/business/inspectionTask/inspection.vue
+++ b/src/views/business/inspectionTask/inspection.vue
@@ -1482,7 +1482,6 @@
[type]: type === "remark" ? m : Number(m),
id: this.insOrder.id,
}).then((res) => {
- if (res.code == 201) return;
this.$message.success("淇濆瓨鎴愬姛");
});
},
@@ -2710,10 +2709,6 @@
orderId: this.orderId,
sonLaboratory: this.sonLaboratory
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("淇濆瓨澶辫触");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
// 鍚� Worker 鍙戦�佹秷鎭紝寮�濮嬪鐞嗛�昏緫
diff --git a/src/views/business/materialOrder/copperOrder.vue b/src/views/business/materialOrder/copperOrder.vue
index 15b20e2..8227fdd 100644
--- a/src/views/business/materialOrder/copperOrder.vue
+++ b/src/views/business/materialOrder/copperOrder.vue
@@ -730,7 +730,6 @@
})
}).then(res => {
this.noNeedCheckLoad = false
- if (res.code == 201) return
this.$message.success('宸叉彁浜�')
this.closeOpenPage()
}).catch(e=>{
@@ -1171,7 +1170,6 @@
})
}).then(res => {
this.saveLoad = false
- if (res.code == 201) return
this.$message.success('宸叉彁浜�')
this.bsm3Dia = false;
this.closeOpenPage()
diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue
index 797161c..de04e8c 100644
--- a/src/views/business/materialOrder/customsInspection.vue
+++ b/src/views/business/materialOrder/customsInspection.vue
@@ -1072,7 +1072,6 @@
}),
}).then(res => {
this.saveLoad = false
- if (res.code == 201) return
this.$message.success('宸叉彁浜�')
this.bsm3Dia = false;
this.closeOpenPage()
diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue
index 909003a..2a65236 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/add.vue
@@ -1301,7 +1301,6 @@
company: this.addObj.company
}).then(res => {
this.saveLoad = false
- if (res.code == 201) return
this.$message.success('鎻愪氦鎴愬姛')
selectOrderManDay({
id: this.currentId
diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue
index 5ecdc8b..0d97704 100644
--- a/src/views/business/productOrder/index.vue
+++ b/src/views/business/productOrder/index.vue
@@ -1122,10 +1122,6 @@
userId: this.distributeData.userId,
sonLaboratory: this.distributeData.sonLaboratory,
}).then(res => {
- if (res.code === 201) {
- this.upLoad = false
- return
- }
this.$message.success('淇敼鎴愬姛')
this.upLoad = false
this.issuedDialogVisible = false
diff --git a/src/views/performance/class/index.vue b/src/views/performance/class/index.vue
index 4a318ef..209139c 100644
--- a/src/views/performance/class/index.vue
+++ b/src/views/performance/class/index.vue
@@ -565,7 +565,6 @@
laboratory: this.query.laboratory,
}).then((res) => {
this.pageLoading = false;
- if (res.code == 201) return;
this.total = res.data.total;
this.yearList = res.data.records.map((item) => {
for (let key in item.year) {
@@ -625,7 +624,6 @@
})
.then((res) => {
this.loading = false;
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.schedulingVisible = false;
this.schedulingQuery = {
@@ -650,7 +648,6 @@
this.configTimeVisibleLoading = true;
list()
.then((res) => {
- if (res.code == 201) return;
if (res.data.length > 0) {
res.data.forEach((item) => {
item.isEdit = false;
@@ -702,14 +699,12 @@
// 缂栬緫
newObj.id = item.id;
shiftUpdate(newObj).then((res) => {
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.getTimeList();
});
} else {
// 鏂板
shiftAdd(newObj).then((res) => {
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.getTimeList();
});
@@ -720,7 +715,6 @@
shiftRemove({
id: item.id,
}).then((res) => {
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.getTimeList();
});
@@ -802,7 +796,6 @@
id: m.id,
shift: e,
}).then((res) => {
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
m.shift = e;
});
@@ -810,9 +803,6 @@
},
getUsers() {
selectUserCondition({ type: 1 }).then((res) => {
- if (res.code === 201) {
- return;
- }
let arr = res.data;
this.personList = arr;
});
diff --git a/src/views/performance/manHour/workTimeManagement.vue b/src/views/performance/manHour/workTimeManagement.vue
index 7fb4049..8be8062 100644
--- a/src/views/performance/manHour/workTimeManagement.vue
+++ b/src/views/performance/manHour/workTimeManagement.vue
@@ -660,7 +660,6 @@
if (!this.formData.id) {
insertAuxiliaryWorkingHoursDay(this.formData).then((res) => {
this.addLoad = false;
- if (res.code == 201) return;
this.$message.success("宸叉彁浜�");
this.formData.number = "";
this.formData.amount = "";
@@ -675,7 +674,6 @@
} else {
updateAuxiliaryWorkingHoursDay(this.formData).then((res) => {
this.addLoad = false;
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.formData.number = "";
this.formData.amount = "";
@@ -728,9 +726,6 @@
});
approve({ auxiliaryWorkingHoursDays: auxiliaryWorkingHoursDays }).then(
(res) => {
- if (res.code === 201) {
- return;
- }
this.submitBatchCheckDialog();
this.$message.success("鎿嶄綔鎴愬姛");
}
@@ -767,7 +762,6 @@
} else {
this.checkLoadY = false;
}
- if (res.code == 201) return;
this.$message.success("鎿嶄綔鎴愬姛");
this.checkVisible = false;
this.refreshTable("page");
diff --git a/src/views/performance/manHour/workTimeStatistics.vue b/src/views/performance/manHour/workTimeStatistics.vue
index daffdf6..21dff0b 100644
--- a/src/views/performance/manHour/workTimeStatistics.vue
+++ b/src/views/performance/manHour/workTimeStatistics.vue
@@ -118,7 +118,6 @@
selectAuxiliaryAllByMonth(this.queryParams)
.then((res) => {
this.tableLoading = false;
- if (res.code === 201) return;
this.tableData = res.data;
})
.catch(() => {
diff --git a/src/views/standard/standardLibrary/components/BatchCopy.vue b/src/views/standard/standardLibrary/components/BatchCopy.vue
index 4b60223..7ea84b4 100644
--- a/src/views/standard/standardLibrary/components/BatchCopy.vue
+++ b/src/views/standard/standardLibrary/components/BatchCopy.vue
@@ -537,7 +537,6 @@
};
// 鎺掑簭澶嶅埗
copyStandardProductSort(params).then((res) => {
- if (res.code === 201) return;
this.$message.success("澶嶅埗鎴愬姛");
this.compareDia = false;
this.batchCopyDia = false;
@@ -551,7 +550,6 @@
};
// 璋冨彇鍗曠嫭姣旇緝宸﹀彸瑕佹眰鍊肩殑鎺ュ彛
copyStandardProductOne(params).then((res) => {
- if (res.code === 201) return;
this.compareDia = true;
this.compareList = res.data;
});
@@ -563,7 +561,6 @@
};
// 璋冨彇姣旇緝宸﹀彸瑕佹眰鍊肩殑鎺ュ彛
copyStandardProductList(params).then((res) => {
- if (res.code === 201) return;
this.compareDia = true;
this.compareList = res.data;
});
@@ -578,7 +575,6 @@
updateStandardProductListBatch(params)
.then((res) => {
this.handleCompareLoading = false;
- if (res.code === 201) return;
this.$message.success("澶嶅埗鎴愬姛");
this.compareDia = false;
this.batchCopyDia = false;
diff --git a/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue b/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue
index 3c44f19..bcace15 100644
--- a/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue
+++ b/src/views/standard/standardLibrary/components/bindSupplierDensityDialogAsk.vue
@@ -196,9 +196,6 @@
.then(() => {
deleteProductSupplierAsk({ supplierAskId: row.supplierAskId })
.then((res) => {
- if (res.code === 201) {
- return;
- }
this.$message.success("鍒犻櫎鎴愬姛");
this.searchTableData();
})
diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index dab88fd..36e74a2 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -878,10 +878,6 @@
this.addLoad = true;
addStandardTree(this.addOb)
.then((res) => {
- if (res.code === 201) {
- this.addLoad = false;
- return;
- }
this.$message.success("娣诲姞鎴愬姛");
this.addDia = false;
this.list
@@ -915,10 +911,6 @@
this.updateLoad = true;
updateStandardTree(this.addOb)
.then((res) => {
- if (res.code === 201) {
- this.updateLoad = false;
- return;
- }
this.$message.success("娣诲姞鎴愬姛");
this.$tab.refreshPage();
// this.selectStandardTreeList();
@@ -952,10 +944,6 @@
ask: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -966,10 +954,6 @@
tell: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -981,10 +965,6 @@
methodS: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -996,10 +976,6 @@
radius: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -1010,10 +986,6 @@
price: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -1024,10 +996,6 @@
manHour: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -1038,10 +1006,6 @@
templateId: value,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
});
},
@@ -1122,11 +1086,7 @@
state: row.state,
}),
}).then((res) => {
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
- // this.$message.success('宸蹭繚瀛�')
+ this.$message.success('宸蹭繚瀛�')
});
},
filterHandler(value) {
@@ -1276,10 +1236,6 @@
}),
}).then((res) => {
this.sectionLoad = false;
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
this.sectionUpDia = false;
});
@@ -1298,10 +1254,6 @@
},
}).then((res) => {
this.sectionLoad = false;
- if (res.code == 201) {
- this.$message.error("鏈繚瀛�");
- return;
- }
this.$message.success("宸蹭繚瀛�");
this.sectionUpDia = false;
this.currentPage0 = 1;
diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index fc2642c..ad3396d 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -380,7 +380,6 @@
addCertificationDetail({ ...this.formData })
.then((res) => {
this.loading = false;
- if (res.code === 201) return;
this.$message.success("宸叉彁浜�");
this.refreshTable();
this.resetForm("formDataRef");
--
Gitblit v1.9.3