refactor(placement): hide positionDate input when typeCommand is MOVE
This commit is contained in:
parent
bad9bd3adf
commit
ebf34aa0c2
2 changed files with 7 additions and 2 deletions
|
|
@ -45,6 +45,7 @@ const date = ref<Date | null>(null); //ดำรงตำแหน่งใน
|
|||
const reason = ref<string>(""); //หมายเหตุ
|
||||
const status = ref<string>("");
|
||||
const fullName = ref<string>("");
|
||||
const typeCommand = ref<string>(""); //ประเภทคำสั่ง
|
||||
|
||||
/** fetch รายละเอียดการแต่งตั้ง-เลื่อน-ย้าย*/
|
||||
async function fecthappointmentByid() {
|
||||
|
|
@ -61,6 +62,7 @@ async function fecthappointmentByid() {
|
|||
}`;
|
||||
|
||||
status.value = data.status;
|
||||
typeCommand.value = data.typeCommand;
|
||||
educationOld.value = data.educationOld ?? "-";
|
||||
organizationPositionOld.value = data.organizationPositionOld;
|
||||
positionTypeOld.value = data.positionTypeOld;
|
||||
|
|
@ -313,7 +315,10 @@ onMounted(() => {
|
|||
</div>
|
||||
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<div class="col-xs-6 col-sm-6 row items-center">
|
||||
<div
|
||||
class="col-xs-6 col-sm-6 row items-center"
|
||||
v-if="typeCommand !== 'MOVE'"
|
||||
>
|
||||
<div class="col-12">
|
||||
<datepicker
|
||||
:readonly="!edit"
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ async function fecthlistappointment() {
|
|||
e.positionTypeOld &&
|
||||
e.positionLevelOld &&
|
||||
e.positionNumberOld &&
|
||||
e.positionDate
|
||||
(e.typeCommand === "MOVE" || e.positionDate)
|
||||
);
|
||||
rows2.value = listData;
|
||||
rows2Data.value = listData;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue