This commit is contained in:
2026-07-27 18:22:22 +08:00
parent d823cedd3c
commit 35a0be701b
9 changed files with 66 additions and 9 deletions
+37 -2
View File
@@ -110,7 +110,7 @@
transition="scale-transition"
offset-y
min-width="auto"
:disabled="mode=='view'||mode=='edit'">
:disabled="mode=='view'">
<template v-slot:activator="{ on, attrs }">
<v-text-field v-model="newDetail.receipt_date"
prepend-icon="mdi-calendar"
@@ -164,7 +164,42 @@
<v-text-field v-model="d.amt" label="金額" :disabled="mode=='view'"></v-text-field>
</div>
<div class="col-12 col-md-2">
<v-text-field v-model="d.receipt_date" label="開立日期" :disabled="mode=='view'||mode=='edit'"></v-text-field>
<!-- <v-text-field v-model="d.receipt_date" label="開立日期" :disabled="mode=='view'"></v-text-field>-->
<v-menu ref="menu"
v-model="menu"
:close-on-content-click="false"
:return-value.sync="d.receipt_date"
transition="scale-transition"
offset-y
min-width="auto"
:disabled="mode=='view'">
<template v-slot:activator="{ on, attrs }">
<v-text-field v-model="d.receipt_date"
prepend-icon="mdi-calendar"
readonly
label="開立日期"
v-bind="attrs"
v-on="on"></v-text-field>
</template>
<v-date-picker v-model="d.receipt_date"
:active-picker.sync="activePicker"
:max="(new Date(Date.now() - (new Date()).getTimezoneOffset() * 60000)).toISOString().substring(0, 10)"
min="1950-01-01">
<v-spacer></v-spacer>
<v-btn text
color="primary"
@click.prevent="menu = false">
Cancel
</v-btn>
<v-btn text
color="primary"
@click.prevent="$refs.menu.save(d.receipt_date)">
OK
</v-btn>
</v-date-picker>
</v-menu>
</div>
<div class="col-12 col-md-6">
<v-text-field v-model="d.receipt_item" label="功德項目" :disabled="mode=='view'"></v-text-field>