Files
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

203 lines
8.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="amend-page {{embedded ? 'is-embedded' : ''}}">
<view wx:if="{{!embedded}}" class="page-atmosphere" aria-hidden="true"></view>
<view wx:if="{{loading}}" class="state-box">
<van-loading size="24px" color="#059669">加载中...</van-loading>
</view>
<block wx:elif="{{mode === 'list'}}">
<view class="main-panel anim-rise">
<view class="panel-head">
<view class="panel-head-left">
<view class="section-head">
<view class="section-mark"></view>
<view class="section-title">{{listTab === 'reviewed' ? '今日已审' : '待确认列表'}}</view>
</view>
<view wx:if="{{!embedded}}" class="chip-row">
<view
class="chip {{listTab === 'pending' ? 'active' : ''}}"
data-tab="pending"
bindtap="onSetListTab"
>待审 {{pendingCount}}</view>
<view
class="chip {{listTab === 'reviewed' ? 'active' : ''}}"
data-tab="reviewed"
bindtap="onSetListTab"
>已审 {{reviewedCount}}</view>
</view>
</view>
<view class="refresh-btn" bindtap="loadList">
<van-icon name="replay" size="14px" color="#047857" />
<text>刷新</text>
</view>
</view>
<view wx:if="{{!rows.length}}" class="state-box">
<van-empty description="{{listTab === 'reviewed' ? '今天暂无已审记录' : '暂无待确认的追加修改'}}" />
</view>
<view wx:else class="list">
<view
wx:for="{{rows}}"
wx:key="id"
class="amend-card"
>
<view class="amend-card-head">
<view class="amend-title">{{item.item_name || item.sku_code || '商品'}}</view>
<view class="status-pill status-pill--{{item.statusTone}}">{{listTab === 'reviewed' ? item.statusLabel : '待审'}}</view>
</view>
<view class="amend-meta-line">
<view class="amend-meta">
<van-icon name="shop-o" size="12px" color="#a1a1aa" />
<text>{{item.supplier_name || item.supplier_code || '供应商'}}</text>
</view>
</view>
<block wx:if="{{listTab === 'reviewed'}}">
<view class="compare-row">
<view class="compare-cell">
<text class="compare-label">原</text>
<text class="compare-value">{{item.beforeText}}</text>
</view>
</view>
<view class="compare-row">
<view class="compare-cell">
<text class="compare-label">审</text>
<text class="compare-value">{{item.resultText}}</text>
</view>
</view>
<view class="amend-card-foot">
<text class="amend-time">{{item.displayTime || '时间未知'}}</text>
</view>
</block>
<block wx:else>
<view class="form-row">
<view class="form-cell form-cell--qty">
<text wx:if="{{item.qtyChanged}}" class="form-from">原{{item.beforeQtyLabel}}→</text>
<text class="form-k">数量</text>
<view class="form-input-wrap">
<input
class="form-input"
type="digit"
value="{{item.editQty}}"
data-id="{{item.id}}"
data-field="editQty"
catchinput="onRowFieldInput"
/>
</view>
</view>
<view class="form-cell form-cell--unit">
<text wx:if="{{item.unitChanged}}" class="form-from">原{{item.beforeUnitLabel}}→</text>
<text class="form-k">单位</text>
<view class="form-input-wrap form-input-wrap--unit">
<input
class="form-input"
value="{{item.editUnit}}"
data-id="{{item.id}}"
data-field="editUnit"
catchinput="onRowFieldInput"
/>
</view>
</view>
<view class="form-cell form-cell--price">
<text wx:if="{{item.priceChanged}}" class="form-from">原{{item.beforePriceLabel}}→</text>
<text class="form-k">单价</text>
<view class="form-input-wrap">
<input
class="form-input"
type="digit"
value="{{item.editPrice}}"
data-id="{{item.id}}"
data-field="editPrice"
catchinput="onRowFieldInput"
/>
</view>
</view>
</view>
<view class="amend-card-foot">
<view class="foot-left">
<view
class="row-btn row-btn--primary {{savingId === item.id ? 'is-disabled' : ''}}"
data-id="{{item.id}}"
catchtap="onConfirmRow"
>确认</view>
<text class="amend-time">{{item.displayTime || '时间未知'}}</text>
</view>
<view class="row-actions">
<view
class="row-btn row-btn--ghost {{savingId === item.id ? 'is-disabled' : ''}}"
data-id="{{item.id}}"
catchtap="onRejectRow"
>驳回</view>
</view>
</view>
</block>
</view>
</view>
</view>
</block>
<block wx:elif="{{mode === 'detail' && detail}}">
<view class="main-panel detail-panel anim-rise">
<view class="panel-head">
<view class="panel-head-left">
<view class="section-head">
<view class="section-mark"></view>
<view class="section-title">{{detail.item_name || detail.sku_code || '商品'}}</view>
</view>
<view class="date-hint">{{detail.supplier_name || detail.supplier_code || '供应商'}}</view>
<view wx:if="{{detail.order_code}}" class="order-pill">订单 {{detail.order_code}}</view>
</view>
<view class="refresh-btn" bindtap="backToList">
<van-icon name="arrow-left" size="14px" color="#047857" />
<text>返回</text>
</view>
</view>
<view class="compare-block">
<view class="compare-block-title">修改对比</view>
<view class="diff-card">
<view class="diff-label">修改前</view>
<view class="diff-value">
量 {{detail.beforeQtyText}} {{detail.before_unit || ''}} · 单价 ¥{{detail.beforePriceText}}
</view>
</view>
<view class="diff-card diff-card--proposed">
<view class="diff-label">供应商申请</view>
<view class="diff-value">
量 {{detail.proposedQtyText}} {{detail.proposed_unit || ''}} · 单价 ¥{{detail.proposedPriceText}}
</view>
</view>
</view>
<view class="edit-block">
<view class="compare-block-title">确认时可修改</view>
<view class="field">
<text class="label">供货数量</text>
<input class="input" type="digit" value="{{editQty}}" data-field="editQty" bindinput="onEditInput" />
</view>
<view class="field">
<text class="label">供货单位</text>
<input class="input" value="{{editUnit}}" data-field="editUnit" bindinput="onEditInput" />
</view>
<view class="field">
<text class="label">供货单价</text>
<input class="input" type="digit" value="{{editPrice}}" data-field="editPrice" bindinput="onEditInput" />
</view>
<view class="field">
<text class="label">备注</text>
<input class="input" value="{{remark}}" data-field="remark" bindinput="onEditInput" placeholder="可选" />
</view>
</view>
<view class="actions" wx:if="{{detail.status === 10}}">
<button class="btn-danger action-btn" loading="{{saving}}" bindtap="onReject">驳回</button>
<button class="btn-primary action-btn" loading="{{saving}}" bindtap="onConfirm">确认并闭环</button>
</view>
<view wx:else class="handled-tip">该申请已处理(状态 {{detail.status}})</view>
</view>
</block>
</view>