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; +}