Files
SupplierSystem/miniprogram/components/order-manage-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

152 lines
5.6 KiB
Plaintext

<view class="page {{embedded ? 'is-embedded' : ''}}">
<view class="page-atmosphere" aria-hidden="true"></view>
<view class="card filters anim-rise">
<view class="filter-block" wx:if="{{!embedded}}">
<view class="filter-label">订单状态</view>
<view class="chip-row">
<view
wx:for="{{statusGroups}}"
wx:key="value"
class="chip {{statusGroup === item.value ? 'active' : ''}}"
data-value="{{item.value}}"
bindtap="onStatusGroup"
>{{item.label}}{{item.count >= 0 ? '(' + item.count + ')' : ''}}</view>
</view>
</view>
<view class="filter-block">
<view class="filter-label">时间范围</view>
<view class="chip-row">
<view class="chip {{dateField === 'delivery_date' ? 'active' : ''}}" data-field="delivery_date" bindtap="setDateField">配送日</view>
<view class="chip {{dateField === 'created_at' ? 'active' : ''}}" data-field="created_at" bindtap="setDateField">下单日</view>
</view>
<view class="chip-row">
<view
wx:for="{{dateRanges}}"
wx:key="value"
class="chip {{dateRange === item.value ? 'active' : ''}}"
data-value="{{item.value}}"
bindtap="onDateRange"
>{{item.label}}</view>
<view
class="chip {{dateRange === 'custom' ? 'active' : ''}}"
bindtap="onOpenCustomRange"
>{{customRangeLabel}}</view>
</view>
<view class="range-bar" wx:if="{{dateRange === 'custom'}}">
<view class="range-bar-cell">
<picker mode="date" value="{{dateFrom}}" end="{{dateTo}}" bindchange="onCustomFromChange">
<view class="range-bar-inner">
<van-icon name="calendar-o" size="14px" color="#059669" />
<text class="range-bar-text">{{dateFrom || '开始日期'}}</text>
</view>
</picker>
</view>
<view class="range-bar-split">至</view>
<view class="range-bar-cell">
<picker mode="date" value="{{dateTo}}" start="{{dateFrom}}" bindchange="onCustomToChange">
<view class="range-bar-inner">
<van-icon name="calendar-o" size="14px" color="#059669" />
<text class="range-bar-text">{{dateTo || '结束日期'}}</text>
</view>
</picker>
</view>
</view>
</view>
<view class="search-row">
<view class="search-box">
<van-icon name="search" size="16px" color="#a1a1aa" />
<input
class="search-input"
placeholder="搜索订单号/客户/商品名"
value="{{search}}"
confirm-type="search"
bindinput="onSearchInput"
bindconfirm="onSearch"
/>
</view>
<button class="search-btn" size="mini" bindtap="onSearch">查询</button>
</view>
<view class="stats">
<view class="stats-item">
<text class="stats-label">订单</text>
<text class="stats-value">{{total}}</text>
</view>
<view class="stats-divider"></view>
<view class="stats-item">
<text class="stats-label">合计</text>
<text class="stats-value stats-amount">¥{{totalAmountText}}</text>
</view>
</view>
</view>
<view wx:if="{{loading}}" class="state-box">
<van-loading size="24px" color="#059669">加载中…</van-loading>
</view>
<view wx:elif="{{error}}" class="state-box error-box">{{error}}</view>
<view wx:elif="{{!rows.length}}" class="state-box">
<van-empty description="暂无订单" />
</view>
<view wx:else class="order-list anim-rise anim-rise--delay">
<view
wx:for="{{rows}}"
wx:key="order_code"
class="card order-card"
data-code="{{item.order_code}}"
bindtap="openDetail"
>
<view class="order-title-row">
<text class="customer">{{item.company_name || '客户'}}</text>
<view class="status-tag status-{{item.order_status}}">{{item.statusLabel}}</view>
</view>
<view class="order-sub-row">
<view class="order-code-wrap">
<van-icon name="orders-o" size="12px" color="#059669" />
<view class="order-code">{{item.order_code}}</view>
</view>
<view class="meta-amount">¥{{item.amountText}}</view>
</view>
<view class="meta-row">
<view class="meta-item">
<van-icon name="logistics" size="12px" color="#a1a1aa" />
<text>配送 {{item.delivery_date || '-'}}</text>
</view>
<view wx:if="{{item.status_hint}}" class="hint hint--inline">
<van-icon name="info-o" size="11px" color="#d97706" />
<text>{{item.status_hint}}</text>
</view>
</view>
<view class="actions" wx:if="{{item.next_status}}">
<button
class="btn-primary action-btn"
size="mini"
hover-stop-propagation
disabled="{{advancingOrderCode && advancingOrderCode !== item.order_code}}"
loading="{{advancingOrderCode === item.order_code}}"
data-code="{{item.order_code}}"
data-status="{{item.next_status}}"
data-label="{{item.advance_label}}"
catchtap="onAdvance"
>{{item.advance_label || '推进'}}</button>
<view class="detail-entry">
<text>详情</text>
<van-icon name="arrow" size="12px" color="#a1a1aa" />
</view>
</view>
<view class="actions actions-only-detail" wx:else>
<view class="detail-entry">
<text>查看详情</text>
<van-icon name="arrow" size="12px" color="#a1a1aa" />
</view>
</view>
</view>
</view>
</view>