เพิ่มส่งเเนวตั้ง เเนวนอน

This commit is contained in:
setthawutttty 2024-11-05 14:04:53 +07:00
parent b39dbd1ba2
commit 0c473e14c3
10 changed files with 121 additions and 18 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 { useCounterMixin } from "@/stores/mixin";
@ -27,6 +27,18 @@ const props = defineProps({
const modalCommand = ref<boolean>(false); //- modal
//Table
const selected = ref<ResponseData[]>([]); //
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,
remarkVertical: i.reason,
}));
});
const filter = ref<string>(""); //
const visibleColumns2 = ref<string[]>([
"no",
@ -188,7 +200,6 @@ watch(
</q-toolbar>
</div>
</div>
<d-table
:columns="columns2"
:rows="rows"
@ -255,6 +266,6 @@ watch(
<DialogCreateCommand
v-model:modal="modalCommand"
command-type-code="C-PM-13"
:persons="selected"
:persons="dataMapToSend"
/>
</template>