แก้ รายการรับโอน (ไม่เสร็จดี)

This commit is contained in:
STW_TTTY\stwtt 2024-05-01 18:11:11 +07:00
parent 77ae7e5bed
commit ce1622d4aa
3 changed files with 608 additions and 53 deletions

View file

@ -18,6 +18,7 @@ import type {
ResponseRow,
} from "@/modules/05_placement/interface/response/Receive";
const dataRows = ref<any[]>([]);
const $q = useQuasar();
const router = useRouter();
const rows2 = ref<ResponseRow[]>([]);
@ -203,6 +204,9 @@ const fecthlistRecevice = async () => {
organizationShortName: e.organizationShortName,
positionNumber: e.positionNumber,
positionPath: e.positionPath,
positionLevelId: e.positionLevelId,
positionTypeId: e.positionTypeId,
positionId: e.positionId,
birthday:
e.dateOfBirth == null
? "-"
@ -254,10 +258,11 @@ const clickCloseUpload = () => {
files.value = null;
};
//
const openModalTree = (id: string) => {
const openModalTree = (id: string,data:any) => {
personalId.value = id;
personal.value = listRecevice.value.filter((e: ResponseData) => e.id === id);
modalTree.value = true;
dataRows.value = data
};
//
const openUpload = (id: string) => {
@ -479,7 +484,7 @@ onMounted(() => {
<q-item
clickable
v-close-popup
@click="openModalTree(props.row.personalId)"
@click="openModalTree(props.row.personalId,props.row)"
:disable="
props.row.status == 'REPORT' ||
props.row.status == 'DONE'
@ -627,6 +632,8 @@ onMounted(() => {
:close="closeModalTree"
:personal="personal"
:personalId="personalId"
:dataRows="dataRows"
/>
</template>
<style scoped lang="scss"></style>