|
@@ -1,6 +1,6 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { computed, onMounted, ref } from "vue";
|
|
import { computed, onMounted, ref } from "vue";
|
|
-import InitiateAudit from "./component/approval-process/Initiate-audit.vue";
|
|
|
|
|
|
+import InitiateAudit from "./component/approval-process/initiate-audit.vue";
|
|
import BusinessAudit from "./component/approval-process/business-audit.vue";
|
|
import BusinessAudit from "./component/approval-process/business-audit.vue";
|
|
import FinancialAudit from "./component/approval-process/financial-audit.vue";
|
|
import FinancialAudit from "./component/approval-process/financial-audit.vue";
|
|
import PaymentReceipt from "./component/approval-process/payment-receipt.vue";
|
|
import PaymentReceipt from "./component/approval-process/payment-receipt.vue";
|
|
@@ -10,8 +10,6 @@ import { useShowAudit } from "./hooks/use-show-audit";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
import { useResponseHandle } from "/@/hooks";
|
|
import { useResponseHandle } from "/@/hooks";
|
|
|
|
|
|
-import { httpList } from "/@/api/purchase/orderRecord";
|
|
|
|
-
|
|
|
|
import { httpStatus, httpAdd, httpInfo } from "/@/api/purchase/orderPay";
|
|
import { httpStatus, httpAdd, httpInfo } from "/@/api/purchase/orderPay";
|
|
|
|
|
|
const { push } = useRouter();
|
|
const { push } = useRouter();
|
|
@@ -20,9 +18,6 @@ const dzNo = computed(() => query.id as string);
|
|
const isCreate = computed(() => !dzNo.value);
|
|
const isCreate = computed(() => !dzNo.value);
|
|
const responseHandle = useResponseHandle();
|
|
const responseHandle = useResponseHandle();
|
|
|
|
|
|
-//对账列表
|
|
|
|
-const paymentList = ref<Array<Record<string, string>>>([]);
|
|
|
|
-
|
|
|
|
//付款详情
|
|
//付款详情
|
|
const purchPayDetail = ref<Record<string, string>>({});
|
|
const purchPayDetail = ref<Record<string, string>>({});
|
|
const handler = () => push("/purchase/purchPay");
|
|
const handler = () => push("/purchase/purchPay");
|
|
@@ -42,19 +37,6 @@ const {
|
|
showPaymentReceipt
|
|
showPaymentReceipt
|
|
} = useShowAudit(status, isCreate);
|
|
} = useShowAudit(status, isCreate);
|
|
|
|
|
|
-//初始化订单对账列表
|
|
|
|
-async function requestPaymentList() {
|
|
|
|
- const { code, message, data } = await httpList({});
|
|
|
|
-
|
|
|
|
- responseHandle({
|
|
|
|
- code,
|
|
|
|
- message,
|
|
|
|
- handler: () => {
|
|
|
|
- paymentList.value = data.list;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
//请求更改付款订单状态
|
|
//请求更改付款订单状态
|
|
async function requestStatusPayment(
|
|
async function requestStatusPayment(
|
|
status: string,
|
|
status: string,
|
|
@@ -99,7 +81,7 @@ async function requesetPaymentDetail() {
|
|
|
|
|
|
//创建选择订单对账列表 详情查询付款单详情 查询采购列表
|
|
//创建选择订单对账列表 详情查询付款单详情 查询采购列表
|
|
async function initalData() {
|
|
async function initalData() {
|
|
- if (isCreate.value) return requestPaymentList();
|
|
|
|
|
|
+ if (!dzNo.value) return;
|
|
//拉取详情
|
|
//拉取详情
|
|
requesetPaymentDetail();
|
|
requesetPaymentDetail();
|
|
}
|
|
}
|
|
@@ -111,11 +93,7 @@ onMounted(() => initalData());
|
|
<template>
|
|
<template>
|
|
<div class="pay__content" bg-white>
|
|
<div class="pay__content" bg-white>
|
|
<!-- 创建采购付款订单 -->
|
|
<!-- 创建采购付款订单 -->
|
|
- <CreatePayment
|
|
|
|
- v-if="isCreate"
|
|
|
|
- :paymentList="paymentList"
|
|
|
|
- @create-payment="requesetCreatePayment"
|
|
|
|
- />
|
|
|
|
|
|
+ <CreatePayment v-if="isCreate" @create-payment="requesetCreatePayment" />
|
|
|
|
|
|
<!-- 采购付款订单详情 -->
|
|
<!-- 采购付款订单详情 -->
|
|
<ElTabs v-else>
|
|
<ElTabs v-else>
|