From 0f35dd714311f0b39e0bf2e2dccb66761e52835f Mon Sep 17 00:00:00 2001 From: wk Date: 星期三, 13 十一月 2024 15:14:30 +0800 Subject: [PATCH] feat:编辑证件信息 --- pages/driver-page/drvier-my/drvier-my.vue | 127 +++++++++++++++++++++++++++++++++++++++--- 1 files changed, 118 insertions(+), 9 deletions(-) diff --git a/pages/driver-page/drvier-my/drvier-my.vue b/pages/driver-page/drvier-my/drvier-my.vue index b206cbe..9511f17 100644 --- a/pages/driver-page/drvier-my/drvier-my.vue +++ b/pages/driver-page/drvier-my/drvier-my.vue @@ -438,7 +438,7 @@ </u-upload> </u-form-item> <u-form-item prop="drivingImg" - label="琛岄┒璇�" + label="琛岄┒璇佽溅澶�" labelWidth="35%" borderBottom required @@ -448,6 +448,24 @@ @afterRead="afterRead" @delete="deletePic" name="2" + multiple + :maxCount="1" + width="250" + height="150" + :previewFullImage="true"> + </u-upload> + </u-form-item> + <u-form-item prop="driverImgCw" + label="琛岄┒璇佽溅灏�" + labelWidth="35%" + borderBottom + required + @click="beforeRead"> + <u-upload :fileList="fileList9" + deletable + @afterRead="afterRead" + @delete="deletePic" + name="9" multiple :maxCount="1" width="250" @@ -486,7 +504,7 @@ <uni-datetime-picker v-model="registerFormModel.expirationTimeDriver" type="datetime" :start="minDate" /> </u-form-item> <u-form-item prop="roadTransportImg" - label="閬撹矾杩愯緭璇�" + label="閬撹矾杩愯緭璇佽溅澶�" labelWidth="35%" borderBottom required @@ -496,6 +514,24 @@ @afterRead="afterRead" @delete="deletePic" name="7" + multiple + :maxCount="1" + width="250" + height="150" + :previewFullImage="true"> + </u-upload> + </u-form-item> + <u-form-item prop="roadTransportImgCw" + label="閬撹矾杩愯緭璇佽溅灏�" + labelWidth="35%" + borderBottom + required + @click="beforeRead"> + <u-upload :fileList="fileList10" + deletable + @afterRead="afterRead" + @delete="deletePic" + name="10" multiple :maxCount="1" width="250" @@ -521,6 +557,23 @@ @afterRead="afterRead" @delete="deletePic" name="4" + multiple + :maxCount="1" + width="250" + height="150" + :previewFullImage="true"> + </u-upload> + </u-form-item> + <u-form-item prop="tradeQualificationImgYyy" + label="浠庝笟璧勬牸璇佹娂杩愬憳" + labelWidth="35%" + borderBottom + @click="beforeRead"> + <u-upload :fileList="fileList11" + deletable + @afterRead="afterRead" + @delete="deletePic" + name="11" multiple :maxCount="1" width="250" @@ -595,7 +648,10 @@ tradeQualificationImg: '', roadTransportImg: '', inventoryImg: '', - countryNumberCar: 0 + countryNumberCar: 0, + driverImgCw:'', + roadTransportImgCw:"", + tradeQualificationImgYyy:"", }, registerFormModel:{}, radiolist2: [{ @@ -750,6 +806,9 @@ fileList6: [], fileList7: [], fileList8: [], + fileList9: [], + fileList10: [], + fileList11: [], // 淇敼淇℃伅寮瑰嚭妗� editDriverPopupShow: false, editDocShow:false, @@ -911,7 +970,10 @@ roadTransportImg:res.data.roadTransportImg, expirationTimeRoadtransport:res.data.expirationTimeRoadtransport, expirationTimeTradequalification:res.data.expirationTimeTradequalification, - type:res.data.carType + type:res.data.carType, + driverImgCw:res.data.driverImgCw, + roadTransportImgCw:res.data.roadTransportImgCw, + tradeQualificationImgYyy:res.data.tradeQualificationImgYyy, } if(this.registerFormModel.carImg){ if (this.fileList6.length == 0 && this.registerFormModel.carImg.split(",")[0]) { @@ -925,12 +987,33 @@ }); } } - if(this.registerFormModel.roadTransportImg){ - if (this.fileList7.length == 0 && this.userInfo.roadTransportImg) { - this.fileList7.push({ - url: `${BaseUrl}${this.userInfo.roadTransportImg}` - }); + if(this.registerFormModel.roadTransportImg){ + if (this.fileList7.length == 0 && this.userInfo.roadTransportImg) { + this.fileList7.push({ + url: `${BaseUrl}${this.userInfo.roadTransportImg}` + }); + } } + if(this.registerFormModel.driverImgCw){ + if (this.fileList9.length == 0 && this.userInfo.driverImgCw) { + this.fileList9.push({ + url: `${BaseUrl}${this.userInfo.driverImgCw}` + }); + } + } + if(this.registerFormModel.roadTransportImgCw){ + if (this.fileList10.length == 0 && this.userInfo.roadTransportImgCw) { + this.fileList10.push({ + url: `${BaseUrl}${this.userInfo.roadTransportImgCw}` + }); + } + } + if(this.registerFormModel.tradeQualificationImgYyy){ + if (this.fileList11.length == 0 && this.userInfo.tradeQualificationImgYyy) { + this.fileList11.push({ + url: `${BaseUrl}${this.userInfo.tradeQualificationImgYyy}` + }); + } } this.editUserInfo.password = '' }); @@ -941,6 +1024,17 @@ }, editDocClick(){ this.editDocShow = true; + this.fileList1=[] + this.fileList2=[] + this.fileList3=[] + this.fileList4=[] + this.fileList6=[] + this.fileList7=[] + this.fileList8=[] + this.fileList9=[] + this.fileList10=[] + this.fileList11=[] + this.getUserEntity() }, imageClick(index) { if (index == 1) { @@ -1037,6 +1131,18 @@ this.registerFormModel.driverImg = JSON.parse(res.data) .data.url; resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); + }else if(num==9){ + this.registerFormModel.driverImgCw = JSON.parse(res.data) + .data.url; + resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); + }else if(num==10){ + this.registerFormModel.roadTransportImgCw = JSON.parse(res.data) + .data.url; + resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); + }else if(num==11){ + this.registerFormModel.tradeQualificationImgYyy = JSON.parse(res.data) + .data.url; + resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`); } } @@ -1081,6 +1187,9 @@ roadTransportImg:this.registerFormModel.roadTransportImg, expirationTimeRoadtransport:this.registerFormModel.expirationTimeRoadtransport.slice(0,16), expirationTimeTradequalification:this.registerFormModel.expirationTimeTradequalification.slice(0,16), + driverImgCw:this.registerFormModel.driverImgCw, + roadTransportImgCw:this.registerFormModel.roadTransportImgCw, + tradeQualificationImgYyy:this.registerFormModel.tradeQualificationImgYyy, }, 'json').then(res => { if (res.code == 0) { this.$u.toast('淇敼鎴愬姛'); -- Gitblit v1.9.1