Browse Source

途宝报单bug修改

wangzhuo 1 năm trước cách đây
mục cha
commit
035d2e0b0c
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      pages/particulars/index.vue

+ 6 - 4
pages/particulars/index.vue

@@ -485,7 +485,7 @@
 				if (this.detour.length > 0) {
 					this.formData.detourEmptyMile = null
 					this.formData.detourLoadMile = null
-					this.formData.detourDesc = null
+					this.formData.detourDesc = ""
 				}
 			},
 			// 保存订单
@@ -499,7 +499,7 @@
 				} else {
 					this.formData.loadDateString = null
 				}
-				// 
+				
 				if(this.formData.unLoadDateString != null && this.formData.unLoadDateString != '') {
 					this.formData.unLoadDateString = this.dateToStringS("yyyy-MM-dd HH:mm:ss", new Date(this.formData.unLoadDateString))
 				} else {
@@ -515,11 +515,13 @@
 				// 行程绕路赋值
 				if (this.detour.length > 0) {
 					this.formData.ifDetour = "T"
-					this.formData.detourEmptyMile = this.formData.detourEmptyMile == null || this.formData.detourEmptyMile == '' ? 0 : this.formData.detourEmptyMile
-					this.formData.detourLoadMile = this.formData.detourLoadMile == null || this.formData.detourLoadMile == '' ? 0 : this.formData.detourLoadMile
 				} else {
 					this.formData.ifDetour = "F"
 				}
+				
+				this.formData.detourEmptyMile = this.formData.detourEmptyMile == null || this.formData.detourEmptyMile == '' ? 0 : this.formData.detourEmptyMile
+				this.formData.detourLoadMile = this.formData.detourLoadMile == null || this.formData.detourLoadMile == '' ? 0 : this.formData.detourLoadMile
+				this.formData.detourDesc = this.formData.detourDesc == null ? '' : this.formData.detourDesc
 
 				putOrderBillsPlansByid(this.formData).then(ress => {
 					if (ress.code == 200) {