Pārlūkot izejas kodu

polish: 盘点页数量支持直接输入,中间数字改为input

Co-Authored-By: Claude <noreply@anthropic.com>
skyline 1 mēnesi atpakaļ
vecāks
revīzija
8a3dc20384
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      haha-admin-mp/src/pages/replenish/audit.vue

+ 2 - 2
haha-admin-mp/src/pages/replenish/audit.vue

@@ -76,7 +76,7 @@
             <!-- 数量调节 -->
             <view class="cell-qty">
               <view class="cell-qty-btn" @click="decrease(entry.idx)"><text>-</text></view>
-              <text class="cell-qty-val">{{ auditItems[entry.idx]?.newStock ?? 0 }}</text>
+              <input class="cell-qty-input" type="number" v-model.number="auditItems[entry.idx].newStock" />
               <view class="cell-qty-btn" @click="increase(entry.idx)"><text>+</text></view>
             </view>
 
@@ -355,7 +355,7 @@ onMounted(async () => {
   text { font-size: 24rpx; color: $text-color-secondary; line-height: 1; }
   &:active { background: $bg-color-secondary; }
 }
-.cell-qty-val { width: 48rpx; height: 36rpx; line-height: 36rpx; text-align: center; font-size: 22rpx; font-weight: 600; color: $text-color-primary; border-left: 1rpx solid $border-color; border-right: 1rpx solid $border-color; }
+.cell-qty-input { width: 48rpx; height: 36rpx; line-height: 36rpx; text-align: center; font-size: 22rpx; font-weight: 600; color: $text-color-primary; border-left: 1rpx solid $border-color; border-right: 1rpx solid $border-color; }
 
 /* 快捷操作 */
 .cell-actions { display: flex; align-items: center; gap: 4rpx; }