- ผูก api ออกคำสั่งให้ครบ loop
- แก้ label
This commit is contained in:
parent
b1c37ad2e0
commit
8f16fadeea
9 changed files with 196 additions and 86 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm" @click="router.go(-1), destroyLocalStorage()" />
|
||||
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm"
|
||||
@click="router.go(-1), destroyLocalStorage()" />
|
||||
ออกคำสั่ง
|
||||
</div>
|
||||
<q-card flat bordered class="col-12 q-my-sm q-mt-sm">
|
||||
|
|
@ -60,7 +61,7 @@ onUnmounted(() => {
|
|||
|
||||
const nextStep = async () => {
|
||||
stepper.value!.next();
|
||||
localStorage.setItem("currentStep", step.value.toString());
|
||||
localStorage.setItem("currentStep", (step.value + 1).toString());
|
||||
if (orderId.value) {
|
||||
await http
|
||||
.put(config.API.nextStep(orderId.value))
|
||||
|
|
@ -74,7 +75,7 @@ const nextStep = async () => {
|
|||
};
|
||||
const previousStep = async () => {
|
||||
stepper.value!.previous();
|
||||
localStorage.setItem("currentStep", step.value.toString());
|
||||
localStorage.setItem("currentStep", (step.value - 1).toString());
|
||||
if (orderId.value) {
|
||||
await http
|
||||
.put(config.API.prevStep(orderId.value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue