fix form leave
This commit is contained in:
parent
8be5a28594
commit
f039dc5e8d
3 changed files with 56 additions and 5 deletions
|
|
@ -161,6 +161,8 @@ const leaveDocumentList = ref<any>();
|
|||
const leaveDraftDocument = ref<string>();
|
||||
const statusCheck = ref<string>("");
|
||||
watch(props.data, () => {
|
||||
console.log(props.data);
|
||||
|
||||
if (props.data) {
|
||||
formDataRehabilitation.leaveWrote = props.data.leaveWrote;
|
||||
formDataRehabilitation.leaveStartDate = new Date(props.data.leaveStartDate);
|
||||
|
|
@ -321,6 +323,19 @@ onMounted(() => {
|
|||
</template>
|
||||
</datepicker>
|
||||
|
||||
<q-input
|
||||
class="col-12 col-md-4 col-sm-12"
|
||||
dense
|
||||
outlined
|
||||
readonly
|
||||
hide-bottom-space
|
||||
bg-color="white"
|
||||
ref="coupleDayTotalHistoryRef"
|
||||
for="coupleDayTotalHistoryRef"
|
||||
v-model="formDataRehabilitation.leaveTotal"
|
||||
label="เป็นเวลา"
|
||||
/>
|
||||
|
||||
<q-input
|
||||
v-model="formDataRehabilitation.leaveDetail"
|
||||
:readonly="!edit || statusCheck === 'NEW'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue