qk-pc-ui 3.4.6 → 3.4.8
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 +72 -18
- 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
|
@@ -15598,7 +15598,7 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15598
15598
|
return S.colspan == "0" || S.rowspan == "0" ? "" : `<td rowspan="${S.rowspan > 1 ? S.rowspan : ""}" colspan="${S.colspan > 1 ? S.colspan : ""}">${o(H, C.title)}</td>`;
|
|
15599
15599
|
}).join("")}</tr>`
|
|
15600
15600
|
).join(""), O = "";
|
|
15601
|
-
return t.columnArray.filter((H) => H.isSummary).length > 0 && (O = `<tr>${d().map((H) => `<td>${H}</td>`)}</tr>`), `
|
|
15601
|
+
return t.columnArray.filter((H) => H.isSummary).length > 0 && (O = `<tr>${d().map((H) => `<td>${H}</td>`).join(",")}</tr>`), `
|
|
15602
15602
|
<style type="text/css">
|
|
15603
15603
|
td, th {
|
|
15604
15604
|
border: 1px solid black;
|
|
@@ -15656,8 +15656,8 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15656
15656
|
if (I.src && I.src.IgnoreSummary) return;
|
|
15657
15657
|
let k = I[u.title];
|
|
15658
15658
|
!m && _.test(k) && (m = !0);
|
|
15659
|
-
let O = Number(
|
|
15660
|
-
Number.isNaN(O) || (
|
|
15659
|
+
let O = Number(k);
|
|
15660
|
+
Number.isNaN(O) || (A += O);
|
|
15661
15661
|
}), m ? A.toFixed(2) : A;
|
|
15662
15662
|
});
|
|
15663
15663
|
};
|
|
@@ -16725,7 +16725,8 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16725
16725
|
let G = { IgnoreSummary: !0, Rows: O }, C = !0, D = O[0];
|
|
16726
16726
|
for (let S in D) G[S] = D[S];
|
|
16727
16727
|
for (let S = 0; S < o.columnArray.length; S++)
|
|
16728
|
-
if (C && o.columnArray[S].isHeBing)
|
|
16728
|
+
if (C && o.columnArray[S].isHeBing)
|
|
16729
|
+
G[o.columnArray[S].dataKey] = O[0][o.columnArray[S].dataKey];
|
|
16729
16730
|
else {
|
|
16730
16731
|
if (C) {
|
|
16731
16732
|
C = !1, G[o.columnArray[S].dataKey] = "合计";
|
|
@@ -16835,7 +16836,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16835
16836
|
}, null, 8, ["data", "tabName", "toolWidth", "columnArray", "commandArray", "printOption"]))
|
|
16836
16837
|
]));
|
|
16837
16838
|
}
|
|
16838
|
-
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
16839
|
+
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-f81f822b"]]), _sfc_main$i = {
|
|
16839
16840
|
__name: "byDatePicker",
|
|
16840
16841
|
props: {
|
|
16841
16842
|
BeginTime: { type: [String, void 0], default: "" },
|
|
@@ -18093,8 +18094,47 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18093
18094
|
console.log(r.message || r.resultcontent);
|
|
18094
18095
|
}
|
|
18095
18096
|
staticData.isUpdateing = !1;
|
|
18097
|
+
}, onUseCard = async (e, r, t) => {
|
|
18098
|
+
if (e.HasPassWord == 1) {
|
|
18099
|
+
let a = null;
|
|
18100
|
+
try {
|
|
18101
|
+
a = await ElMessageBox.prompt("请输入卡密码", "卡密码", {
|
|
18102
|
+
cancelButtonText: "取消",
|
|
18103
|
+
confirmButtonText: "确定",
|
|
18104
|
+
closeOnClickModal: !1,
|
|
18105
|
+
closeOnPressEscape: !1,
|
|
18106
|
+
closeOnHashChange: !1,
|
|
18107
|
+
inputType: "password"
|
|
18108
|
+
});
|
|
18109
|
+
} catch (n) {
|
|
18110
|
+
if (n == "cancel") return;
|
|
18111
|
+
}
|
|
18112
|
+
a = await MemberApi("/OrganApi/GetMemberCardIdentityCode", { CardId: e.Id, PassWord: a.value, ValidityMinute: 5 }), t.PayCode = a.RCardCode, t.UseTimes = r, await CallApiConfirmOrder(t);
|
|
18113
|
+
} else
|
|
18114
|
+
t.UseTimes = r, await CallApiConfirmOrder(t);
|
|
18115
|
+
}, onUse = async (e, r) => {
|
|
18116
|
+
if (e.CardTypeClass == CardTypeClassEnum.计次卡) {
|
|
18117
|
+
let t = null;
|
|
18118
|
+
try {
|
|
18119
|
+
t = await ElMessageBox.prompt("注意:当前使用的是【计次卡】,请根据消费的产品输入需要扣取的次数。默认每张票扣1次!", "计次卡扣费", {
|
|
18120
|
+
cancelButtonText: "取消",
|
|
18121
|
+
confirmButtonText: "确定",
|
|
18122
|
+
closeOnClickModal: !1,
|
|
18123
|
+
closeOnPressEscape: !1,
|
|
18124
|
+
closeOnHashChange: !1,
|
|
18125
|
+
inputPlaceholder: "请输入需要扣取的次数",
|
|
18126
|
+
inputValue: "1"
|
|
18127
|
+
});
|
|
18128
|
+
} catch (a) {
|
|
18129
|
+
if (a == "cancel") return;
|
|
18130
|
+
}
|
|
18131
|
+
await onUseCard(e, t.value, r);
|
|
18132
|
+
} else if (e.CardTypeClass == CardTypeClassEnum.周期卡) {
|
|
18133
|
+
if (!confirm("注意:当前使用的是【周期卡】,将不会扣除余额,请确认是否继续?", "注意"))
|
|
18134
|
+
return;
|
|
18135
|
+
await onUseCard(e, 0, r);
|
|
18136
|
+
} else e.CardTypeClass == CardTypeClassEnum.储值卡 && await onUseCard(e, 0, r);
|
|
18096
18137
|
}, ConfirmOrder = async (e) => {
|
|
18097
|
-
let r = e.GetMethod;
|
|
18098
18138
|
switch (e.GetMethod) {
|
|
18099
18139
|
case "现金":
|
|
18100
18140
|
{
|
|
@@ -18107,20 +18147,30 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18107
18147
|
{
|
|
18108
18148
|
if (!e.PayCode) return ElMessageBox.alert("请输入会员凭证");
|
|
18109
18149
|
if (isPayCode(e.PayCode))
|
|
18110
|
-
return
|
|
18111
|
-
e.PayType = "512",
|
|
18150
|
+
return ElMessageBox.alert("检测到付款码输入,请切换到网络支付再扫码付款");
|
|
18151
|
+
if (e.PayType = "512", e.GetMethod = "会员收款", e.chkMember) {
|
|
18152
|
+
let r = null;
|
|
18153
|
+
try {
|
|
18154
|
+
r = await MemberApi("/OrganApi/MemberRelCardSearch", { SearchType: 1, CardNo: e.PayCode });
|
|
18155
|
+
} catch {
|
|
18156
|
+
}
|
|
18157
|
+
if (r != null) {
|
|
18158
|
+
await onUse(r, e);
|
|
18159
|
+
return;
|
|
18160
|
+
}
|
|
18161
|
+
}
|
|
18112
18162
|
}
|
|
18113
18163
|
break;
|
|
18114
18164
|
case "扫码收款":
|
|
18115
18165
|
{
|
|
18116
18166
|
if (!e.PayCode) return ElMessageBox.alert("请输入正确的支付宝或者微信付款码");
|
|
18117
18167
|
if (e.PayType = getPayCodeType(e.PayCode), e.PayType == 0) return ElMessageBox.alert("请输入正确的支付宝或者微信付款码");
|
|
18118
|
-
|
|
18168
|
+
e.GetMethod = "网络收款";
|
|
18119
18169
|
}
|
|
18120
18170
|
break;
|
|
18121
18171
|
}
|
|
18122
|
-
|
|
18123
|
-
|
|
18172
|
+
return e.PayType == "65536" && e.GetMethod == "网络收款" ? ElMessageBox.alert("特殊情况,请切图然后联系技术人员") : await CallApiConfirmOrder(e);
|
|
18173
|
+
}, CallApiConfirmOrder = async (e) => {
|
|
18124
18174
|
(await AjaxCallWeb(e.Api.ConfirmOrder, {
|
|
18125
18175
|
OrderId: e.OrderId,
|
|
18126
18176
|
OrderCode: e.OrderCode,
|
|
@@ -18131,12 +18181,12 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18131
18181
|
Telephone: e.Telephone,
|
|
18132
18182
|
RebateAmount: e.RebateAmount * 100,
|
|
18133
18183
|
Remarks: e.Remarks,
|
|
18134
|
-
GetMethod:
|
|
18184
|
+
GetMethod: e.GetMethod
|
|
18135
18185
|
})).DataType == "3" ? (staticData.loading = ElLoading.service({
|
|
18136
18186
|
lock: !0,
|
|
18137
18187
|
text: "等待用户完成支付",
|
|
18138
18188
|
background: "rgba(0, 0, 0, 0.7)"
|
|
18139
|
-
}), staticData.confirmOrderInfo = e, staticData.timerId = setInterval(() => UpdateOrderStatus(), 1e3)) : (sessionStorage.getItem("DevicePlatform") == "1" &&
|
|
18189
|
+
}), staticData.confirmOrderInfo = e, staticData.timerId = setInterval(() => UpdateOrderStatus(), 1e3)) : (sessionStorage.getItem("DevicePlatform") == "1" && e.GetMethod == "现金" && setTimeout(async () => {
|
|
18140
18190
|
await AndroidApi("/print/sunmiOpenDrawer");
|
|
18141
18191
|
}, 500), e.PaySuccess());
|
|
18142
18192
|
}, SafeConfirmOrder = async (e) => {
|
|
@@ -18206,9 +18256,12 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18206
18256
|
ckCardPassword: "不检测",
|
|
18207
18257
|
ckTsCardUse: "不支持",
|
|
18208
18258
|
payTime: 0,
|
|
18209
|
-
managerInfo: {}
|
|
18259
|
+
managerInfo: {},
|
|
18260
|
+
chkMember: !0
|
|
18210
18261
|
}), f = () => {
|
|
18211
|
-
|
|
18262
|
+
o.isMemberBox = !1, nextTick(() => {
|
|
18263
|
+
i.value.LoadData(o.Telephone), o.isMemberBox = !0;
|
|
18264
|
+
});
|
|
18212
18265
|
};
|
|
18213
18266
|
watch(
|
|
18214
18267
|
() => o.GetMethod,
|
|
@@ -18222,7 +18275,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18222
18275
|
watch(
|
|
18223
18276
|
() => t.modelValue,
|
|
18224
18277
|
(u) => {
|
|
18225
|
-
u ? (o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.numOfTimes = "", o.Remarks = "", o.Telephone = "", t.makreter && o.managerInfo.Telephone && (o.MakreterTel = o.managerInfo.Telephone), o.IsConfirming = !1, o.payTime = 0, setTimeout(() => {
|
|
18278
|
+
u ? (o.chkMember = !0, o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.numOfTimes = "", o.Remarks = "", o.Telephone = "", t.makreter && o.managerInfo.Telephone && (o.MakreterTel = o.managerInfo.Telephone), o.IsConfirming = !1, o.payTime = 0, setTimeout(() => {
|
|
18226
18279
|
t.memberInfo && t.memberInfo.Id && (o.GetMethod = "会员收款", o.Telephone = t.memberInfo.Telephone, f());
|
|
18227
18280
|
}, 100), c(o.GetMethod)) : (o.timerId != null && (clearInterval(o.timerId), o.timerId = null), o.loading != null && (o.loading.close(), o.loading = null));
|
|
18228
18281
|
}
|
|
@@ -18235,7 +18288,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18235
18288
|
o.Remarks = u;
|
|
18236
18289
|
});
|
|
18237
18290
|
}, _ = (u, p) => {
|
|
18238
|
-
o.PayCode = u, o.PayType = "512", o.numOfTimes = p, o.isMemberBox = !1, nextTick(() => d());
|
|
18291
|
+
o.PayCode = u, o.PayType = "512", o.numOfTimes = p, o.isMemberBox = !1, o.chkMember = !1, nextTick(() => d());
|
|
18239
18292
|
}, d = async () => {
|
|
18240
18293
|
if (o.IsConfirming) return;
|
|
18241
18294
|
o.IsConfirming = !0;
|
|
@@ -18249,6 +18302,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18249
18302
|
PayAmount: o.PayAmount,
|
|
18250
18303
|
PayCode: o.PayCode,
|
|
18251
18304
|
OrderId: t.orderInfo.Id,
|
|
18305
|
+
chkMember: o.chkMember,
|
|
18252
18306
|
OrderCode: t.orderInfo.OrderCode,
|
|
18253
18307
|
PayType: o.PayType,
|
|
18254
18308
|
UseTimes: o.numOfTimes,
|
|
@@ -18564,7 +18618,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18564
18618
|
_: 1
|
|
18565
18619
|
}, 8, ["modelValue"]));
|
|
18566
18620
|
}
|
|
18567
|
-
}, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
18621
|
+
}, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-c3517d06"]]), _hoisted_1$1 = { name: "selectIco" }, _hoisted_2 = { style: { padding: "5px", float: "left", border: "1px solid #e2e2e2", overflow: "hidden" } }, _hoisted_3 = {
|
|
18568
18622
|
class: "icon",
|
|
18569
18623
|
"aria-hidden": "true",
|
|
18570
18624
|
style: { "font-size": "60px" }
|