qk-pc-ui 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/qk-pc-ui.mjs +30 -57
- package/dist/qk-pc-ui.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -99,11 +99,6 @@ var set_cp = function(e) {
|
|
|
99
99
|
function reset_cp() {
|
|
100
100
|
set_cp(1200), reset_ansi();
|
|
101
101
|
}
|
|
102
|
-
function utf16beread(e) {
|
|
103
|
-
for (var r = [], t = 0; t < e.length >> 1; ++t)
|
|
104
|
-
r[t] = String.fromCharCode(e.charCodeAt(2 * t + 1) + (e.charCodeAt(2 * t) << 8));
|
|
105
|
-
return r.join("");
|
|
106
|
-
}
|
|
107
102
|
var _getchar = function(r) {
|
|
108
103
|
return String.fromCharCode(r);
|
|
109
104
|
}, _getansi = function(r) {
|
|
@@ -2483,9 +2478,7 @@ function evert_arr(e) {
|
|
|
2483
2478
|
}
|
|
2484
2479
|
var basedate = /* @__PURE__ */ new Date(1899, 11, 30, 0, 0, 0);
|
|
2485
2480
|
function datenum(e, r) {
|
|
2486
|
-
var t = /* @__PURE__ */ e.getTime();
|
|
2487
|
-
r && (t -= 1462 * 24 * 60 * 60 * 1e3);
|
|
2488
|
-
var a = /* @__PURE__ */ basedate.getTime() + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ basedate.getTimezoneOffset()) * 6e4;
|
|
2481
|
+
var t = /* @__PURE__ */ e.getTime(), a = /* @__PURE__ */ basedate.getTime() + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ basedate.getTimezoneOffset()) * 6e4;
|
|
2489
2482
|
return (t - a) / (24 * 60 * 60 * 1e3);
|
|
2490
2483
|
}
|
|
2491
2484
|
var refdate = /* @__PURE__ */ new Date(), dnthresh = /* @__PURE__ */ basedate.getTime() + (/* @__PURE__ */ refdate.getTimezoneOffset() - /* @__PURE__ */ basedate.getTimezoneOffset()) * 6e4, refoffset = /* @__PURE__ */ refdate.getTimezoneOffset();
|
|
@@ -2508,23 +2501,10 @@ function parseDate(e, r) {
|
|
|
2508
2501
|
return e.indexOf("Z") > -1 && (i = new Date(i.getTime() - i.getTimezoneOffset() * 60 * 1e3)), i;
|
|
2509
2502
|
}
|
|
2510
2503
|
function cc2str(e, r) {
|
|
2511
|
-
if (has_buf && Buffer.isBuffer(e))
|
|
2512
|
-
if (r) {
|
|
2513
|
-
if (e[0] == 255 && e[1] == 254)
|
|
2514
|
-
return utf8write(e.slice(2).toString("utf16le"));
|
|
2515
|
-
if (e[1] == 254 && e[2] == 255)
|
|
2516
|
-
return utf8write(utf16beread(e.slice(2).toString("binary")));
|
|
2517
|
-
}
|
|
2504
|
+
if (has_buf && Buffer.isBuffer(e))
|
|
2518
2505
|
return e.toString("binary");
|
|
2519
|
-
}
|
|
2520
2506
|
if (typeof TextDecoder < "u")
|
|
2521
2507
|
try {
|
|
2522
|
-
if (r) {
|
|
2523
|
-
if (e[0] == 255 && e[1] == 254)
|
|
2524
|
-
return utf8write(new TextDecoder("utf-16le").decode(e.slice(2)));
|
|
2525
|
-
if (e[0] == 254 && e[1] == 255)
|
|
2526
|
-
return utf8write(new TextDecoder("utf-16be").decode(e.slice(2)));
|
|
2527
|
-
}
|
|
2528
2508
|
var t = {
|
|
2529
2509
|
"€": "",
|
|
2530
2510
|
"‚": "",
|
|
@@ -2758,7 +2738,7 @@ function write_vt(e, r) {
|
|
|
2758
2738
|
switch (typeof e) {
|
|
2759
2739
|
case "string":
|
|
2760
2740
|
var t = writextag("vt:lpwstr", escapexml(e));
|
|
2761
|
-
return
|
|
2741
|
+
return t = t.replace(/"/g, "_x0022_"), t;
|
|
2762
2742
|
case "number":
|
|
2763
2743
|
return writextag((e | 0) == e ? "vt:i4" : "vt:r8", escapexml(String(e)));
|
|
2764
2744
|
case "boolean":
|
|
@@ -3271,7 +3251,7 @@ function parse_StrRun(e) {
|
|
|
3271
3251
|
return { ich: e.read_shift(2), ifnt: e.read_shift(2) };
|
|
3272
3252
|
}
|
|
3273
3253
|
function write_StrRun(e, r) {
|
|
3274
|
-
return r || (r = new_buf(4)), r.write_shift(2,
|
|
3254
|
+
return r || (r = new_buf(4)), r.write_shift(2, 0), r.write_shift(2, 0), r;
|
|
3275
3255
|
}
|
|
3276
3256
|
function parse_RichStr(e, r) {
|
|
3277
3257
|
var t = e.l, a = e.read_shift(1), n = parse_XLWideString(e), i = [], s = { t: n, h: n };
|
|
@@ -3952,7 +3932,7 @@ function add_rels(e, r, t, a, n, i) {
|
|
|
3952
3932
|
if (n || (n = {}), e["!id"] || (e["!id"] = {}), e["!idx"] || (e["!idx"] = 1), r < 0)
|
|
3953
3933
|
for (r = e["!idx"]; e["!id"]["rId" + r]; ++r)
|
|
3954
3934
|
;
|
|
3955
|
-
if (e["!idx"] = r + 1, n.Id = "rId" + r, n.Type = a, n.Target = t,
|
|
3935
|
+
if (e["!idx"] = r + 1, n.Id = "rId" + r, n.Type = a, n.Target = t, [RELS.HLINK, RELS.XPATH, RELS.XMISS].indexOf(n.Type) > -1 && (n.TargetMode = "External"), e["!id"][n.Id])
|
|
3956
3936
|
throw new Error("Cannot rewrite rId " + r);
|
|
3957
3937
|
return e["!id"][n.Id] = n, e[("/" + n.Target).replace("//", "/")] = n, r;
|
|
3958
3938
|
}
|
|
@@ -4086,7 +4066,7 @@ function write_cust_props(e) {
|
|
|
4086
4066
|
return r.join("");
|
|
4087
4067
|
var t = 1;
|
|
4088
4068
|
return keys(e).forEach(function(n) {
|
|
4089
|
-
++t, r[r.length] = writextag("property", write_vt(e[n]
|
|
4069
|
+
++t, r[r.length] = writextag("property", write_vt(e[n]), {
|
|
4090
4070
|
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
4091
4071
|
pid: t,
|
|
4092
4072
|
name: escapexml(n)
|
|
@@ -4472,7 +4452,7 @@ function write_XF(e, r, t, a) {
|
|
|
4472
4452
|
}
|
|
4473
4453
|
function write_Guts(e) {
|
|
4474
4454
|
var r = new_buf(8);
|
|
4475
|
-
return r.write_shift(4, 0), r.write_shift(2,
|
|
4455
|
+
return r.write_shift(4, 0), r.write_shift(2, 0), r.write_shift(2, 0), r;
|
|
4476
4456
|
}
|
|
4477
4457
|
function write_BoolErr(e, r, t, a, n, i) {
|
|
4478
4458
|
var s = new_buf(8);
|
|
@@ -6924,7 +6904,7 @@ function parse_BrtBeginEsmdb(e) {
|
|
|
6924
6904
|
}
|
|
6925
6905
|
function write_BrtBeginEsmdb(e, r) {
|
|
6926
6906
|
var t = new_buf(8);
|
|
6927
|
-
return t.write_shift(4, e), t.write_shift(4,
|
|
6907
|
+
return t.write_shift(4, e), t.write_shift(4, 1), t;
|
|
6928
6908
|
}
|
|
6929
6909
|
function write_xlmeta_bin() {
|
|
6930
6910
|
var e = buf_array();
|
|
@@ -6932,7 +6912,7 @@ function write_xlmeta_bin() {
|
|
|
6932
6912
|
name: "XLDAPR",
|
|
6933
6913
|
version: 12e4,
|
|
6934
6914
|
flags: 3496657072
|
|
6935
|
-
})), write_record(e, 336), write_record(e, 339, write_BrtBeginEsfmd(1, "XLDAPR")), write_record(e, 52), write_record(e, 35, write_UInt32LE(514)), write_record(e, 4096, write_UInt32LE(0)), write_record(e, 4097, writeuint16(1)), write_record(e, 36), write_record(e, 53), write_record(e, 340), write_record(e, 337, write_BrtBeginEsmdb(1
|
|
6915
|
+
})), write_record(e, 336), write_record(e, 339, write_BrtBeginEsfmd(1, "XLDAPR")), write_record(e, 52), write_record(e, 35, write_UInt32LE(514)), write_record(e, 4096, write_UInt32LE(0)), write_record(e, 4097, writeuint16(1)), write_record(e, 36), write_record(e, 53), write_record(e, 340), write_record(e, 337, write_BrtBeginEsmdb(1)), write_record(e, 51, write_BrtMdb([[1, 0]])), write_record(e, 338), write_record(e, 333), e.end();
|
|
6936
6916
|
}
|
|
6937
6917
|
function write_xlmeta_xml() {
|
|
6938
6918
|
var e = [XML_HEADER];
|
|
@@ -7159,7 +7139,7 @@ function parseread1(e) {
|
|
|
7159
7139
|
e.l += 1;
|
|
7160
7140
|
}
|
|
7161
7141
|
function parse_ColRelU(e, r) {
|
|
7162
|
-
var t = e.read_shift(
|
|
7142
|
+
var t = e.read_shift(2);
|
|
7163
7143
|
return [t & 16383, t >> 14 & 1, t >> 15 & 1];
|
|
7164
7144
|
}
|
|
7165
7145
|
function parse_RgceArea(e, r, t) {
|
|
@@ -7169,27 +7149,27 @@ function parse_RgceArea(e, r, t) {
|
|
|
7169
7149
|
return parse_RgceArea_BIFF2(e);
|
|
7170
7150
|
t.biff == 12 && (a = 4);
|
|
7171
7151
|
}
|
|
7172
|
-
var n = e.read_shift(a), i = e.read_shift(a), s = parse_ColRelU(e
|
|
7152
|
+
var n = e.read_shift(a), i = e.read_shift(a), s = parse_ColRelU(e), l = parse_ColRelU(e);
|
|
7173
7153
|
return { s: { r: n, c: s[0], cRel: s[1], rRel: s[2] }, e: { r: i, c: l[0], cRel: l[1], rRel: l[2] } };
|
|
7174
7154
|
}
|
|
7175
7155
|
function parse_RgceArea_BIFF2(e) {
|
|
7176
|
-
var r = parse_ColRelU(e
|
|
7156
|
+
var r = parse_ColRelU(e), t = parse_ColRelU(e), a = e.read_shift(1), n = e.read_shift(1);
|
|
7177
7157
|
return { s: { r: r[0], c: a, cRel: r[1], rRel: r[2] }, e: { r: t[0], c: n, cRel: t[1], rRel: t[2] } };
|
|
7178
7158
|
}
|
|
7179
7159
|
function parse_RgceAreaRel(e, r, t) {
|
|
7180
7160
|
if (t.biff < 8)
|
|
7181
7161
|
return parse_RgceArea_BIFF2(e);
|
|
7182
|
-
var a = e.read_shift(t.biff == 12 ? 4 : 2), n = e.read_shift(t.biff == 12 ? 4 : 2), i = parse_ColRelU(e
|
|
7162
|
+
var a = e.read_shift(t.biff == 12 ? 4 : 2), n = e.read_shift(t.biff == 12 ? 4 : 2), i = parse_ColRelU(e), s = parse_ColRelU(e);
|
|
7183
7163
|
return { s: { r: a, c: i[0], cRel: i[1], rRel: i[2] }, e: { r: n, c: s[0], cRel: s[1], rRel: s[2] } };
|
|
7184
7164
|
}
|
|
7185
7165
|
function parse_RgceLoc(e, r, t) {
|
|
7186
7166
|
if (t && t.biff >= 2 && t.biff <= 5)
|
|
7187
7167
|
return parse_RgceLoc_BIFF2(e);
|
|
7188
|
-
var a = e.read_shift(t && t.biff == 12 ? 4 : 2), n = parse_ColRelU(e
|
|
7168
|
+
var a = e.read_shift(t && t.biff == 12 ? 4 : 2), n = parse_ColRelU(e);
|
|
7189
7169
|
return { r: a, c: n[0], cRel: n[1], rRel: n[2] };
|
|
7190
7170
|
}
|
|
7191
7171
|
function parse_RgceLoc_BIFF2(e) {
|
|
7192
|
-
var r = parse_ColRelU(e
|
|
7172
|
+
var r = parse_ColRelU(e), t = e.read_shift(1);
|
|
7193
7173
|
return { r: r[0], c: t, cRel: r[1], rRel: r[2] };
|
|
7194
7174
|
}
|
|
7195
7175
|
function parse_RgceElfLoc(e) {
|
|
@@ -9316,7 +9296,7 @@ function col_obj_w(e, r) {
|
|
|
9316
9296
|
function default_margins(e, r) {
|
|
9317
9297
|
if (e) {
|
|
9318
9298
|
var t = [0.7, 0.7, 0.75, 0.75, 0.3, 0.3];
|
|
9319
|
-
|
|
9299
|
+
e.left == null && (e.left = t[0]), e.right == null && (e.right = t[1]), e.top == null && (e.top = t[2]), e.bottom == null && (e.bottom = t[3]), e.header == null && (e.header = t[4]), e.footer == null && (e.footer = t[5]);
|
|
9320
9300
|
}
|
|
9321
9301
|
}
|
|
9322
9302
|
function get_cell_style(e, r, t) {
|
|
@@ -10027,18 +10007,12 @@ function safe1904(e) {
|
|
|
10027
10007
|
}
|
|
10028
10008
|
var badchars = /* @__PURE__ */ "][*?/\\".split("");
|
|
10029
10009
|
function check_ws_name(e, r) {
|
|
10030
|
-
if (e.length > 31)
|
|
10031
|
-
if (r)
|
|
10032
|
-
return !1;
|
|
10010
|
+
if (e.length > 31)
|
|
10033
10011
|
throw new Error("Sheet names cannot exceed 31 chars");
|
|
10034
|
-
}
|
|
10035
10012
|
var t = !0;
|
|
10036
10013
|
return badchars.forEach(function(a) {
|
|
10037
|
-
if (e.indexOf(a) != -1)
|
|
10038
|
-
|
|
10039
|
-
throw new Error("Sheet name cannot contain : \\ / ? * [ ]");
|
|
10040
|
-
t = !1;
|
|
10041
|
-
}
|
|
10014
|
+
if (e.indexOf(a) != -1)
|
|
10015
|
+
throw new Error("Sheet name cannot contain : \\ / ? * [ ]");
|
|
10042
10016
|
}), t;
|
|
10043
10017
|
}
|
|
10044
10018
|
function check_wb_names(e, r, t) {
|
|
@@ -14491,7 +14465,7 @@ function write_biff_rec(e, r, t, a) {
|
|
|
14491
14465
|
}
|
|
14492
14466
|
}
|
|
14493
14467
|
function write_biff_continue(e, r, t, a) {
|
|
14494
|
-
var n =
|
|
14468
|
+
var n = (t || []).length || 0;
|
|
14495
14469
|
if (n <= 8224)
|
|
14496
14470
|
return write_biff_rec(e, r, t, n);
|
|
14497
14471
|
var i = r;
|
|
@@ -14643,7 +14617,7 @@ function write_ws_biff8(e, r, t) {
|
|
|
14643
14617
|
throw new Error("Range " + (i["!ref"] || "A1") + " exceeds format limit A1:IV16384");
|
|
14644
14618
|
h.e.c = Math.min(h.e.c, 255), h.e.r = Math.min(h.e.c, p - 1);
|
|
14645
14619
|
}
|
|
14646
|
-
write_biff_rec(a, 2057, write_BOF(t, 16, r)), write_biff_rec(a, 13, writeuint16(1)), write_biff_rec(a, 12, writeuint16(100)), write_biff_rec(a, 15, writebool(!0)), write_biff_rec(a, 17, writebool(!1)), write_biff_rec(a, 16, write_Xnum(1e-3)), write_biff_rec(a, 95, writebool(!0)), write_biff_rec(a, 42, writebool(!1)), write_biff_rec(a, 43, writebool(!1)), write_biff_rec(a, 130, writeuint16(1)), write_biff_rec(a, 128, write_Guts(
|
|
14620
|
+
write_biff_rec(a, 2057, write_BOF(t, 16, r)), write_biff_rec(a, 13, writeuint16(1)), write_biff_rec(a, 12, writeuint16(100)), write_biff_rec(a, 15, writebool(!0)), write_biff_rec(a, 17, writebool(!1)), write_biff_rec(a, 16, write_Xnum(1e-3)), write_biff_rec(a, 95, writebool(!0)), write_biff_rec(a, 42, writebool(!1)), write_biff_rec(a, 43, writebool(!1)), write_biff_rec(a, 130, writeuint16(1)), write_biff_rec(a, 128, write_Guts()), write_biff_rec(a, 131, writebool(!1)), write_biff_rec(a, 132, writebool(!1)), f && write_ws_cols_biff8(a, i["!cols"]), write_biff_rec(a, 512, write_Dimensions(h, r)), f && (i["!links"] = []);
|
|
14647
14621
|
for (var u = h.s.r; u <= h.e.r; ++u) {
|
|
14648
14622
|
_ = encode_row(u);
|
|
14649
14623
|
for (var m = h.s.c; m <= h.e.c; ++m) {
|
|
@@ -15783,7 +15757,7 @@ function resolve_book_type(e) {
|
|
|
15783
15757
|
}
|
|
15784
15758
|
}
|
|
15785
15759
|
function writeFileSync(e, r, t) {
|
|
15786
|
-
var a =
|
|
15760
|
+
var a = {};
|
|
15787
15761
|
return a.type = "file", a.file = r, resolve_book_type(a), writeSync(e, a);
|
|
15788
15762
|
}
|
|
15789
15763
|
function make_json_row(e, r, t, a, n, i, s, l) {
|
|
@@ -17130,7 +17104,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17130
17104
|
},
|
|
17131
17105
|
powerId: { type: [String, Number], default: "0" },
|
|
17132
17106
|
handArray: { type: Function, default: (e) => e },
|
|
17133
|
-
tabName: { type: String, default:
|
|
17107
|
+
tabName: { type: String, default: "数据" },
|
|
17134
17108
|
url: { type: String, default: "" },
|
|
17135
17109
|
loadData: { type: Boolean, default: !0 },
|
|
17136
17110
|
toolWidth: { type: String, default: "120" },
|
|
@@ -17168,7 +17142,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17168
17142
|
TitleArray: [l.tabName],
|
|
17169
17143
|
FootArray: [L("打单日期") + `:${(/* @__PURE__ */ new Date()).ToString("yyyy-MM-dd HH:mm:ss")}`]
|
|
17170
17144
|
};
|
|
17171
|
-
return l.printOption.TitleArray && l.printOption.TitleArray.length > 0 && l.printOption.TitleArray.forEach((C) => m.TitleArray.push(C)), l.printOption.FootArray && l.printOption.FootArray.length > 0 && l.printOption.FootArray.forEach((C) => m.FootArray.push(C)), console.log(m), m;
|
|
17145
|
+
return l.printOption.TitleArray && l.printOption.TitleArray.length > 0 && l.printOption.TitleArray.forEach((C) => m.TitleArray.push(C)), l.printOption.FootArray && l.printOption.FootArray.length > 0 && l.printOption.FootArray.forEach((C) => m.FootArray.push(C)), setTimeout(() => console.log(l.tabName), 1e3), console.log(m), m;
|
|
17172
17146
|
}
|
|
17173
17147
|
}), c = t, _ = ref([]), d = computed({
|
|
17174
17148
|
get: () => {
|
|
@@ -17287,7 +17261,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17287
17261
|
}, null, 8, ["data", "tabName", "toolWidth", "columnArray", "commandArray", "printOption"]))
|
|
17288
17262
|
]));
|
|
17289
17263
|
}
|
|
17290
|
-
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
17264
|
+
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d79d6dfc"]]), _sfc_main$g = {
|
|
17291
17265
|
__name: "byDatePicker",
|
|
17292
17266
|
props: {
|
|
17293
17267
|
BeginTime: { type: [String, void 0], default: "" },
|
|
@@ -18948,19 +18922,18 @@ const SafeCall$1 = async (e, r) => {
|
|
|
18948
18922
|
},
|
|
18949
18923
|
emits: ["command"],
|
|
18950
18924
|
setup(e, { emit: r }) {
|
|
18951
|
-
const t = e, a = ref("")
|
|
18952
|
-
var n = {};
|
|
18953
|
-
const i = ref([]), s = ref(""), l = ref(!1), o = r, f = (h, p) => {
|
|
18925
|
+
const t = e, a = ref(""), n = ref({}), i = ref([]), s = ref(""), l = ref(!1), o = r, f = (h, p) => {
|
|
18954
18926
|
o("command", h, a.value, p);
|
|
18955
18927
|
}, c = async () => {
|
|
18956
18928
|
l.value = !1, await Sleep(10);
|
|
18957
18929
|
let h = t.reportArray.FirstOrDefault((p) => p.Name == a.value);
|
|
18958
18930
|
i.value = h.ColumnArray, s.value = h.Url, l.value = !0;
|
|
18959
|
-
}, _ = computed(
|
|
18931
|
+
}, _ = computed({
|
|
18932
|
+
get: () => `${n.value.OrganName}${a.value}`
|
|
18960
18933
|
}), d = computed({
|
|
18961
18934
|
get: () => {
|
|
18962
18935
|
var h = {
|
|
18963
|
-
FootArray: [`${L("制单人")}:${n.NickName}`],
|
|
18936
|
+
FootArray: [`${L("制单人")}:${n.value.NickName}`],
|
|
18964
18937
|
TitleArray: [`${t.searchParam.BeginTime} - ${t.searchParam.EndTime}`]
|
|
18965
18938
|
};
|
|
18966
18939
|
return h;
|
|
@@ -18969,7 +18942,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
18969
18942
|
return onMounted(() => {
|
|
18970
18943
|
nextTick(() => {
|
|
18971
18944
|
t.reportArray.length > 0 && (a.value = t.reportArray[0].Name), c();
|
|
18972
|
-
}), n = JSON.parse(localStorage.getItem("ManagerInfo"));
|
|
18945
|
+
}), n.value = JSON.parse(localStorage.getItem("ManagerInfo"));
|
|
18973
18946
|
}), (h, p) => l.value ? (openBlock(), createBlock(reportIndex, {
|
|
18974
18947
|
key: 0,
|
|
18975
18948
|
url: s.value,
|