From 1ca2c8371a7e6b1aa9bc25517efb67574347f9a5 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期四, 14 九月 2023 11:07:16 +0800
Subject: [PATCH] modified: src/components/view/finishedProductInspection.vue modified: src/components/view/finishedProductInspectionUp.vue modified: src/components/view/processInspection.vue modified: src/components/view/processInspectionUpdate.vue modified: src/components/view/rawInsDetail.vue modified: src/components/view/rawUnqualified/raw.vue modified: src/components/view/unqualifiedManagement.vue
---
src/components/view/finishedProductInspection.vue | 11 +++++++----
src/components/view/processInspectionUpdate.vue | 2 ++
src/components/view/finishedProductInspectionUp.vue | 4 ++--
src/components/view/processInspection.vue | 6 +++++-
src/components/view/rawInsDetail.vue | 8 +++++---
src/components/view/rawUnqualified/raw.vue | 1 +
src/components/view/unqualifiedManagement.vue | 1 +
7 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/src/components/view/finishedProductInspection.vue b/src/components/view/finishedProductInspection.vue
index f76081d..8b0c9aa 100644
--- a/src/components/view/finishedProductInspection.vue
+++ b/src/components/view/finishedProductInspection.vue
@@ -367,12 +367,15 @@
// this.usernameOptions = data
},
- comBackMain(){
- this.showAdd=false
- this.showLook=false
- this.showUp=false
+ comBackMain(val){
+ this.showAdd=false
+ this.showLook=false
+ this.showUp=false
this.init()
this.getInspectionTableData()
+ if(val){
+ this.$parent.removeAllTab()
+ }
}
}
diff --git a/src/components/view/finishedProductInspectionUp.vue b/src/components/view/finishedProductInspectionUp.vue
index 0bb486e..f40a66f 100644
--- a/src/components/view/finishedProductInspectionUp.vue
+++ b/src/components/view/finishedProductInspectionUp.vue
@@ -322,13 +322,12 @@
this.$axios.post(this.$api.url.finishedInspectUpdateFinishInspectsById, {
id: this.detailId
}).then(res => {
- console.log(res);
if (res.code == 200) {
this.$message({
message: '涓婃姤鎴愬姛',
type: 'success'
});
- this.$refs.comBackMain()
+ this.$refs.comBackMain(true)
} else {
this.$message({
message: res.message,
@@ -336,6 +335,7 @@
});
}
})
+
},
changeOptionsSamplename(){
let id=this.processInspectVo.material.split("-")[0]
diff --git a/src/components/view/processInspection.vue b/src/components/view/processInspection.vue
index 5bae215..d352b24 100644
--- a/src/components/view/processInspection.vue
+++ b/src/components/view/processInspection.vue
@@ -359,9 +359,13 @@
this.rowInfp=row
this.showUp=true
},
- combackMain(){
+ combackMain(val){
this.showUp=false
this.showLook=false
+ this.defaultInitializationTable(); // 鍒濆鍖栬〃鏍兼暟鎹�
+ if(val){
+ this.$parent.removeAllTab()
+ }
},
searchPro(){
this.search.countSize=this.pageSize
diff --git a/src/components/view/processInspectionUpdate.vue b/src/components/view/processInspectionUpdate.vue
index decd795..9b5f8f9 100644
--- a/src/components/view/processInspectionUpdate.vue
+++ b/src/components/view/processInspectionUpdate.vue
@@ -329,12 +329,14 @@
message: '涓婃姤鎴愬姛',
type: 'success'
});
+ this.$parent.combackMain(true)
} else {
this.$message({
message: res.message,
type: 'warning'
});
}
+
})
},
handleClick() { },
diff --git a/src/components/view/rawInsDetail.vue b/src/components/view/rawInsDetail.vue
index 2ab34d0..7dea5b5 100644
--- a/src/components/view/rawInsDetail.vue
+++ b/src/components/view/rawInsDetail.vue
@@ -484,9 +484,11 @@
async submitSave() {
const res = await this.$axios.post(
this.$api.url.updateRawInspectsById + `${this.detailId}`
- );
- this.$message.success("鎻愪氦鎴愬姛");
- this.getDetailInfo();
+ ).then(res=>{
+聽 聽 聽 聽 this.$parent.removeAllTab()
+ this.$message.success("鎻愪氦鎴愬姛");
+ this.getDetailInfo();
+聽 聽 聽 });
},
// 鑾峰彇璁惧鏍戝唴瀹�
getOptions() {
diff --git a/src/components/view/rawUnqualified/raw.vue b/src/components/view/rawUnqualified/raw.vue
index cf5aa02..46c90ac 100644
--- a/src/components/view/rawUnqualified/raw.vue
+++ b/src/components/view/rawUnqualified/raw.vue
@@ -247,6 +247,7 @@
.then(res => {
this.unqualifiedTable = [];
this.getDetailInfo();
+ this.$parent.removeAllTab()
});
}
}
diff --git a/src/components/view/unqualifiedManagement.vue b/src/components/view/unqualifiedManagement.vue
index 2d8c9d7..0101e34 100644
--- a/src/components/view/unqualifiedManagement.vue
+++ b/src/components/view/unqualifiedManagement.vue
@@ -243,6 +243,7 @@
.then(res => {
this.unqualifiedTable = [];
this.getDetailInfo();
+ this.$parent.removeAllTab()
});
}
}
--
Gitblit v1.9.3