qk-pc-ui 3.2.0 → 3.2.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 +34 -17
- package/dist/qk-pc-ui.umd.js +18 -18
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -17481,7 +17481,7 @@ class appendix extends BtnMenu {
|
|
|
17481
17481
|
this.isInputEventBindFun = !0;
|
|
17482
17482
|
let t = this;
|
|
17483
17483
|
r.addEventListener("change", function() {
|
|
17484
|
-
let a = "http://npic.
|
|
17484
|
+
let a = "http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64", n = {
|
|
17485
17485
|
method: "post",
|
|
17486
17486
|
responseType: "json",
|
|
17487
17487
|
headers: {
|
|
@@ -17525,7 +17525,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17525
17525
|
setup(e, { emit: r }) {
|
|
17526
17526
|
E.registerMenu("appendix", appendix);
|
|
17527
17527
|
const t = ref(null), a = ref(), n = e, i = r, s = (l, o) => {
|
|
17528
|
-
let f = "http://npic.
|
|
17528
|
+
let f = "http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64", c = {
|
|
17529
17529
|
method: "post",
|
|
17530
17530
|
responseType: "json",
|
|
17531
17531
|
headers: {
|
|
@@ -17572,9 +17572,19 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17572
17572
|
emits: ["update:modelValue", "change"],
|
|
17573
17573
|
setup(e, { emit: r }) {
|
|
17574
17574
|
const t = e, a = r, n = reactive({ IsVisible: !1, PicUrl: "" }), i = ref([]), s = computed({
|
|
17575
|
-
get: () => t.headPic ? "http://npic.
|
|
17575
|
+
get: () => t.headPic ? "http://npic.ip239.com/ApiHandler.ashx?Action=UploadHeadPic" : "http://npic.ip239.com/ApiHandler.ashx?Action=UploadFile"
|
|
17576
17576
|
});
|
|
17577
|
-
|
|
17577
|
+
watch(
|
|
17578
|
+
() => t.modelValue,
|
|
17579
|
+
(h) => {
|
|
17580
|
+
typeof h == "object" && (i.value = [], h.forEach((p, u) => {
|
|
17581
|
+
i.value.push({
|
|
17582
|
+
name: `图${u}`,
|
|
17583
|
+
url: p
|
|
17584
|
+
});
|
|
17585
|
+
}));
|
|
17586
|
+
}
|
|
17587
|
+
), onMounted(() => {
|
|
17578
17588
|
typeof t.modelValue == "object" && t.modelValue.forEach((h, p) => {
|
|
17579
17589
|
i.value.push({
|
|
17580
17590
|
name: `图${p}`,
|
|
@@ -17584,8 +17594,8 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17584
17594
|
});
|
|
17585
17595
|
const l = async () => {
|
|
17586
17596
|
try {
|
|
17587
|
-
let h = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures"), p = "http://npic.
|
|
17588
|
-
t.headPic && (p = "http://npic.
|
|
17597
|
+
let h = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures"), p = "http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64";
|
|
17598
|
+
t.headPic && (p = "http://npic.ip239.com/ApiHandler.ashx?Action=UploadHeadPicBase64");
|
|
17589
17599
|
let u = await AjaxCallWeb(p, {
|
|
17590
17600
|
FileData: h.PicData,
|
|
17591
17601
|
FileName: "头像.jpg",
|
|
@@ -17599,7 +17609,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17599
17609
|
ElMessage.error(p);
|
|
17600
17610
|
}
|
|
17601
17611
|
}, o = (h, p) => {
|
|
17602
|
-
let u = h.
|
|
17612
|
+
let u = h.url;
|
|
17603
17613
|
a(
|
|
17604
17614
|
"update:modelValue",
|
|
17605
17615
|
t.modelValue.filter((m) => m != u)
|
|
@@ -17711,7 +17721,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17711
17721
|
], 64))
|
|
17712
17722
|
]));
|
|
17713
17723
|
}
|
|
17714
|
-
}, byUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
17724
|
+
}, byUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f0d9c897"]]), _hoisted_1$8 = { style: { height: "680px" } }, _hoisted_2$5 = { style: { "text-align": "center", padding: "20px 0", "font-size": "20px" } }, _hoisted_3$4 = { style: { "text-align": "center" } }, _hoisted_4$4 = {
|
|
17715
17725
|
class: "qrCodeWrap",
|
|
17716
17726
|
ref: "qrCodeWrap"
|
|
17717
17727
|
}, _hoisted_5$4 = { class: "qrWrap" }, _hoisted_6$4 = {
|
|
@@ -17870,12 +17880,13 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17870
17880
|
}, _hoisted_4$3 = {
|
|
17871
17881
|
key: 0,
|
|
17872
17882
|
style: { width: "130px", height: "160px" },
|
|
17873
|
-
src: "http://saas.
|
|
17883
|
+
src: "http://saas.ip239.com/images/缺省证件.jpg"
|
|
17874
17884
|
}, _hoisted_5$3 = ["src"], _hoisted_6$3 = { width: "420" }, _hoisted_7$3 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "姓 名:", -1), _hoisted_8$3 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "性 别:", -1), _hoisted_9$3 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "手机号:", -1), _hoisted_10$2 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "证件类型:", -1), _hoisted_11$2 = { colspan: "2" }, _hoisted_12$2 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "户籍地址:", -1), _hoisted_13$2 = { colspan: "2" }, _hoisted_14$2 = /* @__PURE__ */ createElementVNode("span", { style: { width: "80px", display: "inline-block" } }, "证件号:", -1), _hoisted_15$2 = { style: { "text-align": "center", "margin-top": "20px" } }, _sfc_main$a = {
|
|
17875
17885
|
__name: "IdentityInput",
|
|
17876
17886
|
props: {
|
|
17877
17887
|
modelValue: { type: Boolean, default: !1 },
|
|
17878
|
-
cardType: { type: [String, Number], default: "0" }
|
|
17888
|
+
cardType: { type: [String, Number], default: "0" },
|
|
17889
|
+
upload: { type: Boolean, default: !0 }
|
|
17879
17890
|
},
|
|
17880
17891
|
emits: ["update:modelValue", "success", "update:cardType"],
|
|
17881
17892
|
setup(e, { emit: r }) {
|
|
@@ -17910,7 +17921,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17910
17921
|
for (let m in a)
|
|
17911
17922
|
u[m] = a[m];
|
|
17912
17923
|
o("update:modelValue", !1), setTimeout(() => o("success", u), 300);
|
|
17913
|
-
}, d = (u, m) => AjaxCallWeb("http://npic.
|
|
17924
|
+
}, d = (u, m) => AjaxCallWeb("http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64", {
|
|
17914
17925
|
FileType: u,
|
|
17915
17926
|
FileData: m
|
|
17916
17927
|
}), h = async () => {
|
|
@@ -17930,7 +17941,10 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17930
17941
|
n = () => LocalApi("/CancelReadIidentityCard");
|
|
17931
17942
|
try {
|
|
17932
17943
|
let m = await LocalApi("/ReadIdentityCard", { MaxSecord: s.value * 1e3 });
|
|
17933
|
-
|
|
17944
|
+
try {
|
|
17945
|
+
t.upload ? m.HeadPortrait = await d("bmp", m.HeadPortrait) : m.HeadPortrait = "data:image/png;base64" + m.HeadPortrait;
|
|
17946
|
+
} catch {
|
|
17947
|
+
}
|
|
17934
17948
|
for (var u in m)
|
|
17935
17949
|
a[u] = m[u];
|
|
17936
17950
|
a.EndDate = a.EndDate.replace("T", " ").ToDateTime().ToString("yyyy-MM-dd"), a.Sex = a.Sex == "男" ? "1" : "0";
|
|
@@ -19098,7 +19112,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
19098
19112
|
}, 8, ["modelValue"])
|
|
19099
19113
|
]));
|
|
19100
19114
|
}
|
|
19101
|
-
}, bySelectIco = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
19115
|
+
}, bySelectIco = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-5c41495a"]]), _hoisted_1 = { class: "mytag" }, _sfc_main$3 = {
|
|
19102
19116
|
__name: "byInputTags",
|
|
19103
19117
|
props: {
|
|
19104
19118
|
modelValue: { type: String, default: "" },
|
|
@@ -19119,9 +19133,12 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
19119
19133
|
}, c = (_) => {
|
|
19120
19134
|
n.value = n.value.filter((d) => d != _), a("update:modelValue", n.value.join("|")), a("change");
|
|
19121
19135
|
};
|
|
19122
|
-
return watch(
|
|
19123
|
-
|
|
19124
|
-
|
|
19136
|
+
return watch(
|
|
19137
|
+
() => t.modelValue,
|
|
19138
|
+
(_) => {
|
|
19139
|
+
_ ? n.value = _.split("|") : n.value = [];
|
|
19140
|
+
}
|
|
19141
|
+
), onMounted(() => {
|
|
19125
19142
|
try {
|
|
19126
19143
|
t.modelValue != "" ? n.value = t.modelValue.split("|") : n.value = [];
|
|
19127
19144
|
} catch {
|
|
@@ -19160,7 +19177,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
19160
19177
|
})
|
|
19161
19178
|
], 64));
|
|
19162
19179
|
}
|
|
19163
|
-
}, byInputTags = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
19180
|
+
}, byInputTags = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6948a9f8"]]), _sfc_main$2 = {
|
|
19164
19181
|
__name: "SummaryReport",
|
|
19165
19182
|
props: {
|
|
19166
19183
|
searchParam: {
|