ปรับ input edit date
This commit is contained in:
parent
b7ff33b40f
commit
8eca4d1650
5 changed files with 61 additions and 62 deletions
|
|
@ -340,6 +340,13 @@ function changeFormData() {
|
|||
isSave.value = props.data != null ?? true;
|
||||
}
|
||||
|
||||
function inputEdit(val:boolean){
|
||||
return {
|
||||
"full-width cursor-pointer ": val,
|
||||
"full-width cursor-pointer inputgreen": !val,
|
||||
};
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
mainStore.rowsAdd = [];
|
||||
getListChannel();
|
||||
|
|
@ -624,10 +631,9 @@ onMounted(() => {
|
|||
ref="dateReceivedRef"
|
||||
outlined
|
||||
dense
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
:class="inputEdit(isReadonly)"
|
||||
:readonly="isReadonly"
|
||||
hide-bottom-space
|
||||
class="full-width datepicker"
|
||||
:model-value="
|
||||
formData.dateReceived != null
|
||||
? date2Thai(formData.dateReceived)
|
||||
|
|
@ -701,9 +707,8 @@ onMounted(() => {
|
|||
for="inputDateconsideration"
|
||||
ref="dateConsiderationRef"
|
||||
outlined
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
:class="inputEdit(isReadonly)"
|
||||
dense
|
||||
class="full-width datepicker"
|
||||
:model-value="
|
||||
formData.dateConsideration != null
|
||||
? date2Thai(formData.dateConsideration)
|
||||
|
|
@ -774,11 +779,10 @@ onMounted(() => {
|
|||
for="inputDatewarn"
|
||||
ref="dateNotificationRef"
|
||||
outlined
|
||||
:input-style="isReadonly ? { color: 'black' }:{color:'teal'}"
|
||||
:class="inputEdit(isReadonly)"
|
||||
dense
|
||||
:readonly="isReadonly"
|
||||
hide-bottom-space
|
||||
class="full-width datepicker"
|
||||
:model-value="
|
||||
formData.dateNotification != null
|
||||
? date2Thai(formData.dateNotification)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue