疏文產生

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
@@ -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);