From 58426d0e6b1effc683b490d344757844feffd702 Mon Sep 17 00:00:00 2001 From: duan Date: Tue, 9 Aug 2022 18:26:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(src/views/reagent/warehousing):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=85=A5=E5=BA=93=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/warehousing/index.vue | 37 +++++++++++++++++++++---- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/src/views/reagent/warehousing/index.vue b/src/views/reagent/warehousing/index.vue index 078007c..8baeae4 100644 --- a/src/views/reagent/warehousing/index.vue +++ b/src/views/reagent/warehousing/index.vue @@ -189,8 +189,20 @@ - -
请扫描试剂条码
+ +
+
请扫描试剂条码
+
+ + + +
+
{ if (res.status === 0) { let cindex = 0 // 记录成功后的下一个index @@ -314,6 +327,9 @@ export default { this.getTmpList() }, methods: { + handleCloseToDB() { + this.client_id_input = '' + }, formClose() { this.propsformdata = {} }, @@ -391,6 +407,7 @@ export default { for (let i = 0; i < obj.num; i++) { this.bindToDBData.push({ ...this.propsformdata, ...obj, 'status': false }) } + this.client_id_input = obj.client_id this.bindToDBVisible = true }, // 处理选择试剂入库弹框关闭后数据留存问题 @@ -448,6 +465,7 @@ export default { this.reagentAddTmpName = '' this.reagentAddClient = null this.reagentAddTmpData = [] + this.client_id_input = '' }, handleAddSave: throttle(function() { if (!this.reagentAddTmpName) { @@ -520,6 +538,9 @@ export default { return item })) }) + if (this.multipleSelection.length === 1) { + this.client_id_input = this.multipleSelection[0].client_id + } // 自动选择第一行数据 this.$nextTick(() => { this.$refs.singleTable.setCurrentRow(this.bindToDBData[0]) @@ -583,4 +604,10 @@ export default { text-align: center; margin-top: 1rem; } +.to-database{ + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 1rem; +}