qk-pc-ui 3.2.0 → 3.2.1

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 CHANGED
@@ -17574,7 +17574,17 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17574
17574
  const t = e, a = r, n = reactive({ IsVisible: !1, PicUrl: "" }), i = ref([]), s = computed({
17575
17575
  get: () => t.headPic ? "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadHeadPic" : "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFile"
17576
17576
  });
17577
- onMounted(() => {
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}`,
@@ -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.response.data;
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-aaf587cf"]]), _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 = {
17724
+ }, byUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e9fb7a0e"]]), _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 = {
@@ -17875,7 +17885,8 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
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.1000da.com.cn/ApiHandler.ashx?Action=UploadFileBase64", {
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
- m.HeadPortrait = await d("bmp", m.HeadPortrait);
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";
@@ -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(() => t.modelValue, (_) => {
19123
- n.value = _.split("|");
19124
- }), onMounted(() => {
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-f4b59806"]]), _sfc_main$2 = {
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: {