diff --git a/src/assets/scss/global.scss b/src/assets/scss/global.scss index 267c174..687aaca 100644 --- a/src/assets/scss/global.scss +++ b/src/assets/scss/global.scss @@ -891,15 +891,20 @@ a:hover{ /* ==================== Call料页面样式结束 ==================== */ .action-btn { - flex: 1; - padding: 12px; + /* 去掉 flex: 1 */ + padding: 8px 16px; /* 建议左右内边距稍大,如 16px */ border: 1px solid #17B3A3; background: white; color: #17B3A3; - border-radius: 20px; + border-radius: 20px; /* 胶囊形圆角 */ font-size: 14px; cursor: pointer; transition: all 0.2s ease; + + /* 可选:让按钮保持行内块,自然包裹内容 */ + display: inline-block; + min-width: 60px; /* 可选:设置最小宽度,防止太窄 */ + text-align: center; /* 文字居中 */ } .action-btn:hover { diff --git a/src/views/modules/automatedWarehouse/palletPacking.vue b/src/views/modules/automatedWarehouse/palletPacking.vue index 99ded88..67193a2 100644 --- a/src/views/modules/automatedWarehouse/palletPacking.vue +++ b/src/views/modules/automatedWarehouse/palletPacking.vue @@ -169,6 +169,7 @@ { + if (this.$refs.scanInput) { + this.$refs.scanInput.focus(); + } + }); + }, // 关闭扫码模态框 closeScanModal() { this.scanModalVisible = false;