|
|
@@ -118,7 +118,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 上传照片 --> |
|
|
|
<view class="upload-section"> |
|
|
|
<view class="upload-section" v-if="formData.activeType == '2'"> |
|
|
|
<view class="section-title">上传照片</view> |
|
|
|
<view class="picture-wrapper" @click="cardFileImageUpdate(100)"> |
|
|
|
<view class="bg"> |
|
|
@@ -209,7 +209,7 @@ import { |
|
|
|
import { |
|
|
|
getCodeName, getDicWithType |
|
|
|
} 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 useOrderSkip from "@/composables/order/useOrderSkip"; |
|
|
|
//办理订单按钮跳转业务逻辑 |
|
|
@@ -259,7 +259,9 @@ const formData = reactive({ |
|
|
|
deviceImageUrl: '', |
|
|
|
deviceImageName: '', |
|
|
|
smsCode: '', |
|
|
|
activeType: '' |
|
|
|
activeType: '', |
|
|
|
orderId: '', |
|
|
|
orderNo: '', |
|
|
|
}) |
|
|
|
|
|
|
|
const reset = () => { |
|
|
@@ -340,6 +342,8 @@ const queryVehicleData = (vehicleId) => { |
|
|
|
let vehicle = res.modelList[0]; |
|
|
|
formData.phoneNumber = vehicle.mobile; |
|
|
|
formData.activeType = vehicle.activeType; |
|
|
|
formData.orderId = vehicle.orderId; |
|
|
|
formData.orderNo = vehicle.orderNo; |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@@ -381,6 +385,8 @@ const bindPickerChange = (e) => { |
|
|
|
const colorItem = getDicWithType('VEHICLE_COLOR_TYPE').find(item => item.code == formData.colorCode); |
|
|
|
formData.colorName = colorItem.name; |
|
|
|
formData.phoneNumber = vehicle.mobile |
|
|
|
formData.orderId = vehicle.orderId; |
|
|
|
formData.orderNo = vehicle.orderNo; |
|
|
|
}; |
|
|
|
|
|
|
|
const bindColorPickerChange = (e) => { |
|
|
@@ -509,7 +515,7 @@ const nextStep = () => { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (!formData.colorCode) { |
|
|
|
if (formData.colorCode == undefined || formData.colorCode == null) { |
|
|
|
uni.showToast({ |
|
|
|
title: '请选择车牌颜色', |
|
|
|
icon: 'none' |
|
|
@@ -541,36 +547,38 @@ const nextStep = () => { |
|
|
|
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 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@@ -595,8 +603,9 @@ const nextStep = () => { |
|
|
|
} |
|
|
|
|
|
|
|
const next = () => { |
|
|
|
if(formData.activeType == 1) { |
|
|
|
gotoActiveOrder(); |
|
|
|
console.log(formData); |
|
|
|
if(formData.activeType == '1') { |
|
|
|
navTo(`/subpackage/after-sale/activation/operation-tips?id=${formData.orderId}&orderId=${formData.orderNo}&cardStatus=${undefined}&obuStatus=${undefined}&transfer=${formData.activeType}`); |
|
|
|
} else { |
|
|
|
|
|
|
|
} |