|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 上传照片 --> |
|
|
<!-- 上传照片 --> |
|
|
<view class="upload-section"> |
|
|
|
|
|
|
|
|
<view class="upload-section" v-if="formData.activeType == '2'"> |
|
|
<view class="section-title">上传照片</view> |
|
|
<view class="section-title">上传照片</view> |
|
|
<view class="picture-wrapper" @click="cardFileImageUpdate(100)"> |
|
|
<view class="picture-wrapper" @click="cardFileImageUpdate(100)"> |
|
|
<view class="bg"> |
|
|
<view class="bg"> |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
getCodeName, getDicWithType |
|
|
getCodeName, getDicWithType |
|
|
} from "@/datas/queryKey.js"; |
|
|
} from "@/datas/queryKey.js"; |
|
|
import { msg, strReplace, imgPathMontage, hasLogin, uploadFile, compressImage, chooseImageCompress } from "@/utils/utils"; |
|
|
|
|
|
|
|
|
import { msg, strReplace, imgPathMontage, hasLogin, uploadFile, compressImage, chooseImageCompress, navTo } from "@/utils/utils"; |
|
|
import uploadImg from '@/components/uploadOcr'; |
|
|
import uploadImg from '@/components/uploadOcr'; |
|
|
import useOrderSkip from "@/composables/order/useOrderSkip"; |
|
|
import useOrderSkip from "@/composables/order/useOrderSkip"; |
|
|
//办理订单按钮跳转业务逻辑 |
|
|
//办理订单按钮跳转业务逻辑 |
|
|
|
|
|
|
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!formData.colorCode) { |
|
|
|
|
|
|
|
|
if (formData.colorCode == undefined || formData.colorCode == null) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '请选择车牌颜色', |
|
|
title: '请选择车牌颜色', |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
|
|
|
|
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!formData.vehPosImgUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传行驶证正面照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.vehNegImgUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传行驶证反面照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.vehBodyUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传车辆45度照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.deviceImageUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传ETC设备安装照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
if(formData.activeType == '2') { |
|
|
|
|
|
if (!formData.vehPosImgUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传行驶证正面照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.vehNegImgUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传行驶证反面照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.vehBodyUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传车辆45度照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!formData.deviceImageUrl) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请上传ETC设备安装照', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const next = () => { |
|
|
const next = () => { |
|
|
if(formData.activeType == 1) { |
|
|
|
|
|
gotoActiveOrder(); |
|
|
|
|
|
|
|
|
if(formData.activeType == '1') { |
|
|
|
|
|
navTo(`/subpackage/after-sale/activation/operation-tips?id=${''}&orderId=${''}&cardStatus=${''}&obuStatus=${''}&transfer=${''}`); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
} |
|
|
} |