This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-15 11:10:55 +07:00
parent 1dbc40ddfb
commit 65cc0d0816
6 changed files with 34 additions and 30 deletions

View file

@ -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) => {