|
|
@ -453,7 +453,7 @@ |
|
|
that.totalPages = res.result.pages; // pages = 总页数 |
|
|
that.totalPages = res.result.pages; // pages = 总页数 |
|
|
that.$forceUpdate(); |
|
|
that.$forceUpdate(); |
|
|
} else { |
|
|
} else { |
|
|
that.tui.toast(res.message); |
|
|
that.tui.toast(res.message,1000); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
@ -557,7 +557,7 @@ |
|
|
}, |
|
|
}, |
|
|
openPopup() { |
|
|
openPopup() { |
|
|
if(this.isOnLine != 1){ |
|
|
if(this.isOnLine != 1){ |
|
|
this.tui.toast('请先上线后配置'); |
|
|
this.tui.toast('请先上线后配置',1000); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
let that = this |
|
|
let that = this |
|
|
@ -615,7 +615,7 @@ |
|
|
} */ |
|
|
} */ |
|
|
this.$refs.carPopup.open() |
|
|
this.$refs.carPopup.open() |
|
|
} else { |
|
|
} else { |
|
|
that.tui.toast(res.message) |
|
|
that.tui.toast(res.message,1000) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
}).catch((res) => {}) |
|
|
}).catch((res) => {}) |
|
|
@ -635,12 +635,12 @@ |
|
|
let that = this |
|
|
let that = this |
|
|
that.tui.request(url, "POST", {deliveryId:item.id,workerId:item.workerId}, false, true).then((res) => { |
|
|
that.tui.request(url, "POST", {deliveryId:item.id,workerId:item.workerId}, false, true).then((res) => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
that.tui.toast(res.message); |
|
|
that.tui.toast(res.message,1000); |
|
|
that.searchForm.pageNum = 1 |
|
|
that.searchForm.pageNum = 1 |
|
|
that.getDelivery() |
|
|
that.getDelivery() |
|
|
that.$forceUpdate(); |
|
|
that.$forceUpdate(); |
|
|
} else { |
|
|
} else { |
|
|
that.tui.toast(res.message); |
|
|
that.tui.toast(res.message,1000); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
@ -687,9 +687,9 @@ |
|
|
worker.isOnLine = value; |
|
|
worker.isOnLine = value; |
|
|
this.isOnLine = value |
|
|
this.isOnLine = value |
|
|
uni.setStorageSync('worker', worker); |
|
|
uni.setStorageSync('worker', worker); |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message,1000) |
|
|
} else { |
|
|
} else { |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message,1000) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
@ -706,7 +706,7 @@ |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message,1000) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|