Bladeren bron

提交

yxb
DESKTOP-2IO5MST\huting 1 jaar geleden
bovenliggende
commit
2883707892

+ 0
- 2
subpackage/after-sale/business-processie.vue Bestand weergeven

@@ -88,9 +88,7 @@

request(businessApi, options).then((res) => {
const data = stringToJson(res.bizContent);
// state.listData = [];
state.listData = [...stringToJson(res.bizContent).data, ...state.listData]
// state.listData = data.data
state.total = data.data.length
console.log("业务完成日志", state.listData, state.pageNo,)
});

+ 13
- 2
subpackage/after-sale/card-loss-reporting/card-result.vue Bestand weergeven

@@ -6,7 +6,7 @@
办理成功
</view>
<view class="">
您办理的卡签挂失业务已完成
您办理的{{state.successTip}}业务已完成
</view>
</view>
</view>
@@ -14,6 +14,17 @@
</template>

<script setup lang="ts">
import { reactive } from "vue"
import {
onLoad
} from "@dcloudio/uni-app";
const state = reactive({
successTip: "" //成功提示
});
onLoad((option) => {
console.log("option.successTip", option.successTip)
state.successTip = option.successTip
})
const submit = () => {
let routes = getCurrentPages();
uni.navigateBack({
@@ -80,4 +91,4 @@
left: 50%;
transform: translate(-50%);
}
</style>
</style>

+ 20
- 13
subpackage/after-sale/card-loss-reporting/cardloss-confirm.vue Bestand weergeven

@@ -104,7 +104,8 @@
} from "@/utils/utils"
import {
onLoad,
onUnload
onUnload,
onShow
} from "@dcloudio/uni-app";
import {
request
@@ -133,24 +134,30 @@
} from "@/utils/network/encryption";

const state = reactive({
id: "",
data: {
cardStatus: undefined,
obuStatus: undefined,
}
},
successTip: "" //成功提示
});
const flag = reactive([])
const type = ref('')

/*视图进入后操作*/
onLoad((option) => {
queryOrderDetail(option.id).then((val: any) => {
onShow(() => {
queryOrderDetail(state.id).then((val : any) => {
state.data = val
})
})
onLoad((option) => {
state.id = option.id
/*监听手机号验证后的回调*/
uni.$on('queryCardlossStatus', function(type) {
queryCardlossStatusType(type.type).then((val: any) => {
uni.$on('queryCardlossStatus', function (type) {
console.log("1111", type)
queryCardlossStatusType(type.type).then((val : any) => {
console.log("val", val)
navTo(
`/subpackage/after-sale/card-loss-reporting/card-result`
`/subpackage/after-sale/card-loss-reporting/card-result?successTip=${type.successTip}`
)
});
})
@@ -205,18 +212,18 @@
showModelAction('卡签解挂', '请确认是否执行卡签解挂操作', 6)
}
}

}

}

const showModelAction = (title, content, type) => {
uni.showModal({
title: title,
content: content,
success: function(res) {
success: function (res) {
if (res.confirm) {
navTo(
`/subpackage/after-sale/card-loss-reporting/cardloss?type=${type}&&mobile=${state.data.customerTel}`
`/subpackage/after-sale/card-loss-reporting/cardloss?type=${type}&&mobile=${state.data.customerTel}&&successTip=${title}`
)

}
@@ -260,7 +267,7 @@
reject(error);
});
}
const queryCardlossStatusType = (val: any) => {
const queryCardlossStatusType = (val : any) => {
var data = {
cardId: state.data.cardId,
obuId: state.data.obuId,
@@ -425,4 +432,4 @@
line-height: 80rpx;
}
}
</style>
</style>

+ 5
- 1
subpackage/after-sale/card-loss-reporting/cardloss.vue Bestand weergeven

@@ -55,6 +55,7 @@
mobile: "",
code: '',
type: undefined,
successTip: ""
});

//倒计时时常
@@ -76,8 +77,10 @@
};

onLoad((options) => {
console.log("optionsssss", options)
form.type = options.type
form.mobile = options.mobile
form.successTip = options.successTip
});

const getCode = () => {
@@ -123,7 +126,8 @@
.then((res) => {

uni.$emit('queryCardlossStatus', {
type: form.type
type: form.type,
successTip: form.successTip
})
uni.navigateBack()
})

+ 6
- 13
subpackage/after-sale/rescind-carId/rescind-carId-select.vue Bestand weergeven

@@ -156,7 +156,7 @@
<view class="title"> 识别内容如下 </view>
<u-form label-width="200" :model="state.form" ref="uForm">
<u-form-item label="车牌号">
<u-input v-model="state.form.vehicleId" />
<u-input v-model="state.form.vehicleId" @input="getVehiclePlate" />
</u-form-item>
<u-form-item label="车牌颜色">
<u-input v-model="state.form.caridCorlor" type="select" @click="show1 = true" />
@@ -317,12 +317,6 @@
},
orderId: "",
isMyPeopple: true,
buchongData: {
conmpany: "李某一",
type: "居民身份证",
card: "23728347626342332",
phone: "",
},
actionSheetList: [{
label: "蓝色",
value: '0',
@@ -378,11 +372,15 @@
proxyUrl: "", //委托书
}
});
const getVehiclePlate = (e) => {
console.log("车牌号", e)
state.FormData.vehiclePlate = e
};
const savaHandle = () => {
if (state.FormData.idcardFrontImgUrl && state.FormData.idcardBacktImgUrl) {
if (state.FormData.vehPosImgUrl && state.FormData.vehNegImgUrl) {
if (state.FormData.peopleVehicleImgUrl) {
if (state.FormData.vehiclePlate && state.FormData.vehiclePlatecolor) {
if (state.FormData.vehiclePlate && state.FormData.vehiclePlatecolor.toString()) {
state.FormData.vehiclePlatecolor = Number(state.FormData.vehiclePlatecolor)
let data = JSON.stringify(state.FormData)
navTo(`/subpackage/after-sale/rescind-carId/verification?fromData=${data}`);
@@ -410,11 +408,6 @@
icon: "none"
})
}





console.log(JSON.stringify(state.FormData));
// var data = state.form
// const options = {

+ 4
- 7
subpackage/after-sale/rescind-carId/verification.vue Bestand weergeven

@@ -1,16 +1,13 @@
<template>
<view class="formBox">
<!-- <view class="from_item">
<text class="label">账号验证</text>
<input type="text" placeholder="输入验证码" v-model="model1.uname" placeholder-style="color:#000">
</view> -->
<view class="from_item">
<text class="label">手机号码</text>
<input type="number" placeholder="" v-model="model1.mobile" placeholder-style="color:#000" maxlength="11">
<input type="number" placeholder="请输入手机号码" v-model="model1.mobile" placeholder-style="color:#9a9a9a"
maxlength="11">
</view>
<view class="from_item">
<text class="label">验证码</text>
<input type="text" placeholder="请输入验证码" v-model="model1.code" placeholder-style="color:#000">
<input type="text" placeholder="请输入验证码" v-model="model1.code" placeholder-style="color:#9a9a9a">
<text class="btn" @click="getCode" v-if="waitTime==0">获取验证码</text>
<text class="btn" v-else>{{waitTime}}</text>
</view>
@@ -186,7 +183,7 @@
font-size: 32rpx;
font-family: Microsoft YaHei;
font-weight: 400;
color: #333333;
color: #9a9a9a;
line-height: 58rpx;
border-bottom: 1rpx solid #DCDCDC;
margin-top: 50rpx;

+ 64
- 60
subpackage/orders/opening-account-unit.vue Bestand weergeven

@@ -213,6 +213,10 @@
return;
}
if (!state.form.department) {
msg('请输入部门名称');
return;
}
if (!state.form.userIdNum) {
msg('请输入社会信用代码');
return;
}
@@ -230,68 +234,68 @@
}

//如果未登录||新用户
// if (!getItem('openId')) {

let data = {
userType: "ENTERPRISE",
idNum: state.form.userIdNum,
idType: state.form.userIdType,
mobile: state.form.tel,
userName: state.form.userName,
gender: 'UNKOWN',
certifyChannel: "BAIDUOCR",
address: state.form.address,
agentIdNum: state.form.agentIdNum,
agentIdType: state.form.agentIdType,
agentName: state.form.agentName,
department: state.form.department,
userIdImgUrl: state.form.posImgUrl,
userIdImgBase64: "",
}
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(register, options).then((res) => {
let result = stringToJson(res.bizContent);
if (result.accessToken && result.openId) {
setItem('token', result.accessToken)
setItem('openId', result.openId)
state.form.opId = result.openId;
let data = state.form;
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(etcCompanyCardInfoSubmit, options).then((res) => {
// let result = stringToJson(res.bizContent);
console.log(res);
uni.redirectTo({
url: `/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`,
});
});
if (!getItem('openId')) {

let data = {
userType: "ENTERPRISE",
idNum: state.form.userIdNum,
idType: state.form.userIdType,
mobile: state.form.tel,
userName: state.form.userName,
gender: 'UNKOWN',
certifyChannel: "BAIDUOCR",
address: state.form.address,
agentIdNum: state.form.agentIdNum,
agentIdType: state.form.agentIdType,
agentName: state.form.agentName,
department: state.form.department,
userIdImgUrl: state.form.posImgUrl,
userIdImgBase64: "",
}
})
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(register, options).then((res) => {
let result = stringToJson(res.bizContent);
if (result.accessToken && result.openId) {
setItem('token', result.accessToken)
setItem('openId', result.openId)
state.form.opId = result.openId;
let data = state.form;
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(etcCompanyCardInfoSubmit, options).then((res) => {
// let result = stringToJson(res.bizContent);
console.log(res);
uni.redirectTo({
url: `/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`,
});
});
}
})

// }else{
// var data = state.form;
// const options = {
// type: 2,
// data: data,
// method: "POST",
// showLoading: true,
// };
// request(etcCompanyCardInfoSubmit, options).then((res) => {
// const data = stringToJson(res.bizContent);
// uni.redirectTo({
// url: `/subpackage/orders/car-release?orderId=${state.orderId}&&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`,
// });
// });
// }
} else {
var data = state.form;
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(etcCompanyCardInfoSubmit, options).then((res) => {
const data = stringToJson(res.bizContent);
uni.redirectTo({
url: `/subpackage/orders/car-release?orderId=${state.orderId}&&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`,
});
});
}
};



Laden…
Annuleren
Opslaan