@@ -112,12 +112,12 @@ export default function useOrderSkip() { | |||
//去激活订单 | |||
const gotoActiveOrder = (orderInfo : any) => { | |||
// if(orderInfo.aa){ | |||
// const params = encodeURIComponent(JSON.stringify(orderInfo)) | |||
// jump("3",params) | |||
// }else{ | |||
if(orderInfo.agencyId=="52010106004"){ | |||
const params = encodeURIComponent(JSON.stringify(orderInfo)) | |||
jump("3",params) | |||
}else{ | |||
navTo(`/subpackage/after-sale/activation/operation-tips?id=${orderInfo.id}&orderId=${orderInfo.orderId}&cardStatus=${orderInfo.cardStatus}&obuStatus=${orderInfo.obuStatus}&transfer=${orderInfo.transfer}`); | |||
// } | |||
} | |||
} | |||
//新办订单-去评价 |
@@ -480,13 +480,6 @@ | |||
"enablePullDownRefresh": false | |||
} | |||
}, | |||
{ | |||
"path": "card-loss-reporting/select-car", | |||
"style": { | |||
"navigationBarTitleText": "卡签挂失/解除挂失-选择车辆", | |||
"enablePullDownRefresh": false | |||
} | |||
}, | |||
{ | |||
"path": "card-loss-reporting/cardloss-confirm", | |||
"style": { | |||
@@ -634,13 +627,6 @@ | |||
"enablePullDownRefresh": false | |||
} | |||
}, | |||
{ | |||
"path": "additional-equipment/select-car", | |||
"style": { | |||
"navigationBarTitleText": "增补OBU-选车", | |||
"enablePullDownRefresh": false | |||
} | |||
}, | |||
{ | |||
"path": "additional-equipment/additional-equipment-confirm", | |||
"style": { |
@@ -117,7 +117,6 @@ | |||
obuStatus: undefined, | |||
}, | |||
type: undefined, | |||
agencyId:"" | |||
}); | |||
/*视图进入后操作*/ | |||
@@ -126,7 +125,6 @@ | |||
console.log("option", val) | |||
state.data = val | |||
}) | |||
state.agencyId=option.agencyId | |||
}); | |||
onUnload(() => { |
@@ -20,32 +20,38 @@ | |||
import { onLoad, onShow } from "@dcloudio/uni-app"; | |||
import { orderList } from "@/utils/network/api.js"; | |||
import { request } from "@/utils/network/request.js"; | |||
import { msg } from "@/utils/utils"; | |||
import { getItem, StorageKeys, setItem } from "@/utils/storage"; | |||
import { stringToJson } from "@/utils/network/encryption"; | |||
import { jump } from "@/datas/9901Jump.js"; | |||
const state = reactive({ | |||
list: [], | |||
type:"",//1 OBU重新激活 2 卡签注销 3 更换设备(正常走,现在不需要跳转,因为要根据其他判断) 4卡签续期(正常走,现在不需要跳转,因为要根据其他判断) | |||
type: "",//1 OBU重新激活 2 卡签注销 3 更换设备 4卡签续期 5挂失解挂 6增补设备 | |||
}); | |||
onLoad((options) => { | |||
console.log("options",options) | |||
state.type=options.type | |||
if(options.type=="2"){ | |||
console.log("options", options) | |||
state.type = options.type | |||
if (options.type == "2") { | |||
uni.setNavigationBarTitle({ | |||
title: 'ETC注销-选择车辆' | |||
}); | |||
}else if(options.type=="3"){ | |||
} else if (options.type == "3") { | |||
uni.setNavigationBarTitle({ | |||
title: '更换ETC设备-选择车辆' | |||
}); | |||
}else if(options.type=="4"){ | |||
} else if (options.type == "4") { | |||
uni.setNavigationBarTitle({ | |||
title: '卡签续期-选择车辆' | |||
}); | |||
}else if (options.type == "5") { | |||
uni.setNavigationBarTitle({ | |||
title: '卡签挂失/解除挂失-选择车辆' | |||
}); | |||
}else if (options.type == "6") { | |||
uni.setNavigationBarTitle({ | |||
title: '增补设备-选择车辆' | |||
}); | |||
} | |||
quanCheckActionTrue().then((item : any) => { | |||
state.list = item.data; | |||
console.log(item); | |||
@@ -88,39 +94,39 @@ | |||
const choose = (i, item) => { | |||
console.log(item.cardId); | |||
flag.value = i | |||
// 判断9901 | |||
console.log("state.type!=3 || state.type!=4",(state.type!="3" || state.type!="4")) | |||
if(state.type=="2"){ | |||
navTo(`/subpackage/after-sale/ETC-log-off/log-off-confirm?id=${item.id}&&agencyId=${item.agencyId}`) | |||
}else if(state.type=="3"){ | |||
navTo(`/subpackage/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}&&agencyId=${item.agencyId}`) | |||
}else if(state.type=="4"){ | |||
navTo(`/subpackage/after-sale/card-Renewal/renewal-confirm?id=${item.id}&orderId=${item.orderId}&&agencyId=${item.agencyId}`) | |||
}else { | |||
if(item.agencyId=="52010106004"){ | |||
// OBU重新激活跳转 | |||
const params = encodeURIComponent(JSON.stringify(item)) | |||
jump(state.type,params) | |||
}else{ | |||
if(state.type=="1"){ | |||
// #ifdef MP-WEIXIN | |||
navTo( | |||
`/subpackage/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||
); | |||
// #endif | |||
// #ifdef MP-ALIPAY | |||
navTo( | |||
`/subpackage/after-sale/activation-once-again/activation-once-again-ali?id=${item.id}` | |||
); | |||
// #endif | |||
} | |||
if (item.agencyId == "52010106004") { | |||
// OBU重新激活跳转 | |||
const params = encodeURIComponent(JSON.stringify(item)) | |||
jump(state.type, params) | |||
} else { | |||
if (state.type == "1") { | |||
// #ifdef MP-WEIXIN | |||
navTo( | |||
`/subpackage/after-sale/activation-once-again/activation-once-again?id=${item.id}` | |||
); | |||
// #endif | |||
// #ifdef MP-ALIPAY | |||
navTo( | |||
`/subpackage/after-sale/activation-once-again/activation-once-again-ali?id=${item.id}` | |||
); | |||
// #endif | |||
} else if (state.type == "2") { | |||
navTo(`/subpackage/after-sale/ETC-log-off/log-off-confirm?id=${item.id}`) | |||
} else if (state.type == "3") { | |||
navTo(`/subpackage/after-sale/replace-equipment/replace-equipment-confirm?id=${item.id}`) | |||
} else if (state.type == "4") { | |||
navTo(`/subpackage/after-sale/card-Renewal/renewal-confirm?id=${item.id}&orderId=${item.orderId}`) | |||
} else if (state.type == "5") { | |||
navTo(`/subpackage/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||
}else if (state.type == "6") { | |||
navTo(`/subpackage/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||
} | |||
} | |||
} | |||
</script> | |||
<style> |
@@ -1,169 +0,0 @@ | |||
<template> | |||
<view class="selectCar-box"> | |||
<view v-if="state.list&&state.list.length>0" @click="choose(i,item)" class="item" v-for="(item,i) in state.list" | |||
:key="i"> | |||
<view class="iten-left"> | |||
<image :src="`${$imgUrl}che.png`" mode="aspectFill"></image> | |||
<text>{{item.vehiclePlate}}</text> | |||
</view> | |||
<view class="choose-item"> | |||
<view class="active" v-if="flag==i"> | |||
</view> | |||
</view> | |||
</view> | |||
<view v-else> | |||
<empty title='暂无找到相关车辆信息' /> | |||
</view> | |||
</view> | |||
</template> | |||
<script lang="ts" setup> | |||
import empty from "@/components/empty/empty.vue"; | |||
import { | |||
reactive, | |||
ref | |||
} from "vue" | |||
import { | |||
navTo | |||
} from "@/utils/utils" | |||
import { | |||
onLoad, | |||
} from "@dcloudio/uni-app"; | |||
import { | |||
orderList | |||
} from "@/utils/network/api.js"; | |||
import { | |||
request | |||
} from "@/utils/network/request.js"; | |||
import { | |||
getItem, | |||
StorageKeys, | |||
} from "@/utils/storage"; | |||
import { | |||
stringToJson | |||
} from "@/utils/network/encryption"; | |||
const state = reactive({ | |||
list: [] //车辆list | |||
}); | |||
const flag = ref('0') //默认选择0 | |||
onLoad(() => { | |||
quanCheckActionTrue().then((item : any) => { | |||
state.list = item.data | |||
}) | |||
}); | |||
const quanCheckActionTrue = () => { | |||
let source = "" | |||
// #ifdef MP-ALIPAY | |||
source ="ALI" | |||
// #endif | |||
// #ifdef MP-WEIXIN | |||
source ="WECHAT" | |||
// #endif | |||
var data = { | |||
opId: getItem(StorageKeys.OpenId), | |||
source: source, //渠道为小程序 | |||
tabIndex: '0', //0全部 | |||
orderStep: '11', //11 为已完成” | |||
isValueCard: "", | |||
orderStatus: "1", | |||
isAfter: true, | |||
}; | |||
const options = { | |||
type: 2, | |||
data: data, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
return new Promise(async (resolve, reject) => { | |||
const res = await request(orderList, options); | |||
const data = stringToJson(res.bizContent); | |||
resolve(data); | |||
}).catch((error) => { | |||
reject(error); | |||
}); | |||
} | |||
const choose = (i, item) => { | |||
flag.value = i | |||
navTo(`/subpackage/after-sale/additional-equipment/additional-equipment-confirm?id=${item.id}`) | |||
} | |||
</script> | |||
<style> | |||
page { | |||
width: 100%; | |||
height: 100%; | |||
background-color: #EEF7F7; | |||
} | |||
</style> | |||
<style lang="scss" scoped> | |||
.flex { | |||
display: flex; | |||
justify-content: center; | |||
} | |||
.selectCar-box { | |||
// width: 100%; | |||
height: 100%; | |||
padding: 30rpx; | |||
.item { | |||
padding: 20rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
height: 130rpx; | |||
background: #FFFFFF; | |||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||
border-radius: 20rpx; | |||
margin-bottom: 30rpx; | |||
.iten-left { | |||
display: flex; | |||
align-items: center; | |||
image { | |||
width: 150rpx; | |||
height: 90rpx; | |||
} | |||
text { | |||
margin-left: 20rpx; | |||
font-size: 32rpx; | |||
font-family: Noto Sans S Chinese; | |||
font-weight: 400; | |||
color: #333333; | |||
} | |||
} | |||
.choose-item { | |||
width: 44rpx; | |||
height: 44rpx; | |||
background: #FFFFFF; | |||
border: 2rpx solid #00B38B; | |||
border-radius: 50%; | |||
margin-right: 20rpx; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
box-sizing: content-box; | |||
} | |||
.active { | |||
width: 34rpx; | |||
height: 34rpx; | |||
background: #00B38B; | |||
border-radius: 50%; | |||
} | |||
} | |||
} | |||
</style> |
@@ -127,9 +127,6 @@ | |||
IntegerToHexString, | |||
AsciToHexString, | |||
} from "@/utils/util/fileData.js"; | |||
import { | |||
jump | |||
} from "@/datas/9901Jump.js"; | |||
import { | |||
stringToJson | |||
@@ -140,7 +137,6 @@ | |||
showPopup: false, | |||
flag: false, | |||
successName: "", | |||
agencyId:"" | |||
}) | |||
const flag = reactive([]) | |||
@@ -198,7 +194,6 @@ | |||
//请求订单详情 | |||
queryOrderDetail(option.id); | |||
getOrderDetails(option.id) | |||
state.agencyId=option.agencyId | |||
}); | |||
onShow((option) => { | |||
@@ -384,19 +379,8 @@ | |||
icon: 'none' | |||
}); | |||
} else { | |||
if(state.agencyId=="52010106004"){ | |||
let obj={ | |||
vehicleId: orderInfos.vehicleId, | |||
cardId: orderInfos.cardId, | |||
obuId: orderInfos.obuId, | |||
renevalType: type.value, //选择得哪一个续期 | |||
} | |||
const params = encodeURIComponent(JSON.stringify(obj)) | |||
jump("6",params) | |||
}else{ | |||
console.log("getCurrentPages()", getCurrentPages()) | |||
navTo("/pages/bluetooth/bluetooth?routeType=5"); //去连接蓝牙 | |||
} | |||
} | |||
}; |
@@ -1,165 +0,0 @@ | |||
<template> | |||
<view class="selectCar-box"> | |||
<view v-if="state.list&&state.list.length>0" @click="choose(i,item)" class="item" v-for="(item,i) in state.list" | |||
:key="i"> | |||
<view class="iten-left"> | |||
<image :src="`${$imgUrl}che.png`" mode="aspectFill"></image> | |||
<text>{{item.vehiclePlate}}</text> | |||
</view> | |||
<view class="choose-item"> | |||
<view class="active" v-if="flag==i"> | |||
</view> | |||
</view> | |||
</view> | |||
<view v-else> | |||
<empty title='暂无找到相关车辆信息' /> | |||
</view> | |||
</view> | |||
</template> | |||
<script lang="ts" setup> | |||
import empty from "@/components/empty/empty.vue"; | |||
import { | |||
reactive, | |||
ref | |||
} from "vue" | |||
import { | |||
navTo | |||
} from "@/utils/utils" | |||
import { | |||
onLoad, | |||
} from "@dcloudio/uni-app"; | |||
import { | |||
orderList | |||
} from "@/utils/network/api.js"; | |||
import { | |||
request | |||
} from "@/utils/network/request.js"; | |||
import { | |||
getItem, | |||
StorageKeys, | |||
} from "@/utils/storage"; | |||
import { | |||
stringToJson | |||
} from "@/utils/network/encryption"; | |||
const state = reactive({ | |||
list: [] //车辆list | |||
}); | |||
const flag = ref('0') //默认选择0 | |||
onLoad(() => { | |||
quanCheckActionTrue().then((item : any) => { | |||
state.list = item.data | |||
}) | |||
}); | |||
const quanCheckActionTrue = () => { | |||
let source = "" | |||
// #ifdef MP-ALIPAY | |||
source = "ALI" | |||
// #endif | |||
// #ifdef MP-WEIXIN | |||
source = "WECHAT" | |||
// #endif | |||
var data = { | |||
opId: getItem(StorageKeys.OpenId), | |||
source: source, //渠道为小程序 | |||
tabIndex: '0', //0全部 | |||
orderStep: '11', //11 为已完成” | |||
isValueCard: "", | |||
orderStatus: "1", | |||
isAfter: true, | |||
}; | |||
const options = { | |||
type: 2, | |||
data: data, | |||
method: "POST", | |||
showLoading: true, | |||
}; | |||
return new Promise(async (resolve, reject) => { | |||
const res = await request(orderList, options); | |||
const data = stringToJson(res.bizContent); | |||
resolve(data); | |||
}).catch((error) => { | |||
reject(error); | |||
}); | |||
} | |||
const choose = (i, item) => { | |||
flag.value = i | |||
navTo(`/subpackage/after-sale/card-loss-reporting/cardloss-confirm?id=${item.id}`) | |||
} | |||
</script> | |||
<style> | |||
page { | |||
width: 100%; | |||
height: 100%; | |||
background-color: #EEF7F7; | |||
} | |||
</style> | |||
<style lang="scss" scoped> | |||
.flex { | |||
display: flex; | |||
justify-content: center; | |||
} | |||
.selectCar-box { | |||
height: 100%; | |||
padding: 30rpx; | |||
.item { | |||
padding: 20rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
height: 130rpx; | |||
background: #FFFFFF; | |||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||
border-radius: 20rpx; | |||
margin-bottom: 30rpx; | |||
.iten-left { | |||
display: flex; | |||
align-items: center; | |||
image { | |||
width: 150rpx; | |||
height: 90rpx; | |||
} | |||
text { | |||
margin-left: 20rpx; | |||
font-size: 32rpx; | |||
font-family: Noto Sans S Chinese; | |||
font-weight: 400; | |||
color: #333333; | |||
} | |||
} | |||
.choose-item { | |||
width: 44rpx; | |||
height: 44rpx; | |||
background: #FFFFFF; | |||
border: 2rpx solid #00B38B; | |||
border-radius: 50%; | |||
margin-right: 20rpx; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
box-sizing: content-box; | |||
} | |||
.active { | |||
width: 34rpx; | |||
height: 34rpx; | |||
background: #00B38B; | |||
border-radius: 50%; | |||
} | |||
} | |||
} | |||
</style> |
@@ -128,7 +128,6 @@ | |||
obuStatus: undefined, | |||
}, | |||
type: undefined, | |||
agencyId:"" | |||
}); | |||
const apply = reactive({ | |||
data: { | |||
@@ -139,7 +138,6 @@ | |||
}); | |||
/*视图进入后操作*/ | |||
onLoad((option) => { | |||
state.agencyId=option.agencyId | |||
console.log("id", option) | |||
queryOrderDetail(option.id).then((val : any) => { | |||
console.log("val", val) | |||
@@ -156,7 +154,7 @@ | |||
console.log("val.status", val); | |||
if (!val) { | |||
navTo( | |||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}&&agencyId=${state.agencyId}` | |||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}` | |||
) | |||
} else { | |||
@@ -169,7 +167,7 @@ | |||
) | |||
} else { | |||
navTo( | |||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}&&agencyId=${state.agencyId}` | |||
`/subpackage/after-sale/replace-equipment/verification?orderId=${state.data.orderId}&&cardId=${state.data.cardId}&&mobile=${state.data.customerTel}&&vehicleId=${state.data.vehicleId}` | |||
) | |||
} | |||
} |
@@ -79,7 +79,6 @@ | |||
import { | |||
stringToJson | |||
} from "@/utils/network/encryption"; | |||
import { jump } from "@/datas/9901Jump.js"; | |||
import { | |||
msg | |||
} from "@/utils/utils"; | |||
@@ -91,7 +90,6 @@ | |||
}, | |||
isPicture: false, //是否上传图片 | |||
vehicleId:"", | |||
agencyId:"" | |||
}) | |||
// 表单数据 | |||
const form = reactive({ | |||
@@ -185,7 +183,6 @@ | |||
params.cardId = option.cardId | |||
params.orderId = option.orderId | |||
state.vehicleId = option.vehicleId | |||
state.agencyId=option.agencyId | |||
}); | |||
onShow(() => { | |||
@@ -295,22 +292,12 @@ | |||
const toPage = () => { | |||
console.log("sdkchkdscn", apply.data) | |||
console.log("form.damageMode", form.damageMode) | |||
if(state.agencyId=="52010106004"){ | |||
let obj={ | |||
applyType:form.applyType, | |||
vehicleId:state.vehicleId, | |||
cardId:params.cardId, | |||
} | |||
const paramss = encodeURIComponent(JSON.stringify(obj)) | |||
jump("5",paramss) | |||
}else{ | |||
queryCckChangejzCardAction().then(val => { | |||
console.log("val888888", val) | |||
navTo( | |||
`/subpackage/after-sale/replace-equipment/form?orderId=${params.orderId}&&id=${val.id}&&damageMode=${form.damageMode}&&msg=${val.msg}&&cardExpire=${val.cardExpire}&&obuExpire=${val.obuExpire}` | |||
) | |||
}) | |||
} | |||
}; | |||
</script> | |||
@@ -72,7 +72,7 @@ | |||
state.signAgencyId = option.signAgencyId; | |||
}) | |||
const addInterestsList = () => { | |||
if(state.signAgencyId=="99019052"){ | |||
if(state.signAgencyId=="52010102041"){ | |||
jump("4","") | |||
}else{ | |||
if (state.changeCardType == "1") { |