Bläddra i källkod

解除车牌占用添加上传委托书

yxb
DESKTOP-2IO5MST\huting 1 år sedan
förälder
incheckning
cc49428405

+ 72
- 55
subpackage/after-sale/rescind-carId/rescind-carId-select.vue Visa fil

@@ -1,5 +1,5 @@
<template>
<!-- <view class="content-wrap">
<!-- <view class="content-wrap">
<view @click="tabChange(true)">
<view :class="state.isMyPeopple ? 'big' : 'nomal'"> 本人车辆 </view>
<view :class="state.isMyPeopple ? 'tip' : ''"> </view>
@@ -138,6 +138,20 @@
<image v-else class="icon" :src="strReplace(state.FormData.commitmentUrl)"></image>
</view>
</view>
<view class="picture-wrapper" @click="cardFileImageUpdate(3)">
<view class="bg">
<view class="">
<view class="name"> 委托书 </view>
<view class="value"> 上传文字清晰的委托书 </view>
<view class="tip">
<view class="tip-value"> 拍摄规范 </view>
</view>
</view>
<image v-if="!state.FormData.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`">
</image>
<image v-else class="icon" :src="strReplace(state.FormData.proxyUrl)"></image>
</view>
</view>
<view class="shibie-wrapper">
<view class="title"> 识别内容如下 </view>
<u-form label-width="200" :model="state.form" ref="uForm">
@@ -288,6 +302,7 @@
ownNegImgUrl: "", //车主证件反面图片
agreementId: "", //签约编号
channelId: "5201018892300000001",
proxyUrl: "", //委托书
},
orderId: "",
isMyPeopple: true,
@@ -298,44 +313,44 @@
phone: "",
},
actionSheetList: [{
label: "蓝色",
value: '0',
}, {
label: "黄色",
value: 1,
},
{
label: "黑色",
value: 2,
},
{
label: "白色",
value: 3,
},
{
label: "渐变绿色",
value: 4,
},
{
label: "黄绿双拼色",
value: 5,
},
{
label: "蓝白渐变色",
value: 6,
},
{
label: "未确定",
value: 9,
},
{
label: "绿色",
value: 11,
},
{
label: "红色",
value: 12,
},
label: "蓝色",
value: '0',
}, {
label: "黄色",
value: 1,
},
{
label: "黑色",
value: 2,
},
{
label: "白色",
value: 3,
},
{
label: "渐变绿色",
value: 4,
},
{
label: "黄绿双拼色",
value: 5,
},
{
label: "蓝白渐变色",
value: 6,
},
{
label: "未确定",
value: 9,
},
{
label: "绿色",
value: 11,
},
{
label: "红色",
value: 12,
},
],
FormData: {
vehiclePlate: '',
@@ -348,7 +363,8 @@
peopleVehicleImgUrl: '',
commitmentUrl: '',
mobile: '',
code: ''
code: '',
proxyUrl: "", //委托书
}
});
const savaHandle = () => {
@@ -356,7 +372,7 @@
if (state.FormData.vehPosImgUrl && state.FormData.vehNegImgUrl) {
if (state.FormData.peopleVehicleImgUrl) {
if (state.FormData.vehiclePlate && state.FormData.vehiclePlatecolor) {
state.FormData.vehiclePlatecolor=Number(state.FormData.vehiclePlatecolor)
state.FormData.vehiclePlatecolor = Number(state.FormData.vehiclePlatecolor)
let data = JSON.stringify(state.FormData)
navTo(`/subpackage/after-sale/rescind-carId/verification?fromData=${data}`);
} else {
@@ -402,7 +418,7 @@
// })
};

const selectConfirm = (item: any) => {
const selectConfirm = (item : any) => {
console.log(item);
state.FormData.vehiclePlatecolor = item[0].value
state.form.caridCorlor = item[0].label
@@ -413,7 +429,7 @@
count: 1, //只能选取一张照片
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
sourceType: ["camera", "album"], //从相册选择
success: function(res) {
success: function (res) {
pathToBase64(res.tempFilePaths[0])
.then((path) => {
var data = {
@@ -431,13 +447,15 @@
console.log(data, "didid");
if (val == 1) {
state.FormData.peopleVehicleImgUrl = data.data.url;
} else {
} else if (val == 2) {
state.FormData.commitmentUrl = data.data.url;
} else if (val == 3) {
state.FormData.proxyUrl = data.data.url;
}

});
})
.catch((error) => {});
.catch((error) => { });
},
});
};
@@ -473,18 +491,18 @@
// tmerValidity: "",
// };
// };
onLoad((option: any) => {
onLoad((option : any) => {
state.form.orderId = option.orderId;
state.orderId = option.orderId;
});

const cardDbImageOcr = (val: any) => {
const cardDbImageOcr = (val : any) => {
var imageType = val;
uni.chooseImage({
count: 1, //只能选取一张照片
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
sourceType: ["camera", "album"], //从相册选择
success: function(res) {
success: function (res) {
pathToBase64(res.tempFilePaths[0])
.then((path) => {
var data = {
@@ -529,19 +547,19 @@
}
});
})
.catch((error) => {});
.catch((error) => { });
},
});
};
//orc接口调用
const cardImageOcr = (val: any) => {
const cardImageOcr = (val : any) => {
console.log("点击了");
var imageType = val;
uni.chooseImage({
count: 1, //只能选取一张照片
sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
sourceType: ["camera", "album"], //从相册选择
success: function(res) {
success: function (res) {
console.log(res);
pathToBase64(res.tempFilePaths[0])
.then((path) => {
@@ -581,11 +599,11 @@
}
});
})
.catch((error) => {});
.catch((error) => { });
},
});
};
//替换图片地址
const strReplace = (str : string) => {
console.log(str)
@@ -597,7 +615,6 @@
</script>

<style lang="scss" scoped>
.title {
font-size: 35rpx;
font-family: Microsoft YaHei;
@@ -819,4 +836,4 @@
margin-bottom: 60rpx;
}
}
</style>
</style>

+ 7
- 6
subpackage/after-sale/rescind-carId/verification.vue Visa fil

@@ -53,7 +53,8 @@
peopleVehicleImgUrl: '',
commitmentUrl: '',
mobile: '',
code: ''
code: '',
proxyUrl: "", //委托书
})
let waitTime = ref(0)
const getCode = () => {
@@ -61,10 +62,10 @@
if (model1.mobile) {
sendCodeApi()
codeInterval()
}else{
} else {
uni.showToast({
title: '请输入手机号',
icon:'none'
icon: 'none'
});
}

@@ -97,7 +98,7 @@
request(sendCode, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data,"#################");
console.log(data, "#################");
if (data.info == "成功.") {
console.log('######################CCCCCCCCCCCCCCCCC');
}
@@ -150,7 +151,7 @@
model1.vehNegImgUrl = data.vehNegImgUrl
model1.peopleVehicleImgUrl = data.peopleVehicleImgUrl
model1.commitmentUrl = data.commitmentUrl
model1.proxyUrl = data.proxyUrl
})
</script>

@@ -223,4 +224,4 @@
line-height: 80rpx;
}
}
</style>
</style>

+ 6
- 6
utils/network/api.js Visa fil

@@ -1,24 +1,24 @@
/* 接口中常量 */
// export const URL = "192.168.100.63";
// export const URL = "trial.etcjz.cn";
export const URL = "qtzl.etcjz.cn";
export const URL = "trial.etcjz.cn";
// export const URL = "qtzl.etcjz.cn";
/**
* 配置信息,针对不同的平台进行配置
*/
export const envs = {
//开发环境配置
development: {
baseUrl: "https://qtzl.etcjz.cn",
// baseUrl: "https://qtzl.etcjz.cn",
// baseUrl: "http://192.168.124.6:8087",
// baseUrl: "https://trial.etcjz.cn",
baseUrl: "https://trial.etcjz.cn",
// baseUrl: "http://192.168.100.158:8085",
},
//生产环境配置
production: {
// baseUrl: "http://192.168.124.6:8087",
// baseUrl: "http://222.85.144.89:19002",
baseUrl: "https://qtzl.etcjz.cn",
// baseUrl: "https://trial.etcjz.cn",
// baseUrl: "https://qtzl.etcjz.cn",
baseUrl: "https://trial.etcjz.cn",
// baseUrl: "http://192.168.100.158:8085",
},
}

Laddar…
Avbryt
Spara