|
|
@@ -2,33 +2,33 @@
|
|
|
<view class="page-container">
|
|
|
<view class="info-card">
|
|
|
<view class="info-row">
|
|
|
- <text class="info-label">核销门店</text>
|
|
|
- <text class="info-value">{{ recordInfo.storeName }}</text>
|
|
|
+ <text class="info-label">核销业务员</text>
|
|
|
+ <text class="info-value">{{ recordInfo.ywyName }}</text>
|
|
|
</view>
|
|
|
<view class="info-row">
|
|
|
<text class="info-label">核销时间</text>
|
|
|
- <text class="info-value">{{ recordInfo.verificationTime }}</text>
|
|
|
+ <text class="info-value">{{ recordInfo.uploadTime }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="summary-card">
|
|
|
<view
|
|
|
class="summary-tab"
|
|
|
- v-for="item in summaryData"
|
|
|
+ v-for="item in detail.totals"
|
|
|
:key="item.key"
|
|
|
>
|
|
|
- <text class="tab-category">{{ item.category }}</text>
|
|
|
- <text class="tab-count">{{ item.count }}{{ item.unit }}</text>
|
|
|
+ <text class="tab-category">{{ item.categoryName }}</text>
|
|
|
+ <text class="tab-count">{{ item.num }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<scroll-view class="details-list" scroll-y="true" @scrolltolower="loadMore">
|
|
|
- <view v-if="detailsList.length === 0 && loadStatus !== 'loading'" class="empty-tip">
|
|
|
+ <view v-if="detail.items.length === 0 && loadStatus !== 'loading'" class="empty-tip">
|
|
|
暂无明细记录
|
|
|
</view>
|
|
|
- <view v-for="(item, index) in detailsList" :key="index" class="detail-item-card">
|
|
|
- <text class="item-name">{{ item.name }}</text>
|
|
|
- <text class="item-code">扫码编号:{{ item.code }}</text>
|
|
|
+ <view v-for="(item, index) in detail.items" :key="index" class="detail-item-card">
|
|
|
+ <text class="item-name">{{ item.productName }}</text>
|
|
|
+ <text class="item-code">扫码编号:{{ item.qrCodeNum }}</text>
|
|
|
</view>
|
|
|
<uni-load-more :status="loadStatus"></uni-load-more>
|
|
|
</scroll-view>
|
|
|
@@ -60,6 +60,7 @@ export default {
|
|
|
pagination: { page: 1, limit: 15 },
|
|
|
loadStatus: 'more', // 'more', 'loading', 'noMore'
|
|
|
isLoading: false,
|
|
|
+ detail:{totals:[]}
|
|
|
};
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
@@ -74,7 +75,7 @@ export default {
|
|
|
methods: {
|
|
|
getDetail(){
|
|
|
queryAddRecordDetail(this.id).then(res=>{
|
|
|
- debugger;
|
|
|
+ this.detail = res.data;
|
|
|
})
|
|
|
},
|
|
|
// 模拟从API获取明细数据
|