功能修正調整

This commit is contained in:
2026-06-22 17:58:04 +08:00
parent 5f3ac3ec7f
commit 5fa147f960
6 changed files with 68 additions and 44 deletions
+2
View File
@@ -363,6 +363,8 @@ public class activityController : ApiController
}).ToList(), x.kind) : "", }).ToList(), x.kind) : "",
startDate_solar = x.startDate_solar, startDate_solar = x.startDate_solar,
endDate_solar = x.endDate_solar, endDate_solar = x.endDate_solar,
startDate = x.startDate_solar?.ToString("yyyy-MM-dd"),
endDate = x.endDate_solar?.ToString("yyyy-MM-dd"),
startDate_lunar = x.startDate_lunar, startDate_lunar = x.startDate_lunar,
endDate_lunar = x.endDate_lunar, endDate_lunar = x.endDate_lunar,
dueDate = x.dueDate, dueDate = x.dueDate,
+1
View File
@@ -565,6 +565,7 @@ public class orderController : ApiController
subject = x.activity_num.HasValue ? x.activity.subject : "", subject = x.activity_num.HasValue ? x.activity.subject : "",
keyin1 = x.keyin1, keyin1 = x.keyin1,
up_time = x.up_time, up_time = x.up_time,
uptime=x.up_time?.ToString("yyyy-MM-dd"),
keyin1_txt = Model.pro_order.keyin1_value_to_text(x.keyin1), keyin1_txt = Model.pro_order.keyin1_value_to_text(x.keyin1),
status = x.activity.activity_check.FirstOrDefault(a => x.activity_num == a.activity_num && x.f_num == a.f_num)?.status ?? 0, status = x.activity.activity_check.FirstOrDefault(a => x.activity_num == a.activity_num && x.f_num == a.f_num)?.status ?? 0,
}), }),
+38 -32
View File
@@ -12,12 +12,12 @@
</v-text-field>--> </v-text-field>-->
<!--</v-col>--> <!--</v-col>-->
<v-col cols="2" md="2"> <v-col cols="12" md="2">
<v-text-field label="法會名稱" v-model="search.subject"> <v-text-field label="法會名稱" v-model="search.subject">
</v-text-field> </v-text-field>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" md="2">
<!--<v-text-field label="開始日期" v-model="search.uptime1"> <!--<v-text-field label="開始日期" v-model="search.uptime1">
</v-text-field>--> </v-text-field>-->
@@ -39,7 +39,7 @@
@input="startmenu = false"></v-date-picker> @input="startmenu = false"></v-date-picker>
</v-menu> </v-menu>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" md="2">
<v-btn @click.prevent="getDefault()">查詢</v-btn> <v-btn @click.prevent="getDefault()">查詢</v-btn>
<v-btn @click.prevent="clearSearch()">清空條件</v-btn> <v-btn @click.prevent="clearSearch()">清空條件</v-btn>
</v-col> </v-col>
@@ -47,33 +47,31 @@
</v-expansion-panel-content> </v-expansion-panel-content>
</v-expansion-panel> </v-expansion-panel>
</v-expansion-panels> </v-expansion-panels>
<v-data-table v-model="data_table.selected" <v-data-table v-model="data_table.selected"
:items="data_table.list" :items="data_table.list"
item-key="order_no" item-key="order_no"
:options.sync="options" :options.sync="options"
:headers="data_table.header" :headers="data_table.header"
:footer-props="data_table.footer" :footer-props="data_table.footer"
:server-items-length="data_table.count" :server-items-length="data_table.count"
:loading="data_table.loading" :loading="data_table.loading"
:single-select="data_table.singleSelect" :single-select="data_table.singleSelect"
hide-default-footer hide-default-footer
:page.sync="data_table.page" :page.sync="data_table.page"
:items-per-page.sync="data_table.pageSize" :items-per-page.sync="data_table.pageSize"
class="elevation-1"> disable-sort
<template #item.up_time="{ item }"> class="elevation-1">
{{ item.up_time|timeString('YYYY/MM/DD') }} <template #item.u_name="{ item }">
</template> <a v-if="item.f_num != null && item.activity_num != null" @click="checkInMsg(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-account-check"></i>報到</a>
<template #item.u_name="{ item }"> {{ item.u_name }}
<a v-if="item.f_num != null && item.activity_num != null" @click="checkInMsg(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-account-check"></i>報到</a> </template>
{{ item.u_name }} <template #item.slot_btn="{ item }">
</template> <a @click="gotoSignup(item)" class="btn btn-outline-secondary btn-sm">報名</a>
<template #item.slot_btn="{ item }"> <a @click="gotoBatchSignup(item)" class="btn btn-outline-secondary btn-sm">批次報名</a>
<a @click="gotoSignup(item)" class="btn btn-outline-secondary btn-sm">報名</a> <a @click="gotoSignupList(item)" class="btn btn-outline-secondary btn-sm">明細</a>
<a @click="gotoBatchSignup(item)" class="btn btn-outline-secondary btn-sm">批次報名</a>
<a @click="gotoSignupList(item)" class="btn btn-outline-secondary btn-sm">明細</a>
</template> </template>
</v-data-table> </v-data-table>
<v-container class="container-fluid"> <v-container class="container-fluid">
<v-row class="align-baseline" wrap> <v-row class="align-baseline" wrap>
<v-col cols="12" md="9"> <v-col cols="12" md="9">
@@ -99,7 +97,6 @@
</template> </template>
<script> <script>
module.exports = { module.exports = {
props: ['formData'], props: ['formData'],
data() { data() {
@@ -121,8 +118,8 @@
header: [ header: [
{ text: '活動分類', value: 'kindsTxt' }, { text: '活動分類', value: 'kindsTxt' },
{ text: '活動名稱', value: 'subject' }, { text: '活動名稱', value: 'subject' },
{ text: '開始日期', value: 'startDate_solar' }, { text: '開始日期', value: 'startDate' },
{ text: '結束日期', value: 'endDate_solar', align: 'start' }, { text: '結束日期', value: 'endDate' },
{ text: '報名人數', value: 'orderCounts' }, { text: '報名人數', value: 'orderCounts' },
{ text: '', value: 'slot_btn', sortable: false, align: 'end' } { text: '', value: 'slot_btn', sortable: false, align: 'end' }
], ],
@@ -192,7 +189,16 @@
deep: true, deep: true,
}, },
}, },
filters: {
timestring(value) {
console.log("timeString:", value)
return "20260102";
//return (value == null || value == "") ? "" : moment(value).format('YYYY-MM-DD');
},
},
methods: { methods: {
initKindList() { initKindList() {
axios axios
//.get(HTTP_HOST + 'api/activity_kind') //.get(HTTP_HOST + 'api/activity_kind')
+19 -10
View File
@@ -8,10 +8,10 @@
<v-expansion-panel-header color="#006fc9" <v-expansion-panel-header color="#006fc9"
class="white--text"> class="white--text">
<v-row> <v-row>
<v-col cols="10" md="10"> <v-col cols="4" sm="4" md="10">
<label>查詢條件</label> <label>查詢條件</label>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="8" sm="8" md="2">
<v-btn @click.prevent='fast_signup' class="ms-auto">快速報名</v-btn> <v-btn @click.prevent='fast_signup' class="ms-auto">快速報名</v-btn>
<v-btn @click.prevent="back01()" class="ms-auto">返回</v-btn> <v-btn @click.prevent="back01()" class="ms-auto">返回</v-btn>
</v-col> </v-col>
@@ -19,27 +19,27 @@
</v-expansion-panel-header> </v-expansion-panel-header>
<v-expansion-panel-content> <v-expansion-panel-content>
<v-row> <v-row>
<v-col cols="2" md="2"> <v-col cols="12" sm="12" md="2">
<v-text-field label="姓名" v-model="search.u_name"> <v-text-field label="姓名" v-model="search.u_name">
</v-text-field> </v-text-field>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" sm="12" md="2">
<v-text-field label="電話" v-model="search.phone"> <v-text-field label="電話" v-model="search.phone">
</v-text-field> </v-text-field>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" sm="12" md="2">
<v-text-field label="行動電話" v-model="search.cellphone"> <v-text-field label="行動電話" v-model="search.cellphone">
</v-text-field> </v-text-field>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" sm="12" md="2">
<v-text-field label="身分證號" v-model="search.id_code"> <v-text-field label="身分證號" v-model="search.id_code">
</v-text-field> </v-text-field>
</v-col> </v-col>
<v-col cols="2" md="2"> <v-col cols="12" sm="12" md="4">
<v-btn @click.prevent="getDetail()">查詢</v-btn> <v-btn @click.prevent="getDetail()">查詢</v-btn>
<v-btn @click.prevent="clearSearch()">清空條件</v-btn> <v-btn @click.prevent="clearSearch()">清空條件</v-btn>
</v-col> </v-col>
@@ -62,11 +62,13 @@
hide-default-footer hide-default-footer
:page.sync="detail_table.page" :page.sync="detail_table.page"
:items-per-page.sync="detail_table.pageSize" :items-per-page.sync="detail_table.pageSize"
disable-sort
class="elevation-1"> class="elevation-1">
<template #item.slot_btn="{ item }"> <template #item.slot_btn="{ item }">
<!--<a :href="'reg.aspx?order_no='+item.order_no" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-pencil-box-outline"></i>修改</a> <!--<a :href="'reg.aspx?order_no='+item.order_no" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-pencil-box-outline"></i>修改</a>
<a @click="$root.currentView='step-three';$root.selected_order=item.order_no" class="btn btn-outline-secondary btn-sm">明細</a> <a @click="$root.currentView='step-three';$root.selected_order=item.order_no" class="btn btn-outline-secondary btn-sm">明細</a>
<a @click="deleteItem(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-trash-can"></i>刪除</a>--> <a @click="deleteItem(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-trash-can"></i>刪除</a>-->
</template> </template>
</v-data-table> </v-data-table>
<v-container> <v-container>
@@ -95,6 +97,7 @@
</template> </template>
<script> <script>
module.exports = { module.exports = {
props: { props: {
num: { num: {
@@ -122,7 +125,7 @@
header: [ header: [
{ text: '單號', value: 'order_no' }, { text: '單號', value: 'order_no' },
{ text: '姓名', value: 'u_name' }, { text: '姓名', value: 'u_name' },
{ text: '報名日期', value: 'up_time' }, { text: '報名日期', value: 'uptime' },
{ text: '單據狀態', value: 'keyin1_txt', align: 'start' }, { text: '單據狀態', value: 'keyin1_txt', align: 'start' },
{ text: '', value: 'slot_btn', sortable: false, align: 'end' } { text: '', value: 'slot_btn', sortable: false, align: 'end' }
], ],
@@ -148,6 +151,12 @@
}, },
}, },
filters: {
timeString(value, myFormat) {
console.log("timeString:", value, myFormat)
return value == null || value == "" ? "" : moment(value).format(myFormat || 'YYYY-MM-DD, HH:mm:ss');
},
},
methods: { methods: {
back01() { back01() {
this.$emit('custom-event', { action: 'signup1', item: this.num }); this.$emit('custom-event', { action: 'signup1', item: this.num });
+6 -1
View File
@@ -423,7 +423,12 @@
// console.log("saveOrder:", x, x.num, x.order_no) // console.log("saveOrder:", x, x.num, x.order_no)
} }
}) })
if (detail.length === 0) {
this.message_dialog.show_confirm = false
this.message_dialog.show = true
this.message_dialog.message = "沒有選擇功德項目,如果無法選擇,請使用一般報名程序"
return false
}
// //
let main = { let main = {
activity_num: this.num, f_num: this.follower.num, activity_num: this.num, f_num: this.follower.num,
+2 -1
View File
@@ -62,7 +62,7 @@
header: [ header: [
{ text: '單號', value: 'order_no' }, { text: '單號', value: 'order_no' },
{ text: '姓名', value: 'u_name' }, { text: '姓名', value: 'u_name' },
{ text: '報名日期', value: 'up_time' }, { text: '報名日期', value: 'uptime' },
{ text: '單據狀態', value: 'keyin1_txt', align: 'start' }, { text: '單據狀態', value: 'keyin1_txt', align: 'start' },
{ text: '', value: 'slot_btn', sortable: false, align: 'end' } { text: '', value: 'slot_btn', sortable: false, align: 'end' }
], ],
@@ -109,6 +109,7 @@
methods: { methods: {
changeView(item) { changeView(item) {
if (item.action === "detail") { if (item.action === "detail") {
console.log("change to fastSignup2")
this.twoData = item.item.num this.twoData = item.item.num
this.currentView = "fastSignUp2-component" this.currentView = "fastSignUp2-component"
} else if (item.action === "add") { } else if (item.action === "add") {