From 1e82b2b7cdf216b0f3d51a5eecbc32590047ae25 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Wed, 1 Nov 2023 14:07:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=BA=E5=91=98=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/UserSelect/single.vue | 180 +++++++++++++++++++++++++
src/views/accounting/voucher/index.vue | 125 ++++++++++-------
2 files changed, 256 insertions(+), 49 deletions(-)
create mode 100644 src/components/UserSelect/single.vue
diff --git a/src/components/UserSelect/single.vue b/src/components/UserSelect/single.vue
new file mode 100644
index 00000000..ea3f1781
--- /dev/null
+++ b/src/components/UserSelect/single.vue
@@ -0,0 +1,180 @@
+
+
+
+
+
+ {{ "" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue
index 2be5793a..3da72b5d 100644
--- a/src/views/accounting/voucher/index.vue
+++ b/src/views/accounting/voucher/index.vue
@@ -207,60 +207,66 @@
-
-
-
-
+
+
+
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
@@ -477,10 +483,11 @@ import { getAttachmentPage } from "@/api/accounting/attachment";
import { getFlowPage } from "@/api/accounting/flow";
import { getInvoicesPage } from "@/api/accounting/invoices";
import { getBankSlipPage } from "@/api/accounting/bankSlip";
+import UserSelect from "@/components/UserSelect/single.vue";
export default {
name: "Voucher",
- components: {},
+ components: { UserSelect },
data() {
return {
propName: {
@@ -776,15 +783,6 @@ export default {
this.userOptions = response.data.list;
});
},
- handleSelectUser(val) {
- this.form.audit = val.username;
- },
- handleSelectUser1(val) {
- this.form.checker = val.username;
- },
- handleSelectUser2(val) {
- this.form.handle = val.username;
- },
/** 新增按钮操作 */
handleAdd() {
this.reset();
@@ -864,6 +862,35 @@ export default {
})
.catch(() => {});
},
+ // 人员选择弹窗
+ handleSelectUser1() {
+ this.$refs.UserSelect1.showFlag = true;
+ },
+ handleSelectUser2() {
+ this.$refs.UserSelect2.showFlag = true;
+ },
+ handleSelectUser3() {
+ this.$refs.UserSelect3.showFlag = true;
+ },
+ // 审核人选择
+ onUserSelected1(obj) {
+ console.log(obj);
+ if (obj != undefined && obj != null) {
+ this.form.audit = obj.username;
+ }
+ },
+ // 核准人选择
+ onUserSelected2(obj) {
+ if (obj != undefined && obj != null) {
+ this.form.checker = obj.username;
+ }
+ },
+ // 经办人选择
+ onUserSelected3(obj) {
+ if (obj != undefined && obj != null) {
+ this.form.handle = obj.username;
+ }
+ },
},
};