gjy 2 年之前
父節點
當前提交
226a85fd81
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      pages/dataReport/Inventoryentrydetails.vue

+ 5 - 4
pages/dataReport/Inventoryentrydetails.vue

@@ -10,7 +10,7 @@
 			<view @click='show1=true'>{{warehouse?warehouse:'全部仓库'}}></view>
 		</view>
 		<u-picker mode="selector" @confirm='confirm' v-model="show1" range-key='warehouseName' :default-selector="[0]"
-			:range="warehouseList"></u-picker>
+			:range="warehouseList1"></u-picker>
 		<u-calendar @change='calendarchange' v-model="show" :mode="mode"></u-calendar>
 		<view>
 			<view class='contractwrap' v-for='(item,index) in warehouseList'>
@@ -54,6 +54,7 @@
 				warehouse: '',
 				searchKeyWord: '',
 				warehouseList: [],
+				warehouseList1:[],
 				isLoadMore: false
 			}
 		},
@@ -63,7 +64,7 @@
 			}).then(res => {
 				if (res.data.code == 200) {
 					// uni.hideLoading()
-					this.warehouseList = res.data.data
+					this.warehouseList1 = res.data.data
 				} else {
 					// uni.hideLoading()
 					uni.showToast({
@@ -132,8 +133,8 @@
 			},
 			confirm(e) {
 				console.log(e)
-				this.warehouse = this.warehouseList[e[0]].warehouseName
-				this.baseId = this.warehouseList[e[0]].id
+				this.warehouse = this.warehouseList1[e[0]].warehouseName
+				this.baseId = this.warehouseList1[e[0]].id
 				this.getList()
 			},
 			calendarchange(e) {