Commit 9b54d9b5 by Takatoshi Miura

Merge branch 'feature/1.4.0_miura' into 'feature/1.4.0'

RFID関連の修正

See merge request !12
parents c0ebe8f7 8c533154
......@@ -20167,6 +20167,7 @@ button {
width: 100%;
top: 0;
height: calc(100%);
min-height: 100vh;
display: block;
position: absolute;
background: #000;
......
......@@ -42,7 +42,8 @@ CHK.operationGroupMaster; //カテゴリーデータ
CHK.operationGroupMasterRelation; //作業・カテゴリー関係データ
CHK.pushMessage; //コミュニケーションデータ
var scanResultCode; //スキャンしたRFID,バーコード
CHK.scanResultCode; //スキャンしたRFID,バーコード
CHK.scanType; //スキャン種別(0:バーコード、1:RFID)
var pageLang; // ページ設定言語
var isSetCategory = true
......@@ -3138,7 +3139,8 @@ document.addEventListener('visibilitychange', () => {
});
CHK.scanResult = function(scannedCode, scanType) {
scanResultCode = scannedCode;
CHK.scanResultCode = scannedCode;
CHK.scanType = scanType;
if (scannedCode == null || !(scannedCode.length)) {
return;
}
......@@ -3148,7 +3150,7 @@ CHK.scanResult = function(scannedCode, scanType) {
var resultCode = scannedCode;
if (scanType == 1) {
resultCode = scannedCode.substring(4);
scanResultCode = resultCode;
CHK.scanResultCode = resultCode;
}
return operation.permitCode == resultCode;
})[0];
......@@ -3180,9 +3182,12 @@ CHK.displayAlert = function(msgCode) {
if (msgCode == "notExistCode") {
// scanResultCodeを代入するため別で処理
setLangCode();
var notExistCodeMessage = {ja:"読み込んだコードと一致しません。\n\n読み込んだコード:" + scanResultCode + "\n\nコードを確認してもう一度お願いします。", ko:"스캔된코드와 일치하는 작업이 존재하지않습니다.\n\n스캔 한 코드: " + scanResultCode + "\n\n코드를 확인하고 한번도 시도해주세요.", en:"No action exists that matches the scanned code.\n\nScanned code: " + scanResultCode + "\n\nPlease check the code and try it once."};
var msg = notExistCodeMessage[lang];
alert(msg);
var notExistCodeMessage = {ja:"読み込んだコードと一致しません。\n\n読み込んだコード: " + CHK.scanResultCode + "\n\nコードを確認してもう一度お願いします。", ko:"스캔된코드와 일치하는 작업이 존재하지않습니다.\n\n스캔 한 코드: " + CHK.scanResultCode + "\n\n코드를 확인하고 한번도 시도해주세요.", en:"No action exists that matches the scanned code.\n\nScanned code: " + CHK.scanResultCode + "\n\nPlease check the code and try it once."};
if (CHK.scanType == 1) {
// RFIDは24桁で1行に表示しきれないため改行を追加
notExistCodeMessage = {ja:"読み込んだコードと一致しません。\n\n読み込んだコード:\n" + CHK.scanResultCode + "\n\nコードを確認してもう一度お願いします。", ko:"스캔된코드와 일치하는 작업이 존재하지않습니다.\n\n스캔 한 코드:\n" + CHK.scanResultCode + "\n\n코드를 확인하고 한번도 시도해주세요.", en:"No action exists that matches the scanned code.\n\nScanned code:\n" + CHK.scanResultCode + "\n\nPlease check the code and try it once."};
}
alert(notExistCodeMessage[lang]);
} else if (msgCode == "onlyRfid") {
alert(getMsg(msgCode));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment