Bläddra i källkod

feat 管理端页面

wzh 4 månader sedan
förälder
incheckning
d5fe5d11cc
2 ändrade filer med 13 tillägg och 12 borttagningar
  1. 12 11
      pages/cjx/hexiao/jxs/hexiao_detail.vue
  2. 1 1
      pages/cjx/hexiao/jxs/hexiao_record.vue

+ 12 - 11
pages/cjx/hexiao/jxs/hexiao_detail.vue

@@ -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获取明细数据

+ 1 - 1
pages/cjx/hexiao/jxs/hexiao_record.vue

@@ -50,7 +50,7 @@
           <view class="status-badge verifying"  v-if="record.status === 2">
             {{ getStatusText(record.status) }}
           </view>
-          <view class="status-badge verified"  v-if="record.status === 3">
+          <view class="status-badge verified" style="background-color: #54CFAB"  v-if="record.status === 3">
             {{ getStatusText(record.status) }}
           </view>
         </view>