|
@@ -1,16 +1,17 @@
|
|
|
<script setup lang="ts">
|
|
|
import { computed, ref, watchEffect } from "vue";
|
|
|
-import { useRoute } from "vue-router";
|
|
|
+import { useRoute, useRouter } from "vue-router";
|
|
|
import { httpInfo } from "/@/api/purchase/orderRecord";
|
|
|
import InitiateAudit from "./components/approval-process/Initiate-audit.vue";
|
|
|
import BusinessReview from "./components/approval-process/business-review.vue";
|
|
|
import FinancialAudit from "./components/approval-process/financial-audit.vue";
|
|
|
import CreateStatement from "./components/create-statement/index.vue";
|
|
|
import StatementDetail from "./components/statement-detail/index.vue";
|
|
|
-import { httpStatus } from "/@/api/InvoiceSales/capitalPool";
|
|
|
+import { httpStatus } from "/@/api/purchase/orderRecord";
|
|
|
import { useAsync, usePermission } from "/@/hooks";
|
|
|
|
|
|
const { query } = useRoute();
|
|
|
+const { push } = useRouter();
|
|
|
const payNo = computed(() => query.id as string);
|
|
|
const isCreate = computed(() => !payNo.value);
|
|
|
|
|
@@ -20,7 +21,9 @@ const collapses = ref(["1", "2", "3", "4"]);
|
|
|
//对账单状态
|
|
|
const status = computed(() => Number(statementDetail.value.status));
|
|
|
|
|
|
-const { run: statementStatusRun } = useAsync();
|
|
|
+const { run: statementStatusRun } = useAsync({
|
|
|
+ success: () => push("/purchase/orderRecord")
|
|
|
+});
|
|
|
const { data: statementDetail, run: statementDetailRun } = useAsync<
|
|
|
Record<string, string>
|
|
|
>({
|