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