|
@@ -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) {
|