qk-pc-ui 2.8.7 → 2.8.9

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
@@ -17468,7 +17468,7 @@ const SafeCall$1 = async (e, r) => {
17468
17468
  isImage: { type: Boolean, default: !1 },
17469
17469
  headPic: { type: Boolean, default: !1 }
17470
17470
  },
17471
- emits: ["update:modelValue"],
17471
+ emits: ["update:modelValue", "change"],
17472
17472
  setup(e, { emit: r }) {
17473
17473
  const t = e, a = r, n = reactive({ IsVisible: !1, PicUrl: "" }), i = ref([]), s = computed({
17474
17474
  get: () => t.headPic ? "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadHeadPic" : "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFile"
@@ -17490,7 +17490,7 @@ const SafeCall$1 = async (e, r) => {
17490
17490
  FileName: "头像.jpg",
17491
17491
  FileType: "jpg"
17492
17492
  });
17493
- a("update:modelValue", u);
17493
+ a("update:modelValue", u), a("change");
17494
17494
  } catch (h) {
17495
17495
  let x = h.resultcontent || h.message;
17496
17496
  if (x == "取消")
@@ -17502,9 +17502,9 @@ const SafeCall$1 = async (e, r) => {
17502
17502
  a(
17503
17503
  "update:modelValue",
17504
17504
  t.modelValue.filter((p) => p != u)
17505
- );
17505
+ ), a("change");
17506
17506
  }, f = () => {
17507
- a("update:modelValue", "");
17507
+ a("update:modelValue", ""), a("change");
17508
17508
  }, c = (h) => h.indexOf(".jpg") >= 0 || h.indexOf(".png") >= 0 || h.indexOf(".bmp") >= 0 || t.isImage, d = (h, x, u) => {
17509
17509
  if (h.resultcode != "200")
17510
17510
  return ElMessage.error(L("文件上传失败") + ":" + h.resultcontent);
@@ -17513,6 +17513,7 @@ const SafeCall$1 = async (e, r) => {
17513
17513
  a("update:modelValue", p);
17514
17514
  } else
17515
17515
  a("update:modelValue", h.data);
17516
+ a("change");
17516
17517
  }, _ = (h) => !0;
17517
17518
  return (h, x) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
17518
17519
  t.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -17609,7 +17610,7 @@ const SafeCall$1 = async (e, r) => {
17609
17610
  ], 64))
17610
17611
  ]));
17611
17612
  }
17612
- }, byUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b1c1000f"]]), _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 = {
17613
+ }, 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 = {
17613
17614
  class: "qrCodeWrap",
17614
17615
  ref: "qrCodeWrap"
17615
17616
  }, _hoisted_5$4 = { class: "qrWrap" }, _hoisted_6$4 = {
@@ -18433,7 +18434,7 @@ const SafeCall$1 = async (e, r) => {
18433
18434
  }
18434
18435
  staticData.isConfirm = !1;
18435
18436
  }
18436
- }, _withScopeId = (e) => (pushScopeId("data-v-acf08f48"), e = e(), popScopeId(), e), _hoisted_1$2 = { style: { height: "calc(100% - 40px)", "overflow-y": "auto" } }, _hoisted_2$1 = { style: { width: "100%", "font-size": "1.2em" } }, _hoisted_3$1 = { class: "tlab" }, _hoisted_4$1 = { class: "tlab" }, _hoisted_5$1 = { style: { color: "crimson", "text-decoration": "line-through" } }, _hoisted_6$1 = { style: { color: "#1a9f17", "font-size": "1.3em" } }, _hoisted_7$1 = {
18437
+ }, _withScopeId = (e) => (pushScopeId("data-v-71aed43e"), e = e(), popScopeId(), e), _hoisted_1$2 = { style: { height: "calc(100% - 40px)", "overflow-y": "auto" } }, _hoisted_2$1 = { style: { width: "100%", "font-size": "1.2em" } }, _hoisted_3$1 = { class: "tlab" }, _hoisted_4$1 = { class: "tlab" }, _hoisted_5$1 = { style: { color: "crimson", "text-decoration": "line-through" } }, _hoisted_6$1 = { style: { color: "#1a9f17", "font-size": "1.3em" } }, _hoisted_7$1 = {
18437
18438
  key: 1,
18438
18439
  style: { color: "crimson" }
18439
18440
  }, _hoisted_8$1 = { class: "tlab" }, _hoisted_9$1 = { key: 0 }, _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "描述:", -1)), _hoisted_11 = { key: 1 }, _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "优惠金额:", -1)), _hoisted_13 = { key: 2 }, _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "营销员:", -1)), _hoisted_15 = { class: "tlab" }, _hoisted_16 = { key: 3 }, _hoisted_17 = { class: "tlab" }, _hoisted_18 = { class: "tlab" }, _hoisted_19 = { class: "tlab" }, _hoisted_20 = { class: "tlab" }, _hoisted_21 = { class: "tlab" }, _hoisted_22 = { key: 6 }, _hoisted_23 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "备注:", -1)), _hoisted_24 = { style: { color: "#808080", "font-size": "14px" } }, _hoisted_25 = { style: { "text-align": "center" } }, _sfc_main$5 = {
@@ -18502,7 +18503,7 @@ const SafeCall$1 = async (e, r) => {
18502
18503
  () => t.modelValue,
18503
18504
  (u) => {
18504
18505
  u ? (o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.Remarks = "", o.Telephone = "", o.MakreterTel = "", o.IsConfirming = !1, setTimeout(() => {
18505
- t.memberInfo.Id && (o.GetMethod = "会员收款", o.Telephone = t.memberInfo.Telephone, f());
18506
+ t.memberInfo && t.memberInfo.Id && (o.GetMethod = "会员收款", o.Telephone = t.memberInfo.Telephone, f());
18506
18507
  }, 100), c(o.GetMethod)) : (o.timerId != null && (clearInterval(o.timerId), o.timerId = null), o.loading != null && (o.loading.close(), o.loading = null));
18507
18508
  }
18508
18509
  );
@@ -18535,7 +18536,7 @@ const SafeCall$1 = async (e, r) => {
18535
18536
  let u = o.GetMethod;
18536
18537
  u.endsWith("收款") || (u = u + "收款");
18537
18538
  let p = `${u} : ${((t.orderInfo.SumPrice - o.RebateAmount) / 100).toFixed(2)}元`;
18538
- ElMessage({ message: p, type: "success" }), PlayTTS(p), t.orderInfo.Status = 1, a("update:modelValue", !1), setTimeout(() => a("paySuccess", t.orderInfo), 300);
18539
+ ElMessage({ message: p, type: "success" }), o.isPlayVoice == "1" && PlayTTS(p), t.orderInfo.Status = 1, a("update:modelValue", !1), setTimeout(() => a("paySuccess", t.orderInfo), 300);
18539
18540
  },
18540
18541
  Cancel: () => {
18541
18542
  a("update:modelValue", !1), ElMessageBox.alert("付款中断!用户输入付款码错误或者取消了付款");
@@ -18814,6 +18815,7 @@ const SafeCall$1 = async (e, r) => {
18814
18815
  _: 1
18815
18816
  }),
18816
18817
  createVNode(unref(ElSwitch), {
18818
+ style: { "margin-left": "10px" },
18817
18819
  modelValue: o.isPlayVoice,
18818
18820
  "onUpdate:modelValue": p[9] || (p[9] = (C) => o.isPlayVoice = C),
18819
18821
  class: "ml-2",
@@ -18827,7 +18829,7 @@ const SafeCall$1 = async (e, r) => {
18827
18829
  _: 1
18828
18830
  }, 8, ["modelValue"]));
18829
18831
  }
18830
- }, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-acf08f48"]]), _hoisted_1$1 = { name: "selectIco" }, _hoisted_2 = { style: { padding: "5px", float: "left", border: "1px solid #e2e2e2", overflow: "hidden" } }, _hoisted_3 = {
18832
+ }, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-71aed43e"]]), _hoisted_1$1 = { name: "selectIco" }, _hoisted_2 = { style: { padding: "5px", float: "left", border: "1px solid #e2e2e2", overflow: "hidden" } }, _hoisted_3 = {
18831
18833
  class: "icon",
18832
18834
  "aria-hidden": "true",
18833
18835
  style: { "font-size": "60px" }