From f13d1d01c3c3cbb075e63ae02be54bbb023c13d0 Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期三, 24 七月 2024 16:50:22 +0800 Subject: [PATCH] feat:薪资薪酬核算模块 --- src/views/productManage/silkRegisterForm/addPage.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/productManage/silkRegisterForm/addPage.vue b/src/views/productManage/silkRegisterForm/addPage.vue index b7bd39a..df2b635 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 : {}) @@ -769,7 +770,7 @@ getSelectDataList() { //杞﹂棿 getDictList({ - dictType: 1, + dictType: 2, }).then((res) => { if (res.code == 200) { this.nameList = res.data || []; @@ -791,7 +792,7 @@ // }); //搴勫彛 getDictList({ - dictType: 0, + dictType: 1, }).then((res) => { if (res.code == 200) { this.marketList = res.data || []; @@ -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 = ""; }, @@ -1024,7 +1025,11 @@ message: "淇濆瓨鎴愬姛锛�", type: "success", }); - this.activeName = "second" + if(res.data.ID){ + this.registerId=res.data.ID; + } + this.activeName = "second"; + this.getDetailsData(); // this.$router.push({ // path: "/productManage/silkRegisterForm", // }); @@ -1066,7 +1071,6 @@ } } else { console.log("error submit!!"); - return false; } }); -- Gitblit v1.8.0