|
@@ -125,8 +125,8 @@ class EgressDetails extends Component {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- // 同意
|
|
|
- agree() {
|
|
|
+ // 同意/驳回
|
|
|
+ agree(sta) {
|
|
|
if (!this.state.opinion) {
|
|
|
Taro.showToast({ title: "请填写审批意见", icon: "none" });
|
|
|
return;
|
|
@@ -148,7 +148,9 @@ class EgressDetails extends Component {
|
|
|
inquiryContent: "当前公出申请已修改,请重新审核",
|
|
|
});
|
|
|
} else {
|
|
|
- this.examinePublicRelease(2);
|
|
|
+ sta === 2
|
|
|
+ ? this.examinePublicRelease(2)
|
|
|
+ : this.examinePublicRelease(0);
|
|
|
}
|
|
|
if (v.data) {
|
|
|
let list = [];
|
|
@@ -511,7 +513,8 @@ class EgressDetails extends Component {
|
|
|
inquiryTitle: "提醒",
|
|
|
inquiryContent: "您确定要驳回此申请吗?",
|
|
|
inquiryFn: () => {
|
|
|
- this.examinePublicRelease(0);
|
|
|
+ this.agree(0);
|
|
|
+ // this.examinePublicRelease(0);
|
|
|
},
|
|
|
});
|
|
|
}}
|
|
@@ -531,7 +534,7 @@ class EgressDetails extends Component {
|
|
|
inquiryTitle: "提醒",
|
|
|
inquiryContent: "您确定要同意此申请吗?",
|
|
|
inquiryFn: () => {
|
|
|
- this.agree();
|
|
|
+ this.agree(2);
|
|
|
// this.examinePublicRelease(2);
|
|
|
},
|
|
|
});
|