From fd4b527ed1b9f45c99c8ebb541a24e23a621f333 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Fri, 15 Sep 2023 16:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=BB=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/archives/turnOver/index.vue | 617 +++++++++++++++-------- src/views/setting/depot/index.vue | 41 +- src/views/setting/depotCabinet/index.vue | 23 +- src/views/setting/organization/index.vue | 2 +- 4 files changed, 454 insertions(+), 229 deletions(-) diff --git a/src/views/archives/turnOver/index.vue b/src/views/archives/turnOver/index.vue index 8d34666f..62e18c54 100644 --- a/src/views/archives/turnOver/index.vue +++ b/src/views/archives/turnOver/index.vue @@ -1,94 +1,70 @@ diff --git a/src/views/setting/depot/index.vue b/src/views/setting/depot/index.vue index e0d32c6c..4f97e363 100644 --- a/src/views/setting/depot/index.vue +++ b/src/views/setting/depot/index.vue @@ -178,14 +178,16 @@ @@ -195,13 +197,15 @@ @@ -265,17 +269,9 @@ export default { code: null, address: null, organizationId: null, - manegerId: null, - createTime: [], manegerName: null, - deptId: null, deptName: null, - companyId: null, company: null, - remark: null, - userId: null, - organizationName: null, - organizationCode: null, }, // 表单参数 form: {}, @@ -283,6 +279,8 @@ export default { rules: {}, organizationList: [], //立档单位数据 userOptions: [], //用户数据 + organizationName: null, + manegerName: null, }; }, created() { @@ -307,12 +305,22 @@ export default { this.organizationList = response.data.list; }); }, + handleSelectOrganization(val) { + console.log(val); + this.form.organizationId = val.id; + this.form.organizationName = val.organizationName; + }, //获取用户 getUserList() { listUser().then((response) => { this.userOptions = response.data.list; }); }, + handleSelectUser(val) { + console.log(val); + this.form.manegerId = val.id; + this.form.manegerName = val.username; + }, /** 取消按钮 */ cancel() { this.open = false; @@ -326,6 +334,8 @@ export default { code: undefined, address: undefined, organizationId: undefined, + organizationName: undefined, + organizationCode: undefined, manegerId: undefined, manegerName: undefined, deptId: undefined, @@ -333,10 +343,9 @@ export default { companyId: undefined, company: undefined, remark: undefined, - userId: undefined, - organizationName: undefined, - organizationCode: undefined, }; + this.manegerName = undefined; + this.organizationName = undefined; this.resetForm("form"); }, /** 搜索按钮操作 */ @@ -361,6 +370,8 @@ export default { const id = row.id; getDepot(id).then((response) => { this.form = response.data; + this.organizationName = response.data.organizationName; + this.manegerName = response.data.manegerName; this.open = true; this.title = "修改库房管理"; }); diff --git a/src/views/setting/depotCabinet/index.vue b/src/views/setting/depotCabinet/index.vue index f8e87afb..61c428dc 100644 --- a/src/views/setting/depotCabinet/index.vue +++ b/src/views/setting/depotCabinet/index.vue @@ -165,8 +165,11 @@ - - + + @@ -179,14 +182,16 @@ @@ -194,7 +199,6 @@ - { this.form = response.data; + this.manegerName = response.data.manegerName; this.open = true; this.title = "修改档案柜管理"; }); diff --git a/src/views/setting/organization/index.vue b/src/views/setting/organization/index.vue index 5c0a82c2..602a4cbf 100644 --- a/src/views/setting/organization/index.vue +++ b/src/views/setting/organization/index.vue @@ -7,7 +7,7 @@ size="small" :inline="true" v-show="showSearch" - label-width="68px" + label-width="88px" >