update ui บรรจุ
This commit is contained in:
parent
5144effebd
commit
dcf724d41d
2 changed files with 543 additions and 581 deletions
|
|
@ -32,7 +32,7 @@ const editvisible = ref<boolean>(true);
|
||||||
const myForm = ref<QForm | null>(null);
|
const myForm = ref<QForm | null>(null);
|
||||||
const positionLineId = ref<string>();
|
const positionLineId = ref<string>();
|
||||||
const positionId = ref<string>();
|
const positionId = ref<string>();
|
||||||
const edit = ref<boolean>(false);
|
const edit = ref<boolean>(true);
|
||||||
const positionTypeId = ref<string>();
|
const positionTypeId = ref<string>();
|
||||||
const visibleColumns = ref<String[]>([]);
|
const visibleColumns = ref<String[]>([]);
|
||||||
const store = usePlacementDataStore();
|
const store = usePlacementDataStore();
|
||||||
|
|
@ -67,7 +67,7 @@ const positionTypeOptionsFilter = ref<DataOption[]>([]);
|
||||||
const positionLevelOptionsFilter = ref<DataOption[]>([]);
|
const positionLevelOptionsFilter = ref<DataOption[]>([]);
|
||||||
const positionExecutiveOptionsFilter = ref<DataOption[]>([]);
|
const positionExecutiveOptionsFilter = ref<DataOption[]>([]);
|
||||||
const positionExecutiveSideOptionsFilter = ref<DataOption[]>([]);
|
const positionExecutiveSideOptionsFilter = ref<DataOption[]>([]);
|
||||||
const { date2Thai, success, dateToISO, messageError, showLoader, hideLoader } =
|
const { date2Thai, messageError, showLoader, hideLoader } =
|
||||||
mixin;
|
mixin;
|
||||||
const files = ref<File[]>([]);
|
const files = ref<File[]>([]);
|
||||||
|
|
||||||
|
|
@ -310,17 +310,17 @@ const getClass = (val: boolean) => {
|
||||||
};
|
};
|
||||||
const selectData = (props: TableName) => {
|
const selectData = (props: TableName) => {
|
||||||
itemtest.value = props;
|
itemtest.value = props;
|
||||||
if (editvisible.value == true) {
|
// if (editvisible.value == true) {
|
||||||
editRow.value = false;
|
// editRow.value = false;
|
||||||
modalEdit.value = true;
|
// modalEdit.value = true;
|
||||||
modal.value = false;
|
// modal.value = false;
|
||||||
edit.value = true;
|
// edit.value = true;
|
||||||
} else {
|
// } else {
|
||||||
editRow.value = false;
|
// editRow.value = false;
|
||||||
modalEdit.value = true;
|
// modalEdit.value = true;
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
edit.value = true;
|
// edit.value = true;
|
||||||
}
|
// }
|
||||||
};
|
};
|
||||||
const onSelected = async (id: string) => {
|
const onSelected = async (id: string) => {
|
||||||
await fetchPositionNumber(id);
|
await fetchPositionNumber(id);
|
||||||
|
|
@ -1670,7 +1670,6 @@ const listKeyId = (data: any) => {
|
||||||
<q-dialog v-model="modal_right" persistent>
|
<q-dialog v-model="modal_right" persistent>
|
||||||
<q-card style="width: 800px">
|
<q-card style="width: 800px">
|
||||||
<q-form ref="myForm">
|
<q-form ref="myForm">
|
||||||
<!-- :title="`${modalEdit ? 'แก้ไข' : 'สร้าง'}รายละเอียดของ...`" -->
|
|
||||||
<DialogHeader
|
<DialogHeader
|
||||||
:title="`${modalEdit ? 'ขอผ่อนผัน' : 'สละสิทธิ์'} ชื่อ${Name}`"
|
:title="`${modalEdit ? 'ขอผ่อนผัน' : 'สละสิทธิ์'} ชื่อ${Name}`"
|
||||||
:close="clickClose"
|
:close="clickClose"
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="q-px-md q-pb-md">
|
<div class="q-px-md q-pb-md">
|
||||||
<div class="col-12 row q-py-sm" v-if="nornmalData == false">
|
<div class="col-12 row q-py-sm" v-if="nornmalData == false">
|
||||||
<!-- <q-btn
|
|
||||||
size="12px"
|
|
||||||
v-if="!editvisible"
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
:disabled="editvisible"
|
|
||||||
:color="editvisible ? 'grey-7' : 'primary'"
|
|
||||||
@click="clickEdit"
|
|
||||||
icon="mdi-pencil-outline"
|
|
||||||
>
|
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<q-btn
|
|
||||||
size="12px"
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
v-if="editvisible"
|
|
||||||
:disabled="!editvisible"
|
|
||||||
:color="!editvisible ? 'grey-7' : 'red'"
|
|
||||||
@click="clickCancel"
|
|
||||||
icon="mdi-undo"
|
|
||||||
>
|
|
||||||
<q-tooltip>ยกเลิก</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
<div class="q-px-sm">
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
:disabled="editvisible == false"
|
|
||||||
:color="editvisible == false ? 'grey-7' : 'public'"
|
|
||||||
@click="add"
|
|
||||||
icon="mdi-content-save-outline"
|
|
||||||
>
|
|
||||||
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
|
||||||
</q-btn>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="items-center" style="display: flex">
|
<div class="items-center" style="display: flex">
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue