|
@@ -158,6 +158,7 @@
|
|
|
},
|
|
|
// 确定清运
|
|
|
submitFun(){
|
|
|
+ const _this = this
|
|
|
uni.showLoading({
|
|
|
mask: true,
|
|
|
title: '加载中'
|
|
@@ -168,9 +169,11 @@
|
|
|
cleanDevice(obj).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if(res.status == 200){
|
|
|
- this.refresh()
|
|
|
- this.messagePop = false
|
|
|
- uni.showToast({ icon:'none', title: res.message })
|
|
|
+ uni.showToast({ icon:'none', title: '清运成功,库存重量已重置为0' })
|
|
|
+ _this.messagePop = false
|
|
|
+ setTimeout(()=>{
|
|
|
+ _this.refresh()
|
|
|
+ },1000)
|
|
|
}else{
|
|
|
uni.showToast({ icon:'none', title: res.message })
|
|
|
}
|
|
@@ -190,12 +193,17 @@
|
|
|
},
|
|
|
// 搜索查询
|
|
|
searchHandle (pageNo) {
|
|
|
+ uni.showLoading({
|
|
|
+ mask: true,
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
this.status = "loading"
|
|
|
pageNo ? this.pageNo = pageNo : null
|
|
|
getSelfCleanTaskList({
|
|
|
pageNo: this.pageNo,
|
|
|
pageSize: this.pageSize
|
|
|
}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.status == 200) {
|
|
|
if(this.pageNo>1){
|
|
|
this.listdata = this.listdata.concat(res.data.list || [])
|