fix ออกคำสั่ง ในส่วนของรายชื่อผู้ได้รับคำสั่ง เฉพาะคำสั่งบรรจุ แต่งตั้ง แสดงตำแหน่งที่บรรจุเพิ่ม

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-28 13:30:12 +07:00
parent 6faef6b050
commit 81cb8eebce
21 changed files with 153 additions and 29 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, watch } from "vue";
import { ref, watch, computed } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
@ -174,6 +174,22 @@ const visibleColumns = ref<String[]>([
const modalCommand = ref<boolean>(false); //
const dataMapToSend = computed(() => {
return selected.value.map((i: any) => ({
id: i.id,
profileId: i.profileId,
prefix: i.prefix,
firstName: i.firstName,
lastName: i.lastName,
citizenId: i.citizenId,
rootId: i.rootId,
remarkVertical: i.reason,
position: i.position,
posType: i.posType,
posLevel: i.posLevel ? i.posLevel.toString() : "",
}));
});
/** ฟังก์ชันยืนยันการส่งออกคำสั่ง*/
function onClickSendOrder() {
if (selected.value.length == 0) {
@ -337,7 +353,7 @@ watch(
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="'C-PM-21'"
:persons="selected"
:persons="dataMapToSend"
/>
</template>