| | |
| | | <view class="line detail-value"> |
| | | 司机:{{item.driverName}} |
| | | </view> |
| | | <view class="line detail-value"> |
| | | 押运员:{{item.supercargoInfo?getUserName(item.supercargoInfo):'无'}} |
| | | </view> |
| | | <view class="line detail-value"> |
| | | {{item.startTime}}-{{item.expirationTime}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | label="运输证开始时间" |
| | | labelWidth="20%" |
| | | borderBottom> |
| | | <uni-datetime-picker v-model="tranSportForm.startTime" type="date" :start="minDate" /> |
| | | <uni-datetime-picker v-model="tranSportForm.startTime" type="date" /> |
| | | </u-form-item> |
| | | <u-form-item prop="expirationTime" |
| | | label="运输证过期时间" |
| | |
| | | return { |
| | | minDate: this.getToday(), |
| | | previewImageShow: false, |
| | | supercargoList:[], |
| | | supercargoList:[{ |
| | | driverName:"", |
| | | driverIdcard:"", |
| | | driverPhone:"" |
| | | }], |
| | | scoreDetailList: [], |
| | | editTranShow:false, |
| | | upload:false, |
| | |
| | | }, |
| | | onLoad() { |
| | | this.getScoreDetail() |
| | | this.$reqGet('getUserEntity').then(res => { |
| | | this.userInfo = res.data; |
| | | this.$reqGetId('getDriverListById', this.userInfo.userId).then(res => { |
| | | this.certificateData = res.data; |
| | | }); |
| | | }); |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changeisUploadimg']), |
| | | beforeRead() { |
| | | this.changeisUploadimg(true); |
| | | }, |
| | | getData(){ |
| | | this.$reqGet('getUserEntity').then(res => { |
| | | this.userInfo = res.data; |
| | | this.$reqGetId('getDriverListById', this.userInfo.userId).then(res => { |
| | | this.certificateData = res.data; |
| | | }); |
| | | }); |
| | | }, |
| | | imageClick(data) { |
| | | this.previewImageSrc = data; |
| | |
| | | if (res.code == 0) { |
| | | this.editTranShow = false; |
| | | this.$u.toast('提交成功'); |
| | | this.init(); |
| | | this.getData(); |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | |
| | | }) |
| | | }, |
| | | deleteSupercar(){ |
| | | this.supercargoList.splice(this.supercargoList.length - 1, 1) |
| | | if(this.supercargoList.length>1){ |
| | | this.supercargoList.splice(this.supercargoList.length - 1, 1) |
| | | } |
| | | }, |
| | | deleteDriver(){ |
| | | this.driverList.splice(this.driverList.length - 1, 1); |
| | | if(this.driverList.length>1){ |
| | | this.driverList.splice(this.driverList.length - 1, 1); |
| | | } |
| | | }, |
| | | getUserName(e){ |
| | | let data= e.split(',').map(item=>{ |
| | | return item.split("|")[0] |
| | | }).join(',') |
| | | return data |
| | | } |
| | | } |
| | | } |