Commit ea4f77c8 authored by 耿迪迪's avatar 耿迪迪

电子作业票修改 gengdidi

parent 66e20688
...@@ -239,6 +239,7 @@ ...@@ -239,6 +239,7 @@
this.produceComfirm = JSON.parse(this.certificateData.produceComfirm); this.produceComfirm = JSON.parse(this.certificateData.produceComfirm);
} }
this.specialWorkPermit(); this.specialWorkPermit();
this.active = "workPermit";
} }
}, },
methods:{ methods:{
......
...@@ -617,7 +617,8 @@ ...@@ -617,7 +617,8 @@
} }
}, },
//更新作业单状态 //更新作业单状态
updateWorkPermitStatus(){ async updateWorkPermitStatus(){
await judgeSignUpdateTWorkPermit({workPermitId:this.workPermitId,applyStatus:"2"});
getSpecialWorkPermitByWorkPermitId({workPermitId:this.workPermitId}).then(res =>{ getSpecialWorkPermitByWorkPermitId({workPermitId:this.workPermitId}).then(res =>{
let specialWorkPermits = res.data.specialWorkPermits; let specialWorkPermits = res.data.specialWorkPermits;
let flag = true; let flag = true;
...@@ -635,7 +636,6 @@ ...@@ -635,7 +636,6 @@
this.cancelApproval(); this.cancelApproval();
this.$parent.$parent.getList(); this.$parent.$parent.getList();
} }
judgeSignUpdateTWorkPermit({workPermitId:this.workPermitId,applyStatus:"2"});
}) })
}, },
cancelApproval(){ cancelApproval(){
......
...@@ -829,7 +829,8 @@ ...@@ -829,7 +829,8 @@
} }
}, },
//更新作业单状态 //更新作业单状态
updateWorkPermitStatus(){ async updateWorkPermitStatus(){
await judgeSignUpdateTWorkPermit({workPermitId:this.workPermitId,applyStatus:"2"});
getSpecialWorkPermitByWorkPermitId({workPermitId:this.workPermitId}).then(res =>{ getSpecialWorkPermitByWorkPermitId({workPermitId:this.workPermitId}).then(res =>{
let specialWorkPermits = res.data.specialWorkPermits; let specialWorkPermits = res.data.specialWorkPermits;
let flag = true; let flag = true;
...@@ -847,7 +848,6 @@ ...@@ -847,7 +848,6 @@
this.cancelApproval(); this.cancelApproval();
this.$parent.$parent.getList(); this.$parent.$parent.getList();
} }
judgeSignUpdateTWorkPermit({workPermitId:this.workPermitId,applyStatus:"2"});
}) })
}, },
cancelApproval(){ cancelApproval(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment