|
|
@ -1,6 +1,10 @@ |
|
|
|
<template> |
|
|
|
<page-meta root-font-size="18px"></page-meta> |
|
|
|
<view class=""> |
|
|
|
<view class="" style=" padding: 20rpx; font-weight: bold;"> |
|
|
|
<uni-easyinput v-model="oaNumber" :styles="styles" :placeholderStyle="placeholderStyle" placeholder="请输入OA单号" |
|
|
|
@input="changeValue"></uni-easyinput> |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-empty-view v-if="dataList.length==0"></win-empty-view> |
|
|
|
<view hover-class="uni-list-cell-hover" v-for="(item, index) in dataList" :key="item.id" |
|
|
@ -23,9 +27,11 @@ |
|
|
|
} from '@/api/index.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
goHome |
|
|
|
goHome, |
|
|
|
debounceSetting |
|
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
|
|
|
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' |
|
|
|
import comUnProduce from '@/mycomponents/coms/task/comUnProduce.vue'; |
|
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
@ -60,10 +66,18 @@ |
|
|
|
isIssueTimeChange: false, |
|
|
|
isToday: false, |
|
|
|
titleArray: ['任务编号'], |
|
|
|
loadingType: "nomore" |
|
|
|
loadingType: "nomore", |
|
|
|
styles: { |
|
|
|
color: '#2979FF', |
|
|
|
borderColor: '#2979FF', |
|
|
|
padding:"20" |
|
|
|
}, |
|
|
|
placeholderStyle: "color:#2979FF;font-size:14px;font-weight: bold;", |
|
|
|
oaNumber:"" |
|
|
|
}; |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.oaNumber =localStorage.getItem("pick_oaNumber") |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
|
|
|
@ -111,7 +125,8 @@ |
|
|
|
pageIndex: that.pageIndex, |
|
|
|
isCreationTimeSorting: that.isIssueTimeChange, |
|
|
|
isToday: that.isToday, |
|
|
|
ishaspag:1 |
|
|
|
ishaspag: 1, |
|
|
|
OaNumber: localStorage.getItem("pick_oaNumber")? localStorage.getItem("pick_oaNumber"):"" |
|
|
|
}; |
|
|
|
getUnProducePickList(params) |
|
|
|
.then(res => { |
|
|
@ -133,6 +148,7 @@ |
|
|
|
.catch(err => { |
|
|
|
this.showMessage(err.message); |
|
|
|
uni.hideLoading(); |
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
@ -155,7 +171,7 @@ |
|
|
|
showMessage(message) { |
|
|
|
this.$refs.comMessage.showMessage(message); |
|
|
|
}, |
|
|
|
onPull() { |
|
|
|
onPullDownRefresh() { |
|
|
|
this.getList('refresh'); |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
@ -170,7 +186,19 @@ |
|
|
|
}, |
|
|
|
selectedItem(item) { |
|
|
|
this.openDetail(item); |
|
|
|
} |
|
|
|
}, |
|
|
|
changeValue: debounceSetting(function() { |
|
|
|
localStorage.setItem("pick_oaNumber",this.oaNumber) |
|
|
|
this.getList('refresh'); |
|
|
|
}, 500), |
|
|
|
|
|
|
|
// changeValue(e){ |
|
|
|
// console.log(e) |
|
|
|
// debounceSetting(this.test(e), 500) |
|
|
|
// } , |
|
|
|
// test:function(e){ |
|
|
|
// console.log("1"+e) |
|
|
|
// } |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|