|
@@ -237,7 +237,36 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
});
|
|
|
- } else console.log("审核拒绝");
|
|
|
+ // } else console.log("审核拒绝");
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: "是否确认拒绝",
|
|
|
+ content: "拒绝理由",
|
|
|
+ editable: true,
|
|
|
+ success: async (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ let payload = {
|
|
|
+ id: this.currentProject.id,
|
|
|
+ project_full_code: this.currentProject.project_full_code,
|
|
|
+ flow_id: this.currentProject.flow_id,
|
|
|
+ node_id: this.currentProject.node_id,
|
|
|
+ audit_status: 2,
|
|
|
+ audit_comment: res.content,
|
|
|
+ };
|
|
|
+ await authApproval(payload);
|
|
|
+ uni.showToast({
|
|
|
+ title: "已拒绝",
|
|
|
+ });
|
|
|
+ setTimeout(function () {
|
|
|
+ uni.hideToast();
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "./auth",
|
|
|
+ });
|
|
|
+ }, 1800);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
getAudits(nodeInfo) {
|
|
|
switch (nodeInfo.id) {
|
|
@@ -392,6 +421,7 @@ export default {
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
.main {
|
|
|
+ width: 100%;
|
|
|
padding-bottom: 60px;
|
|
|
}
|
|
|
.title {
|
|
@@ -401,7 +431,6 @@ export default {
|
|
|
}
|
|
|
.list {
|
|
|
margin: 0 10% 20px 10%;
|
|
|
- width: 100%;
|
|
|
}
|
|
|
.detail {
|
|
|
width: 100%;
|