|
|
@@ -163,6 +163,7 @@ |
|
|
|
const obuId = orderInfo.obuId; |
|
|
|
const obuStatus = orderInfo.obuStatus != null ? orderInfo.obuStatus : '9' |
|
|
|
console.log('当前卡签状态', cardId, obuId, cardStatus, obuStatus) |
|
|
|
console.log('输出内容', obu.obuId, '=======', fileDataStrings.obuId) |
|
|
|
if (obu.obuId != fileDataStrings.obuId) { |
|
|
|
tools.showModalAlert("订单设备号信息与当前设备号信息不符!"); |
|
|
|
return |
|
|
@@ -197,7 +198,7 @@ |
|
|
|
}; |
|
|
|
request(IFCODE.orderDetail, options).then((res) => { |
|
|
|
orderInfo = JSON.parse(res.bizContent); |
|
|
|
console.log("orderInfo",orderInfo); |
|
|
|
console.log("orderInfo", orderInfo); |
|
|
|
if (orderInfo) { |
|
|
|
fileDataStrings.userType = orderInfo.userType; //用户类型 |
|
|
|
fileDataStrings.approvedCount = parseInt(orderInfo.vehicleApprovedCount); //核载人数 |
|
|
@@ -348,6 +349,7 @@ |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
let result = stringToJson(res.bizContent); |
|
|
|
tools.showLoadingAlert("执行指令中"); |
|
|
|
console.log('写卡指令', result.command) |
|
|
|
bluetoothUtil.transCmd(result.command.split(","), "10", function(res) { |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
getCommandBack(result.command, result.cosRecordId, res.toString()); |
|
|
@@ -497,7 +499,8 @@ |
|
|
|
if (res[0] == "9000") { |
|
|
|
tools.showLoadingAlert("执行指令"); |
|
|
|
//再次获取随机数 |
|
|
|
let cmdArr = [cmd.HOME_DIRECTORY, cmd.OBU_DF01, cmd.OBU_EF01, cmd.RANDOM_NUMBER]; |
|
|
|
let cmdArr = [cmd.HOME_DIRECTORY, cmd.OBU_DF01, cmd.OBU_EF01, cmd |
|
|
|
.RANDOM_NUMBER]; |
|
|
|
bluetoothUtil.transCmd(cmdArr, '20', function(res) { |
|
|
|
var str = res[3].substring(res[3].length - 4, res[3].length); |
|
|
|
if (str == "9000") { |
|
|
@@ -801,4 +804,4 @@ |
|
|
|
font-size: 34rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |