Merge branch 'develop' into devTee
This commit is contained in:
commit
dfa9f3405b
105 changed files with 1241 additions and 1266 deletions
|
|
@ -235,7 +235,7 @@ async function getListCommandDraf() {
|
|||
await http
|
||||
.get(
|
||||
config.API.commandList +
|
||||
`?page=${pagination.value.page}&pageSize=${pagination.value.rowsPerPage}&year=${commandYear.value}&keyword=${filter.value}&status=DRAFT`
|
||||
`?page=${pagination.value.page}&pageSize=${pagination.value.rowsPerPage}&year=${commandYear.value}&keyword=${filter.value}&status=DRAFT&commandTypeId=${commandType.value}`
|
||||
)
|
||||
.then(async (res) => {
|
||||
totalList.value = Math.ceil(
|
||||
|
|
@ -280,6 +280,15 @@ watch(modal, () => {
|
|||
fetchCommandType();
|
||||
}
|
||||
});
|
||||
|
||||
watch(
|
||||
() => selectCreate.value,
|
||||
async () => {
|
||||
if (selectCreate.value == "DRAF") {
|
||||
getListCommandDraf();
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ const fileUploadTailer = ref<any>(null); //ไฟล์เอกสารแน
|
|||
const fileOrder = ref<any>(null); //ไฟล์คำสั่ง
|
||||
const fileTailer = ref<any>(null); //ไฟล์เอกสารแนบท้าย
|
||||
|
||||
const isLoad = ref<boolean>(false); //แสดงโหลด
|
||||
const isLoad = ref<boolean>(true); //แสดงโหลด
|
||||
const modalPerView = ref<boolean>(false);
|
||||
|
||||
/**
|
||||
|
|
@ -259,7 +259,6 @@ function onConfirmOrder() {
|
|||
onMounted(async () => {
|
||||
isCheckDraft.value = isDraft.value;
|
||||
isCheckAuthority.value = isAuthority.value;
|
||||
|
||||
if (step.value !== 1) {
|
||||
isLoad.value = false;
|
||||
let promises = [fetchDoc("order")];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue