瀏覽代碼

设备管理处理

master
zhangjunfeng 6 天之前
父節點
當前提交
b393c39db8

+ 2
- 2
subpackage/after-sale/activation-once-again/select-car.vue 查看文件

@@ -267,9 +267,9 @@ const choose = (i, item) => {
url: `/subpackage/orders/sign-up?vehicleId=${item.vehicleId}&channelSing=1&from=37`,
});
} else {
// 跳转到车辆详情页面,携带item.id参数
// 跳转到车辆详情页面,携带item.vehicleId参数
uni.navigateTo({
url: `/subpackage/after-sale/activation-once-again/vehicle-details?id=${item.id}`,
url: `/subpackage/after-sale/activation-once-again/vehicle-details?id=${item.vehicleId}`,
});
}


+ 1
- 1
subpackage/after-sale/activation-once-again/vehicle-details.vue 查看文件

@@ -222,7 +222,7 @@ const getVehicleDetails = (id: string) => {
const options = {
type: 2,
data: {
id: id,
vehicleId: id,
},
method: "POST",
showLoading: true,

+ 44
- 2
subpackage/after-sale/deviceInfo/deviceInfo.vue 查看文件

@@ -148,7 +148,7 @@
import {
requestNew
} from "@/utils/network/request";
import {cardObuQuery,obuFileDataDecrypt,cardObuQueryinLog} from "@/utils/network/api";
import {cardObuQuery,obuFileDataDecrypt,cardObuQueryinLog, saveRecord} from "@/utils/network/api";
import {
getVehicleType
} from "@/subpackage/after-sale/js/vehicleType.js"
@@ -394,6 +394,7 @@
bluetoothUtil.disconnectDevice();
tools.showToastAlert("蓝牙已断开");
console.log('蓝牙已断开=========')
return;
}
alertF("OBU_00B400000A+rand+OBU_4F00指令长度不符" + res[1]);
@@ -407,7 +408,47 @@
alertF("OBU_SYSTEM_FILE指令长度不符" + res[1]);
})
};

const saveRecordApi = () => {
const options = {
type: 2,
data: {
approvedCount: obu.approvedCount, // 核定载人数
axleCount: obu.axleCount, // 车轴数
axleDistance: obu.axleDistance, // 轴距
bindingFinishStatus: card.favourableStr, // 卡签绑定完成状态
cardEnableTime: card.startTime, // 卡启用时间
cardExpireTime: card.endTime, // 卡过期时间
cardId: card.cardNo, // 卡号
cardVehiclePlate: card.vehiclePlate, // 车牌号码
cardVehiclePlateColor: card.colorStr, // 车牌颜色
cardVehicleType: card.typeStr, // 行驶证车辆类型
cardVersion: card.version, // 卡版本号
checksums: card.money, // 校验值
customerIdNum: card.idNumStr, // 身份证号
customerName: card.userNameStr, // 用户姓名
isActive: state.cardStatus, // 是否激活
loadStatus: obu.loadStatus, // 拆卸状态
obuEnableTime: obu.startTime, // 启用时间
obuExpireTime: obu.endTime, // 到期时间
obuId: obu.num, // obu编号
obuVehicleCustomerType: obu.userTypeStr, // 车辆用户类型
obuVehiclePlate: obu.vehiclePlate, // 车牌号码
obuVehiclePlateColor: obu.vehiclePlateColorStr, // 车牌颜色
obuVehicleType: obu.typeStr, // 行驶证车辆类型
obuVersion: obu.version ,// obu版本号
vehicleDimensions: obu.outsideDimensions, // 外廓尺寸
vehicleEngineNum: obu.engineNum, // 发动机号码
vin: obu.vin, // 车辆识别代码
wheelCount: obu.wheelCount, // 车轮数
},
method: "POST",
showLoading: false,
};
requestNew(saveRecord, options).then((res) => {
console.log("saveRecord", card, obu, state)
});
}

/**
* 解密OBU车辆信息
@@ -503,6 +544,7 @@
};
requestNew(cardObuQueryinLog, options).then((res) => {
tools.hideLoadingAlert();
saveRecordApi();
console.log("提交成功")
})
}

+ 1
- 1
subpackage/orders/apply-return-goods.vue 查看文件

@@ -211,7 +211,7 @@
};
requestNew(orderReturn, options).then((res) => {
confirm(
"您申办的ETC订单已申请退货,待审核,请到【查询服务】的【业务审核查询】查看进度",
"您申办的ETC订单已申请退货,待审核",
() => {
uni.$emit("refreshOrder");
uni.navigateBack({

+ 2
- 1
utils/network/api.js 查看文件

@@ -523,4 +523,5 @@ export const licenseInforChangeApply = "/iaw/aftersale/vehicleInformationChange/
export const vehicleTypeCount = "/iaw/aftersale/vehicleInformationChange/vehicleTypeCount" //车型计算
export const logout = "/iaw/portal/logout" //退出登录
export const customerQuery = "/iaw/api/customer/query" //客户列表查询
export const realNameAuthentication = "/iaw/portal/realNameAuthentication" //实名认证
export const realNameAuthentication = "/iaw/portal/realNameAuthentication" //实名认证
export const saveRecord = "/iaw/deviceQueryRecord/saveRecord" // 新增查询记录

Loading…
取消
儲存