|
@@ -3,36 +3,17 @@ import { computed, onMounted, ref } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import PaymentReceipt from "./components/receipt-payment.vue";
|
|
|
import RelatedOrder from "./components/related-order.vue";
|
|
|
-import { httpDetail } from "/@/api/InvoiceSales/capitalClaim";
|
|
|
+import { httpInfo } from "/@/api/InvoiceSales/capitalClaim";
|
|
|
import { useResponseHandle } from "/@/hooks";
|
|
|
-import { TreadeDetail } from "./types";
|
|
|
|
|
|
const { query } = useRoute();
|
|
|
const responseHandle = useResponseHandle();
|
|
|
const tradNo = computed(() => query.id as string);
|
|
|
|
|
|
-const treadeDetail = ref<TreadeDetail>({
|
|
|
- id: 833,
|
|
|
- tradNo: "Sc2b8220624161158",
|
|
|
- trade_bank: "招商银行股份有限公司北京分行营业部",
|
|
|
- trade_account: "10900319110206",
|
|
|
- trade_type: 0,
|
|
|
- trade_time: "2022-06-24 14:15:18",
|
|
|
- trade_used: "F220492564DN20220620184258505.",
|
|
|
- trade_out: "泰康保险集团股份有限公司",
|
|
|
- trade_in: "",
|
|
|
- trade_remark: "",
|
|
|
- total_fee: "29462.00",
|
|
|
- used_fee: "0.00",
|
|
|
- balance: "29462.00",
|
|
|
- status: 1,
|
|
|
- is_del: 0,
|
|
|
- addtime: "2022-06-24 16:11:58",
|
|
|
- updatetime: "2022-06-24 16:11:58"
|
|
|
-});
|
|
|
+const treadeDetail = ref<any>({});
|
|
|
|
|
|
async function requesetTradeDetail() {
|
|
|
- const { code, message, data } = await httpDetail({
|
|
|
+ const { code, message, data } = await httpInfo({
|
|
|
tradNo: tradNo.value
|
|
|
});
|
|
|
|
|
@@ -40,7 +21,7 @@ async function requesetTradeDetail() {
|
|
|
code,
|
|
|
message,
|
|
|
handler: () => {
|
|
|
- console.log(data);
|
|
|
+ treadeDetail.value = data;
|
|
|
}
|
|
|
});
|
|
|
}
|