@yoooloo42/joker 1.0.293 → 1.0.295

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/index.esm.js CHANGED
@@ -16868,7 +16868,7 @@ var lookup = [];
16868
16868
  var revLookup = [];
16869
16869
  var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;
16870
16870
  var inited = false;
16871
- function init$2 () {
16871
+ function init$3 () {
16872
16872
  inited = true;
16873
16873
  var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
16874
16874
  for (var i = 0, len = code.length; i < len; ++i) {
@@ -16882,7 +16882,7 @@ function init$2 () {
16882
16882
 
16883
16883
  function toByteArray (b64) {
16884
16884
  if (!inited) {
16885
- init$2();
16885
+ init$3();
16886
16886
  }
16887
16887
  var i, j, l, tmp, placeHolders, arr;
16888
16888
  var len = b64.length;
@@ -16941,7 +16941,7 @@ function encodeChunk (uint8, start, end) {
16941
16941
 
16942
16942
  function fromByteArray (uint8) {
16943
16943
  if (!inited) {
16944
- init$2();
16944
+ init$3();
16945
16945
  }
16946
16946
  var tmp;
16947
16947
  var len = uint8.length;
@@ -22924,7 +22924,7 @@ const getPgData = async _ref5 => {
22924
22924
  };
22925
22925
 
22926
22926
  // 初始化
22927
- const init$1 = async _ref6 => {
22927
+ const init$2 = async _ref6 => {
22928
22928
  let {
22929
22929
  scopeThis
22930
22930
  } = _ref6;
@@ -23132,7 +23132,7 @@ var withTable = {
23132
23132
  pageSizeChange,
23133
23133
  currentPageChange,
23134
23134
  getPgData,
23135
- init: init$1,
23135
+ init: init$2,
23136
23136
  popupFind,
23137
23137
  popupInsertOne,
23138
23138
  popupUpdateOne,
@@ -44196,7 +44196,8 @@ var formProps = {
44196
44196
  await scopeThis.handles.submit({
44197
44197
  scopeThis
44198
44198
  });
44199
- }
44199
+ },
44200
+ submitted: false // 提交监听,用于支付记录的刷新
44200
44201
  }
44201
44202
  };
44202
44203
 
@@ -44215,7 +44216,7 @@ var qrcode$1 = {
44215
44216
  };
44216
44217
 
44217
44218
  const ly0session = ly0request.ly0sessionLoad();
44218
- function init(_ref) {
44219
+ function init$1(_ref) {
44219
44220
  let {
44220
44221
  scopeThis
44221
44222
  } = _ref;
@@ -44253,6 +44254,8 @@ function submit(_ref2) {
44253
44254
  }
44254
44255
  // 关闭收银窗口
44255
44256
  scopeThis.formProps.popup.visible = false;
44257
+ // 通知外部组件已提交
44258
+ scopeThis.formProps.submitted = true;
44256
44259
  });
44257
44260
  } else if (scopeThis.formData.process_code === "wxzf0") {
44258
44261
  // 微信支付.客户付款码付款
@@ -44278,6 +44281,8 @@ function submit(_ref2) {
44278
44281
  }
44279
44282
  // 关闭收银窗口
44280
44283
  scopeThis.formProps.popup.visible = false;
44284
+ // 通知外部组件已提交
44285
+ scopeThis.formProps.submitted = true;
44281
44286
  });
44282
44287
  } else if (scopeThis.formData.process_code === "wxzf2") {
44283
44288
  // 微信支付.商户二维码收款
@@ -44302,6 +44307,8 @@ function submit(_ref2) {
44302
44307
  }
44303
44308
  // 关闭收银窗口
44304
44309
  scopeThis.formProps.popup.visible = false;
44310
+ // 通知外部组件已提交
44311
+ scopeThis.formProps.submitted = true;
44305
44312
 
44306
44313
  // 弹出二维码窗口
44307
44314
  if (result.code === 0 && result.code_url) {
@@ -44319,8 +44326,8 @@ function submit(_ref2) {
44319
44326
  ElMessage("未选择:系统内置支付流程");
44320
44327
  }
44321
44328
  }
44322
- var handles$1 = {
44323
- init,
44329
+ var handles$2 = {
44330
+ init: init$1,
44324
44331
  submit
44325
44332
  };
44326
44333
 
@@ -47395,7 +47402,7 @@ function requireBrowser () {
47395
47402
 
47396
47403
  var browserExports = requireBrowser();
47397
47404
 
47398
- var handles = {
47405
+ var handles$1 = {
47399
47406
  async init(_ref) {
47400
47407
  let {
47401
47408
  scopeThis
@@ -47494,11 +47501,11 @@ const scopeThis = reactive({
47494
47501
  props: props.myProps,
47495
47502
  // 第二块屏幕 - 客户付费窗口
47496
47503
  winPayAnother: null,
47497
- handles
47504
+ handles: handles$1
47498
47505
  });
47499
47506
 
47500
47507
  onMounted(()=>{
47501
- handles.init({scopeThis});
47508
+ handles$1.init({scopeThis});
47502
47509
  });
47503
47510
 
47504
47511
  return (_ctx, _cache) => {
@@ -47514,7 +47521,7 @@ return (_ctx, _cache) => {
47514
47521
  "append-to-body": "",
47515
47522
  title: unref(qrcode$1).popup.title,
47516
47523
  width: '600px',
47517
- "before-close": unref(handles).beforeClose
47524
+ "before-close": unref(handles$1).beforeClose
47518
47525
  }, {
47519
47526
  default: withCtx(() => [
47520
47527
  createVNode(_component_el_row, { class: "qrcode-box" }, {
@@ -47533,7 +47540,7 @@ return (_ctx, _cache) => {
47533
47540
  createVNode(_component_el_button, {
47534
47541
  type: "success",
47535
47542
  round: "",
47536
- onClick: unref(handles).confirm
47543
+ onClick: unref(handles$1).confirm
47537
47544
  }, {
47538
47545
  default: withCtx(() => [...(_cache[2] || (_cache[2] = [
47539
47546
  createTextVNode("支付完成后,点击这里以确认", -1 /* CACHED */)
@@ -47576,7 +47583,7 @@ const props = __props;
47576
47583
  const scopeThis = reactive({
47577
47584
  formData: unclassified.deepClone.deepDefaults(props.modelValue, formData),
47578
47585
  formProps: unclassified.deepClone.deepDefaults(props.myProps, formProps),
47579
- handles: handles$1,
47586
+ handles: handles$2,
47580
47587
  pgData: {
47581
47588
  arrBusinessType: [],
47582
47589
  arrProcess: [],
@@ -48065,6 +48072,24 @@ var doc = {
48065
48072
  }
48066
48073
  };
48067
48074
 
48075
+ async function init(_ref) {
48076
+ let {
48077
+ scopeThis
48078
+ } = _ref;
48079
+ scopeThis.queryInit.formData.id_business = scopeThis.initBox.id_business;
48080
+ scopeThis.queryInit.formData.businesstype_code = scopeThis.initBox.businesstype_code;
48081
+ await withTable.init({
48082
+ scopeThis
48083
+ });
48084
+ const txt = scopeThis.pgData.data.arrBusinessType.find(i => {
48085
+ return i.code === scopeThis.initBox.businesstype_code;
48086
+ }).text;
48087
+ scopeThis.initBox.popup.title = '支付记录[' + txt + '] - 订单id: ' + scopeThis.initBox.id_business;
48088
+ }
48089
+ var handles = {
48090
+ init
48091
+ };
48092
+
48068
48093
  var amountBox = {
48069
48094
  fun(_ref) {
48070
48095
  let {
@@ -48137,6 +48162,7 @@ const scopeThis = reactive({
48137
48162
  arrStatus: []
48138
48163
  }
48139
48164
  },
48165
+ handles,
48140
48166
  initBox: props.myProps,
48141
48167
  amountBox: computed(()=>{
48142
48168
  return amountBox.fun({scopeThis})
@@ -48145,13 +48171,14 @@ const scopeThis = reactive({
48145
48171
  });
48146
48172
 
48147
48173
  onMounted(async ()=>{
48148
- scopeThis.queryInit.formData.id_business = scopeThis.initBox.id_business;
48149
- scopeThis.queryInit.formData.businesstype_code = scopeThis.initBox.businesstype_code;
48150
- await withTable.init({scopeThis});
48151
- const txt = scopeThis.pgData.data.arrBusinessType.find(i=>{
48152
- return i.code === scopeThis.initBox.businesstype_code
48153
- }).text;
48154
- scopeThis.initBox.popup.title = '支付记录[' + txt + '] - 订单id: ' + scopeThis.initBox.id_business;
48174
+ await scopeThis.handles.init({scopeThis});
48175
+ });
48176
+
48177
+ watch(() => scopeThis.cashBox.formProps.submitted, async (newVal) => {
48178
+ if(!!newVal){
48179
+ await scopeThis.handles.init({scopeThis});
48180
+ scopeThis.cashBox.formProps.submitted = false;
48181
+ }
48155
48182
  });
48156
48183
 
48157
48184
  const style = ref({