From 481d82ebd4504501b408c458f3d87d912692588e Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期二, 16 七月 2024 11:32:06 +0800
Subject: [PATCH] fix:修复纤度登记表,检验表切换
---
src/views/productManage/silkRegisterForm/addPage.vue | 15 ++++++++-------
src/api/productManage/silkRegisterForm.js | 3 ++-
src/views/productManage/silkRegisterForm/index.vue | 2 +-
src/api/productManage/silkInspectForm.js | 8 ++++++++
4 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/api/productManage/silkInspectForm.js b/src/api/productManage/silkInspectForm.js
index 0de4f00..78d2c6c 100644
--- a/src/api/productManage/silkInspectForm.js
+++ b/src/api/productManage/silkInspectForm.js
@@ -32,3 +32,11 @@
data
})
}
+// 绾ゅ害妫�楠岀殑璇︽儏鏂版帴鍙�
+export function getNewCheckDetails(data) {
+ return request({
+ url: "/api-jl/v1/fineness/checkFinenessID/"+data.id,
+ method: "get",
+ data
+ })
+}
\ No newline at end of file
diff --git a/src/api/productManage/silkRegisterForm.js b/src/api/productManage/silkRegisterForm.js
index c228e27..3790909 100644
--- a/src/api/productManage/silkRegisterForm.js
+++ b/src/api/productManage/silkRegisterForm.js
@@ -80,4 +80,5 @@
method: "get",
params
})
-}
\ No newline at end of file
+}
+
diff --git a/src/views/productManage/silkRegisterForm/addPage.vue b/src/views/productManage/silkRegisterForm/addPage.vue
index b7bd39a..d6402c4 100644
--- a/src/views/productManage/silkRegisterForm/addPage.vue
+++ b/src/views/productManage/silkRegisterForm/addPage.vue
@@ -454,7 +454,8 @@
} from "@/api/productManage/silkRegisterForm.js";
import {
getCheckDetails,
- saveCheck
+ saveCheck,
+ getNewCheckDetails
} from "@/api/productManage/silkInspectForm.js";
import pageMixin from "@/components/makepager/pager/mixin/pageMixin";
//import CommonFormTableView from "@/components/makepager/CommonFormTableView";
@@ -676,8 +677,8 @@
marketProcessOrderNumber: "",
inspector: "",
};
- if (this.inspectID) {
- getCheckDetails({ id: id ? id : this.inspectID }).then((response) => {
+ if (this.registerId) {
+ getNewCheckDetails({ id: id ? id : this.registerId }).then((response) => {
if (response.code === 200) {
let config = JSON.parse(
JSON.stringify(response.data.info ? response.data.info : {})
@@ -906,15 +907,15 @@
// } else {
// this.is_public = false
// }
- this.$router.push({
+ /*this.$router.push({
path: "/productManage/silkRegisterForm/addPage",
query: {
activeName: this.activeName,
inspectID: this.inspectID,
id: this.registerId,
- title:this.title
+ title:this.title
},
- });
+ });*/
this.getDetailsData();
this.keyword = "";
},
@@ -1025,6 +1026,7 @@
type: "success",
});
this.activeName = "second"
+ this.getDetailsData();
// this.$router.push({
// path: "/productManage/silkRegisterForm",
// });
@@ -1066,7 +1068,6 @@
}
} else {
console.log("error submit!!");
-
return false;
}
});
diff --git a/src/views/productManage/silkRegisterForm/index.vue b/src/views/productManage/silkRegisterForm/index.vue
index 0281044..1dd0658 100644
--- a/src/views/productManage/silkRegisterForm/index.vue
+++ b/src/views/productManage/silkRegisterForm/index.vue
@@ -183,7 +183,7 @@
id:row.ID,
activeName:'first',
inspectID:row.finenessCheckID,
- title:type===1?'鏌ョ湅':'淇敼'
+ title:type===1?'鏌ョ湅':'淇敼',
}
});
},
--
Gitblit v1.8.0