来源仓库: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 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
64 lines
2.6 KiB
Plaintext
64 lines
2.6 KiB
Plaintext
<view class="bid-panel {{embedded ? 'is-embedded' : ''}}">
|
|
<view class="tabs">
|
|
<view class="tab {{tab==='open'?'active':''}}" data-tab="open" bindtap="onTab">待报价</view>
|
|
<view class="tab {{tab==='done'?'active':''}}" data-tab="done" bindtap="onTab">已处理</view>
|
|
</view>
|
|
|
|
<view wx:if="{{loading}}" class="muted center">加载中…</view>
|
|
<view wx:elif="{{error}}" class="error">{{error}}</view>
|
|
<view wx:elif="{{!enabled}}" class="muted center">分公司未开启竞价</view>
|
|
<view wx:elif="{{list.length===0}}" class="muted center">暂无竞价邀约</view>
|
|
|
|
<block wx:else>
|
|
<view class="card" wx:for="{{list}}" wx:key="id" data-id="{{item.round_id}}" bindtap="openDetail">
|
|
<view class="row">
|
|
<text class="title">{{item.round_code}}</text>
|
|
<text class="badge {{item.statusClass}}">{{item.statusText}}</text>
|
|
</view>
|
|
<view class="sub">{{item.title || '竞价轮次'}} · {{item.item_count}} 个商品</view>
|
|
<view class="sub">截止:{{item.deadlineText}}</view>
|
|
</view>
|
|
</block>
|
|
|
|
<view wx:if="{{detail}}" class="drawer">
|
|
<view class="drawer-mask" bindtap="closeDetail"></view>
|
|
<view class="drawer-panel">
|
|
<view class="drawer-head">
|
|
<text class="title">{{detail.round.round_code}}</text>
|
|
<text class="link" bindtap="closeDetail">关闭</text>
|
|
</view>
|
|
<view class="sub">{{detail.round.title || ''}}</view>
|
|
<view class="sub">状态:{{detail.invitation.statusText}} · 截止 {{detail.invitation.deadlineText}}</view>
|
|
|
|
<view wx:if="{{detail.invitation.status==='expired'}}" class="warn">已超过响应时限,本轮已出局</view>
|
|
<view wx:elif="{{detail.round.status!=='open'}}" class="muted">轮次已结束,仅可查看</view>
|
|
|
|
<view class="section-title">报价明细</view>
|
|
<view class="quote-row" wx:for="{{detail.items}}" wx:key="sku_code">
|
|
<view class="quote-name">{{item.sku_name || item.sku_code}}</view>
|
|
<input
|
|
class="quote-input"
|
|
type="digit"
|
|
placeholder="单价"
|
|
disabled="{{!detail.canQuote}}"
|
|
value="{{priceMap[item.sku_code]}}"
|
|
data-sku="{{item.sku_code}}"
|
|
bindinput="onPriceInput"
|
|
/>
|
|
</view>
|
|
|
|
<button
|
|
wx:if="{{detail.canQuote}}"
|
|
class="submit"
|
|
loading="{{submitting}}"
|
|
bindtap="submitQuotes"
|
|
>提交报价(提交即响应)</button>
|
|
|
|
<view wx:if="{{detail.awards.length}}" class="section-title">中标结果</view>
|
|
<view wx:for="{{detail.awards}}" wx:key="sku_code" class="sub">
|
|
{{item.sku_code}} @ {{item.unit_price}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|