เครื่องราชฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-19 14:58:16 +07:00
parent 8ebbef05d9
commit 1530da36cf
22 changed files with 159 additions and 777 deletions

View file

@ -25,7 +25,6 @@ const roundNo = ref<string | undefined>("");
const cardid = ref<string>("");
const OrganazationId = ref<string>("");
const fullName = ref<string>("");
// const position = ref<string>("");
const receivedate = ref<Date | null>();
const returndate = ref<Date | null>();
const reason = ref<string>("");
@ -147,7 +146,7 @@ const fetchData = async () => {
await http
.get(config.API.insigniaManageBorrowById(props.profileId))
.then(async (response: any) => {
console.log(response.data.result);
console.log(response);
})
.catch((err) => {
messageError($q, err);
@ -208,7 +207,6 @@ const searchcardid = async () => {
);
if (node) {
console.log("node", node);
fullName.value = `${node.prefix} ${node.fullName}`;
brand.value = node.requestInsignia;
insigniaNoteProfileId.value = node.id;

View file

@ -30,8 +30,8 @@ const loadView = ref<boolean>(false);
onMounted(async () => {
await fecthRound();
// await fecthInsigniaType();
});
//
const fecthRound = async () => {
showLoader();
await http
@ -74,7 +74,7 @@ const fecthRound = async () => {
hideLoader();
});
};
//
const fecthInsignia = async () => {
await http
.get(config.API.insignia)
@ -91,7 +91,7 @@ const fecthInsignia = async () => {
);
});
};
// Tab
const fecthInsigniaType = async () => {
await http(config.API.insigniaType)
.then(async (res) => {
@ -153,7 +153,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "ชื่อ - สกุล",
label: "ชื่อ - นามสกุล",
field: "name",
sortable: true,
sort: (a: string, b: string) =>
@ -334,6 +334,7 @@ const selectorRound = async (round: number) => {
roundYear.value = round;
await fecthlistInsignia();
};
//
const fecthlistInsignia = async () => {
showLoader();
await http
@ -559,7 +560,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
<div v-if="props.col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
<div
v-else-if="
props.col.name == 'action' && props.row.returnDate == '-'
@ -574,8 +575,12 @@ const paginationLabel = (start: number, end: number, total: number) => {
</q-td>
</div>
<div v-else-if="props.col.name == 'returnOrganization'">
{{ props.row.returnOrganization == null? '-': props.row.returnOrganization}}
</div>
{{
props.row.returnOrganization == null
? "-"
: props.row.returnOrganization
}}
</div>
<div v-else>
{{ props.value }}
</div>