@yoooloo42/joker 1.0.252 → 1.0.255

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
@@ -207,7 +207,7 @@ var p2_32 = /*#__PURE__*/Math.pow(2,32);
207
207
  function pad0r(v/*:any*/,d/*:number*/)/*:string*/{if(v>p2_32||v<-p2_32) return pad0r1(v,d); var i = Math.round(v); return pad0r2(i,d); }
208
208
  /* yes, in 2022 this is still faster than string compare */
209
209
  function SSF_isgeneral(s/*:string*/, i/*:?number*/)/*:boolean*/ { i = i || 0; return s.length >= 7 + i && (s.charCodeAt(i)|32) === 103 && (s.charCodeAt(i+1)|32) === 101 && (s.charCodeAt(i+2)|32) === 110 && (s.charCodeAt(i+3)|32) === 101 && (s.charCodeAt(i+4)|32) === 114 && (s.charCodeAt(i+5)|32) === 97 && (s.charCodeAt(i+6)|32) === 108; }
210
- var days/*:Array<Array<string> >*/ = [
210
+ var days$1/*:Array<Array<string> >*/ = [
211
211
  ['Sun', 'Sunday'],
212
212
  ['Mon', 'Monday'],
213
213
  ['Tue', 'Tuesday'],
@@ -500,8 +500,8 @@ function SSF_write_date(type/*:number*/, fmt/*:string*/, val, ss0/*:?number*/)/*
500
500
  case 100: /* 'd' day */
501
501
  switch(fmt.length) {
502
502
  case 1: case 2: out = val.d; outl = fmt.length; break;
503
- case 3: return days[val.q][0];
504
- default: return days[val.q][1];
503
+ case 3: return days$1[val.q][0];
504
+ default: return days$1[val.q][1];
505
505
  } break;
506
506
  case 104: /* 'h' 12-hour */
507
507
  switch(fmt.length) {
@@ -22027,7 +22027,7 @@ async function ly0request$1(_ref2) {
22027
22027
  }
22028
22028
 
22029
22029
  // 存储过程
22030
- async function storpro(_ref3) {
22030
+ async function storpro$1(_ref3) {
22031
22031
  let {
22032
22032
  storproName = '',
22033
22033
  // 存储过程名称
@@ -22162,7 +22162,7 @@ var ly0request = {
22162
22162
  upload_carplate,
22163
22163
  request: request$1,
22164
22164
  ly0request: ly0request$1,
22165
- storpro,
22165
+ storpro: storpro$1,
22166
22166
  ly0sessionSave,
22167
22167
  ly0sessionLoad,
22168
22168
  ly0sessionClear,
@@ -22211,6 +22211,83 @@ var WeChat = {
22211
22211
 
22212
22212
  // 引用标准:GB/T 2260
22213
22213
 
22214
+ /**
22215
+ * 将Date对象格式化为指定的字符串格式
22216
+ *
22217
+ * @param {Date} date - 要格式化的日期对象
22218
+ * @param {string} format - 目标格式字符串,例如:"yyyy年MM月dd日", "yyyy/MM/dd HH:mm:ss", "MM-dd HH:mm"
22219
+ * @returns {string} 格式化后的日期字符串
22220
+ */
22221
+ function dateFormat$1(date, format) {
22222
+ // 有效的 Date 对象一致性
22223
+ const Date0 = new Date(date);
22224
+
22225
+ const o = {
22226
+ 'M+': Date0.getMonth() + 1, // 月份
22227
+ 'd+': Date0.getDate(), // 日
22228
+ 'h+': Date0.getHours() % 12 === 0 ? 12 : Date0.getHours() % 12, // 12小时制
22229
+ 'H+': Date0.getHours(), // 24小时制
22230
+ 'm+': Date0.getMinutes(), // 分
22231
+ 's+': Date0.getSeconds(), // 秒
22232
+ 'q+': Math.floor((Date0.getMonth() + 3) / 3), // 季度
22233
+ 'S': Date0.getMilliseconds() // 毫秒
22234
+ };
22235
+
22236
+ // 替换年份 'yyyy'
22237
+ if (/(y+)/.test(format)) {
22238
+ format = format.replace(RegExp.$1, (Date0.getFullYear() + "").substr(4 - RegExp.$1.length));
22239
+ }
22240
+
22241
+ // 替换 'AM/PM'
22242
+ if (/(A|a)/.test(format)) {
22243
+ const ampm = Date0.getHours() < 12 ? 'AM' : 'PM';
22244
+ format = format.replace(RegExp.$1, RegExp.$1 === 'a' ? ampm.toLowerCase() : ampm);
22245
+ }
22246
+
22247
+ // 替换其他时间单位 'MM', 'dd', 'HH' 等
22248
+ for (let k in o) {
22249
+ if (new RegExp("(" + k + ")").test(format)) {
22250
+ const value = o[k];
22251
+ // $1 匹配到的字符串,例如 'MM'
22252
+ // 如果是毫秒 'S',则不补零
22253
+ format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? (value) : (("00" + value).substr(("" + value).length)));
22254
+ }
22255
+ }
22256
+
22257
+ return format;
22258
+ }
22259
+
22260
+ /**
22261
+ * 计算两个日期之间相差的天数
22262
+ *
22263
+ * @param {Date} dateFrom - 开始日期 (Date 对象)
22264
+ * @param {Date} dateTo - 结束日期 (Date 对象)
22265
+ * @returns {number | null} 相差的天数(向下取整)。如果日期无效,则返回 null。
22266
+ * 结果为正数表示 dateTo 在 dateFrom 之后;负数表示 dateFrom 在 dateTo 之后。
22267
+ */
22268
+ function days(dateFrom, dateTo) {
22269
+ // 1. 有效的 Date 对象一致性
22270
+ const DateFrom0 = new Date(dateFrom);
22271
+ const DateTo0 = new Date(dateTo);
22272
+
22273
+ // 2. 计算两个日期的时间戳差值 (毫秒)
22274
+ // Date.getTime() 返回从 1970 年 1 月 1 日 00:00:00 UTC 至今的毫秒数
22275
+ const timeDifference = DateTo0.getTime() - DateFrom0.getTime();
22276
+
22277
+ // 3. 定义一天对应的毫秒数
22278
+ const msPerDay = 1000 * 60 * 60 * 24;
22279
+
22280
+ // 4. 将毫秒差值转换为天数
22281
+ // Math.floor() 用于向下取整,确保得到完整的经过天数
22282
+ const dayDifference = Math.floor(timeDifference / msPerDay);
22283
+
22284
+ return dayDifference;
22285
+ }
22286
+ var dateFormat = {
22287
+ dateFormat: dateFormat$1,
22288
+ days
22289
+ };
22290
+
22214
22291
  /**
22215
22292
  * 深度拷贝函数
22216
22293
  *
@@ -22739,6 +22816,7 @@ var deepClone = {
22739
22816
  };
22740
22817
 
22741
22818
  var unclassified = {
22819
+ dateFormat,
22742
22820
  deepClone};
22743
22821
 
22744
22822
  // with-table数据模板
@@ -23325,7 +23403,7 @@ var styleModule = {
23325
23403
  input
23326
23404
  };
23327
23405
 
23328
- var script$m = {
23406
+ var script$o = {
23329
23407
  __name: 'LabelBox',
23330
23408
  props: {
23331
23409
  modelValue: {
@@ -23383,7 +23461,7 @@ return (_ctx, _cache) => {
23383
23461
 
23384
23462
  };
23385
23463
 
23386
- script$m.__file = "src/form/LabelBox.vue";
23464
+ script$o.__file = "src/form/LabelBox.vue";
23387
23465
 
23388
23466
  const _hoisted_1$h = { key: 12 };
23389
23467
  const _hoisted_2$e = { key: 0 };
@@ -23415,7 +23493,7 @@ const _hoisted_27 = { key: 29 };
23415
23493
  const _hoisted_28 = { key: 30 };
23416
23494
 
23417
23495
 
23418
- var script$l = {
23496
+ var script$n = {
23419
23497
  __name: 'InputBox',
23420
23498
  props: {
23421
23499
  modelValue: {
@@ -24156,7 +24234,7 @@ return (_ctx, _cache) => {
24156
24234
 
24157
24235
  };
24158
24236
 
24159
- script$l.__file = "src/form/InputBox.vue";
24237
+ script$n.__file = "src/form/InputBox.vue";
24160
24238
 
24161
24239
  const _hoisted_1$g = { key: 0 };
24162
24240
  const _hoisted_2$d = ["colspan"];
@@ -24164,7 +24242,7 @@ const _hoisted_3$6 = { key: 0 };
24164
24242
  const _hoisted_4$4 = ["colspan"];
24165
24243
 
24166
24244
 
24167
- var script$k = {
24245
+ var script$m = {
24168
24246
  __name: 'Form',
24169
24247
  props: {
24170
24248
  modelValue: {
@@ -24243,7 +24321,7 @@ return (_ctx, _cache) => {
24243
24321
  key: 0,
24244
24322
  style: normalizeStyle(style.field_box.left)
24245
24323
  }, [
24246
- createVNode(script$m, {
24324
+ createVNode(script$o, {
24247
24325
  modelValue: unref(formData_box),
24248
24326
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24249
24327
  myProps: unref(formProps_box),
@@ -24293,7 +24371,7 @@ return (_ctx, _cache) => {
24293
24371
  key: 0,
24294
24372
  style: normalizeStyle(style.field_box.left)
24295
24373
  }, [
24296
- createVNode(script$m, {
24374
+ createVNode(script$o, {
24297
24375
  modelValue: unref(formData_box),
24298
24376
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24299
24377
  myProps: unref(formProps_box),
@@ -24306,7 +24384,7 @@ return (_ctx, _cache) => {
24306
24384
  style: normalizeStyle(style.field_box.right),
24307
24385
  colspan: style.no_field_label(item2)
24308
24386
  }, [
24309
- createVNode(script$l, {
24387
+ createVNode(script$n, {
24310
24388
  modelValue: unref(formData_box),
24311
24389
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24312
24390
  myProps: unref(formProps_box),
@@ -24329,7 +24407,7 @@ return (_ctx, _cache) => {
24329
24407
  _: 2 /* DYNAMIC */
24330
24408
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
24331
24409
  : createCommentVNode("v-if", true),
24332
- createVNode(script$l, {
24410
+ createVNode(script$n, {
24333
24411
  modelValue: unref(formData_box),
24334
24412
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24335
24413
  myProps: unref(formProps_box),
@@ -24375,7 +24453,7 @@ return (_ctx, _cache) => {
24375
24453
 
24376
24454
  };
24377
24455
 
24378
- script$k.__file = "src/form/Form.vue";
24456
+ script$m.__file = "src/form/Form.vue";
24379
24457
 
24380
24458
  // 默认值
24381
24459
 
@@ -24420,7 +24498,7 @@ var ly0default$3 = {
24420
24498
  }
24421
24499
  };
24422
24500
 
24423
- var script$j = {
24501
+ var script$l = {
24424
24502
  __name: 'Index',
24425
24503
  props: {
24426
24504
  modelValue: {
@@ -24462,7 +24540,7 @@ return (_ctx, _cache) => {
24462
24540
  "destroy-on-close": true
24463
24541
  }, {
24464
24542
  default: withCtx(() => [
24465
- createVNode(script$k, {
24543
+ createVNode(script$m, {
24466
24544
  modelValue: unref(formData_box),
24467
24545
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24468
24546
  myProps: formProps_box,
@@ -24471,7 +24549,7 @@ return (_ctx, _cache) => {
24471
24549
  ]),
24472
24550
  _: 1 /* STABLE */
24473
24551
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
24474
- : (openBlock(), createBlock(script$k, {
24552
+ : (openBlock(), createBlock(script$m, {
24475
24553
  key: 1,
24476
24554
  modelValue: unref(formData_box),
24477
24555
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
@@ -24483,7 +24561,7 @@ return (_ctx, _cache) => {
24483
24561
 
24484
24562
  };
24485
24563
 
24486
- script$j.__file = "src/form/Index.vue";
24564
+ script$l.__file = "src/form/Index.vue";
24487
24565
 
24488
24566
  var ly0default$2 = {
24489
24567
  myProps: {
@@ -24499,7 +24577,7 @@ var ly0default$2 = {
24499
24577
  }
24500
24578
  };
24501
24579
 
24502
- var script$i = {
24580
+ var script$k = {
24503
24581
  __name: 'Index',
24504
24582
  props: {
24505
24583
  myProps: {
@@ -24776,7 +24854,7 @@ return (_ctx, _cache) => {
24776
24854
 
24777
24855
  };
24778
24856
 
24779
- script$i.__file = "src/menu/Index.vue";
24857
+ script$k.__file = "src/menu/Index.vue";
24780
24858
 
24781
24859
  var quill$1 = {exports: {}};
24782
24860
 
@@ -41632,7 +41710,7 @@ v-model 是一个语法糖(syntactic sugar)。当你在一个自定义组件
41632
41710
  2. 监听一个名为 update:modelValue 的自定义事件(用于更新值)
41633
41711
  */
41634
41712
 
41635
- var script$h = {
41713
+ var script$j = {
41636
41714
  __name: 'index',
41637
41715
  props: {
41638
41716
  // v-model 对应的 prop
@@ -41774,12 +41852,12 @@ return (_ctx, _cache) => {
41774
41852
 
41775
41853
  };
41776
41854
 
41777
- script$h.__file = "src/richtext/index.vue";
41855
+ script$j.__file = "src/richtext/index.vue";
41778
41856
 
41779
41857
  const _hoisted_1$f = { style: {"text-align":"center"} };
41780
41858
 
41781
41859
 
41782
- var script$g = {
41860
+ var script$i = {
41783
41861
  __name: 'PickCol',
41784
41862
  props: {
41785
41863
  tableProps: {
@@ -41958,7 +42036,7 @@ return (_ctx, _cache) => {
41958
42036
 
41959
42037
  };
41960
42038
 
41961
- script$g.__file = "src/table/PickCol.vue";
42039
+ script$i.__file = "src/table/PickCol.vue";
41962
42040
 
41963
42041
  const _hoisted_1$e = { style: {"padding":"10px"} };
41964
42042
  const _hoisted_2$c = { key: 0 };
@@ -41970,7 +42048,7 @@ const _hoisted_5$1 = {
41970
42048
  };
41971
42049
 
41972
42050
 
41973
- var script$f = {
42051
+ var script$h = {
41974
42052
  __name: 'Table',
41975
42053
  props: {
41976
42054
  modelValue: {
@@ -42452,14 +42530,14 @@ return (_ctx, _cache) => {
42452
42530
  }, null, 8 /* PROPS */, ["total", "page-size", "page-sizes", "current-page", "style", "onSizeChange", "onCurrentChange"]),
42453
42531
  createCommentVNode(" 选择列 "),
42454
42532
  createCommentVNode(" 使用该组件,必须设置每一列的唯一标识:key "),
42455
- createVNode(script$g, { tableProps: unref(tableProps_box) }, null, 8 /* PROPS */, ["tableProps"])
42533
+ createVNode(script$i, { tableProps: unref(tableProps_box) }, null, 8 /* PROPS */, ["tableProps"])
42456
42534
  ]))
42457
42535
  }
42458
42536
  }
42459
42537
 
42460
42538
  };
42461
42539
 
42462
- script$f.__file = "src/table/Table.vue";
42540
+ script$h.__file = "src/table/Table.vue";
42463
42541
 
42464
42542
  // 默认值
42465
42543
 
@@ -42547,7 +42625,7 @@ var ly0default$1 = {
42547
42625
  }
42548
42626
  };
42549
42627
 
42550
- var script$e = {
42628
+ var script$g = {
42551
42629
  __name: 'Index',
42552
42630
  props: {
42553
42631
  modelValue: {
@@ -42590,7 +42668,7 @@ return (_ctx, _cache) => {
42590
42668
  "destroy-on-close": true
42591
42669
  }, {
42592
42670
  default: withCtx(() => [
42593
- createVNode(script$f, {
42671
+ createVNode(script$h, {
42594
42672
  modelValue: unref(tableData_box),
42595
42673
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
42596
42674
  myProps: tableProps_box,
@@ -42599,7 +42677,7 @@ return (_ctx, _cache) => {
42599
42677
  ]),
42600
42678
  _: 1 /* STABLE */
42601
42679
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
42602
- : (openBlock(), createBlock(script$f, {
42680
+ : (openBlock(), createBlock(script$h, {
42603
42681
  key: 1,
42604
42682
  modelValue: unref(tableData_box),
42605
42683
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
@@ -42611,7 +42689,7 @@ return (_ctx, _cache) => {
42611
42689
 
42612
42690
  };
42613
42691
 
42614
- script$e.__file = "src/table/Index.vue";
42692
+ script$g.__file = "src/table/Index.vue";
42615
42693
 
42616
42694
  var ly0default = {
42617
42695
  myProps: {
@@ -42646,7 +42724,7 @@ const _hoisted_2$b = {
42646
42724
 
42647
42725
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42648
42726
 
42649
- var script$d = {
42727
+ var script$f = {
42650
42728
  __name: 'Upload',
42651
42729
  props: {
42652
42730
  // modelValue: 外部 v-model 绑定的值
@@ -42790,14 +42868,14 @@ return (_ctx, _cache) => {
42790
42868
 
42791
42869
  };
42792
42870
 
42793
- script$d.__file = "src/upload/Upload.vue";
42871
+ script$f.__file = "src/upload/Upload.vue";
42794
42872
 
42795
42873
  const _hoisted_1$c = ["src"];
42796
42874
  const _hoisted_2$a = { key: 0 };
42797
42875
 
42798
42876
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42799
42877
 
42800
- var script$c = {
42878
+ var script$e = {
42801
42879
  __name: 'Upload-avatar',
42802
42880
  props: {
42803
42881
  // modelValue: 外部 v-model 绑定的值
@@ -42970,8 +43048,8 @@ return (_ctx, _cache) => {
42970
43048
 
42971
43049
  };
42972
43050
 
42973
- script$c.__scopeId = "data-v-0b647a60";
42974
- script$c.__file = "src/upload/Upload-avatar.vue";
43051
+ script$e.__scopeId = "data-v-0b647a60";
43052
+ script$e.__file = "src/upload/Upload-avatar.vue";
42975
43053
 
42976
43054
  const _hoisted_1$b = ["src"];
42977
43055
  const _hoisted_2$9 = { key: 0 };
@@ -42980,7 +43058,7 @@ const _hoisted_4$2 = { key: 1 };
42980
43058
 
42981
43059
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42982
43060
 
42983
- var script$b = {
43061
+ var script$d = {
42984
43062
  __name: 'Upload-carplate',
42985
43063
  props: {
42986
43064
  // modelValue: 外部 v-model 绑定的值
@@ -43163,8 +43241,8 @@ return (_ctx, _cache) => {
43163
43241
 
43164
43242
  };
43165
43243
 
43166
- script$b.__scopeId = "data-v-6fc32e0e";
43167
- script$b.__file = "src/upload/Upload-carplate.vue";
43244
+ script$d.__scopeId = "data-v-6fc32e0e";
43245
+ script$d.__file = "src/upload/Upload-carplate.vue";
43168
43246
 
43169
43247
  const _hoisted_1$a = { class: "el-upload__tip" };
43170
43248
  const _hoisted_2$8 = {
@@ -43174,7 +43252,7 @@ const _hoisted_2$8 = {
43174
43252
 
43175
43253
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43176
43254
 
43177
- var script$a = {
43255
+ var script$c = {
43178
43256
  __name: 'Upload-drag',
43179
43257
  props: {
43180
43258
  // modelValue: 外部 v-model 绑定的值
@@ -43321,7 +43399,7 @@ return (_ctx, _cache) => {
43321
43399
 
43322
43400
  };
43323
43401
 
43324
- script$a.__file = "src/upload/Upload-drag.vue";
43402
+ script$c.__file = "src/upload/Upload-drag.vue";
43325
43403
 
43326
43404
  const _hoisted_1$9 = { class: "el-upload__tip" };
43327
43405
  const _hoisted_2$7 = {
@@ -43331,7 +43409,7 @@ const _hoisted_2$7 = {
43331
43409
 
43332
43410
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43333
43411
 
43334
- var script$9 = {
43412
+ var script$b = {
43335
43413
  __name: 'Upload-picture',
43336
43414
  props: {
43337
43415
  // modelValue: 外部 v-model 绑定的值
@@ -43474,7 +43552,7 @@ return (_ctx, _cache) => {
43474
43552
 
43475
43553
  };
43476
43554
 
43477
- script$9.__file = "src/upload/Upload-picture.vue";
43555
+ script$b.__file = "src/upload/Upload-picture.vue";
43478
43556
 
43479
43557
  const _hoisted_1$8 = { class: "el-upload__tip" };
43480
43558
  const _hoisted_2$6 = ["src"];
@@ -43485,7 +43563,7 @@ const _hoisted_3$3 = {
43485
43563
 
43486
43564
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43487
43565
 
43488
- var script$8 = {
43566
+ var script$a = {
43489
43567
  __name: 'Upload-picture-card',
43490
43568
  props: {
43491
43569
  // modelValue: 外部 v-model 绑定的值
@@ -43623,15 +43701,15 @@ return (_ctx, _cache) => {
43623
43701
 
43624
43702
  };
43625
43703
 
43626
- script$8.__file = "src/upload/Upload-picture-card.vue";
43704
+ script$a.__file = "src/upload/Upload-picture-card.vue";
43627
43705
 
43628
43706
  var upload = {
43629
- Upload: script$d,
43630
- Upload_avatar: script$c,
43631
- Upload_carplate: script$b,
43632
- Upload_drag: script$a,
43633
- Upload_picture: script$9,
43634
- Upload_pictureCard: script$8
43707
+ Upload: script$f,
43708
+ Upload_avatar: script$e,
43709
+ Upload_carplate: script$d,
43710
+ Upload_drag: script$c,
43711
+ Upload_picture: script$b,
43712
+ Upload_pictureCard: script$a
43635
43713
  };
43636
43714
 
43637
43715
  const _hoisted_1$7 = { style: {"width":"100%"} };
@@ -43639,7 +43717,7 @@ const _hoisted_2$5 = { style: {"width":"30%"} };
43639
43717
 
43640
43718
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43641
43719
 
43642
- var script$7 = {
43720
+ var script$9 = {
43643
43721
  __name: 'Index',
43644
43722
  props: {
43645
43723
  // modelValue: 外部 v-model 绑定的值
@@ -44000,7 +44078,7 @@ return (_ctx, _cache) => {
44000
44078
 
44001
44079
  };
44002
44080
 
44003
- script$7.__file = "src/gbt2260/Index.vue";
44081
+ script$9.__file = "src/gbt2260/Index.vue";
44004
44082
 
44005
44083
  var formData = {
44006
44084
  id_business: null,
@@ -47394,7 +47472,7 @@ var handles = {
47394
47472
  const _hoisted_1$6 = { class: "amount" };
47395
47473
 
47396
47474
 
47397
- var script$6 = {
47475
+ var script$8 = {
47398
47476
  __name: 'Index',
47399
47477
  props: {
47400
47478
  myProps: {
@@ -47467,13 +47545,13 @@ return (_ctx, _cache) => {
47467
47545
 
47468
47546
  };
47469
47547
 
47470
- script$6.__scopeId = "data-v-4b8e1496";
47471
- script$6.__file = "src/ly0d2cash/qrcode/Index.vue";
47548
+ script$8.__scopeId = "data-v-4b8e1496";
47549
+ script$8.__file = "src/ly0d2cash/qrcode/Index.vue";
47472
47550
 
47473
47551
  const _hoisted_1$5 = { style: {"padding":"10px"} };
47474
47552
 
47475
47553
 
47476
- var script$5 = {
47554
+ var script$7 = {
47477
47555
  __name: 'Index',
47478
47556
  props: {
47479
47557
  modelValue: {
@@ -47516,7 +47594,7 @@ return (_ctx, _cache) => {
47516
47594
  scopeThis: scopeThis
47517
47595
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]),
47518
47596
  (!!scopeThis.qrcode.formData.code_url && scopeThis.qrcode.popup.visible)
47519
- ? (openBlock(), createBlock(script$6, {
47597
+ ? (openBlock(), createBlock(script$8, {
47520
47598
  key: 0,
47521
47599
  myProps: scopeThis.qrcode
47522
47600
  }, null, 8 /* PROPS */, ["myProps"]))
@@ -47527,7 +47605,895 @@ return (_ctx, _cache) => {
47527
47605
 
47528
47606
  };
47529
47607
 
47530
- script$5.__file = "src/ly0d2cash/Index.vue";
47608
+ script$7.__file = "src/ly0d2cash/Index.vue";
47609
+
47610
+ var query = {
47611
+ formData: {
47612
+ _id: null,
47613
+ id_business: null,
47614
+ businesstype_code: '',
47615
+ note: ""
47616
+ },
47617
+ sort: null,
47618
+ pageSize: 10,
47619
+ currentPage: 1
47620
+ };
47621
+
47622
+ var tableData = {
47623
+ data: [],
47624
+ sort: JSON.parse(JSON.stringify(query.sort)),
47625
+ pageSize: query.pageSize,
47626
+ currentPage: query.currentPage
47627
+ };
47628
+
47629
+ var tableProps = {
47630
+ // 置顶菜单
47631
+ menu: [{
47632
+ title: "查询",
47633
+ menu: [{
47634
+ title: "全部",
47635
+ async handle(_ref) {
47636
+ let {
47637
+ scopeThis,
47638
+ index
47639
+ } = _ref;
47640
+ await withTable.reload({
47641
+ scopeThis
47642
+ });
47643
+ }
47644
+ }, {
47645
+ title: "刷新",
47646
+ async handle(_ref2) {
47647
+ let {
47648
+ scopeThis,
47649
+ index
47650
+ } = _ref2;
47651
+ await withTable.refresh({
47652
+ scopeThis
47653
+ });
47654
+ }
47655
+ }, {
47656
+ title: "查询",
47657
+ handle(_ref3) {
47658
+ let {
47659
+ scopeThis,
47660
+ index
47661
+ } = _ref3;
47662
+ withTable.popupFind({
47663
+ scopeThis
47664
+ });
47665
+ }
47666
+ }, {
47667
+ title: "新增",
47668
+ hdlDisabled(_ref4) {
47669
+ let {
47670
+ scopeThis,
47671
+ item,
47672
+ index
47673
+ } = _ref4;
47674
+ return scopeThis.initBox.readOnly;
47675
+ },
47676
+ handle(_ref5) {
47677
+ let {
47678
+ scopeThis,
47679
+ index
47680
+ } = _ref5;
47681
+ withTable.popupInsertOne({
47682
+ scopeThis
47683
+ });
47684
+ }
47685
+ }]
47686
+ }, {
47687
+ title: "收银",
47688
+ hdlDisabled(_ref6) {
47689
+ let {
47690
+ scopeThis,
47691
+ item,
47692
+ index
47693
+ } = _ref6;
47694
+ return scopeThis.initBox.readOnly;
47695
+ },
47696
+ menu: [{
47697
+ title: "收银",
47698
+ handle(_ref7) {
47699
+ let {
47700
+ scopeThis,
47701
+ index
47702
+ } = _ref7;
47703
+ scopeThis.cashBox.formData.id_business = scopeThis.initBox.id_business;
47704
+ scopeThis.cashBox.formData.businesstype_code = scopeThis.initBox.businesstype_code;
47705
+ // 支付金额合计
47706
+ scopeThis.cashBox.formData.amount = Math.floor(scopeThis.initBox.deal -
47707
+ // 订单金额(应收应付)
47708
+ scopeThis.amountBox.succeeded -
47709
+ // 支付成功
47710
+ scopeThis.amountBox.started // 支付中
47711
+ ) / 100;
47712
+ scopeThis.cashBox.formData.wx_appid = scopeThis.initBox.wx_appid;
47713
+ scopeThis.cashBox.formData.wx_mchid = scopeThis.initBox.wx_mchid;
47714
+ scopeThis.cashBox.formProps.popup.visible = true;
47715
+ }
47716
+ }, {
47717
+ title: "退款",
47718
+ handle(_ref8) {
47719
+ let {
47720
+ scopeThis,
47721
+ index
47722
+ } = _ref8;
47723
+ ElMessageBox.confirm('退款?', '警告', {
47724
+ confirmButtonText: '确认',
47725
+ cancelButtonText: '取消',
47726
+ type: 'warning'
47727
+ }).then(() => {
47728
+ ly0request.ly0.storpro({
47729
+ storproName: "ly0d2.wxzf.refund",
47730
+ data: {
47731
+ id_business: scopeThis.initBox.id_business
47732
+ }
47733
+ }).then(() => {
47734
+ ElMessage("已退款");
47735
+ withTable.refresh({
47736
+ scopeThis
47737
+ });
47738
+ });
47739
+ }).catch(err => {
47740
+ ElMessage({
47741
+ type: 'info',
47742
+ message: '取消退款'
47743
+ });
47744
+ });
47745
+ }
47746
+ }, {
47747
+ title: "中止支付",
47748
+ handle(_ref9) {
47749
+ let {
47750
+ scopeThis,
47751
+ index
47752
+ } = _ref9;
47753
+ ly0request.ly0.storpro({
47754
+ storproName: "ly0d2.wxzf.setFail",
47755
+ data: {
47756
+ mchid: scopeThis.initBox.mchid,
47757
+ id_business: scopeThis.initBox.id_business
47758
+ }
47759
+ }).then(() => {
47760
+ ElMessage("已中止支付");
47761
+ withTable.refresh({
47762
+ scopeThis
47763
+ });
47764
+ });
47765
+ }
47766
+ }]
47767
+ }],
47768
+ table: {
47769
+ cols: [{
47770
+ label: '金额',
47771
+ show: 'expression',
47772
+ hdlExpression(_ref0) {
47773
+ let {
47774
+ scopeThis,
47775
+ row
47776
+ } = _ref0;
47777
+ return row.amount ? Math.floor(row.amount) / 100 : 0;
47778
+ },
47779
+ width: "75px"
47780
+ }, {
47781
+ label: '支付方式',
47782
+ show: 'expression',
47783
+ hdlExpression(_ref1) {
47784
+ let {
47785
+ scopeThis,
47786
+ row
47787
+ } = _ref1;
47788
+ return row.process_text + (row.process_code === '0' ? "/" + row.method_text : "");
47789
+ }
47790
+ }, {
47791
+ label: '支付状态',
47792
+ show: 'expression',
47793
+ hdlExpression(_ref10) {
47794
+ let {
47795
+ scopeThis,
47796
+ row
47797
+ } = _ref10;
47798
+ return row.status_text + "\n" + unclassified.dateFormat.dateFormat(row.time, 'yyyy/MM/dd hh:mm:ss');
47799
+ }
47800
+ }, {
47801
+ label: '操作',
47802
+ show: 'button-group',
47803
+ buttonGroup: [{
47804
+ text: "详细",
47805
+ size: "small",
47806
+ hdlClick(_ref11) {
47807
+ let {
47808
+ scopeThis,
47809
+ row
47810
+ } = _ref11;
47811
+ withTable.popupDoc({
47812
+ scopeThis,
47813
+ row
47814
+ });
47815
+ }
47816
+ }, {
47817
+ text: "修改",
47818
+ size: "small",
47819
+ hdlClick(_ref12) {
47820
+ let {
47821
+ scopeThis,
47822
+ row
47823
+ } = _ref12;
47824
+ withTable.popupUpdateOne({
47825
+ scopeThis,
47826
+ row
47827
+ });
47828
+ }
47829
+ }, {
47830
+ text: "删除",
47831
+ hdlVisible(_ref13) {
47832
+ let {
47833
+ scopeThis,
47834
+ row
47835
+ } = _ref13;
47836
+ return scopeThis.initBox.readOnly;
47837
+ },
47838
+ size: "small",
47839
+ hdlClick(_ref14) {
47840
+ let {
47841
+ scopeThis,
47842
+ row
47843
+ } = _ref14;
47844
+ withTable.submitDeleteOne({
47845
+ scopeThis,
47846
+ row
47847
+ });
47848
+ },
47849
+ style: {
47850
+ 'background-color': '#ff640a',
47851
+ 'color': '#ffffff'
47852
+ }
47853
+ }]
47854
+ }]
47855
+ }
47856
+ };
47857
+
47858
+ var storpro = {
47859
+ refresh: "ly0d2.record0.find",
47860
+ insertOne: "ly0d2.record0.insertOne",
47861
+ updateOne: "ly0d2.record0.updateOne",
47862
+ deleteOne: "ly0d2.record0.deleteOne",
47863
+ getPgData: "ly0d2.record0.getPgData",
47864
+ getPayments: "ly0d2.wxzf.getPayments",
47865
+ setFail: "ly0d2.wxzf.setFail"
47866
+ };
47867
+
47868
+ var find = {
47869
+ formProps: {
47870
+ popup: {
47871
+ switch: true,
47872
+ visible: false,
47873
+ title: "查询"
47874
+ },
47875
+ cols: [{
47876
+ items: [{
47877
+ inputType: "input",
47878
+ label: "备注",
47879
+ fieldName: "note",
47880
+ style: {
47881
+ width: "200px"
47882
+ }
47883
+ }]
47884
+ }],
47885
+ submit: {
47886
+ async handle(_ref) {
47887
+ let {
47888
+ formData,
47889
+ scopeThis
47890
+ } = _ref;
47891
+ await withTable.submitFind({
47892
+ scopeThis
47893
+ });
47894
+ }
47895
+ }
47896
+ }
47897
+ };
47898
+
47899
+ var insertOne = {
47900
+ formProps: {
47901
+ popup: {
47902
+ switch: true,
47903
+ visible: false,
47904
+ title: "新增"
47905
+ },
47906
+ cols: [{
47907
+ items: [{
47908
+ inputType: "input",
47909
+ label: "金额",
47910
+ fieldName: "amount0",
47911
+ style: {
47912
+ width: "100px"
47913
+ }
47914
+ }, {
47915
+ inputType: "select",
47916
+ label: "用户自主支付方式",
47917
+ fieldName: "method_code",
47918
+ item_fieldLabel: "text",
47919
+ item_fieldValue: "code",
47920
+ hdlGetItems(_ref) {
47921
+ let {
47922
+ scopeThis
47923
+ } = _ref;
47924
+ return scopeThis.pgData.data.arrMethod;
47925
+ },
47926
+ style: {
47927
+ width: "200px"
47928
+ }
47929
+ }, {
47930
+ inputType: "input",
47931
+ label: "备注",
47932
+ fieldName: "note",
47933
+ style: {
47934
+ width: "400px"
47935
+ }
47936
+ }]
47937
+ }],
47938
+ submit: {
47939
+ async handle(_ref2) {
47940
+ let {
47941
+ scopeThis
47942
+ } = _ref2;
47943
+ await withTable.submitInsertOne({
47944
+ scopeThis
47945
+ });
47946
+ }
47947
+ }
47948
+ },
47949
+ formData: {
47950
+ _id: null,
47951
+ id_business: null,
47952
+ businesstype_code: "",
47953
+ businesstype_text: "",
47954
+ amount: 0,
47955
+ amount0: 0,
47956
+ process_code: "",
47957
+ process_text: "",
47958
+ method_code: "",
47959
+ method_text: "",
47960
+ status_code: "",
47961
+ status_text: "",
47962
+ time: null,
47963
+ end: null,
47964
+ note: "",
47965
+ rec: "",
47966
+ wxzf_appid: "",
47967
+ wxzf_mchid: "",
47968
+ wxzf_code_url: "",
47969
+ wxzf_out_trade_no: "",
47970
+ wxzf_transaction_id: "",
47971
+ wxzf_trade_type: "",
47972
+ wxzf_trade_state: "",
47973
+ wxzf_trade_state_desc: "",
47974
+ wxzf_bank_type: "",
47975
+ wxzf_success_time: "",
47976
+ wxzf_payer_openid: "",
47977
+ wxzf_amount_total: 0
47978
+ }
47979
+ };
47980
+
47981
+ var updateOne = {
47982
+ formProps: {
47983
+ popup: {
47984
+ switch: true,
47985
+ visible: false,
47986
+ title: "修改"
47987
+ },
47988
+ cols: [{
47989
+ items: [{
47990
+ inputType: "input",
47991
+ label: "金额",
47992
+ fieldName: "amount0",
47993
+ style: {
47994
+ width: "100px"
47995
+ }
47996
+ }, {
47997
+ inputType: "select",
47998
+ label: "用户自主支付方式",
47999
+ fieldName: "method_code",
48000
+ item_fieldLabel: "text",
48001
+ item_fieldValue: "code",
48002
+ hdlGetItems(_ref) {
48003
+ let {
48004
+ scopeThis
48005
+ } = _ref;
48006
+ return scopeThis.pgData.data.arrMethod;
48007
+ },
48008
+ style: {
48009
+ width: "200px"
48010
+ }
48011
+ }, {
48012
+ inputType: "input",
48013
+ label: "备注",
48014
+ fieldName: "note",
48015
+ style: {
48016
+ width: "400px"
48017
+ }
48018
+ }]
48019
+ }],
48020
+ submit: {
48021
+ async handle(_ref2) {
48022
+ let {
48023
+ scopeThis
48024
+ } = _ref2;
48025
+ await withTable.submitUpdateOne({
48026
+ scopeThis
48027
+ });
48028
+ }
48029
+ }
48030
+ }
48031
+ };
48032
+
48033
+ var doc = {
48034
+ formProps: {
48035
+ popup: {
48036
+ switch: true,
48037
+ visible: false,
48038
+ title: "详细"
48039
+ },
48040
+ cols: [{
48041
+ items: [{
48042
+ inputType: "text",
48043
+ label: "数据单元id",
48044
+ fieldName: "id_dataunit",
48045
+ style: {
48046
+ width: "300px"
48047
+ }
48048
+ }, {
48049
+ inputType: "text",
48050
+ label: "数据单元名称",
48051
+ fieldName: "dataunit_name",
48052
+ style: {
48053
+ width: "200px"
48054
+ }
48055
+ }, {
48056
+ inputType: "text",
48057
+ label: "订单id",
48058
+ fieldName: "id_business",
48059
+ style: {
48060
+ width: "300px"
48061
+ }
48062
+ }, {
48063
+ inputType: "text",
48064
+ label: "订单类型",
48065
+ fieldName: "businesstype_text",
48066
+ style: {
48067
+ width: "200px"
48068
+ }
48069
+ }, {
48070
+ inputType: "expression",
48071
+ label: "金额",
48072
+ hdlExpression(_ref) {
48073
+ let {
48074
+ scopeThis,
48075
+ formData
48076
+ } = _ref;
48077
+ return Math.floor(formData.amount) / 100;
48078
+ },
48079
+ style: {
48080
+ width: "100px"
48081
+ }
48082
+ }, {
48083
+ inputType: "text",
48084
+ label: "系统内置支付流程",
48085
+ fieldName: "process_text",
48086
+ style: {
48087
+ width: "200px"
48088
+ }
48089
+ }, {
48090
+ inputType: "text",
48091
+ label: "用户自主支付方式",
48092
+ fieldName: "method_text",
48093
+ style: {
48094
+ width: "200px"
48095
+ }
48096
+ }, {
48097
+ inputType: 'text',
48098
+ label: '支付状态',
48099
+ fieldName: "status_text",
48100
+ style: {
48101
+ width: "200px"
48102
+ }
48103
+ }, {
48104
+ inputType: "expression",
48105
+ label: "支付发起时间",
48106
+ hdlExpression(_ref2) {
48107
+ let {
48108
+ scopeThis,
48109
+ formData
48110
+ } = _ref2;
48111
+ return unclassified.dateFormat.dateFormat(formData.time);
48112
+ },
48113
+ style: {
48114
+ width: "200px"
48115
+ }
48116
+ }, {
48117
+ inputType: "expression",
48118
+ label: "支付结束时间",
48119
+ hdlExpression(_ref3) {
48120
+ let {
48121
+ scopeThis,
48122
+ formData
48123
+ } = _ref3;
48124
+ return unclassified.dateFormat.dateFormat(formData.end);
48125
+ },
48126
+ style: {
48127
+ width: "200px"
48128
+ }
48129
+ }, {
48130
+ inputType: "text",
48131
+ label: "备注",
48132
+ fieldName: "note",
48133
+ style: {
48134
+ width: "400px"
48135
+ }
48136
+ }, {
48137
+ inputType: "text",
48138
+ label: "记录",
48139
+ fieldName: "rec",
48140
+ style: {
48141
+ width: "200px"
48142
+ }
48143
+ }, {
48144
+ inputType: "collapse",
48145
+ items: [{
48146
+ title: "微信支付",
48147
+ items: [{
48148
+ inputType: "text",
48149
+ label: "应用ID(appid)",
48150
+ fieldName: "wxzf_appid",
48151
+ style: {
48152
+ width: "200px"
48153
+ }
48154
+ }, {
48155
+ inputType: "text",
48156
+ label: "商户号(mchid)",
48157
+ fieldName: "wxzf_mchid",
48158
+ style: {
48159
+ width: "200px"
48160
+ }
48161
+ }, {
48162
+ inputType: "text",
48163
+ label: "code_url",
48164
+ fieldName: "wxzf_code_url",
48165
+ style: {
48166
+ width: "200px"
48167
+ }
48168
+ }, {
48169
+ inputType: "text",
48170
+ label: "商品描述",
48171
+ fieldName: "wxzf_description",
48172
+ style: {
48173
+ width: "200px"
48174
+ }
48175
+ }, {
48176
+ inputType: "text",
48177
+ label: "商户系统内部订单号",
48178
+ fieldName: "wxzf_out_trade_no",
48179
+ style: {
48180
+ width: "200px"
48181
+ }
48182
+ }, {
48183
+ inputType: "text",
48184
+ label: "交易结束时间/订单失效时间",
48185
+ fieldName: "wxzf_time_expire",
48186
+ style: {
48187
+ width: "200px"
48188
+ }
48189
+ }, {
48190
+ inputType: "text",
48191
+ label: "附加数据",
48192
+ fieldName: "wxzf_attach",
48193
+ style: {
48194
+ width: "200px"
48195
+ }
48196
+ }, {
48197
+ inputType: "text",
48198
+ label: "通知地址",
48199
+ fieldName: "wxzf_notify_url",
48200
+ style: {
48201
+ width: "200px"
48202
+ }
48203
+ }, {
48204
+ inputType: "text",
48205
+ label: "支付者openid",
48206
+ fieldName: "wxzf_payer_openid",
48207
+ style: {
48208
+ width: "200px"
48209
+ }
48210
+ }, {
48211
+ inputType: "text",
48212
+ label: "金额",
48213
+ fieldName: "wxzf_amount_total",
48214
+ style: {
48215
+ width: "200px"
48216
+ }
48217
+ }, {
48218
+ inputType: "text",
48219
+ label: "场景信息-设备号",
48220
+ fieldName: "wxzf_scene_info_device_id",
48221
+ style: {
48222
+ width: "200px"
48223
+ }
48224
+ }, {
48225
+ inputType: "text",
48226
+ label: "预支付交易会话标识",
48227
+ fieldName: "wxzf_prepay_id",
48228
+ style: {
48229
+ width: "200px"
48230
+ }
48231
+ }, {
48232
+ inputType: "text",
48233
+ label: "微信支付订单号",
48234
+ fieldName: "wxzf_transaction_id",
48235
+ style: {
48236
+ width: "200px"
48237
+ }
48238
+ }, {
48239
+ inputType: "text",
48240
+ label: "交易类型",
48241
+ fieldName: "wxzf_trade_type",
48242
+ style: {
48243
+ width: "200px"
48244
+ }
48245
+ }, {
48246
+ inputType: "text",
48247
+ label: "交易状态",
48248
+ fieldName: "wxzf_trade_state",
48249
+ style: {
48250
+ width: "200px"
48251
+ }
48252
+ }, {
48253
+ inputType: "text",
48254
+ label: "交易状态描述",
48255
+ fieldName: "wxzf_trade_state_desc",
48256
+ style: {
48257
+ width: "200px"
48258
+ }
48259
+ }, {
48260
+ inputType: "text",
48261
+ label: "付款银行",
48262
+ fieldName: "wxzf_bank_type",
48263
+ style: {
48264
+ width: "200px"
48265
+ }
48266
+ }, {
48267
+ inputType: "text",
48268
+ label: "支付完成时间",
48269
+ fieldName: "wxzf_success_time",
48270
+ style: {
48271
+ width: "200px"
48272
+ }
48273
+ }, {
48274
+ inputType: "text",
48275
+ label: "查询金额",
48276
+ fieldName: "wxzf_amount_payer_total",
48277
+ style: {
48278
+ width: "200px"
48279
+ }
48280
+ }]
48281
+ }]
48282
+ }]
48283
+ }],
48284
+ submit: {
48285
+ switch: false // true - 提交模式, false - 组件模式
48286
+ }
48287
+ }
48288
+ };
48289
+
48290
+ var amountBox = {
48291
+ fun(_ref) {
48292
+ let {
48293
+ scopeThis
48294
+ } = _ref;
48295
+ let unpaid = 0,
48296
+ // 未支付
48297
+ started = 0,
48298
+ // 支付中
48299
+ succeeded = 0,
48300
+ // 支付成功
48301
+ failed = 0; // 支付失败
48302
+
48303
+ scopeThis.tableData.data.forEach(i => {
48304
+ if (i.status_code === '0') {
48305
+ unpaid = unpaid + i.amount;
48306
+ } else if (i.status_code === '1') {
48307
+ started = started + i.amount;
48308
+ } else if (i.status_code === '2') {
48309
+ succeeded = succeeded + i.amount;
48310
+ } else if (i.status_code === '3') {
48311
+ failed = failed + i.amount;
48312
+ }
48313
+ });
48314
+ return {
48315
+ sum: succeeded + started + unpaid,
48316
+ succeeded,
48317
+ started,
48318
+ failed,
48319
+ unpaid
48320
+ };
48321
+ }
48322
+ };
48323
+
48324
+ var cashBox = {
48325
+ formData,
48326
+ formProps
48327
+ };
48328
+
48329
+ var script$6 = {
48330
+ __name: 'main',
48331
+ props: {
48332
+ myProps: {
48333
+ type: Object,
48334
+ default: () => ({})
48335
+ }
48336
+ },
48337
+ setup(__props) {
48338
+
48339
+ const props = __props;
48340
+
48341
+ const scopeThis = reactive({
48342
+ tableData,
48343
+ tableProps,
48344
+ formData: {},
48345
+ formProps: {},
48346
+ queryInit: query,
48347
+ query: JSON.parse(JSON.stringify(query)),
48348
+ storpro,
48349
+ find,
48350
+ insertOne,
48351
+ updateOne,
48352
+ doc,
48353
+ pgData: {
48354
+ arrBusinessType: [],
48355
+ arrProcess: [],
48356
+ arrMethod: [],
48357
+ arrStatus: []
48358
+ },
48359
+ initBox: props.myProps,
48360
+ amountBox: computed(()=>{
48361
+ return amountBox.fun({scopeThis})
48362
+ }),
48363
+ cashBox
48364
+ });
48365
+
48366
+ onMounted(async ()=>{
48367
+ scopeThis.queryInit.formData.id_business = scopeThis.initBox.id_business;
48368
+ scopeThis.queryInit.formData.businesstype_code = scopeThis.initBox.businesstype_code;
48369
+ await withTable.init({scopeThis});
48370
+ });
48371
+
48372
+ return (_ctx, _cache) => {
48373
+ const _component_ly0Table = resolveComponent("ly0Table");
48374
+ const _component_ly0Form = resolveComponent("ly0Form");
48375
+ const _component_ly0d2cash = resolveComponent("ly0d2cash");
48376
+
48377
+ return (openBlock(), createElementBlock(Fragment, null, [
48378
+ createCommentVNode(" 金额统计 "),
48379
+ createElementVNode("table", null, [
48380
+ _cache[3] || (_cache[3] = createElementVNode("thead", null, [
48381
+ createElementVNode("tr", null, [
48382
+ createElementVNode("th", null, "订单金额(应收应付)"),
48383
+ createElementVNode("th", null, "支付金额合计"),
48384
+ createElementVNode("th", null, "支付成功"),
48385
+ createElementVNode("th", null, "支付中"),
48386
+ createElementVNode("th", null, "支付失败"),
48387
+ createElementVNode("th", null, "未支付")
48388
+ ])
48389
+ ], -1 /* CACHED */)),
48390
+ createElementVNode("tbody", null, [
48391
+ createElementVNode("tr", null, [
48392
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.initBox.deal) / 100), 1 /* TEXT */),
48393
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.amountBox.sum) / 100), 1 /* TEXT */),
48394
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.amountBox.succeeded) / 100), 1 /* TEXT */),
48395
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.amountBox.started) / 100), 1 /* TEXT */),
48396
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.amountBox.failed) / 100), 1 /* TEXT */),
48397
+ createElementVNode("td", null, toDisplayString(Math.floor(scopeThis.amountBox.unpaid) / 100), 1 /* TEXT */)
48398
+ ])
48399
+ ])
48400
+ ]),
48401
+ createCommentVNode(" 支付记录 "),
48402
+ createVNode(_component_ly0Table, {
48403
+ modelValue: scopeThis.tableData,
48404
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((scopeThis.tableData) = $event)),
48405
+ myProps: scopeThis.tableProps,
48406
+ scopeThis: scopeThis
48407
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]),
48408
+ (scopeThis.formData
48409
+ && scopeThis.formProps
48410
+ && scopeThis.formProps.popup
48411
+ && scopeThis.formProps.popup.visible)
48412
+ ? (openBlock(), createBlock(_component_ly0Form, {
48413
+ key: 0,
48414
+ modelValue: scopeThis.formData,
48415
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((scopeThis.formData) = $event)),
48416
+ myProps: scopeThis.formProps,
48417
+ scopeThis: scopeThis
48418
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
48419
+ : createCommentVNode("v-if", true),
48420
+ createCommentVNode(" 收银 "),
48421
+ createVNode(_component_ly0d2cash, {
48422
+ modelValue: scopeThis.cashBox.formData,
48423
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((scopeThis.cashBox.formData) = $event)),
48424
+ myProps: scopeThis.cashBox.formProps
48425
+ }, null, 8 /* PROPS */, ["modelValue", "myProps"])
48426
+ ], 64 /* STABLE_FRAGMENT */))
48427
+ }
48428
+ }
48429
+
48430
+ };
48431
+
48432
+ script$6.__file = "src/ly0d2busiside/main.vue";
48433
+
48434
+ var script$5 = {
48435
+ __name: 'Index',
48436
+ props: {
48437
+ myProps: {
48438
+ type: Object,
48439
+ default: () => ({})
48440
+ }
48441
+ },
48442
+ setup(__props) {
48443
+
48444
+ const props = __props;
48445
+
48446
+ const scopeThis = reactive({
48447
+ props_box: unclassified.deepClone.deepDefaults(props.myProps, {
48448
+ popup: {
48449
+ switch: false,
48450
+ visible: false,
48451
+ title: '支付记录',
48452
+ width: '1200px',
48453
+ top: '15vh'
48454
+ },
48455
+ id_business: null, // 订单id
48456
+ businesstype_code: '', // 订单类别
48457
+ deal: 0, // 订单金额(应收应付)
48458
+ wx_appid: '',
48459
+ wx_mchid: '',
48460
+ readOnly: false,
48461
+ })
48462
+ });
48463
+
48464
+ return (_ctx, _cache) => {
48465
+ const _component_el_dialog = resolveComponent("el-dialog");
48466
+
48467
+ return (scopeThis.props_box.popup.switch)
48468
+ ? (openBlock(), createBlock(_component_el_dialog, {
48469
+ key: 0,
48470
+ modelValue: scopeThis.props_box.popup.visible,
48471
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((scopeThis.props_box.popup.visible) = $event)),
48472
+ "custom-class": 'code-template-dialog',
48473
+ "close-on-press-escape": true,
48474
+ "append-to-body": "",
48475
+ title: scopeThis.props_box.popup.title,
48476
+ width: scopeThis.props_box.popup.width,
48477
+ top: scopeThis.props_box.popup.top,
48478
+ "destroy-on-close": true
48479
+ }, {
48480
+ default: withCtx(() => [
48481
+ createVNode(script$6, {
48482
+ myProps: scopeThis.props_box
48483
+ }, null, 8 /* PROPS */, ["myProps"])
48484
+ ]),
48485
+ _: 1 /* STABLE */
48486
+ }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
48487
+ : (openBlock(), createBlock(script$6, {
48488
+ key: 1,
48489
+ myProps: scopeThis.props_box
48490
+ }, null, 8 /* PROPS */, ["myProps"]))
48491
+ }
48492
+ }
48493
+
48494
+ };
48495
+
48496
+ script$5.__file = "src/ly0d2busiside/Index.vue";
47531
48497
 
47532
48498
  const _hoisted_1$4 = { key: 0 };
47533
48499
  const _hoisted_2$4 = { key: 1 };
@@ -48996,18 +49962,19 @@ script.__file = "src/ly0d7thumb/Index.vue";
48996
49962
  var index = {
48997
49963
  install(app, options) {
48998
49964
  // 全局注册组件
48999
- app.component('ly0Form', script$j);
49000
- app.component('ly0Menu', script$i);
49001
- app.component('ly0Table', script$e);
49002
- app.component('ly0Richtext', script$h);
49965
+ app.component('ly0Form', script$l);
49966
+ app.component('ly0Menu', script$k);
49967
+ app.component('ly0Table', script$g);
49968
+ app.component('ly0Richtext', script$j);
49003
49969
  app.component('ly0Upload', upload.Upload);
49004
49970
  app.component('ly0Upload_avatar', upload.Upload_avatar);
49005
49971
  app.component('ly0Upload_carplate', upload.Upload_carplate);
49006
49972
  app.component('ly0Upload_drag', upload.Upload_drag);
49007
49973
  app.component('ly0Upload_picture', upload.Upload_picture);
49008
49974
  app.component('ly0Upload_pictureCard', upload.Upload_pictureCard);
49009
- app.component('ly0gbt2260', script$7);
49010
- app.component('ly0d2cash', script$5);
49975
+ app.component('ly0gbt2260', script$9);
49976
+ app.component('ly0d2cash', script$7);
49977
+ app.component('ly0d2busiside', script$5);
49011
49978
  app.component('ly0d7group', script$4);
49012
49979
  app.component('ly0d7price', script$2);
49013
49980
  app.component('ly0d7postal', script$3);