ezhizao_zx преди 8 месеца
родител
ревизия
04ea36ae90
променени са 2 файла, в които са добавени 23 реда и са изтрити 2 реда
  1. 22 1
      pages/handlingList/index.vue
  2. 1 1
      pages/startTurnover/index.vue

+ 22 - 1
pages/handlingList/index.vue

@@ -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
+				})
 			})
 		}
 	}

+ 1 - 1
pages/startTurnover/index.vue

@@ -205,7 +205,7 @@
 			);
 		} else {
 			getDayworkItemByCarrierCode({
-				carrierCode: '000852',
+				carrierCode: '000828',
 				status: 4
 			}).then(response => {
 				console.log(response)