UI ส่งไปออกคำสั่งโครงสร้างอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-30 13:30:45 +07:00
parent d5e49b474a
commit af90e36918
4 changed files with 314 additions and 12 deletions

View file

@ -83,11 +83,11 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
{
name: "commandExcecuteDate",
name: "commandAffectDate",
align: "left",
label: "วันที่ลงนาม",
sortable: false,
field: "commandExcecuteDate",
field: "commandAffectDate",
format(val) {
return val ? date2Thai(val) : "-";
},
@ -95,11 +95,11 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
{
name: "commandAffectDate",
name: "commandExcecuteDate",
align: "left",
label: "วันที่คำสั่งมีผล",
sortable: false,
field: "commandAffectDate",
field: "commandExcecuteDate",
format(val) {
return val ? date2Thai(val) : "-";
},
@ -523,7 +523,9 @@ watch(
<q-btn
label="บันทึกและเลือกรายชื่อต่อ"
@click="() => onSubmit(false)"
:disable="selected.length == 0 && commandType == ''"
:disable="
selectCreate == 'NEW' ? commandType == '' : selected.length == 0
"
color="blue"
>
<q-tooltip>นทกและเลอกรายชอต</q-tooltip>
@ -531,7 +533,9 @@ watch(
<q-btn
label="บันทึกและไปยังหน้าคำสั่ง"
@click="() => onSubmit(true)"
:disable="selected.length == 0 && commandType == ''"
:disable="
selectCreate == 'NEW' ? commandType == '' : selected.length == 0
"
color="public"
>
<q-tooltip>นทกและไปยงหนาคำส</q-tooltip>