From e3bee12dcbe350717cd2a57f0821eff136086cd4 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Thu, 9 Nov 2023 15:01:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E5=87=AD=E8=AF=81=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9=EF=BC=9B=E4=BA=BA=E5=91=98=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E6=A1=86=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/user.js | 5 +-
src/views/accounting/voucher/index.vue | 207 +++++++++++++++----------
2 files changed, 131 insertions(+), 81 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index ffa08da0..057ace8c 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -11,10 +11,11 @@ export function listUser(query) {
}
// 获取用户精简信息列表
-export function listSimpleUsers() {
+export function listSimpleUsers(query) {
return request({
url: '/system/user/list-all-simple',
- method: 'get'
+ method: 'get',
+ params: query
})
}
diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue
index 25ab5dd7..767a6c64 100644
--- a/src/views/accounting/voucher/index.vue
+++ b/src/views/accounting/voucher/index.vue
@@ -224,7 +224,7 @@
>
-
+
+
+
+
+
+
@@ -256,89 +261,106 @@
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
-
-
- 记账凭证
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+ 记账凭证
@@ -1321,6 +1345,7 @@ import { getInvoicesPage, getInvoices } from "@/api/accounting/invoices";
import { getBankSlipPage, getBankSlip } from "@/api/accounting/bankSlip";
import UserSelect from "@/components/UserSelect/single.vue";
import { getOrganizationPage } from "@/api/setting/organization";
+import { listSimpleUsers } from "@/api/system/user";
export default {
name: "Voucher",
@@ -1411,9 +1436,21 @@ export default {
inputPassword: [
{ required: true, message: "密码不能为空", trigger: "blur" },
],
+ company: [
+ { required: true, message: "业务实体不能为空", trigger: "blur" },
+ ],
voucherNum: [
{ required: true, message: "凭证号不能为空", trigger: "blur" },
],
+ type: [
+ { required: true, message: "凭证类型不能为空", trigger: "blur" },
+ ],
+ year: [
+ { required: true, message: "会计年度不能为空", trigger: "blur" },
+ ],
+ period: [
+ { required: true, message: "会计期间不能为空", trigger: "blur" },
+ ],
},
siteOptions: [], //归档位置数据
siteArray: [], //归档位置选中值
@@ -1423,6 +1460,7 @@ export default {
invoiceStateOptions: [], //发票状态
inOrOutOptions: [], //发票进销项
invoicesDuplicateOptions: [], //发票查重
+ userOptions: [], //人员选项
};
},
created() {
@@ -1430,6 +1468,7 @@ export default {
this.getSiteList();
this.handleInitList();
this.getOrganizationList();
+ this.getUserDatas();
},
methods: {
/** 查询列表 */
@@ -1448,6 +1487,16 @@ export default {
this.tableData = response.data.list;
});
},
+ /* 获取人员选项列表 */
+ getUserDatas(key) {
+ this.loading = true;
+ listSimpleUsers({
+ nickname: key || "", // 关键字参数
+ }).then((res) => {
+ this.loading = false;
+ this.userOptions = res.data;
+ });
+ },
/**
* 文件预览
* @param fileUrl