疏文產生

This commit is contained in:
2026-07-14 17:59:45 +08:00
parent fbfa8dd361
commit 681d5293a6
4 changed files with 346 additions and 22 deletions
+4 -4
View File
@@ -17,8 +17,8 @@
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="content" class="container-md">
<button type="button" @click.prevent="getShuwen()">消災疏文</button>
<button type="button">超薦疏文</button>
<button type="button" @click.prevent="getShuwen('消')">消災疏文</button>
<button type="button" @click.prevent="getShuwen('超')">超薦疏文</button>
<button type="button">齋條</button>
<button type="button">燈條</button>
<button type="button">供僧</button>
@@ -169,10 +169,10 @@
}
},
methods: {
getShuwen() {
getShuwen(mode) {
let curr = this.search_dialog.current;
let target = $(`[data-search-control=${curr.id}]`)
let searchData = { activity_num: target.children("input:hidden").val() }
let searchData = { activity_num: target.children("input:hidden").val(),mode:mode }
axios
.post(HTTP_HOST + 'api/orderdetail/GetShuwenData', searchData)
.then(response => {
@@ -216,8 +216,8 @@
{ name: "超薦2", path: "../../../admin/print/html/tablet-1B_new.svg" },
{ name: "消災1", path: "../../../admin/print/html/tablet-2.svg" },
{ name: "消災2", path: "../../../admin/print/html/tablet-2B.svg" },
{ name: "消災3", path: "../../admin/print/html/tablet-2C.svg" },
{ name: "消災4", path: "../../admin/print/html/tablet-2D.svg" }
{ name: "消災3", path: "../../../admin/print/html/tablet-2C.svg" },
{ name: "消災4", path: "../../../admin/print/html/tablet-2D.svg" }
],
async init() {
// 載入常用片語
@@ -239,6 +239,7 @@
this.defaultStyle = response.data.data.defaultStyle;
this.selected.style = response.data.data.defaultStyle;
this.selectStyle.style = response.data.data.defaultStyle;
console.log("GetActItem:",this.defaultStyle)
$("#styleSel").val(this.defaultStyle);
//this.getStyle();
@@ -333,11 +334,12 @@
if (response.status == 200) {
self.printData = response.data;
self.printData.forEach(x => {
console.log("GetDetailToPrint:",x.style);
if (x.style != null && x.style != undefined) {
self.selectStyle.style = x.style;
self.selected.style = x.style;
self.defaultStyle = x.style;
$("#styleSel").val(x.style)
//$("#styleSel").val(x.style)
}
if (x.f_num_tablet != "") {
let tablet = JSON.parse(x.f_num_tablet);