|
@@ -85,6 +85,13 @@
|
|
|
<view class="sx-style" @click.stop="getLngLat()">刷新</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class='row-between'>
|
|
|
+ <view class="">运输时长(小时)</view>
|
|
|
+ <view class="flex align-center">
|
|
|
+ <u--input placeholder="请输入运输时长" border="none" type="digit" v-model="detailData.transportationDuration" inputAlign='right'
|
|
|
+ clearable></u--input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class='s-flex'>
|
|
|
<view class="" style="margin:20rpx 0;">上传装车照片</view>
|
|
|
<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
|
|
@@ -352,6 +359,9 @@
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.detailData = res.data
|
|
|
+ if(res.data.hyCarrierInfo && res.data.hyCarrierInfo.transportationDuration){
|
|
|
+ this.detailData.transportationDuration = res.data.hyCarrierInfo.transportationDuration
|
|
|
+ }
|
|
|
// #ifdef APP-PLUS
|
|
|
this.getLngLat();
|
|
|
// #endif
|
|
@@ -373,6 +383,7 @@
|
|
|
console.log(this.fileList1)
|
|
|
this.detailData.carNo = res.data.carNo
|
|
|
this.detailData.loadingDate = res.data.loadingDate
|
|
|
+
|
|
|
if (res.data.loadingDate) {
|
|
|
this.detailData.loadingDate1 = res.data.loadingDate.split(' ')[0]
|
|
|
}
|
|
@@ -687,17 +698,31 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.detailData.loadingCity)) {
|
|
|
+ // if (uni.$u.test.isEmpty(this.detailData.loadingCity)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "定位不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // if (uni.$u.test.isEmpty(this.detailData.loadingArea)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "定位不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ if (uni.$u.test.isEmpty(this.detailData.transportationDuration)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "定位不能为空!",
|
|
|
+ message: "运输时长不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.detailData.loadingArea)) {
|
|
|
+ if (this.detailData.transportationDuration < 0 || this.detailData.transportationDuration >1000) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "定位不能为空!",
|
|
|
+ message: "运输时长输入错误!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
@@ -744,7 +769,8 @@
|
|
|
loadingCity: this.detailData.loadingCity,
|
|
|
loadingLongitude: this.detailData.loadingLongitude,
|
|
|
loadingLatitude: this.detailData.loadingLatitude,
|
|
|
- id: this.detailData.hyCarrierInfo.id
|
|
|
+ id: this.detailData.hyCarrierInfo.id,
|
|
|
+ transportationDuration:this.detailData.transportationDuration
|
|
|
}
|
|
|
|
|
|
// console.log("查看id--------",this.detailData.hyCarrierInfo.id)
|