Files
SupplierSystem/miniprogram/components/picking-panel/index.wxml
T
Ubuntu deb3e72750
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
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

153 lines
6.3 KiB
Plaintext

<view class="pick-page {{embedded ? 'is-embedded' : ''}} {{activeTask.pick_status == 30 ? 'pick-page--outbound' : (activeTask.pick_status < 30 ? 'pick-page--picking' : '')}}">
<view class="page-atmosphere" aria-hidden="true"></view>
<view wx:if="{{!hideProgress}}" class="kpi-card">
<view class="kpi-cell">
<view class="kpi-num xd-num">{{tasks.length}}</view>
<view class="kpi-label">我的任务</view>
</view>
<view class="kpi-divider"></view>
<view class="kpi-cell">
<view class="kpi-num xd-num">{{taskSummary.pickedCount || 0}}</view>
<view class="kpi-label">已确认</view>
</view>
<view class="kpi-divider"></view>
<view class="kpi-cell">
<view class="kpi-num xd-num">{{pendingCount || 0}}</view>
<view class="kpi-label">待分拣</view>
</view>
</view>
<view class="list-sheet">
<view class="date-axis">
<picker
mode="selector"
range="{{dateFieldOptions}}"
range-key="label"
value="{{dateFieldIndex}}"
bindchange="onDateFieldPick"
>
<view class="date-chip axis-pick">{{dateFieldLabel}} ▾</view>
</picker>
<picker mode="date" value="{{dateFrom || todayValue}}" bindchange="onCustomFromChange">
<view class="date-chip date-pick {{dateFrom ? 'on' : ''}}">{{dateFrom || '起始日'}} ▾</view>
</picker>
<picker mode="date" value="{{dateTo || dateFrom || todayValue}}" bindchange="onCustomToChange">
<view class="date-chip date-pick {{dateTo ? 'on' : ''}}">{{dateTo || '结束日'}} ▾</view>
</picker>
</view>
<view wx:if="{{error}}" class="error-box">{{error}}</view>
<view wx:if="{{loading}}" class="state-box">
<van-loading size="24px" color="#059669">加载中...</van-loading>
</view>
<view wx:elif="{{!loading && tasks.length === 0}}" class="state-box">
<van-empty description="暂无分配给您的拣货单,请联系仓管在 Web「分拣出库」中分配" />
</view>
<view wx:if="{{scopeGroups.length}}" class="scope-wrap">
<view class="scope-select {{scopeMenuOpen ? 'is-open' : ''}}" bindtap="toggleScopeMenu">
<text class="scope-select-val">{{scopePickerLabels[scopePickerIndex]}}</text>
<text class="scope-select-arrow">▾</text>
</view>
<view wx:if="{{scopeMenuOpen}}" class="scope-menu">
<view
wx:for="{{scopeGroups}}"
wx:key="key"
class="scope-option {{item.key === activeGroupKey ? 'is-active' : ''}}"
data-key="{{item.key}}"
catchtap="onScopeOptionTap"
>{{item.label}}</view>
</view>
</view>
<block wx:if="{{activeTask}}">
<view wx:if="{{taskSummary}}" class="progress-line">
<text>已确认 {{taskSummary.pickedCount}}/{{taskSummary.total}}</text>
<view class="progress-bar">
<view
class="progress-fill"
style="width: {{taskSummary.total ? (taskSummary.pickedCount / taskSummary.total * 100) : 0}}%;"
></view>
</view>
<text class="items-meta">待 {{pendingCount}}</text>
</view>
<view
wx:for="{{activePendingItems}}"
wx:key="rowKey"
class="detail-row line-one {{item.picked_done ? 'is-done' : 'is-pending'}}"
>
<view
wx:if="{{activeTask.pick_status < 30 || item.can_pick}}"
class="btn-pick {{saving ? 'is-disabled' : ''}}"
data-pick="{{item.pick_code || activePickCode}}"
data-id="{{item.id}}"
catchtap="confirmItemPick"
>确认</view>
<text class="line-product">{{item.display_name}}</text>
<text class="qty-meta">需求 {{item.required_qty}}{{item.unit || ''}}</text>
<block wx:if="{{activeTask.pick_status < 30 || item.can_pick}}">
<view class="qty-chip">
<text class="qty-chip-lab">{{item.qty_chip_label}}</text>
<input
class="qty-input {{pickingScaleRequired && item.pick_by_weight && !(item.input_weight > 0) ? 'qty-input--warn' : ''}}"
type="digit"
value="{{item.pick_by_weight ? item.input_weight : item.input_qty}}"
data-pick="{{item.pick_code || activePickCode}}"
data-id="{{item.id}}"
data-field="{{item.pick_by_weight ? 'input_weight' : 'input_qty'}}"
bindinput="onFieldInput"
/>
</view>
<view wx:if="{{item.need_extra_weight}}" class="qty-chip qty-chip--extra">
<text class="qty-chip-lab">重量</text>
<input
class="qty-input"
type="digit"
value="{{item.input_weight}}"
data-pick="{{item.pick_code || activePickCode}}"
data-id="{{item.id}}"
data-field="input_weight"
bindinput="onFieldInput"
/>
</view>
</block>
<block wx:elif="{{item.line_pick_status >= 30 && !item.can_pick}}">
<text class="qty-meta">已拣 {{item.picked_qty_num || 0}}{{item.unit || ''}}</text>
</block>
<view
class="btn-print-row {{saving || printing ? 'is-disabled' : ''}}"
data-pick="{{item.pick_code || activePickCode}}"
data-id="{{item.id}}"
catchtap="printCurrentPick"
>{{printing ? '打印中' : '打印'}}</view>
</view>
</block>
</view>
<view
wx:if="{{hasOpenPicks}}"
class="bottom-bar-slot {{embedded ? 'bottom-bar-slot--embedded' : ''}}"
/>
<view
wx:if="{{activeTask && !hasOpenPicks && activeTask.pick_status == 30}}"
class="bottom-bar-slot bottom-bar-slot--stack {{embedded ? 'bottom-bar-slot--embedded' : ''}}"
/>
<root-portal enable="{{true}}">
<view wx:if="{{hasOpenPicks}}" class="bottom-bar bottom-bar--row {{embedded ? 'bottom-bar--embedded' : ''}}">
<view
class="btn-primary bottom-main {{saving || printing ? 'is-disabled' : ''}}"
data-pick="{{activePickCode}}"
bindtap="confirmAllPicks"
>一键确认</view>
</view>
<view wx:if="{{activeTask && !hasOpenPicks && activeTask.pick_status == 30}}" class="bottom-bar bottom-bar--stack {{embedded ? 'bottom-bar--embedded' : ''}}">
<view class="flow-tip">分拣已完成,订单进入待配送,等待司机装车核货</view>
</view>
</root-portal>
</view>