|
@@ -131,7 +131,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
-import { queryFlow, deleteApproval } from "@/services/project";
|
|
|
|
|
|
+import { queryFlow, deleteApproval, submitAudit } from "@/services/project";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -279,7 +279,31 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onSubmitAuth() {
|
|
onSubmitAuth() {
|
|
- return;
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: "提交审核",
|
|
|
|
+ content: "是否确认提交审核",
|
|
|
|
+ confirmText: "提审",
|
|
|
|
+ success: async (res) => {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ let payload = {
|
|
|
|
+ id: this.currentProject.id,
|
|
|
|
+ flow_id: this.currentProject.flow_id,
|
|
|
|
+ node_id: this.currentProject.node_id,
|
|
|
|
+ };
|
|
|
|
+ console.log(payload);
|
|
|
|
+ await submitAudit(payload);
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "提审成功",
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ uni.hideToast();
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "./list",
|
|
|
|
+ });
|
|
|
|
+ }, 1800);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ });
|
|
},
|
|
},
|
|
onMember() {
|
|
onMember() {
|
|
return;
|
|
return;
|