Issues
This commit is contained in:
parent
1dbc40ddfb
commit
65cc0d0816
6 changed files with 34 additions and 30 deletions
|
|
@ -1,4 +1,3 @@
|
|||
div
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
|
@ -174,7 +173,8 @@ const fecthTypeOption = async (actions: string) => {
|
|||
showLoader();
|
||||
await http
|
||||
.get(config.API.typeOrder())
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
await fecthCommand();
|
||||
const response = res.data.result;
|
||||
|
||||
const filterRes = response.filter((e: any) =>
|
||||
|
|
@ -208,7 +208,6 @@ const fecthTypeOption = async (actions: string) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
await fecthCommand();
|
||||
if (actions == "hasData") {
|
||||
await fetchdetailOrder(); // เมื่อแก้ไขจะเรียกข้อมูลรายละเอียด
|
||||
}
|
||||
|
|
@ -311,6 +310,7 @@ const fecthCommand = async () => {
|
|||
await http
|
||||
.get(config.API.organizationsOrder())
|
||||
.then((res) => {
|
||||
byOrderOptionUse.value = res.data.result;
|
||||
byOrderOption.value = res.data.result;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue