Przeglądaj źródła

bug修复以及优化

htc 4 miesięcy temu
rodzic
commit
643738619e

+ 13 - 4
pagesStorage/checkStorage/add.vue

@@ -75,6 +75,8 @@
 					totalQuantity: 0,
 					details: []
 				},
+				page:1,
+				isOver:false,
 				goodsList:[]
 			}
 		},
@@ -84,13 +86,20 @@
 			this.checkDto.warehouseName = option.warehouseName;
 			this.getGoodList();
 		},
+		onReachBottom() {
+			if(this.isOver) return
+			this.getGoodList();	
+		},
 		methods:{
 			getGoodList(){
-				this.$api.get('/wms/inventory/boardList/item/?warehouseId='+this.checkDto.warehouseId).then(res=>{
+				this.$api.get('/wms/inventory/boardList/item/?warehouseId='+this.checkDto.warehouseId+'&page='+this.page+'&limit=-1').then(res=>{
 					if(res.data.code===0){
-						this.checkDto.details = res.data.data.list;
-						this.checkDto.details.forEach(d=>d.checkQuantity=+d.quantity);
-						this.computeNum();
+						// if(this.checkDto.details.length<res.data.data.total){
+							// this.page++;
+							this.checkDto.details = [...this.checkDto.details,...res.data.data.list];
+							this.checkDto.details.forEach(d=>d.checkQuantity=+d.quantity);
+							this.computeNum();
+						// }else this.isOver = true
 					}else this.$showToast(res.data.msg)
 				})
 			},

+ 2 - 0
pagesStorage/inventoryStatistics/index.vue

@@ -47,7 +47,9 @@
 </template>
 
 <script>
+	import pageEmpty from '@/components/pageEmpty/index.vue'
 	export default {
+		components:{ pageEmpty },
 		data(){
 			return {
 				params:{

+ 1 - 1
pagesStorage/outStorage/add.vue

@@ -34,7 +34,7 @@
 				<div class="item">
 					<div class="left">出库日期</div>
 					<div class="right" @tap="dateShow = true">
-						<text v-if="receiptDto.shipmentDate">{{receiptDto.shipmentDate}} ></text>
+						<text v-if="shipmentDto.shipmentDate">{{shipmentDto.shipmentDate}} ></text>
 						<text class="tip" v-else>请选择 ></text>
 					</div>
 				</div>

+ 1 - 0
pagesStorage/outStorage/goods.vue

@@ -71,6 +71,7 @@
 			}
 		},
 		async onLoad(option) {
+			this.params.warehouseId = option.warehouseId;
 			let ids = option.ids;
 			if(ids.indexOf(',')>-1) ids = ids.split(',');
 			else ids = [ids];

+ 2 - 0
pagesStorage/storage/index.vue

@@ -23,7 +23,9 @@
 </template>
 
 <script>
+	import pageEmpty from '@/components/pageEmpty/index.vue'
 	export default {
+		components:{ pageEmpty },
 		data(){
 			return {
 				list:[]

+ 2 - 0
pagesStorage/storageRecord/index.vue

@@ -78,7 +78,9 @@
 </template>
 
 <script>
+	import pageEmpty from '@/components/pageEmpty/index.vue'
 	export default {
+		components:{ pageEmpty },
 		data(){
 			return {
 				params:{

+ 2 - 0
pagesStorage/units/index.vue

@@ -48,7 +48,9 @@
 </template>
 
 <script>
+	import pageEmpty from '@/components/pageEmpty/index.vue'
 	export default {
+		components:{ pageEmpty },
 		data(){
 			return {
 				params:{