1
ผู้ทดลองปฏิบัติหน้าที่ราชการ
@@ -1329,7 +1400,7 @@ onMounted(async () => {
{
{
:options="OPchairmanFn"
option-label="label"
class="col-xs-12 col-sm-8"
- :readonly="isEdit != true"
+ readonly
dense
borderless
outlined
v-model="chairman"
label="ประธานกรรมการ"
- :rules="[(val:string) => !!val || 'กรุณาเลือก ประธานกรรมการ']"
use-input
behavior="menu"
- @filter="filterFnChairman"
bg-color="white"
>
@@ -2939,16 +3008,14 @@ onMounted(async () => {
option-value="id"
option-label="label"
class="col-xs-12 col-sm-8"
- :readonly="!isEdit && routeName !== 'probationWorkAdd'"
+ readonly
dense
borderless
outlined
v-model="chairman"
- :rules="[(val:string) => !!val || 'กรุณาเลือก ประธานกรรมการ']"
label="ประธานกรรมการ"
use-input
behavior="menu"
- @filter="filterFnChairman"
bg-color="white"
>
@@ -3014,7 +3081,7 @@ onMounted(async () => {
.q-item span {
white-space: normal;
display: -webkit-box;
- // -webkit-line-clamp: 2;
+ // -webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
diff --git a/src/modules/05_placement/components/probation/MainAppoint.vue b/src/modules/05_placement/components/probation/MainAppoint.vue
index 03ceb932e..658c5efd6 100644
--- a/src/modules/05_placement/components/probation/MainAppoint.vue
+++ b/src/modules/05_placement/components/probation/MainAppoint.vue
@@ -9,6 +9,7 @@ import { useCounterMixin } from "@/stores/mixin";
import { checkPermission } from "@/utils/permissions";
import type { AppointMainRows } from "@/modules/05_placement/interface/request/Main";
+import DialogOrder from "@/modules/05_placement/components/probation/DialogOrder/DialogSendToCommand.vue";
const $q = useQuasar(); //ใช้ noti quasar
const mixin = useCounterMixin();
@@ -16,7 +17,11 @@ const { dialogRemove, showLoader, hideLoader, messageError, success } = mixin;
const router = useRouter();
const rows = ref([]);
+const rowsOrder = ref([]);
+
const filterKeyword = ref("");
+const filterKeywordOrder = ref("");
+const modalOrder = ref(false);
const total = ref(0);
const totalList = ref(1);
@@ -137,6 +142,17 @@ function convertText(val: string) {
}
}
+function onSendOrder() {
+ modalOrder.value = true;
+ rowsOrder.value = rows.value.filter(
+ (item: AppointMainRows) => item.status == "PENDING"
+ );
+}
+
+function closeModal() {
+ modalOrder.value = false;
+ rowsOrder.value = [];
+}
watch(
() => pagination.value.rowsPerPage,
async () => {
@@ -149,13 +165,26 @@ onMounted(async () => {
});
-
+
-
+
+
diff --git a/src/modules/05_placement/components/probation/MainTabs.vue b/src/modules/05_placement/components/probation/MainTabs.vue
index 9d8419fe6..a01807171 100644
--- a/src/modules/05_placement/components/probation/MainTabs.vue
+++ b/src/modules/05_placement/components/probation/MainTabs.vue
@@ -40,7 +40,7 @@ const tabsManu = ref
([
-
+
diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts
index 74cb94cb5..8466a3d72 100644
--- a/src/modules/05_placement/interface/index/Main.ts
+++ b/src/modules/05_placement/interface/index/Main.ts
@@ -341,6 +341,25 @@ interface PersonData {
id: string;
}
+interface AppointTopic {
+ id: string;
+ appointId: string;
+ profileId: string;
+ name: string;
+ position: string;
+ positionType: string;
+ positionLevel: string;
+ role: string;
+}
+
+interface AppointTopicMain {
+ id: string;
+ profileId: string;
+ topic: string;
+ commandNo: string;
+ status: string;
+ directors: AppointTopic[];
+}
export type {
DataOption,
DataOptionInsignia,
@@ -367,6 +386,8 @@ export type {
ListMenu,
DataEducation,
PersonData,
+ AppointTopic,
+ AppointTopicMain
};
export { AddressDataDefualt, FamilyDataDefualt };
diff --git a/src/modules/18_command/components/DialogCreateCommand.vue b/src/modules/18_command/components/DialogCreateCommand.vue
index bd8bb3aac..f1b58822d 100644
--- a/src/modules/18_command/components/DialogCreateCommand.vue
+++ b/src/modules/18_command/components/DialogCreateCommand.vue
@@ -30,6 +30,10 @@ const modal = defineModel("modal", { required: true });
const props = defineProps({
commandTypeCode: String, // ไอดีประเภทคำสั่ง
persons: Array, // ไอดีคนที่เลือกออกคำสั่งส่งมาเป็น array
+ notPerson: {
+ type: Boolean,
+ default: false,
+ },
});
const commandOp = ref([]); // ประเภทคำสั่ง
@@ -166,9 +170,10 @@ function createCommand(isRedirect: boolean) {
commandYear: commandYear.value,
commandNo: commandNo.value,
commandTypeId: commandType.value,
- persons: data,
+ persons: !props.notPerson ? data : [],
};
+ console.log(body);
await http
.post(config.API.command + `/person`, body)
.then(async (res) => {
@@ -263,6 +268,7 @@ async function fetchCommandType() {
(v: ListCommand) => v.code == props.commandTypeCode
);
commandType.value = commandOp.value[0].id;
+ console.log("🚀 ~ fetchCommandType ~ commandType.value:", commandType.value)
}
/**