From e7996637593b3086b5658026cec564c076b41f26 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Mon, 6 Nov 2023 14:30:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E5=87=AD=E8=AF=81=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/VoucherSelect/single.vue | 75 ++++++++++++++++++++++++-
1 file changed, 74 insertions(+), 1 deletion(-)
diff --git a/src/components/VoucherSelect/single.vue b/src/components/VoucherSelect/single.vue
index d604bfcf..d0989a9e 100644
--- a/src/components/VoucherSelect/single.vue
+++ b/src/components/VoucherSelect/single.vue
@@ -7,6 +7,66 @@
width="80%"
center
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
-
import { getVoucherPage } from "@/api/accounting/voucher";
+import { listData } from "@/api/system/dict/data";
export default {
name: "VoucherSelect",
data() {
@@ -116,10 +176,12 @@ export default {
deptId: null,
deptName: null,
},
+ typeOptions: [], //凭证类别
};
},
created() {
this.getList();
+ this.handleInitList();
},
methods: {
/** 查询列表 */
@@ -131,6 +193,17 @@ export default {
this.loading = false;
});
},
+ //获取字典数据
+ handleInitList() {
+ // 获取凭证类别
+ listData({
+ pageNo: 1,
+ pageSize: 100,
+ dictType: "accounting_voucher_type",
+ }).then((res) => {
+ this.typeOptions = res.data.list || [];
+ });
+ },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;