fix bug => บันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-31 10:23:41 +07:00
parent a65c29625a
commit 4e368241aa
3 changed files with 4 additions and 10 deletions

View file

@ -109,6 +109,7 @@ interface DataRecord {
prefix: string; prefix: string;
position: string; position: string;
status: string; status: string;
statusMain: string;
dateReceive: string | Date | null; dateReceive: string | Date | null;
name: string; name: string;
type: string; type: string;

View file

@ -84,8 +84,6 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
* @param data * @param data
*/ */
async function fetchlistinsignia(data: ResponseRecordLists[]) { async function fetchlistinsignia(data: ResponseRecordLists[]) {
console.log(data);
rows.value = []; rows.value = [];
const alllist = await data.map((e: ResponseRecordLists) => ({ const alllist = await data.map((e: ResponseRecordLists) => ({
id: e.id, id: e.id,
@ -93,6 +91,7 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
prefix: e.prefix, prefix: e.prefix,
position: e.position, position: e.position,
status: status(e.status) ?? "", status: status(e.status) ?? "",
statusMain: e.status,
dateReceive: date2Thai(e.dateReceive), dateReceive: date2Thai(e.dateReceive),
name: e.fullName, name: e.fullName,
type: `${e.requestInsignia} (${ type: `${e.requestInsignia} (${

View file

@ -69,12 +69,6 @@ const dataModal = ref<DataPerson>(); //ช้อมูลที่ต้อง
const filterRef = ref<QInput>(); const filterRef = ref<QInput>();
const filter = ref<string>(""); const filter = ref<string>("");
const columns = ref<QTableProps["columns"]>([ const columns = ref<QTableProps["columns"]>([
// {
// name: "action",
// align: "left",
// label: "",
// field: "",
// },
{ {
name: "no", name: "no",
align: "left", align: "left",
@ -229,7 +223,6 @@ const visibleColumns = ref<String[]>([
"dateReceive", "dateReceive",
"date", "date",
"employeeType", "employeeType",
" ",
"section", "section",
"page", "page",
"number", "number",
@ -909,7 +902,8 @@ onMounted(() => {
<q-btn <q-btn
v-if=" v-if="
checkPermission($route)?.attrIsGet && checkPermission($route)?.attrIsGet &&
checkPermission($route)?.attrIsUpdate checkPermission($route)?.attrIsUpdate &&
props.row.statusMain === 'DONE'
" "
flat flat
round round