qk-pc-ui 3.4.7 → 3.4.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 +81 -18
- package/dist/qk-pc-ui.umd.js +31 -31
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -15770,6 +15770,10 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15770
15770
|
TitleArray: [],
|
|
15771
15771
|
FootArray: []
|
|
15772
15772
|
})
|
|
15773
|
+
},
|
|
15774
|
+
fnGetSelectData: {
|
|
15775
|
+
type: Function,
|
|
15776
|
+
default: () => (e, r) => e
|
|
15773
15777
|
}
|
|
15774
15778
|
},
|
|
15775
15779
|
emits: ["command", "select"],
|
|
@@ -15804,7 +15808,7 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15804
15808
|
return S.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${D}全部数据吗??`), L(`数据${D}确认`), {
|
|
15805
15809
|
cancelButtonText: L("取消"),
|
|
15806
15810
|
confirmButtonText: L("确定")
|
|
15807
|
-
}), S = n.value), S.map((F) => {
|
|
15811
|
+
}), S = n.value), S = s.fnGetSelectData(S, D), S.map((F) => {
|
|
15808
15812
|
let B = {};
|
|
15809
15813
|
for (let R in F) {
|
|
15810
15814
|
if (R == "src") {
|
|
@@ -16233,7 +16237,7 @@ const _hoisted_1$g = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16233
16237
|
}, null, 8, ["modelValue", "data", "title", "columnArray", "printOption"])
|
|
16234
16238
|
]));
|
|
16235
16239
|
}
|
|
16236
|
-
}, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
16240
|
+
}, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ab15e5f9"]]), CreateNewPrint = () => {
|
|
16237
16241
|
let config = { Pid: "" }, LODOP = getLodop();
|
|
16238
16242
|
return {
|
|
16239
16243
|
onMessage: (e, r) => {
|
|
@@ -16416,6 +16420,10 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16416
16420
|
controller: { type: String, default: "" },
|
|
16417
16421
|
inline: { type: Boolean, default: !0 },
|
|
16418
16422
|
top: { type: String, default: "1vh" },
|
|
16423
|
+
fnGetSelectData: {
|
|
16424
|
+
type: Function,
|
|
16425
|
+
default: () => (e, r) => e
|
|
16426
|
+
},
|
|
16419
16427
|
powerArray: {
|
|
16420
16428
|
type: Array,
|
|
16421
16429
|
default: () => []
|
|
@@ -16599,13 +16607,14 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16599
16607
|
columnArray: m.columnArray,
|
|
16600
16608
|
toolWidth: m.toolWidth,
|
|
16601
16609
|
maxCommand: m.maxCommand,
|
|
16610
|
+
fnGetSelectData: m.fnGetSelectData,
|
|
16602
16611
|
onCommand: k,
|
|
16603
16612
|
onSelect: A,
|
|
16604
16613
|
commandArray: I.value,
|
|
16605
16614
|
key: I.value,
|
|
16606
16615
|
powerArray: p.value,
|
|
16607
16616
|
printOption: m.printOption
|
|
16608
|
-
}, null, 8, ["data", "tabName", "columnArray", "toolWidth", "maxCommand", "commandArray", "powerArray", "printOption"])),
|
|
16617
|
+
}, null, 8, ["data", "tabName", "columnArray", "toolWidth", "maxCommand", "fnGetSelectData", "commandArray", "powerArray", "printOption"])),
|
|
16609
16618
|
createVNode(unref(ElDialog), {
|
|
16610
16619
|
modelValue: o.IsVisible,
|
|
16611
16620
|
"onUpdate:modelValue": C[7] || (C[7] = (D) => o.IsVisible = D),
|
|
@@ -16649,7 +16658,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16649
16658
|
}, 8, ["modelValue", "title", "width", "top", "style"])
|
|
16650
16659
|
]));
|
|
16651
16660
|
}
|
|
16652
|
-
}, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
16661
|
+
}, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-f2f073ee"]]), _hoisted_1$d = { class: "pagemain" }, _hoisted_2$6 = {
|
|
16653
16662
|
key: 1,
|
|
16654
16663
|
class: "total"
|
|
16655
16664
|
}, _hoisted_3$5 = { class: "total-item" }, _hoisted_4$5 = { style: { color: "dodgerblue", "font-weight": "bold" } }, _sfc_main$j = {
|
|
@@ -16725,7 +16734,8 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16725
16734
|
let G = { IgnoreSummary: !0, Rows: O }, C = !0, D = O[0];
|
|
16726
16735
|
for (let S in D) G[S] = D[S];
|
|
16727
16736
|
for (let S = 0; S < o.columnArray.length; S++)
|
|
16728
|
-
if (C && o.columnArray[S].isHeBing)
|
|
16737
|
+
if (C && o.columnArray[S].isHeBing)
|
|
16738
|
+
G[o.columnArray[S].dataKey] = O[0][o.columnArray[S].dataKey];
|
|
16729
16739
|
else {
|
|
16730
16740
|
if (C) {
|
|
16731
16741
|
C = !1, G[o.columnArray[S].dataKey] = "合计";
|
|
@@ -16835,7 +16845,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16835
16845
|
}, null, 8, ["data", "tabName", "toolWidth", "columnArray", "commandArray", "printOption"]))
|
|
16836
16846
|
]));
|
|
16837
16847
|
}
|
|
16838
|
-
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
16848
|
+
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-f81f822b"]]), _sfc_main$i = {
|
|
16839
16849
|
__name: "byDatePicker",
|
|
16840
16850
|
props: {
|
|
16841
16851
|
BeginTime: { type: [String, void 0], default: "" },
|
|
@@ -18093,8 +18103,47 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18093
18103
|
console.log(r.message || r.resultcontent);
|
|
18094
18104
|
}
|
|
18095
18105
|
staticData.isUpdateing = !1;
|
|
18106
|
+
}, onUseCard = async (e, r, t) => {
|
|
18107
|
+
if (e.HasPassWord == 1) {
|
|
18108
|
+
let a = null;
|
|
18109
|
+
try {
|
|
18110
|
+
a = await ElMessageBox.prompt("请输入卡密码", "卡密码", {
|
|
18111
|
+
cancelButtonText: "取消",
|
|
18112
|
+
confirmButtonText: "确定",
|
|
18113
|
+
closeOnClickModal: !1,
|
|
18114
|
+
closeOnPressEscape: !1,
|
|
18115
|
+
closeOnHashChange: !1,
|
|
18116
|
+
inputType: "password"
|
|
18117
|
+
});
|
|
18118
|
+
} catch (n) {
|
|
18119
|
+
if (n == "cancel") return;
|
|
18120
|
+
}
|
|
18121
|
+
a = await MemberApi("/OrganApi/GetMemberCardIdentityCode", { CardId: e.Id, PassWord: a.value, ValidityMinute: 5 }), t.PayCode = a.RCardCode, t.UseTimes = r, await CallApiConfirmOrder(t);
|
|
18122
|
+
} else
|
|
18123
|
+
t.UseTimes = r, await CallApiConfirmOrder(t);
|
|
18124
|
+
}, onUse = async (e, r) => {
|
|
18125
|
+
if (e.CardTypeClass == CardTypeClassEnum.计次卡) {
|
|
18126
|
+
let t = null;
|
|
18127
|
+
try {
|
|
18128
|
+
t = await ElMessageBox.prompt("注意:当前使用的是【计次卡】,请根据消费的产品输入需要扣取的次数。默认每张票扣1次!", "计次卡扣费", {
|
|
18129
|
+
cancelButtonText: "取消",
|
|
18130
|
+
confirmButtonText: "确定",
|
|
18131
|
+
closeOnClickModal: !1,
|
|
18132
|
+
closeOnPressEscape: !1,
|
|
18133
|
+
closeOnHashChange: !1,
|
|
18134
|
+
inputPlaceholder: "请输入需要扣取的次数",
|
|
18135
|
+
inputValue: "1"
|
|
18136
|
+
});
|
|
18137
|
+
} catch (a) {
|
|
18138
|
+
if (a == "cancel") return;
|
|
18139
|
+
}
|
|
18140
|
+
await onUseCard(e, t.value, r);
|
|
18141
|
+
} else if (e.CardTypeClass == CardTypeClassEnum.周期卡) {
|
|
18142
|
+
if (!confirm("注意:当前使用的是【周期卡】,将不会扣除余额,请确认是否继续?", "注意"))
|
|
18143
|
+
return;
|
|
18144
|
+
await onUseCard(e, 0, r);
|
|
18145
|
+
} else e.CardTypeClass == CardTypeClassEnum.储值卡 && await onUseCard(e, 0, r);
|
|
18096
18146
|
}, ConfirmOrder = async (e) => {
|
|
18097
|
-
let r = e.GetMethod;
|
|
18098
18147
|
switch (e.GetMethod) {
|
|
18099
18148
|
case "现金":
|
|
18100
18149
|
{
|
|
@@ -18108,19 +18157,29 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18108
18157
|
if (!e.PayCode) return ElMessageBox.alert("请输入会员凭证");
|
|
18109
18158
|
if (isPayCode(e.PayCode))
|
|
18110
18159
|
return ElMessageBox.alert("检测到付款码输入,请切换到网络支付再扫码付款");
|
|
18111
|
-
e.PayType = "512",
|
|
18160
|
+
if (e.PayType = "512", e.GetMethod = "会员收款", e.chkMember) {
|
|
18161
|
+
let r = null;
|
|
18162
|
+
try {
|
|
18163
|
+
r = await MemberApi("/OrganApi/MemberRelCardSearch", { SearchType: 1, CardNo: e.PayCode });
|
|
18164
|
+
} catch {
|
|
18165
|
+
}
|
|
18166
|
+
if (r != null) {
|
|
18167
|
+
await onUse(r, e);
|
|
18168
|
+
return;
|
|
18169
|
+
}
|
|
18170
|
+
}
|
|
18112
18171
|
}
|
|
18113
18172
|
break;
|
|
18114
18173
|
case "扫码收款":
|
|
18115
18174
|
{
|
|
18116
18175
|
if (!e.PayCode) return ElMessageBox.alert("请输入正确的支付宝或者微信付款码");
|
|
18117
18176
|
if (e.PayType = getPayCodeType(e.PayCode), e.PayType == 0) return ElMessageBox.alert("请输入正确的支付宝或者微信付款码");
|
|
18118
|
-
|
|
18177
|
+
e.GetMethod = "网络收款";
|
|
18119
18178
|
}
|
|
18120
18179
|
break;
|
|
18121
18180
|
}
|
|
18122
|
-
|
|
18123
|
-
|
|
18181
|
+
return e.PayType == "65536" && e.GetMethod == "网络收款" ? ElMessageBox.alert("特殊情况,请切图然后联系技术人员") : await CallApiConfirmOrder(e);
|
|
18182
|
+
}, CallApiConfirmOrder = async (e) => {
|
|
18124
18183
|
(await AjaxCallWeb(e.Api.ConfirmOrder, {
|
|
18125
18184
|
OrderId: e.OrderId,
|
|
18126
18185
|
OrderCode: e.OrderCode,
|
|
@@ -18131,12 +18190,12 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18131
18190
|
Telephone: e.Telephone,
|
|
18132
18191
|
RebateAmount: e.RebateAmount * 100,
|
|
18133
18192
|
Remarks: e.Remarks,
|
|
18134
|
-
GetMethod:
|
|
18193
|
+
GetMethod: e.GetMethod
|
|
18135
18194
|
})).DataType == "3" ? (staticData.loading = ElLoading.service({
|
|
18136
18195
|
lock: !0,
|
|
18137
18196
|
text: "等待用户完成支付",
|
|
18138
18197
|
background: "rgba(0, 0, 0, 0.7)"
|
|
18139
|
-
}), staticData.confirmOrderInfo = e, staticData.timerId = setInterval(() => UpdateOrderStatus(), 1e3)) : (sessionStorage.getItem("DevicePlatform") == "1" &&
|
|
18198
|
+
}), staticData.confirmOrderInfo = e, staticData.timerId = setInterval(() => UpdateOrderStatus(), 1e3)) : (sessionStorage.getItem("DevicePlatform") == "1" && e.GetMethod == "现金" && setTimeout(async () => {
|
|
18140
18199
|
await AndroidApi("/print/sunmiOpenDrawer");
|
|
18141
18200
|
}, 500), e.PaySuccess());
|
|
18142
18201
|
}, SafeConfirmOrder = async (e) => {
|
|
@@ -18206,9 +18265,12 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18206
18265
|
ckCardPassword: "不检测",
|
|
18207
18266
|
ckTsCardUse: "不支持",
|
|
18208
18267
|
payTime: 0,
|
|
18209
|
-
managerInfo: {}
|
|
18268
|
+
managerInfo: {},
|
|
18269
|
+
chkMember: !0
|
|
18210
18270
|
}), f = () => {
|
|
18211
|
-
|
|
18271
|
+
o.isMemberBox = !1, nextTick(() => {
|
|
18272
|
+
i.value.LoadData(o.Telephone), o.isMemberBox = !0;
|
|
18273
|
+
});
|
|
18212
18274
|
};
|
|
18213
18275
|
watch(
|
|
18214
18276
|
() => o.GetMethod,
|
|
@@ -18222,7 +18284,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18222
18284
|
watch(
|
|
18223
18285
|
() => t.modelValue,
|
|
18224
18286
|
(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(() => {
|
|
18287
|
+
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
18288
|
t.memberInfo && t.memberInfo.Id && (o.GetMethod = "会员收款", o.Telephone = t.memberInfo.Telephone, f());
|
|
18227
18289
|
}, 100), c(o.GetMethod)) : (o.timerId != null && (clearInterval(o.timerId), o.timerId = null), o.loading != null && (o.loading.close(), o.loading = null));
|
|
18228
18290
|
}
|
|
@@ -18235,7 +18297,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18235
18297
|
o.Remarks = u;
|
|
18236
18298
|
});
|
|
18237
18299
|
}, _ = (u, p) => {
|
|
18238
|
-
o.PayCode = u, o.PayType = "512", o.numOfTimes = p, o.isMemberBox = !1, nextTick(() => d());
|
|
18300
|
+
o.PayCode = u, o.PayType = "512", o.numOfTimes = p, o.isMemberBox = !1, o.chkMember = !1, nextTick(() => d());
|
|
18239
18301
|
}, d = async () => {
|
|
18240
18302
|
if (o.IsConfirming) return;
|
|
18241
18303
|
o.IsConfirming = !0;
|
|
@@ -18249,6 +18311,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18249
18311
|
PayAmount: o.PayAmount,
|
|
18250
18312
|
PayCode: o.PayCode,
|
|
18251
18313
|
OrderId: t.orderInfo.Id,
|
|
18314
|
+
chkMember: o.chkMember,
|
|
18252
18315
|
OrderCode: t.orderInfo.OrderCode,
|
|
18253
18316
|
PayType: o.PayType,
|
|
18254
18317
|
UseTimes: o.numOfTimes,
|
|
@@ -18564,7 +18627,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
18564
18627
|
_: 1
|
|
18565
18628
|
}, 8, ["modelValue"]));
|
|
18566
18629
|
}
|
|
18567
|
-
}, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
18630
|
+
}, 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
18631
|
class: "icon",
|
|
18569
18632
|
"aria-hidden": "true",
|
|
18570
18633
|
style: { "font-size": "60px" }
|