|
|
@@ -140,8 +140,6 @@ |
|
|
|
getObuId(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("state.transfer", state.transfer, state.transfer == 0, state.transfer == 1, getItem( |
|
|
|
"orderInfo")) |
|
|
|
}) |
|
|
@@ -259,14 +257,14 @@ |
|
|
|
console.log("err", err) |
|
|
|
errorLog(datas.cmd, JSON.stringify(err), datas.stepNo) |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
state.showPopup = false |
|
|
|
|
|
|
|
state.disabled = true |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
state.showPopup = false |
|
|
|
|
|
|
|
state.disabled = true |
|
|
|
}); |
|
|
|
} |
|
|
@@ -354,7 +352,6 @@ |
|
|
|
}; |
|
|
|
const activateQuqet = () => { |
|
|
|
state.disabled = false |
|
|
|
state.showPopup = true |
|
|
|
console.log('orderInfo参数', orderInfo, state.disabled) |
|
|
|
stopHeartbeat(); |
|
|
|
if(state.transfer == '1') { |
|
|
@@ -377,25 +374,28 @@ |
|
|
|
method: "POST", |
|
|
|
showLoading: false, |
|
|
|
} |
|
|
|
|
|
|
|
tools.showLoadingAlert("执行指令"); |
|
|
|
requestNew(vfjObuActive, options) |
|
|
|
.then((res) => { |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
console.log("在线激活 请求"); |
|
|
|
console.log(res); |
|
|
|
const datas = res; |
|
|
|
let cmdArr = datas.apdu.split(',') |
|
|
|
tools.showLoadingAlert("执行指令"); |
|
|
|
bluetoothUtil.transCmd([datas.apdu.split(',')], "20", function (res) { |
|
|
|
bluetoothUtil.transCmd(cmdArr, "20", function (res) { |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
console.log(res); |
|
|
|
if (res[0] == "9000") { |
|
|
|
console.log("在线激活执行指令88888 请求", res); |
|
|
|
cfmActiveRequest(datas.orderNo) |
|
|
|
msg('激活成功'); |
|
|
|
navTo(`/pages/order/order?index=${0}`); |
|
|
|
} else { |
|
|
|
msg(`激活失败,提示码:${res[0]}`); |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
tools.hideLoadingAlert(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|