Files
SupplierSystem/miniprogram/components/ble-printer-sheet/index.wxml
T
雨天 59c6ce7944
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
fix(回退事故): 恢复被 29fbf49 代提交覆盖掉的新版本
29fbf49「代提交另一会话遗留在工作区的整批改动」用的是**旧工作树**,落地时把\n比它新的提交覆盖回旧版。本次按文件恢复被误回退的内容(其余不动):\n\n- 分拣标签:客户/区域两个开关、块高只包内容+强制分页、默认纸型 80×60\n  (pickingLabelPrint.ts/.test.ts、PickingManagement.tsx)\n- 小程序打印机选择弹层 root-portal + z-index=10000(弹窗被 tab 栏遮挡的修复)\n- 分类新建去重(productCatalog.ts + 契约测试 + 设计文)\n- 迁移 20261044(独立进货建客户档案·方案甲)与对应设计文\n- docs/design/README.md 被删掉的 4 条索引行\n\n29fbf49 里的新增工作(出库照片预览、加工领料预留、散客录单守卫等)保持原样。
2026-10-15 12:23:32 +08:00

31 lines
1.6 KiB
Plaintext

<!-- 必须 root-portal:三个面板(分拣/备货/采购)都嵌在 pages/home 的
`.home-purchase-embed.anim-rise` 工作区里,该容器因 `animation-fill-mode: both`
永久保留 `transform: translateY(0)` ⇒ 成为 `position: fixed` 的包含块,
弹层既不按视口居中,又困在它的层叠上下文内,被底部 tab 栏(`.tab-bar` z-index:100)盖住。
z-index 取 10000,与面板内其它弹层(batch-mask / modal-mask)一致。 -->
<root-portal enable="{{true}}">
<van-popup show="{{show}}" position="center" z-index="10000" bind:close="onClose">
<view class="sheet">
<view class="sheet-title">选择蓝牙热敏机</view>
<view class="sheet-hint">只连 BLE 小票机。得力 M1022W 等 A4 激光机请用「A4 文档」打印,不要在这里搜索。</view>
<view wx:if="{{error}}" class="sheet-error">{{error}}</view>
<view wx:if="{{scanning}}" class="sheet-muted">正在搜索附近设备…</view>
<view wx:elif="{{!devices.length && !error}}" class="sheet-muted">未发现带名称的 BLE 设备,请打开打印机并靠近手机</view>
<view
wx:for="{{devices}}"
wx:key="deviceId"
class="device-row"
data-id="{{item.deviceId}}"
bindtap="onPick"
>
<view class="device-name">{{item.name}}</view>
<view class="device-rssi">信号 {{item.RSSI}}</view>
</view>
<view class="sheet-actions">
<view class="sheet-btn" bindtap="scan">重新搜索</view>
<view class="sheet-btn sheet-btn--ghost" bindtap="onClose">取消</view>
</view>
</view>
</van-popup>
</root-portal>