forked from verdnatura/salix-front
feat: handle dates
This commit is contained in:
parent
32d11edb2f
commit
e23a30c693
|
@ -122,6 +122,7 @@ watch(
|
||||||
:no-focus="true"
|
:no-focus="true"
|
||||||
>
|
>
|
||||||
<QDate
|
<QDate
|
||||||
|
v-bind="{ ...$attrs }"
|
||||||
v-model="popupDate"
|
v-model="popupDate"
|
||||||
:today-btn="true"
|
:today-btn="true"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
|
|
|
@ -520,15 +520,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
style="max-width: 125px"
|
style="max-width: 125px"
|
||||||
:show-event="false"
|
:show-event="false"
|
||||||
v-model="props.row.started"
|
v-model="props.row.started"
|
||||||
v-on="getRowUpdateInputEvents(props, false, 'date')"
|
:options="(date) => date < props.row.ended"
|
||||||
v-bind="
|
|
||||||
isBigger(props.row.started)
|
|
||||||
? {
|
|
||||||
'bg-color': 'warning',
|
|
||||||
'is-outlined': true,
|
|
||||||
}
|
|
||||||
: {}
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
|
@ -538,15 +530,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
style="max-width: 125px"
|
style="max-width: 125px"
|
||||||
:show-event="false"
|
:show-event="false"
|
||||||
v-model="props.row.ended"
|
v-model="props.row.ended"
|
||||||
v-on="getRowUpdateInputEvents(props, false, 'date')"
|
:options="(date) => date > props.row.ended"
|
||||||
v-bind="
|
|
||||||
isLower(props.row.started)
|
|
||||||
? {
|
|
||||||
'bg-color': 'warning',
|
|
||||||
'is-outlined': true,
|
|
||||||
}
|
|
||||||
: {}
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue