tested linkage add step

This commit is contained in:
Warunee Tamkoo 2024-12-24 00:01:38 +07:00
parent 636cd67923
commit b4efa1204f
2 changed files with 100 additions and 13 deletions

View file

@ -23,14 +23,21 @@ async function fetchDeviceLists() {
async function readDevice() {
showLoader();
await store.readDevice($q);
await store.getInfo($q); // CID
await store.postReadIdCard($q); // id card
await store.amiEnvironment($q);
await store.amiConnect($q);
// await store.getInfo($q); // CID
// await store.postReadIdCard($q); // id card
// await store.amiEnvironment($q);
// await store.amiConnect($q);
hideLoader();
}
// 3. x-Key (9080)
async function amiRequest() {
showLoader();
await store.amiRequest($q, 9080);
hideLoader();
}
// 4. PIN
async function verifyPin() {
showLoader();
await store.authentication($q);
@ -157,9 +164,9 @@ function onClose() {
</div>
</q-timeline-entry>
<!-- เชอมตอและใส PIN -->
<!-- ขอขอม 9080 -->
<q-timeline-entry
title="เชื่อมต่อและใส่ PIN"
title="ตรวจสอบข้อมูล"
:icon="
store.step === 3
? 'mdi-pencil'
@ -170,6 +177,29 @@ function onClose() {
:color="store.step < 3 ? 'grey-4' : ''"
>
<div class="row" v-if="store.step === 3">
<div class="q-col-gutter-sm">
<q-btn
color="primary"
label="ดำเนินการต่อ"
@click="amiRequest"
/>
</div>
</div>
</q-timeline-entry>
<!-- เชอมตอและใส PIN -->
<q-timeline-entry
title="เชื่อมต่อและใส่ PIN"
:icon="
store.step === 4
? 'mdi-pencil'
: store.step > 4
? 'done'
: 'mdi-numeric-4'
"
:color="store.step < 4 ? 'grey-4' : ''"
>
<div class="row" v-if="store.step === 4">
<q-btn
color="primary"
label="ดำเนินการต่อ"