Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2024-12-26 10:15:37 +07:00
commit a97a1189c4
8 changed files with 25 additions and 7 deletions

View file

@ -752,6 +752,7 @@ function onSubmitDate() {
*/
function openModalOrder(val: boolean) {
// object #e.draft == "" &&
rowsOrder.value = rows.value.filter(
(e: any) =>
(DataStore.isStaff &&
@ -762,6 +763,7 @@ function openModalOrder(val: boolean) {
e.statusId !== "REPORT" &&
e.statusId !== "DONE") ||
(DataStore.isOfficer &&
e.bmaOfficer != "บุคคลภายนอก" &&
e.rootId != e.rootIdOld &&
e.draft == "ส่งตัวแล้ว" &&
e.nodeName !== null &&

View file

@ -75,9 +75,10 @@ async function fileDownload(type: string) {
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
}
/** Hook */

View file

@ -127,7 +127,7 @@ const formData = reactive<FormData>({
/** ดึงข้อมูล จังหวัด */
function getProvince() {
http
.get(config.API.province)
.get(config.API.orgProvince)
.then((res) => {
const data = res.data.result;

View file

@ -128,7 +128,7 @@ const expanded2 = ref<Array<string | null>>([]);
*/
function fetchProvince() {
http
.get(config.API.province)
.get(config.API.orgProvince)
.then((res) => {
const data = res.data.result;
provinceOp.value = data.map((item: DataOption) => ({

View file

@ -576,7 +576,7 @@ onMounted(async () => {
class="q-mr-sm"
icon="mdi-arrow-left"
color="primary"
@click="router.go(-1)"
@click="router.push('/development/scholarship')"
/>
{{
checkRouteDetail

View file

@ -491,7 +491,14 @@ onMounted(async () => {
</q-card>
</div>
<div class="col-6" v-if="isAttachment">
<div
class="col-6"
v-if="
isAttachment ||
(store.dataCommand &&
store.dataCommand.commandCode == 'C-PM-38')
"
>
<q-card
bordered
class="row col-12"

View file

@ -392,7 +392,14 @@ onMounted(async () => {
</q-card>
</div>
<div class="col-6" v-if="isAttachment">
<div
class="col-6"
v-if="
isAttachment ||
(store.dataCommand &&
store.dataCommand.commandCode == 'C-PM-38')
"
>
<q-card
bordered
class="row col-12"

View file

@ -22,6 +22,7 @@ interface FormDataDetail {
commandAffectDate: Date | null; //วันที่ลงนาม
commandExcecuteDate: Date | null; //วันที่คำสั่งมีผล
isBangkok: string | null; //คำสั่งสำนักปลัดกรุงเทพมหานคร
commandCode?: string; //รหัสคำสั่ง
}
interface FormCommandList {