From a9c3543f4b4fa5a092a8dea688aedc2b2adbd576 Mon Sep 17 00:00:00 2001 From: 曹睿 <360930172@qq.com> Date: 星期二, 24 六月 2025 17:34:50 +0800 Subject: [PATCH] feat: 【来票台账】显示附件 --- src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 111 insertions(+), 0 deletions(-) diff --git a/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue new file mode 100644 index 0000000..0523e40 --- /dev/null +++ b/src/views/procurementManagement/invoiceEntry/components/ExpandTable.vue @@ -0,0 +1,111 @@ +<template> + <PIMTable + rowKey="id" + :column="columns" + :tableData="dataList" + :tableLoading="loading" + > + </PIMTable> +</template> + +<script setup> +import { usePaginationApi } from "@/hooks/usePaginationApi"; +import { productList } from "@/api/procurementManagement/procurementLedger.js"; + +defineOptions({ + name: "鏉ョエ鐧昏鎶樺彔琛�", +}); + +const { + loading, + filters, + columns, + dataList, + pagination, + getTableData, + resetFilters, +} = usePaginationApi( + productList, + { + salesLedgerId: undefined, + type: 2, + }, + [ + { + label: "浜у搧澶х被", + prop: "productCategory", + }, + { + label: "瑙勬牸鍨嬪彿", + prop: "specificationModel", + }, + { + label: "鍗曚綅", + prop: "unit", + }, + { + label: "鏁伴噺", + prop: "quantity", + }, + { + label: "绋庣巼(%)", + prop: "taxRate", + }, + { + label: "鍚◣鍗曚环(鍏�)", + prop: "taxInclusiveUnitPrice", + formatData: (val) => { + return parseFloat(val).toFixed(2) ?? 0; + }, + }, + { + label: "鍚◣鎬讳环(鍏�)", + prop: "taxInclusiveTotalPrice", + formatData: (val) => { + return parseFloat(val).toFixed(2) ?? 0; + }, + }, + { + label: "涓嶅惈绋庢�讳环(鍏�)", + prop: "taxExclusiveTotalPrice", + formatData: (val) => { + return parseFloat(val).toFixed(2) ?? 0; + }, + }, + { + label: "鏈鏉ョエ閲戦(鍏�)", + prop: "ticketsAmount", + formatData: (val) => { + return parseFloat(val).toFixed(2) ?? 0; + }, + }, + { + label: "鏈潵绁ㄦ暟", + prop: "futureTickets", + }, + { + label: "鏈潵绁ㄩ噾棰�(鍏�)", + prop: "futureTicketsAmount", + formatData: (val) => { + return parseFloat(val).toFixed(2) ?? 0; + }, + }, + ], + {}, + {}, + (data) => { + dataList.value = data; + } +); + +const getList = (id) => { + filters.salesLedgerId = id; + getTableData(); +}; + +defineExpose({ + getList, +}); +</script> + +<style lang="scss" scoped></style> -- Gitblit v1.9.3