zhoujie 7 mesi fa
parent
commit
858877ad42

+ 1
- 1
composables/order/useOrderSkip.ts Vedi File



} }
console.log("url", url) console.log("url", url)
navTo(`${url}?orderId=${orderInfo.orderId}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&vanType=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}&vehicleId=${orderInfo.vehicleId}`);
navTo(`${url}?orderId=${orderInfo.orderId?orderInfo.orderId:orderInfo.orderNo}&clientFee=${orderInfo.amount}&id=${orderInfo.productId}&vehiclePlateColor=${orderInfo.vehiclePlateColor}&fromOrder=true&vanType=${orderInfo.type}&userType=${orderInfo.userType === 'PERSONAL_USER' ? '1' : '2'}&vehicleId=${orderInfo.vehicleId}`);
} }


//确认收货 //确认收货

+ 6
- 6
pages.json Vedi File

"navigationBarTitleText": "ETC通行流水记录" "navigationBarTitleText": "ETC通行流水记录"
} }
}, },
{
"path": "search/select-card",
"style": {
"navigationBarTitleText": "选择卡号"
}
},
// {
// "path": "search/select-card",
// "style": {
// "navigationBarTitleText": "选择卡号"
// }
// },
{ {
"path": "help/help", "path": "help/help",
"style": { "style": {

+ 1
- 1
static/etcUtil/index.js Vedi File

case "TD": case "TD":
console.log('TD执行内容====', cmdArr, type) console.log('TD执行内容====', cmdArr, type)
tdApi.transCmd(cmdArr, type, function(res) { tdApi.transCmd(cmdArr, type, function(res) {
console.log('TD执行内容====123', cmdArr, type)
console.log('TD执行内容====123', cmdArr, type,res)
if (res.code == 0) { if (res.code == 0) {
func(res.data); func(res.data);
} else { } else {

+ 3
- 3
subpackage/after-sale/activation/activate.vue Vedi File

.then((res) => { .then((res) => {
console.log(stringToJson(res.bizContent)); console.log(stringToJson(res.bizContent));
const datas = stringToJson(res.bizContent).data; const datas = stringToJson(res.bizContent).data;
console.log("在线激活 请求", datas,datas.stepNo,datas.stepNo == 100);
console.log("在线激活 请求", datas,datas.stepNo == 100);
if (datas.stepNo == 100) { if (datas.stepNo == 100) {
console.log("陈工") console.log("陈工")
cmdResult1() cmdResult1()
//BDS-二发指令回传 //BDS-二发指令回传
requestNew(issueCallback, options) requestNew(issueCallback, options)
.then((res) => { .then((res) => {
console.log(res);
const datas = res.data;
console.log("BDS-二发指令回传 ",res);
const datas = res;
console.log("在线激活 请求", datas); console.log("在线激活 请求", datas);
if (datas.stepNo == 100) { if (datas.stepNo == 100) {
state.disabled = true state.disabled = true

+ 19
- 21
subpackage/after-sale/arrears/arrears.vue Vedi File

getItem getItem
} from "@/utils/storage.ts" } from "@/utils/storage.ts"
import { import {
CardBillQuery,
CardBillPlaceOrder,
CardBillPayStatus,
wechatPayConfigId, wechatPayConfigId,
aliPayConfigId, aliPayConfigId,
obtainUserId,
getOpenidApi
trafficsupplObtainuserid,
trafficsuppleQueryList,
trafficsuppleApply,
trafficsupplePayQuery,getOpenId
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";
import { import {
request
request,requestNew
} from "@/utils/network/request.js"; } from "@/utils/network/request.js";


import { import {
} from "@/utils/network/encryption"; } from "@/utils/network/encryption";
import { import {
onLoad, onLoad,
onShow,
onPullDownRefresh onPullDownRefresh
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import { import {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(CardBillQuery, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(trafficsuppleQueryList, options).then((res) => {
const data = res;
console.log(data); console.log(data);
data.data = data.data.map(val => { data.data = data.data.map(val => {
val.checked = false val.checked = false
showLoading: true, showLoading: true,
}; };
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
request(getOpenidApi, options).then((res) => {
const result = stringToJson(res.bizContent);
requestNew(getOpenId, options).then((res) => {
const result = res;
console.log("获取微信小程序openid", result); console.log("获取微信小程序openid", result);
const openidData = stringToJson(result.data);
const openidData = result.data;
state.openid = openidData.openid state.openid = openidData.openid
}); });
// #endif // #endif
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(CardBillPlaceOrder, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(trafficsuppleApply, options).then((res) => {
const data =res;
state.orderId = data.orderId state.orderId = data.orderId
uni.requestPayment({ uni.requestPayment({
provider: "wxpay", provider: "wxpay",
showLoading: true, showLoading: true,
}; };
console.log('支付宝用户编号请求:', optionsUser) console.log('支付宝用户编号请求:', optionsUser)
request(obtainUserId, optionsUser).then((res) => {
requestNew(trafficsupplObtainuserid, optionsUser).then((res) => {
console.log('支付宝用户编号返回:', res) console.log('支付宝用户编号返回:', res)
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
const optionsali = { const optionsali = {
showLoading: true, showLoading: true,
}; };
console.log('支付下单请求:', optionsali) console.log('支付下单请求:', optionsali)
request(CardBillPlaceOrder, optionsali).then((res) => {
requestNew(trafficsuppleApply, optionsali).then((res) => {
console.log('支付下单返回:', res) console.log('支付下单返回:', res)
const data = stringToJson(res.bizContent);
const data = res;
my.tradePay({ my.tradePay({
// 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no // 调用统一收单交易创建接口(alipay.trade.create),获得返回字段支付宝交易号 trade_no
tradeNO: data.tranPackage, tradeNO: data.tranPackage,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(CardBillQuery, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(trafficsuppleQueryList, options).then((res) => {
const data = res;
console.log(data); console.log(data);
data.data = data.data.map(val => { data.data = data.data.map(val => {
val.checked = false val.checked = false
showLoading: true, showLoading: true,
}; };


request(CardBillPayStatus, options).then((res) => {
requestNew(trafficsupplePayQuery, options).then((res) => {
msg("支付成功!"); msg("支付成功!");
getlist() getlist()
}); });
onLoad(() => { onLoad(() => {
getlist() getlist()
getOpenID() getOpenID()
console.log(state);
console.log("state");
}) })


onPullDownRefresh(() => { onPullDownRefresh(() => {

+ 3
- 4
subpackage/after-sale/blacklist-query/list.vue Vedi File

<script setup lang="ts"> <script setup lang="ts">
import { reactive } from "vue"; import { reactive } from "vue";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
import { blackApi,cardBlackQuery } from "@/utils/network/api.js";
import { request, requestNew } from "@/utils/network/request.js";
import { stringToJson } from "@/utils/network/encryption.js";
import { getItem } from "@/utils/storage";
import {cardBlackQuery } from "@/utils/network/api.js";
import {requestNew } from "@/utils/network/request.js";
import {getItem } from "@/utils/storage";
const state = reactive({ const state = reactive({
vehiclePlate: "", vehiclePlate: "",
vehiclePlateColor: "", vehiclePlateColor: "",

+ 17
- 17
subpackage/after-sale/card-Renewal/renewal-confirm.vue Vedi File

onShow onShow
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import { import {
request
request,requestNew
} from "@/utils/network/request.js"; } from "@/utils/network/request.js";
import { import {
orderDetail,
cardRenewal,
writeCardBack,
cardModifyConfirm,
obuRenewal,
orderDetailQuery,
cardRenewalFromWechat,
cardCosConfirm,
cardRenewalConfirm,
obuRenewalFromWechat,
modifyObuVehicleInfo, modifyObuVehicleInfo,
obuActivation, obuActivation,
renewalTimeApi renewalTimeApi
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(orderDetail, options).then((res) => {
let orderInfo = JSON.parse(res.bizContent);
requestNew(orderDetailQuery, options).then((res) => {
let orderInfo = res;
console.log("orderInfo", orderInfo); console.log("orderInfo", orderInfo);
orderInfos.orderId = orderInfo.orderId; orderInfos.orderId = orderInfo.orderId;
orderInfos.customerName = orderInfo.customerName; orderInfos.customerName = orderInfo.customerName;
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(cardRenewal, options).then((res) => {
let result = stringToJson(res.bizContent);
requestNew(cardRenewalFromWechat, options).then((res) => {
let result = res;
let cmdArray = result.command.split(","); let cmdArray = result.command.split(",");
console.log(cmdArray); console.log(cmdArray);
console.log(result.cosRecordId); console.log(result.cosRecordId);
}; };


//调用方式 //调用方式
request(writeCardBack, options)
requestNew(cardCosConfirm, options)
.then((res) => { .then((res) => {
tools.hideLoadingAlert(); tools.hideLoadingAlert();
let result = JSON.parse(res.bizContent);
let result = res;
if (result.orderStatus == 1 || result.orderStatus == "1") { if (result.orderStatus == 1 || result.orderStatus == "1") {
tools.showLoadingAlert("执行指令中"); tools.showLoadingAlert("执行指令中");
bluetoothUtil.transCmd(result.command.split(","), "10", function(res) { bluetoothUtil.transCmd(result.command.split(","), "10", function(res) {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(cardModifyConfirm, options).then((res) => {
requestNew(cardRenewalConfirm, options).then((res) => {
// 只写卡 // 只写卡
if (flag.length == 1) { if (flag.length == 1) {
sure(1) sure(1)
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(obuRenewal, options).then((res) => {
let datas = stringToJson(res.bizContent);
requestNew(obuRenewalFromWechat, options).then((res) => {
let datas = res;
console.log("899", datas, datas.data.APDU); console.log("899", datas, datas.data.APDU);
if (datas.data.APDU) { if (datas.data.APDU) {
tools.showLoadingAlert("正在执行指令"); tools.showLoadingAlert("正在执行指令");
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(orderDetail, options).then((res) => {
orderInfo = JSON.parse(res.bizContent);
requestNew(orderDetailQuery, options).then((res) => {
orderInfo = res;
console.log("orderInfo", orderInfo); console.log("orderInfo", orderInfo);
console.log("orderInfores", res); console.log("orderInfores", res);
if (orderInfo) { if (orderInfo) {

+ 7
- 13
subpackage/after-sale/card-loss-reporting/cardloss-confirm.vue Vedi File

onUnload, onUnload,
onShow onShow
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import {
request
import {requestNew
} from "@/utils/network/request.js"; } from "@/utils/network/request.js";
import {
orderDetail,
CardlossStatus
import {orderDetailQuery,cardObuLoss
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";


import { import {
msg msg
} from "@/utils/utils"; } from "@/utils/utils";


import {
stringToJson
} from "@/utils/network/encryption";

const state = reactive({ const state = reactive({
id: "", id: "",
data: { data: {
/*视图进入后操作*/ /*视图进入后操作*/
onShow(() => { onShow(() => {
queryOrderDetail(state.id).then((val : any) => { queryOrderDetail(state.id).then((val : any) => {
console.log("val",val)
state.data = val state.data = val
state.cardType=val.cardId.substring(8,10) state.cardType=val.cardId.substring(8,10)
console.log(state.cardType) console.log(state.cardType)


const queryOrderDetail = (id) => { const queryOrderDetail = (id) => {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
const res = await request(orderDetail, {
const res = await requestNew(orderDetailQuery, {
type: 2, type: 2,
data: { data: {
id: id id: id
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}); });
const data = stringToJson(res.bizContent);
const data = res;
resolve(data); resolve(data);
}).catch((error) => { }).catch((error) => {


showLoading: true, showLoading: true,
}; };
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
const res = await request(CardlossStatus, options);
const data = stringToJson(res.bizContent);
const res = await requestNew(cardObuLoss, options);
const data = res
resolve(data); resolve(data);
}).catch((error) => { }).catch((error) => {
reject(error); reject(error);

+ 5
- 7
subpackage/after-sale/card-loss-reporting/cardloss.vue Vedi File

import { import {
onLoad onLoad
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import { requestNew} from "@/utils/network/request.js";
import { import {
request
} from "@/utils/network/request.js";
import {
sendCode,
checkCode,
messageValid,
sendMessage
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";


import { import {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(sendCode, options)
requestNew(sendMessage, options)
.then((res) => { .then((res) => {
codeInterval(); codeInterval();


method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(checkCode, options)
requestNew(messageValid, options)
.then((res) => { .then((res) => {


uni.$emit('queryCardlossStatus', { uni.$emit('queryCardlossStatus', {

+ 34
- 16
subpackage/after-sale/deviceInfo/deviceInfo.vue Vedi File

onUnload onUnload
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import { import {
request,requestNew
request
} from "@/utils/network/request"; } from "@/utils/network/request";
import {cardObuQuery,obuFileDataDecrypt} from "@/utils/network/api";
import {
obuDecrypt,
cardList,
searchObuInfo
} from "@/utils/network/api";
import { import {
stringToJson stringToJson
} from "@/utils/network/encryption"; } from "@/utils/network/encryption";
console.log("card.color===========", card.vehiclePlate, parseInt(res[2].substring(82, 84), console.log("card.color===========", card.vehiclePlate, parseInt(res[2].substring(82, 84),
16)) 16))
// 读卡信息 // 读卡信息
// getCardList()
getCardList()
//执行0016文件 //执行0016文件
let arr = [cmd.HOME_DIRECTORY, cmd.PERSONAL_INFORMATION] let arr = [cmd.HOME_DIRECTORY, cmd.PERSONAL_INFORMATION]
bluetoothUtil.transCmd(arr, '10', function(res) { bluetoothUtil.transCmd(arr, '10', function(res) {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
requestNew(obuFileDataDecrypt, options).then((res) => {
const data =res
request(obuDecrypt, options).then((res) => {
const data = stringToJson(res.bizContent)
const FileData = data.data.FileData const FileData = data.data.FileData
func(FileData) func(FileData)
}); });
//提示对话框 //提示对话框
tools.showModalAlert(msg); tools.showModalAlert(msg);
} }
const getObuList = () => {
const getCardList = () => {
var data = { var data = {
obuId: obu.num,
cardId:card.cardNo,
vehicleId: state.vehicleId
}; };
const options = { const options = {
type: 2, type: 2,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
requestNew(cardObuQuery, options).then((res) => {
tools.hideLoadingAlert();
let result = res;
console.log("153", result)
state.obuStatus = result.obuStatus?result.obuStatus:""
state.cardStatus = result.cardStatus
if (result.cardType == 1 && result.debitType == 1) {
request(cardList, options).then((res) => {
let result = stringToJson(res.bizContent);
state.cardStatus = result.data[0].cardStatus
if (result.data[0].cardType == 1 && result.data[0].debitType == 1) {
state.cardTypeName = "预存卡" state.cardTypeName = "预存卡"
} else if (result.cardType == 2) {
} else if (result.data[0].cardType == 2) {
state.cardTypeName = "储值卡" state.cardTypeName = "储值卡"
} else { } else {
state.cardTypeName = "记账卡" state.cardTypeName = "记账卡"
} }
console.log("152", result)
})
}
const getObuList = () => {
var data = {
obuId: obu.num
};
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(searchObuInfo, options).then((res) => {
tools.hideLoadingAlert();
let result = stringToJson(res.bizContent);
console.log("153", result)
state.obuStatus = result.data[0]?result.data[0].obuStatus:""
}) })
} }
</script> </script>

+ 2
- 2
subpackage/orders/changeInformation.vue Vedi File

fileUpload, fileUpload,
register, register,
envs, envs,
getUserMsg
getUserMsg,idCardOcr
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";


import { import {
state.isTakePhotoModeShow = false state.isTakePhotoModeShow = false
var imageType = state.choiceIndex; var imageType = state.choiceIndex;
console.log("图片地址val", val.tempImagePath) console.log("图片地址val", val.tempImagePath)
uploadFile(val.tempImagePath, imageType, etcOcrCard).then((data) => {
uploadFile(val.tempImagePath, imageType, idCardOcr).then((data) => {
console.log("身份证上传", data) console.log("身份证上传", data)
if (state.isMy == "my") { if (state.isMy == "my") {
if (state.choiceIndex == "1") { if (state.choiceIndex == "1") {

+ 1
- 6
subpackage/orders/invoiceApply/invoice-content.vue Vedi File

navTo, msg navTo, msg
} from "@/utils/utils"; } from "@/utils/utils";
import { reactive, ref } from "vue"; import { reactive, ref } from "vue";
import { onLoad, onReachBottom, onShow } from "@dcloudio/uni-app";
import { onLoad, onReachBottom} from "@dcloudio/uni-app";
import { queryEtcOrderApi, getUserMsg, trafficFlowApi } from "@/utils/network/api.js"; import { queryEtcOrderApi, getUserMsg, trafficFlowApi } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js"; import { request } from "@/utils/network/request.js";
state.type = option.type state.type = option.type
getUserinfo() getUserinfo()
}) })
// onShow(() => {
// if (state.type == 1) {
// etcOrder(1)
// }
// })
const value = ref('') const value = ref('')
const getUserinfo = () => { const getUserinfo = () => {
const options = { const options = {

+ 5
- 6
subpackage/orders/invoiceApply/invoice-header-add.vue Vedi File

ref, ref,
reactive reactive
} from "vue"; } from "vue";
import { addInvoiceApi, queryEtcOrderApi } from "@/utils/network/api.js";
import { request } from "@/utils/network/request.js";
import { stringToJson } from "@/utils/network/encryption";
import { msg, checkStr } from "@/utils/utils";
import { billRaiseInsert } from "@/utils/network/api.js";
import {requestNew } from "@/utils/network/request.js";
import { msg } from "@/utils/utils";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
const form = reactive({ const form = reactive({
titleType: 1, //抬头类型 1-单位抬头 2个人抬头 titleType: 1, //抬头类型 1-单位抬头 2个人抬头
showLoading: true, showLoading: true,
}; };


request(addInvoiceApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseInsert, options).then((res) => {
const data =res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1

+ 7
- 7
subpackage/orders/invoiceApply/invoice-header-edit.vue Vedi File

ref, ref,
reactive reactive
} from "vue"; } from "vue";
import { editInvoiceHeaderApi, delInvoiceHeaderApi } from "@/utils/network/api.js";
import { request } from "@/utils/network/request.js";
import { billRaiseUpdate, billRaiseDelete } from "@/utils/network/api.js";
import { requestNew } from "@/utils/network/request.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { msg, checkStr } from "@/utils/utils";
import { msg} from "@/utils/utils";
import { onLoad } from "@dcloudio/uni-app"; import { onLoad } from "@dcloudio/uni-app";
const form = reactive({ const form = reactive({
titleType: 1, //抬头类型 1-单位抬头 2个人抬头 titleType: 1, //抬头类型 1-单位抬头 2个人抬头
showLoading: true, showLoading: true,
}; };


request(editInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseUpdate, options).then((res) => {
const data = res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
showLoading: true, showLoading: true,
}; };


request(delInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseDelete, options).then((res) => {
const data = res;
console.log("data", data) console.log("data", data)
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1

+ 4
- 4
subpackage/orders/invoiceApply/invoice-header-list.vue Vedi File

import { import {
navTo, navTo,
} from "@/utils/utils"; } from "@/utils/utils";
import { queryInvoiceHeaderApi, getUserMsg } from "@/utils/network/api.js";
import { billRaiseSelect, getUserMsg } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption"; import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js";
import { request,requestNew } from "@/utils/network/request.js";
import { import {
getItem getItem
} from "@/utils/storage"; } from "@/utils/storage";
showLoading: true, showLoading: true,
}; };
console.log("options", options) console.log("options", options)
request(queryInvoiceHeaderApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billRaiseSelect, options).then((res) => {
const data = res;
form.data = data.titles form.data = data.titles
console.log("data", data.titles) console.log("data", data.titles)



+ 4
- 6
subpackage/orders/invoiceApply/invoiceList.vue Vedi File

reactive reactive
} from "vue"; } from "vue";
import { onLoad, onReachBottom } from "@dcloudio/uni-app"; import { onLoad, onReachBottom } from "@dcloudio/uni-app";
import { invoiceQueryApi } from "@/utils/network/api.js";
import { stringToJson } from "@/utils/network/encryption";
import { request } from "@/utils/network/request.js";
import { msg } from "@/utils/utils";
import { billQueryBill } from "@/utils/network/api.js";
import { requestNew } from "@/utils/network/request.js";
const state = reactive({ const state = reactive({
userMobile: "", userMobile: "",
pageNumber: 1, pageNumber: 1,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(invoiceQueryApi, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(billQueryBill, options).then((res) => {
const data = res;
state.data = data.invoices state.data = data.invoices
console.log(data, "通行"); console.log(data, "通行");
}); });

+ 30
- 17
subpackage/orders/opening-account-unit.vue Vedi File

<u-input inputAlign="right" class="clearBg" placeholder='请输入社会信用代码' v-model="state.form.userIdNum" <u-input inputAlign="right" class="clearBg" placeholder='请输入社会信用代码' v-model="state.form.userIdNum"
maxlength="50" /> maxlength="50" />
</u-form-item> </u-form-item>
<u-form-item label="营业执照地址">
<u-input inputAlign="right" class="clearBg" placeholder='请输入营业执照地址' v-model="state.form.userAddress"
maxlength="50" />
</u-form-item>
<u-form-item label="经办人姓名"> <u-form-item label="经办人姓名">
<u-input inputAlign="right" class="clearBg" placeholder='请输入经办人姓名' v-model="state.form.agentName" <u-input inputAlign="right" class="clearBg" placeholder='请输入经办人姓名' v-model="state.form.agentName"
maxlength="20" /> maxlength="20" />
maxlength="18" /> maxlength="18" />
</u-form-item> </u-form-item>
<u-form-item label="经办人地址"> <u-form-item label="经办人地址">
<u-input inputAlign="right" class="clearBg" placeholder='请输入经办人地址' v-model="state.form.address"
<u-input inputAlign="right" class="clearBg" placeholder='请输入经办人地址' v-model="state.form.agentAddress"
maxlength="40" /> maxlength="40" />
</u-form-item> </u-form-item>
<u-form-item label="经办人联系方式"> <u-form-item label="经办人联系方式">
<u-input inputAlign="right" class="clearBg" placeholder='请输入经办人联系方式' v-model="state.form.tel"
<u-input inputAlign="right" class="clearBg" placeholder='请输入经办人联系方式' v-model="state.form.agentTel"
maxlength="11" /> maxlength="11" />
</u-form-item> </u-form-item>
</u-form> </u-form>
import viewfinder from "../../components/viewfinder.vue" import viewfinder from "../../components/viewfinder.vue"
import { import {
ocrAllQuery, ocrAllQuery,
etcCompanyCardInfoSubmit,
idCardOcr,registerFull
idCardOcr,registerFull,userUpload
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";


import {
request, requestNew
import { requestNew
} from "@/utils/network/request.js"; } from "@/utils/network/request.js";


import { import {


posImgUrl: "", //营业执照证明 posImgUrl: "", //营业执照证明
department: '本部', //不超过50个字符,若单位仅开一个账户,填写“本部” department: '本部', //不超过50个字符,若单位仅开一个账户,填写“本部”
address: "", //单位地址
userAddress: "", //单位地址
//经办人信息 //经办人信息
agentName: "", agentName: "",
agentIdType: "101", agentIdType: "101",
agentAddress: "", agentAddress: "",
agentPhone: "", agentPhone: "",
agentIdVld: '', agentIdVld: '',
tel: '',
agentTel: '',
agentGender: '', agentGender: '',
agentPosImgUrl: "", agentPosImgUrl: "",
agentNegImgUrl: "", agentNegImgUrl: "",
channelId: "", //渠道id channelId: "", //渠道id
opId: '', opId: '',
orderSource: 'WECHAT', orderSource: 'WECHAT',
isAgent:true, //经办人办理
userNegImgUrl:"",
userPosImgUrl:"",
tel:""
}, },
orderId: "", orderId: "",
vehiclePlateColor: '', vehiclePlateColor: '',
isSign: '', isSign: '',
type: 1,
vanType: 1,
vehicleId: "", vehicleId: "",
jsCode:"" jsCode:""
}); });
msg('请输入社会信用代码'); msg('请输入社会信用代码');
return; return;
} }
if (!state.form.userAddress) {
msg('请输入营业执照地址');
return;
}
if (!state.form.agentName) { if (!state.form.agentName) {
msg('请输入经办人姓名'); msg('请输入经办人姓名');
return; return;
msg('请输入正确的经办人身份证号'); msg('请输入正确的经办人身份证号');
return; return;
} }
if (!checkStr(state.form.tel, 'mobile')) {
if (!checkStr(state.form.agentTel, 'mobile')) {
msg('请输入正确的经办人联系方式'); msg('请输入正确的经办人联系方式');
return; return;
} }
state.form.tel=state.form.agentTel
registerRequest().then((result : any) => { registerRequest().then((result : any) => {
console.log("result", result) console.log("result", result)
if (!getItem('openId')) { if (!getItem('openId')) {
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(etcCompanyCardInfoSubmit, options).then((res) => {
const data = stringToJson(res.bizContent);
requestNew(userUpload, options).then((res) => {
const data = res;
uni.redirectTo({ uni.redirectTo({
url: `/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=${state.type}&vehicleId=${state.vehicleId}`,
url: `/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&vanType=${state.vanType}&vehicleId=${state.vehicleId}`,
}); });
}); });
}) })
state.vehiclePlateColor = option.vehiclePlateColor; state.vehiclePlateColor = option.vehiclePlateColor;
state.form.opId = getItem('openId') ? getItem('openId') : ''; state.form.opId = getItem('openId') ? getItem('openId') : '';
state.isSign = option.isSign; state.isSign = option.isSign;
state.type = option.type;
state.vanType = option.vanType;
state.vehicleId = option.vehicleId; state.vehicleId = option.vehicleId;
console.log("state.type", option) console.log("state.type", option)
uni.login({ uni.login({
'统一社会信用代码']; '统一社会信用代码'];
uploadFile(res.tempFilePaths[0], "", "").then((data) => { uploadFile(res.tempFilePaths[0], "", "").then((data) => {
state.form.posImgUrl = data; state.form.posImgUrl = data;
state.form.userNegImgUrl = data;
state.form.userPosImgUrl = data;
}) })
} }
}) })
state.form.agentName = data.name; state.form.agentName = data.name;
state.form.agentIdNum = data.idno; state.form.agentIdNum = data.idno;
state.form.agentPosImgUrl = data.imageUrl; state.form.agentPosImgUrl = data.imageUrl;
state.form.address = data.address;
state.form.agentAddress = data.address;
state.form.agentGender = data.gender; state.form.agentGender = data.gender;
} else { } else {
state.form.agentIdVld = data.enddate; state.form.agentIdVld = data.enddate;
userType: "ENTERPRISE", userType: "ENTERPRISE",
idNum: state.form.userIdNum, idNum: state.form.userIdNum,
idType: state.form.userIdType, idType: state.form.userIdType,
mobile: state.form.tel,
mobile: state.form.agentTel,
userName: state.form.userName, userName: state.form.userName,
gender: 'UNKOWN', gender: 'UNKOWN',
certifyChannel: "BAIDUOCR", certifyChannel: "BAIDUOCR",
address: state.form.address,
address: state.form.userAddress,
agentIdNum: state.form.agentIdNum, agentIdNum: state.form.agentIdNum,
agentIdType: state.form.agentIdType, agentIdType: state.form.agentIdType,
agentName: state.form.agentName, agentName: state.form.agentName,

+ 12
- 15
subpackage/personal-center/search/etcFlowingWater.vue Vedi File

stringToJson stringToJson
} from "@/utils/network/encryption.js"; } from "@/utils/network/encryption.js";
import { import {
passBillCount,
downloadBills,
passbill,cardList
passBillCount,detaildownload,
passbill,cardinformationquery,totalbill
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";
import { import {
onLoad, onLoad,
} }
const getCardList = (vehicleId) => { const getCardList = (vehicleId) => {
var data = { var data = {
vehicleId: vehicleId
vehicleId: vehicleId,
vehiclePlate:vehicleId.split('_')[0],
vehiclePlateColor:Number(vehicleId.split('_')[1])
}; };
const options = { const options = {
type: 2, type: 2,
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(cardList, options).then((res) => {
console.log("152", stringToJson(res.bizContent))
let result = stringToJson(res.bizContent);
requestNew(cardinformationquery, options).then((res) => {
console.log("152", res)
let result =res;
for (var k = 0; k < result.data.length; k++) { for (var k = 0; k < result.data.length; k++) {
state.cardIdRange.push(result.data[k]['cardId']) state.cardIdRange.push(result.data[k]['cardId'])
} }
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(passBillCount, options).then((res) => {
let result = stringToJson(res.bizContent)
requestNew(totalbill, options).then((res) => {
let result =res
state.aggregateAmount = result.aggregateAmount ? result.aggregateAmount : 0 state.aggregateAmount = result.aggregateAmount ? result.aggregateAmount : 0
state.passTotal = result.passTotal ? result.passTotal : 0 state.passTotal = result.passTotal ? result.passTotal : 0
state.parkTotal = result.parkTotal ? result.parkTotal : 0 state.parkTotal = result.parkTotal ? result.parkTotal : 0
method: "POST", method: "POST",
showLoading: true, showLoading: true,
}; };
request(downloadBills, options).then((res) => {
let result = stringToJson(res.bizContent)
requestNew(detaildownload, options).then((res) => {
let result =res
console.log("downloadFileURL", downloadFileURL + result.ossFilePath); console.log("downloadFileURL", downloadFileURL + result.ossFilePath);
download(downloadFileURL + result.ossFilePath) download(downloadFileURL + result.ossFilePath)
}) })
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
align-items: center; align-items: center;

// .total-space {
// margin-left: 41rpx;
// }
} }


.btn-download { .btn-download {

subpackage/personal-center/search/select-card.vue → subpackage/personal-center/search/select-card-删除.vue Vedi File


+ 29
- 1
utils/network/api.js Vedi File

export const activeImgUpload= "/iaw/issue/order/activeImgUpload" //激活图片上传 export const activeImgUpload= "/iaw/issue/order/activeImgUpload" //激活图片上传
export const cardObuQuery= "/iaw/ass/query/cardObuQuery" //卡签信息查询 export const cardObuQuery= "/iaw/ass/query/cardObuQuery" //卡签信息查询
export const singleEquityDetail= "/iaw/ass/equity/singleEquityDetail" //单项权益详情查询 export const singleEquityDetail= "/iaw/ass/equity/singleEquityDetail" //单项权益详情查询
export const obuFileDataDecrypt= "/iaw/ass/issueBase/obuFileDataDecrypt" //OBU系统信息在线解密
// 通行流水记录查询
export const cardinformationquery= "/iaw/app/issue/cardAnnounce/cardinformationquery" //卡信息查询
export const detaildownload= "/iaw/app/issue/cardAnnounce/detaildownload" //明细下载
export const totalbill= "/iaw/app/issue/cardAnnounce/totalbill" //账单合计
export const passbill= "/iaw/app/issue/cardAnnounce/passbill" //ETC通行流水记录查询 export const passbill= "/iaw/app/issue/cardAnnounce/passbill" //ETC通行流水记录查询
export const obuFileDataDecrypt= "/iaw/ass/issueBase/obuFileDataDecrypt" //OBU系统信息在线解密

// 验证码
export const sendMessage= "/iaw/message/sendMessage" //发送短信验证码
export const messageValid= "/iaw/message/messageValid" //短信验证码验证

// 卡签挂失解挂
export const cardObuLoss= "/iaw/api/afterSale/cardObuLoss/loss" //卡签挂失解挂失
// 欠费补缴
export const trafficsuppleQueryList= "/iaw/trafficsupple/queryList" //通行流水欠费补缴信息查询
export const trafficsuppleApply= "/iaw/trafficsupple/apply" //通行流水欠费补缴支付下单
export const trafficsupplePayQuery= "/iaw/trafficsupple/payQuery" //通行流水欠费补缴支付查询
export const trafficsupplObtainuserid= "/iaw/trafficsupple/obtainuserid" //统一会员平台获取第三方用户标识
// 发票
export const billRaiseSelect = "/iaw/invoice/bill/billRaiseSelect" // 查询发票抬头
export const billRaiseInsert = "/iaw/invoice/bill/billRaiseInsert" // 新增发票抬头
export const billRaiseUpdate = "/iaw/invoice/bill/billRaiseUpdate" // 修改发票抬头
export const billRaiseDelete = "/iaw/invoice/bill/billRaiseDelete" // 删除发票抬头
export const billQueryBill = "/iaw/invoice/bill/queryBill" // 发票查询
// 卡签续期
export const cardRenewalFromWechat = "/iaw/api/afterSale/renewal/cardRenewal/fromWechat" //小程序卡续期
export const cardRenewalConfirm = "/iaw/api/afterSale/renewal/cardRenewal/confirm" //卡续期确认
export const obuRenewalFromWechat = "/iaw/api/afterSale/renewal/obuRenewal/fromWechat" //小程序签续期
export const cardCosConfirm = "/iaw/api/active/cardCos/confirm" //写卡指令结果返回


+ 6
- 30
utils/util/fileData.js Vedi File

// import {
// TextEncoder,
// TextDecoder
// } from "../node-model/text-decoding";
import "./encoder.js"

// #ifdef MP-WEIXIN
console.log("global", global)
// #endif

// #ifdef MP-ALIPAY
console.log("global", $global)
// #endif
import {
TextEncoder,
TextDecoder
} from "../node-model/text-decoding";


export function IntegerToHexString(num, nLen) { export function IntegerToHexString(num, nLen) {
if (num == null) { if (num == null) {
} }
export function AsciToHexString(strAsci, nLen) { export function AsciToHexString(strAsci, nLen) {
let s = String(strAsci); let s = String(strAsci);

// #ifdef MP-WEIXIN
let encoder = new global.TextEncoder("UTF-8");
// #endif

// #ifdef MP-ALIPAY
let encoder = new $global.TextEncoder("UTF-8");
// #endif
// let encoder = new TextEncoder("UTF-8");
let encoder = new TextEncoder("UTF-8");
// let encoder = new TextEncoder("gbk"); // let encoder = new TextEncoder("gbk");
// let bytes = encode(str, 'gbk'); // let bytes = encode(str, 'gbk');
let bytes = encoder.encode(s); let bytes = encoder.encode(s);
} }
const asd = hexStringToByteArray(data); const asd = hexStringToByteArray(data);
try { try {
// #ifdef MP-WEIXIN
let str = new global.TextDecoder("GBK").decode(asd)
// #endif

// #ifdef MP-ALIPAY
let str = new $global.TextDecoder("GBK").decode(asd)
// #endif
// str = new TextDecoder("GBK").decode(asd);
str = new TextDecoder("GBK").decode(asd);


} catch (e) { } catch (e) {
console.error(e); console.error(e);

Loading…
Annulla
Salva