增加信眾牌位範本及疏文

This commit is contained in:
2026-08-25 17:52:36 +08:00
parent a8d3990784
commit fa1ed1f827
14 changed files with 943 additions and 375 deletions
+36 -20
View File
@@ -2,6 +2,7 @@
<%@ Register Src="~/admin/_uc/alert.ascx" TagPrefix="uc1" TagName="alert" %>
<asp:Content ID="Content1" ContentPlaceHolderID="page_header" runat="Server">
<script src="/js/httpVueLoader.js"></script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="footer_script" runat="Server">
<script>
@@ -72,11 +73,11 @@
$('#L1').text(data.cDate)
$('#L2').text(data.sign)
} else {
console.log(data.msg);
//console.log(data.msg);
}
});
}
console.log(_date);
// console.log(_date);
}
function checkNumber(btn) {
$('#errormsg').hide();
@@ -98,7 +99,7 @@
if (data.isOk) {
} else {
console.log(data.msg);
//console.log(data.msg);
$('#errormsg').text(data.msg);
$('#errormsg').show();
}
@@ -159,7 +160,7 @@
],
selected: {},
select(item, index, t) {
console.log("select search1", t);
//console.log("select search1", t);
}
},
search2: {
@@ -215,7 +216,7 @@
],
selected: {},
select(item, index, t) {
console.log("select search3", t);
//console.log("select search3", t);
}
},
search4: {
@@ -231,7 +232,7 @@
],
selected: {},
select(item, index, t) {
console.log("select search4", t);
//console.log("select search4", t);
//edit item
item.appellation_id_selected.text = t.title //=====?
item.appellation_id_selected.val = t.num //=====?
@@ -255,7 +256,7 @@
],
selected: {},
select(item, index, t) {
console.log("select search5", t);
//console.log("select search5", t);
}
},
@@ -547,7 +548,8 @@
{ text: '酉時 (17:00~19:00)', value: '酉時' },
{ text: '戌時 (19:00~21:00)', value: '戌時' },
{ text: '亥時 (21:00~23:00)', value: '亥時' }
]
],
currentView: 'shuwen-component',
}
},
mounted() {
@@ -566,7 +568,7 @@
handler() {
//console.log("watch1", this.search_dialog, this.search_dialog.page);
this.search_get()
console.log("watch2", this.search_dialog, this.search_dialog.page);
//console.log("watch2", this.search_dialog, this.search_dialog.page);
},
deep: true,
},
@@ -602,6 +604,9 @@
color: 'error'
}
},
components: {
'shuwen-component': httpVueLoader('./tablet_template.vue'),
},
methods: {
initAutoEnroll() {
if (this.follower_id != '') {
@@ -743,7 +748,7 @@
this.confirm_dialog.pendingDeleteItem = null; // 清空暫存
})
.catch(error => {
console.log("刪除失敗", error);
//console.log("刪除失敗", error);
this.snackbar.text = "刪除失敗:" + error;
this.snackbar.show = true;
})
@@ -915,13 +920,13 @@
}
})
.catch(error => {
console.log("刪除訂單失敗", error);
//console.log("刪除訂單失敗", error);
this.snackbar.text = "刪除訂單失敗:" + error;
this.snackbar.show = true;
})
},
search_show(curr) {
console.log("btn_click:", curr, curr.api_url);
//console.log("btn_click:", curr, curr.api_url);
this.search_dialog.current = curr;
this.search_clear()
//this.search_get()//清除完自動會重抓, 故取消
@@ -961,14 +966,14 @@
}
// }
console.log("search_get", api_url, search, params, this.options);
//console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true
axios.post(api_url, search, { params: params })
.then(response => {
this.search_dialog.list = response.data.list
this.search_dialog.count = response.data.count
this.search_dialog.loading = false
console.log(this.search_dialog.list)
//console.log(this.search_dialog.list)
})
.catch(error => {
console.log(error)
@@ -1079,7 +1084,7 @@
axios
.post(HTTP_HOST + 'api/follower/familyDelete', pro_order_detail)
.then(response => {
console.log("del", item);
// console.log("del", item);
this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1;
})
@@ -1354,7 +1359,7 @@
axios
.delete(HTTP_HOST + 'api/follower/tabletDelete/' + item.num)
.then(response => {
console.log("del", item);
//console.log("del", item);
this.tabletTable.desserts.splice(index, 1)
this.tabletTable.desserts_count = this.tabletTable.desserts_count - 1;
})
@@ -1388,7 +1393,7 @@
})
},
getFamilyMembers() {
console.log("getFamilyMembers", this.follower_id);
// console.log("getFamilyMembers", this.follower_id);
if (this.follower_id) {
this.family.loading = true;
// 假設您有一個 API 端點來獲取特定 follower 的 family members
@@ -1400,7 +1405,7 @@
birthdate: member.birthdate ? member.birthdate.split('T')[0] : null
}));
this.family.members_count = response.data.length;
console.log("family.members", this.family.members);
//console.log("family.members", this.family.members);
})
.catch(error => {
console.error("Error fetching family members:", error);
@@ -1435,7 +1440,7 @@
//this.editedItem = $.extend(true, {}, this.defaultItem);
},
fam_save(item) {
console.log("fam_save 1:", this.family.edItem);
//console.log("fam_save 1:", this.family.edItem);
// 驗證必填欄位 - 只有姓名必填
if (!this.family.edItem.fam_name || this.family.edItem.fam_name.trim() === '') {
@@ -1458,7 +1463,7 @@
savePromise
.then(response => {
console.log("fam_save 2: Server response", response);
//console.log("fam_save 2: Server response", response);
//const updatedMember = fam_item;
const updatedMember = { ...fam_item, num: response.data.num };
@@ -1766,6 +1771,9 @@
<button class="nav-link" id="sec2-tab5" data-bs-toggle="tab" data-bs-target="#sec2-page5"
type="button" role="tab" aria-controls="profile" aria-selected="false">
全年報名 </button>
<button class="nav-link" id="sec2-tab6" data-bs-toggle="tab" data-bs-target="#sec2-page6"
type="button" role="tab" aria-controls="profile" aria-selected="false">
牌位範本 </button>
</div>
</nav>
</div>
@@ -2488,6 +2496,14 @@
</v-card>
</div>
<div class="tab-pane fade" id="sec2-page6" role="tabpanel" aria-labelledby="sec2-tab6" >
<v-card class="mx-auto" outlined v-if="follower_id!=''">
<keep-alive>
<component :is="currentView" >
</component>
</keep-alive>
</v-card>
</div>
</div>
</asp:Panel>