Browse Source

前端gjy

gjy 3 years ago
parent
commit
bb1923783c

+ 15 - 3
pages/erpbusiness/acquisitionInspection/acquisitionInspection.vue

@@ -74,7 +74,9 @@
 				warehouseList: [],
 				isContent:false,
 				loadStatus:'noMore',
-				dataList: []
+				dataList: [],
+				pageSize:10,
+				currentPage:1,
 			}
 		},
 		onShow() {
@@ -109,6 +111,16 @@
 					}
 				});
 		},
+		onPullDownRefresh() {
+			this.currentPage=1
+			this.gridList=[]
+			this.getList()
+		},
+		 onReachBottom() {
+			 this.currentPage+=1
+		    this.getList()
+			// this.getMoreNews()
+		},
 		methods: {
 			loadData() {
 				this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
@@ -131,8 +143,8 @@
 			getList() {
 				this.$api.doRequest('get', '/weighingManagement/selectWeighingManagement', {
 					compId: '',
-					currentPage: 1,
-					pageSize: 10,
+					currentPage: this.currentPage,
+					pageSize:this.pageSize,
 					searchKeyWord: this.inputKeyword,
 					warehouseName: this.warehouseName,
 					managementType: 1,

+ 7 - 1
pages/erpbusiness/acquisitionInspection/tareDetail1.vue

@@ -91,12 +91,17 @@
 				]
 			}
 		},
-		onShow() {},
+		
 		onLoad(options) {
 			this.id = options.id
 			this.cangId = options.cangId
 			this.getWeighingManagement()
 		},
+		onShow() {
+			if(uni.getStorageSync('ContractNo')){
+				this.detailData.contractNo=uni.getStorageSync('ContractNo').contractNo
+			}
+		},
 		methods: {
 			contractNopicker(e){
 				this.detailData.goodsName=this.contractNoList[e[0]].goodsName
@@ -188,6 +193,7 @@
 							that.$api.doRequest('post', '/weighingManagement/api/editTareOut',
 							that.detailData).then(res => {
 								if(res.data.code==200){
+									uni.setStorageSync('ContractNo','')
 								that.$api.msg('提交成功')
 								uni.navigateBack()
 								}

+ 14 - 2
pages/erpbusiness/acquisitionInspection/warehouseWeighing.vue

@@ -80,6 +80,8 @@
 				isContent:false,
 				loadStatus:'noMore',
 				dataList: [],
+				pageSize:10,
+				currentPage:1,
 				cangId:''
 			}
 		},
@@ -115,6 +117,16 @@
 					}
 				});
 		},
+		onPullDownRefresh() {
+			this.currentPage=1
+			this.gridList=[]
+			this.getList()
+		},
+		 onReachBottom() {
+			 this.currentPage+=1
+		    this.getList()
+			// this.getMoreNews()
+		},
 		methods: {
 			add(){
 				uni.navigateTo({
@@ -143,8 +155,8 @@
 			getList() {
 				this.$api.doRequest('get', '/weighingManagement/selectWeighingManagement', {
 					compId: '',
-					currentPage: 1,
-					pageSize: 10,
+					currentPage: this.currentPage,
+					pageSize: this.pageSize,
 					searchKeyWord: this.inputKeyword,
 					warehouseName: this.warehouseName,
 					managementType: 3,

+ 10 - 0
pages/erpbusiness/quality_testing.vue

@@ -151,6 +151,16 @@
 				}
 			}
 		},
+		onPullDownRefresh() {
+			this.currentPage=1
+			this.gridList=[]
+			this.getList()
+		},
+		 onReachBottom() {
+			 this.currentPage+=1
+		    this.getList()
+			// this.getMoreNews()
+		},
 		onLoad(options){
 			this.managementType=options.managementType
 		},