qk-pc-ui 3.1.9 → 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 +39 -22
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, createTextVNode, toDisplayString, computed, createElementVNode, createBlock, createCommentVNode, ref, reactive, watch
|
|
1
|
+
import { openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, createTextVNode, toDisplayString, computed, createElementVNode, createBlock, createCommentVNode, ref, reactive, watch, Fragment, renderList, normalizeClass, normalizeStyle, pushScopeId, popScopeId, useSlots, onMounted, nextTick, onBeforeUnmount, onUnmounted, withDirectives, vModelText, withKeys } from "vue";
|
|
2
2
|
import { ElForm, ElFormItem, ElButton, ElPagination, ElDialog, ElRow, ElSelect, ElOption, ElMessageBox, ElMessage, ElTable, ElTableColumn, ElPopover, ElInput, ElCheckboxGroup, ElCheckbox, ElImage, ElLink, ElDropdown, ElDropdownMenu, ElDropdownItem, ElLoading, ElDatePicker, ElUpload, ElIcon, ElButtonGroup, ElRadioGroup, ElRadioButton, ElSwitch, ElTag, ElTabs, ElTabPane, ElCascader } from "element-plus";
|
|
3
3
|
import { L, Sleep, SaasApi, AndroidApi, GetUrlParam, SystemModuleApi, AjaxCallWeb, LocalApi, GetEnumName, MemberApi, UnRegisterKeyboard, RegisterKeyboard, PlayTTS, InfrastructureApi } from "qk-lib-v3";
|
|
4
4
|
import E from "wangeditor";
|
|
@@ -16186,7 +16186,7 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16186
16186
|
}), p ? A.toFixed(2) : A;
|
|
16187
16187
|
});
|
|
16188
16188
|
};
|
|
16189
|
-
return watch
|
|
16189
|
+
return watch(
|
|
16190
16190
|
() => t.modelValue,
|
|
16191
16191
|
(p) => {
|
|
16192
16192
|
if (p && s == null) {
|
|
@@ -16450,7 +16450,7 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16450
16450
|
}), A = computed({
|
|
16451
16451
|
get: () => m.value.some((D) => D.isSummary)
|
|
16452
16452
|
});
|
|
16453
|
-
watch
|
|
16453
|
+
watch(
|
|
16454
16454
|
() => i.data,
|
|
16455
16455
|
(D, S) => {
|
|
16456
16456
|
F(!0);
|
|
@@ -17369,12 +17369,12 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17369
17369
|
emits: ["update:BeginTime", "update:EndTime", "change"],
|
|
17370
17370
|
setup(e, { emit: r }) {
|
|
17371
17371
|
const t = e, a = r, n = ref(["", ""]);
|
|
17372
|
-
watch
|
|
17372
|
+
watch(
|
|
17373
17373
|
() => t.BeginTime,
|
|
17374
17374
|
(c) => {
|
|
17375
17375
|
n.value[0] = t.BeginTime;
|
|
17376
17376
|
}
|
|
17377
|
-
), watch
|
|
17377
|
+
), watch(
|
|
17378
17378
|
() => t.EndTime,
|
|
17379
17379
|
(c) => n.value[1] = t.EndTime
|
|
17380
17380
|
);
|
|
@@ -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
|
-
|
|
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.
|
|
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-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 = {
|
|
@@ -17801,7 +17811,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17801
17811
|
get: () => i.modelValue,
|
|
17802
17812
|
set: (f) => n("update:modelValue", f)
|
|
17803
17813
|
});
|
|
17804
|
-
watch
|
|
17814
|
+
watch(() => i.modelValue, (f) => {
|
|
17805
17815
|
f && (s.value = o());
|
|
17806
17816
|
});
|
|
17807
17817
|
const o = () => {
|
|
@@ -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 }) {
|
|
@@ -17897,7 +17908,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17897
17908
|
}), c = async () => {
|
|
17898
17909
|
await n(), await Sleep(300), a.CardType == "0" ? p() : a.CardType == "9" && h(), o("update:cardType", a.CardType);
|
|
17899
17910
|
};
|
|
17900
|
-
watch
|
|
17911
|
+
watch(
|
|
17901
17912
|
() => t.modelValue,
|
|
17902
17913
|
async (u) => {
|
|
17903
17914
|
u ? (s.value = 60 * 5, a.Id = "", a.Name = "", a.HeadPortrait = "", a.Sex = "男", a.Address = "", a.Telephone = "", l.value = setInterval(() => {
|
|
@@ -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";
|
|
@@ -18672,7 +18686,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18672
18686
|
}), f = () => {
|
|
18673
18687
|
i.value.LoadData(o.Telephone), o.isMemberBox = !0;
|
|
18674
18688
|
};
|
|
18675
|
-
watch
|
|
18689
|
+
watch(
|
|
18676
18690
|
() => o.GetMethod,
|
|
18677
18691
|
(u) => {
|
|
18678
18692
|
c(u);
|
|
@@ -18681,7 +18695,7 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18681
18695
|
const c = (u) => {
|
|
18682
18696
|
(u == "扫码收款" || u == "会员收款" || u == "现金") && nextTick(() => nextTick(() => n.value.focus()));
|
|
18683
18697
|
};
|
|
18684
|
-
watch
|
|
18698
|
+
watch(
|
|
18685
18699
|
() => t.modelValue,
|
|
18686
18700
|
(u) => {
|
|
18687
18701
|
u ? (o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.numOfTimes = "", o.Remarks = "", o.Telephone = "", o.MakreterTel = "", o.IsConfirming = !1, setTimeout(() => {
|
|
@@ -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: {
|
|
@@ -19366,13 +19383,13 @@ const _hoisted_1$a = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
19366
19383
|
}
|
|
19367
19384
|
}
|
|
19368
19385
|
});
|
|
19369
|
-
watch
|
|
19386
|
+
watch(
|
|
19370
19387
|
() => t.provinceId,
|
|
19371
19388
|
() => n.elValue[0] = t.provinceId
|
|
19372
|
-
), watch
|
|
19389
|
+
), watch(
|
|
19373
19390
|
() => t.cityId,
|
|
19374
19391
|
() => n.elValue[1] = t.cityId
|
|
19375
|
-
), watch
|
|
19392
|
+
), watch(
|
|
19376
19393
|
() => t.countyId,
|
|
19377
19394
|
() => n.elValue[2] = t.countyId
|
|
19378
19395
|
);
|