|
@@ -545,6 +545,11 @@
|
|
|
carrierCode: vehicleObj.carrierCode
|
|
|
}).then(response => {
|
|
|
if (response.code == 200) {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'success',
|
|
|
+ title: '已送达',
|
|
|
+ duration: 1000
|
|
|
+ })
|
|
|
reflush()
|
|
|
debounce(handleScan, 700)
|
|
|
} else {
|
|
@@ -554,15 +559,25 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: err.message
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
// 测试时用
|
|
|
getHandlingByCarrierCode({
|
|
|
- carrierCode: '900005'
|
|
|
+ carrierCode: '000828'
|
|
|
}).then(response => {
|
|
|
if (response.code == 200) {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'success',
|
|
|
+ title: '已送达'
|
|
|
+ })
|
|
|
reflush()
|
|
|
debounce(handleScan, 700)
|
|
|
} else {
|
|
@@ -572,6 +587,12 @@
|
|
|
duration: 2000
|
|
|
})
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: err.message
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
}
|