chenrui 3 anni fa
parent
commit
9586a29b11
2 ha cambiato i file con 7 aggiunte e 6 eliminazioni
  1. 1 0
      libs/axios.js
  2. 6 6
      pages/replenishmentManage/replenishmentList.vue

+ 1 - 0
libs/axios.js

@@ -71,6 +71,7 @@ const request = (opts, hasToken) => {
 					}
 					resolve(ret)
 				}
+				ret.status = ret.statusCode  // mock数据结构改造
 				resolve(ret)
 			}
 		).catch(

+ 6 - 6
pages/replenishmentManage/replenishmentList.vue

@@ -9,19 +9,19 @@
 						<view  
 						class="check-order-list" 
 						v-if="index==current"
-						v-for="(item,sindex) in 20" 
+						v-for="(item,sindex) in list" 
 						:key="item.id+'-'+sindex"
 						@click="viewRow(item)" >
 							<view class="check-row">
-								<view>西安车领主常青二路数字货架</view>
+								<view>{{item.shelfName}}</view>
 								<view>
-									<text :style="{color:$config('errorColor')}">待退库</text>
+									<text :style="{color:$config('errorColor')}">{{item.billStateDictValue}}</text>
 								</view>
 							</view>
 							<view class="check-col">
-								<view>补货单号:BH202101010001</view>
-								<view>应发数量:33</view>
-								<view>2021-08-20 15:40:57</view>
+								<view>补货单号:{{item.replenishBillNo}}</view>
+								<view>应发数量:{{item.totalQty}}</view>
+								<view>{{item.createDate}}</view>
 							</view>
 						 </view>
 						 <u-empty :src="`/static/${$config('themePath')}/def_no_data@3x.png`" icon-size="240" :text="noDataText" img-width="120" v-if="list.length==0 && status!='loading'" mode="list"></u-empty>