zengyuehua 2 年之前
父節點
當前提交
cbe2882444
共有 2 個檔案被更改,包括 41 行新增40 行删除
  1. 39
    38
      after-sale/rescind-carId/rescind-carId-select.vue
  2. 2
    2
      after-sale/rescind-carId/verification.vue

+ 39
- 38
after-sale/rescind-carId/rescind-carId-select.vue 查看文件

tmerValidity: "", tmerValidity: "",
}, },
form: { form: {
caridCorlor:"",//车牌颜色
caridCorlor: "", //车牌颜色
userName: "", //开户人姓名 userName: "", //开户人姓名
userIdNum: "", //用户证件号码 userIdNum: "", //用户证件号码
userPosImgUrl: "", //身份证正面 userPosImgUrl: "", //身份证正面
} }
}); });
const savaHandle = () => { const savaHandle = () => {
let data=JSON.stringify(state.FormData)
let data = JSON.stringify(state.FormData)
navTo(`/after-sale/rescind-carId/verification?fromData=${data}`); navTo(`/after-sale/rescind-carId/verification?fromData=${data}`);






const selectConfirm = (item: any) => { const selectConfirm = (item: any) => {
console.log(item); console.log(item);
state.FormData.vehiclePlatecolor=item[0].value
state.form.caridCorlor=item[0].label
state.FormData.vehiclePlatecolor = item[0].value
state.form.caridCorlor = item[0].label
}; };


const cardFileImageUpdate = () => { const cardFileImageUpdate = () => {
}; };
request(fileUpload, options).then((res) => { request(fileUpload, options).then((res) => {
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
console.log(data,"didid");
console.log(data, "didid");
state.FormData.peopleVehicleImgUrl = data.data.url; state.FormData.peopleVehicleImgUrl = data.data.url;
}); });
}) })
}); });
}; };


//tab切换
const tabChange = (val: any) => {
if (val) {
state.isMyPeopple = true;
} else {
state.isMyPeopple = false;
}
state.form = {
orderId: state.orderId, //订单ID
userName: "", //开户人姓名
userIdType: "101", //用户证件类型 101//身份证
userIdNum: "", //用户证件号码
userPosImgUrl: "", //身份证正面
userNegImgUrl: "", //身份证反面
tel: "", //开户人手机号
address: "", //开户人地址
sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
channelId: "", //渠道id
gender: "",
customerIdVld: "",
agentName: "",
agentgender: "",
agentIdType: "101",
agentIdNum: "",
agentPosImgUrl: "",
agentNegImgUrl: "",
proxyUrl: "",
agentAddress: "",
tmerValidity: "",
};
};
// //tab切换
// const tabChange = (val: any) => {
// if (val) {
// state.isMyPeopple = true;
// } else {
// state.isMyPeopple = false;
// }
// state.form = {
// orderId: state.orderId, //订单ID
// userName: "", //开户人姓名
// userIdType: "101", //用户证件类型 101//身份证
// userIdNum: "", //用户证件号码
// userPosImgUrl: "", //身份证正面
// userNegImgUrl: "", //身份证反面
// tel: "", //开户人手机号
// address: "", //开户人地址
// sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
// channelId: "", //渠道id
// gender: "",
// customerIdVld: "",
// agentName: "",
// agentgender: "",
// agentIdType: "101",
// agentIdNum: "",
// agentPosImgUrl: "",
// agentNegImgUrl: "",
// proxyUrl: "",
// agentAddress: "",
// tmerValidity: "",
// };
// };
onLoad((option: any) => { onLoad((option: any) => {
state.form.orderId = option.orderId; state.form.orderId = option.orderId;
state.orderId = option.orderId; state.orderId = option.orderId;
}; };
request(etcCarOcrCard, options).then((res) => { request(etcCarOcrCard, options).then((res) => {
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
console.log(data,"didi");
console.log(data, "didi");
if (val === "1") { if (val === "1") {
state.form.vehicleId = data.plate_a; state.form.vehicleId = data.plate_a;
state.form.man = data.man; state.form.man = data.man;
showLoading: true, showLoading: true,
}; };
request(etcOcrCard, options).then((res) => { request(etcOcrCard, options).then((res) => {
console.log(res);
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
console.log(data, "didi");
if (val === "1") { if (val === "1") {
state.form.userName = data.name; state.form.userName = data.name;
state.form.gender = data.gender; state.form.gender = data.gender;

+ 2
- 2
after-sale/rescind-carId/verification.vue 查看文件

.then((res) => { .then((res) => {
let data = stringToJson(res.bizContent) let data = stringToJson(res.bizContent)
console.log(data,"#################"); console.log(data,"#################");
if (data.data.info == "成功") {
if (data.info == "成功.") {
console.log('######################CCCCCCCCCCCCCCCCC'); console.log('######################CCCCCCCCCCCCCCCCC');
} }
}) })
stringToJson(res.bizContent) stringToJson(res.bizContent)
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
console.log(data, "数据"); console.log(data, "数据");
if (data.data.info == "成功") {
if (data.info == "成功.") {
navTo(`/after-sale/rescind-carId/result?carid=${model1.vehiclePlate}`) navTo(`/after-sale/rescind-carId/result?carid=${model1.vehiclePlate}`)
} }
}) })

Loading…
取消
儲存