ysy 2 年之前
父節點
當前提交
9d8c8a4a99

+ 1 - 1
api/pda/workOrder.js

@@ -75,7 +75,7 @@ export async function  pageeLedgerMain(params) {
   return Promise.reject(data.message);
 }
 
-// 资产台账
+// 
 export async function  assetPage(params) {
   const data = await get(
    Vue.prototype.apiUrl  + `/main/asset/pdaPage`, params,  true,

+ 8 - 3
pages.json

@@ -1453,15 +1453,20 @@
 				"navigationStyle": "custom",
 				"navigationBarTextStyle": "white"
 			}
+		},
+		
+		{
+			"path": "pages/pda/jobBooking/index/index",
+			"style": {
+				"navigationStyle": "custom",
+				"navigationBarTextStyle": "white"
+			}
 		}
 
 
 
 
 
-
-
-
 	],
 	"tabBar": {
 		"color": "#908f8f",

+ 1 - 1
pages/pda/components/bottomOperate.vue

@@ -46,7 +46,7 @@
 						},
 						{
 							name: '报工',
-							type: ''
+							type: 'jobBooking'
 						},
 						
 

+ 1 - 2
pages/pda/feeding/details.vue

@@ -108,12 +108,11 @@
 						this.$set(m, 'instanceList', instanceList)
 
 
-
 					}
 				})
 
 
-				console.log(this.List)
+		
 
 
 

+ 1 - 1
pages/pda/feeding/index/index.vue

@@ -191,7 +191,7 @@
 				const res = await workorderPage(params)
 
 
-				if (params.page === 1) {
+				if (params.pageNum === 1) {
 					this.dataList = []
 				}
 

+ 22 - 0
pages/pda/jobBooking/index/index.vue

@@ -0,0 +1,22 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 1 - 1
pages/pda/picking/index/index.vue

@@ -197,7 +197,7 @@
 				const res = await workorderPage(params)
 
 
-				if (params.page === 1) {
+				if (params.pageNum === 1) {
 					this.dataList = []
 				}
 

+ 7 - 0
pages/pda/workOrder/extrusionMolding/index.vue

@@ -226,6 +226,13 @@
 					uni.navigateTo({
 						url
 					})
+				} else if(type == 'jobBooking') {
+					url = '/pages/pda/jobBooking/index/index'
+					let _arr = JSON.stringify([ this.info.id ])
+					url += `?arr=${encodeURIComponent(_arr)}&taskName=${this.info.taskName}`
+					uni.navigateTo({
+						url
+					})
 				}
 	
 			},

+ 1 - 1
pages/pda/workOrder/index/index.vue

@@ -78,7 +78,7 @@
 				const res = await workorderPage(params)
 				console.log(res)
 
-				if (params.page === 1) {
+				if (params.pageNum === 1) {
 					this.dataList = []
 				}
 

+ 33 - 14
pages/pda/workOrder/search/index.vue

@@ -15,7 +15,7 @@
 				<input v-model="keyWord" placeholder="请输入关键字搜索" class="searchInput" />
 
 				<view>
-					<u-button @click="getList" type="success" size="small" class="u-reset-button" text="搜索">
+					<u-button @click="doSearch" type="success" size="small" class="u-reset-button" text="搜索">
 					</u-button>
 				</view>
 
@@ -23,7 +23,7 @@
 		</view>
 
 		<view class="list_box">
-			<u-list>
+			<u-list @scrolltolower="scrolltolower">
 
 
 				<checkbox-group v-for="(item, index) in list" :key="index" @change="e => selectVal(e, item, index)">
@@ -108,6 +108,8 @@
 		assetPage
 	} from '@/api/pda/workOrder.js'
 	import matterPop from './matterPop.vue'
+
+	let [isEnd] = [false]
 	export default {
 		components: {
 			baTreePicker,
@@ -121,6 +123,7 @@
 				classificationList: [],
 				treePickerShow: false,
 				list: [],
+				page: 1,
 
 
 				seletedAll: false, //全选状态
@@ -151,20 +154,20 @@
 			this.isType = option.isType
 			if (option.storageKey) {
 				this.storageKey = option.storageKey
-				
-				
-				if(this.isType == 'feed') {
-					let _arr =  (this.storageKey && uni.getStorageSync(this.storageKey)) || []
-					this.memoList = [ ..._arr[0].modelList, ..._arr[0].equipmentList]
+
+
+				if (this.isType == 'feed') {
+					let _arr = (this.storageKey && uni.getStorageSync(this.storageKey)) || []
+					this.memoList = [..._arr[0].modelList, ..._arr[0].equipmentList]
 					this.mattList = [..._arr[0].instanceList]
-				
+
 
 				} else {
 					this.memoList = (this.storageKey && uni.getStorageSync(this.storageKey)) || []
 				}
-				
-				
-				
+
+
+
 			}
 
 			this.getTreeList()
@@ -234,16 +237,27 @@
 			},
 
 
+			doSearch() {
+				this.page = 1
+				this.getList()
+			},
+
+			scrolltolower() {
+				if (isEnd) return
+				this.page++
+				this.getList()
+			},
 
 			getList() {
 				let param = {
 					categoryLevelId: this.categoryLevelId,
 					keyWord: this.keyWord,
-					pageNum: 1,
-					size: -1,
+					pageNum: this.page,
+					size: 100,
 
 				}
-				this.list = []
+				isEnd = false
+				
 				if (this.isType == 'pick') {
 					param.dimension = 1
 					pageeLedgerMain(param).then(res => {
@@ -264,6 +278,9 @@
 								}
 							})
 						)
+
+						isEnd = this.list.length >= res.count
+
 					})
 
 				} else if (this.isType == 'feed') {
@@ -289,6 +306,8 @@
 								}
 							})
 						)
+
+						isEnd = this.list.length >= res.count
 					})
 
 				}