|
@@ -176,10 +176,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
|
- <view class="left-text">挂车行驶证车辆类型</view>
|
|
|
+ <view class="left-text" style="width: 150px !important;">挂车行驶证车辆类型</view>
|
|
|
<u--input maxlength='15' placeholder="输入挂车行驶证车辆类型" inputAlign='right' border="none"
|
|
|
v-model="dataDetails.trailerVehicleType">
|
|
|
</u--input>
|
|
|
+ <u-icon name="arrow-down-fill" @click="selectCarType"></u-icon>
|
|
|
</view>
|
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
|
<view class="left-text">挂车行驶证车辆识别代号</view>
|
|
@@ -407,6 +408,8 @@
|
|
|
<u-picker :show="isShowCarType" ref="uPicker" :columns="carTypeList" @confirm="confirmCarType"
|
|
|
:closeOnClickOverlay='true' @close='isShowCarType=false' @cancel='isShowCarType=false'>
|
|
|
</u-picker>
|
|
|
+ <u-picker :show="carTypeShow" :closeOnClickOverlay='true' ref="uPicker" :columns="tcarTypeList"
|
|
|
+ @close="carTypeShow = false" @cancel='carTypeShow=false' @confirm="tCarType"></u-picker>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -469,17 +472,16 @@
|
|
|
uploadType: '',
|
|
|
isShowimgType: false,
|
|
|
sign: "挂车",
|
|
|
- startYear:1980
|
|
|
-
|
|
|
+ startYear:1980,
|
|
|
+ carTypeShow:false,
|
|
|
+ tcarTypeList:[],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication']),
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
-
|
|
|
_this = this;
|
|
|
- console.log(options)
|
|
|
if(options.guaCarNumber){
|
|
|
options.guaCarNumber=options.guaCarNumber.substring(0,6);
|
|
|
options.guaCarNumber1=options.guaCarNumber.substring(0,6);
|
|
@@ -497,6 +499,7 @@
|
|
|
this.fileList2 = [{
|
|
|
url: options.guaAddressUrl
|
|
|
}]
|
|
|
+ this.xiala()
|
|
|
this.get_camera_permission()
|
|
|
},
|
|
|
onShow(){
|
|
@@ -520,6 +523,27 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ tCarType(e) {
|
|
|
+ this.dataDetails.trailerVehicleType = e.value[0]
|
|
|
+ this.carTypeShow = false
|
|
|
+ },
|
|
|
+ xiala() {
|
|
|
+ this.$request.baseRequest('get', '/commonSysParameter/getInfo', {
|
|
|
+ constId: "TRAILER1",
|
|
|
+ }).then(res => {
|
|
|
+ var list = []
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ list.push(res.data[i].constValue)
|
|
|
+ }
|
|
|
+ this.tcarTypeList.push(list)
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ selectCarType() {
|
|
|
+ this.carTypeShow = true
|
|
|
+ },
|
|
|
driveType() {
|
|
|
this.isShowCarType = true
|
|
|
},
|