@yoooloo42/joker 1.0.252 → 1.0.254

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.cjs.js CHANGED
@@ -211,7 +211,7 @@ var p2_32 = /*#__PURE__*/Math.pow(2,32);
211
211
  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); }
212
212
  /* yes, in 2022 this is still faster than string compare */
213
213
  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; }
214
- var days/*:Array<Array<string> >*/ = [
214
+ var days$1/*:Array<Array<string> >*/ = [
215
215
  ['Sun', 'Sunday'],
216
216
  ['Mon', 'Monday'],
217
217
  ['Tue', 'Tuesday'],
@@ -504,8 +504,8 @@ function SSF_write_date(type/*:number*/, fmt/*:string*/, val, ss0/*:?number*/)/*
504
504
  case 100: /* 'd' day */
505
505
  switch(fmt.length) {
506
506
  case 1: case 2: out = val.d; outl = fmt.length; break;
507
- case 3: return days[val.q][0];
508
- default: return days[val.q][1];
507
+ case 3: return days$1[val.q][0];
508
+ default: return days$1[val.q][1];
509
509
  } break;
510
510
  case 104: /* 'h' 12-hour */
511
511
  switch(fmt.length) {
@@ -22031,7 +22031,7 @@ async function ly0request(_ref2) {
22031
22031
  }
22032
22032
 
22033
22033
  // 存储过程
22034
- async function storpro(_ref3) {
22034
+ async function storpro$1(_ref3) {
22035
22035
  let {
22036
22036
  storproName = '',
22037
22037
  // 存储过程名称
@@ -22166,7 +22166,7 @@ var ly0request$1 = {
22166
22166
  upload_carplate,
22167
22167
  request: request$1,
22168
22168
  ly0request,
22169
- storpro,
22169
+ storpro: storpro$1,
22170
22170
  ly0sessionSave,
22171
22171
  ly0sessionLoad,
22172
22172
  ly0sessionClear,
@@ -22215,6 +22215,83 @@ var WeChat = {
22215
22215
 
22216
22216
  // 引用标准:GB/T 2260
22217
22217
 
22218
+ /**
22219
+ * 将Date对象格式化为指定的字符串格式
22220
+ *
22221
+ * @param {Date} date - 要格式化的日期对象
22222
+ * @param {string} format - 目标格式字符串,例如:"yyyy年MM月dd日", "yyyy/MM/dd HH:mm:ss", "MM-dd HH:mm"
22223
+ * @returns {string} 格式化后的日期字符串
22224
+ */
22225
+ function dateFormat$1(date, format) {
22226
+ // 有效的 Date 对象一致性
22227
+ const Date0 = new Date(date);
22228
+
22229
+ const o = {
22230
+ 'M+': Date0.getMonth() + 1, // 月份
22231
+ 'd+': Date0.getDate(), // 日
22232
+ 'h+': Date0.getHours() % 12 === 0 ? 12 : Date0.getHours() % 12, // 12小时制
22233
+ 'H+': Date0.getHours(), // 24小时制
22234
+ 'm+': Date0.getMinutes(), // 分
22235
+ 's+': Date0.getSeconds(), // 秒
22236
+ 'q+': Math.floor((Date0.getMonth() + 3) / 3), // 季度
22237
+ 'S': Date0.getMilliseconds() // 毫秒
22238
+ };
22239
+
22240
+ // 替换年份 'yyyy'
22241
+ if (/(y+)/.test(format)) {
22242
+ format = format.replace(RegExp.$1, (Date0.getFullYear() + "").substr(4 - RegExp.$1.length));
22243
+ }
22244
+
22245
+ // 替换 'AM/PM'
22246
+ if (/(A|a)/.test(format)) {
22247
+ const ampm = Date0.getHours() < 12 ? 'AM' : 'PM';
22248
+ format = format.replace(RegExp.$1, RegExp.$1 === 'a' ? ampm.toLowerCase() : ampm);
22249
+ }
22250
+
22251
+ // 替换其他时间单位 'MM', 'dd', 'HH' 等
22252
+ for (let k in o) {
22253
+ if (new RegExp("(" + k + ")").test(format)) {
22254
+ const value = o[k];
22255
+ // $1 匹配到的字符串,例如 'MM'
22256
+ // 如果是毫秒 'S',则不补零
22257
+ format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? (value) : (("00" + value).substr(("" + value).length)));
22258
+ }
22259
+ }
22260
+
22261
+ return format;
22262
+ }
22263
+
22264
+ /**
22265
+ * 计算两个日期之间相差的天数
22266
+ *
22267
+ * @param {Date} dateFrom - 开始日期 (Date 对象)
22268
+ * @param {Date} dateTo - 结束日期 (Date 对象)
22269
+ * @returns {number | null} 相差的天数(向下取整)。如果日期无效,则返回 null。
22270
+ * 结果为正数表示 dateTo 在 dateFrom 之后;负数表示 dateFrom 在 dateTo 之后。
22271
+ */
22272
+ function days(dateFrom, dateTo) {
22273
+ // 1. 有效的 Date 对象一致性
22274
+ const DateFrom0 = new Date(dateFrom);
22275
+ const DateTo0 = new Date(dateTo);
22276
+
22277
+ // 2. 计算两个日期的时间戳差值 (毫秒)
22278
+ // Date.getTime() 返回从 1970 年 1 月 1 日 00:00:00 UTC 至今的毫秒数
22279
+ const timeDifference = DateTo0.getTime() - DateFrom0.getTime();
22280
+
22281
+ // 3. 定义一天对应的毫秒数
22282
+ const msPerDay = 1000 * 60 * 60 * 24;
22283
+
22284
+ // 4. 将毫秒差值转换为天数
22285
+ // Math.floor() 用于向下取整,确保得到完整的经过天数
22286
+ const dayDifference = Math.floor(timeDifference / msPerDay);
22287
+
22288
+ return dayDifference;
22289
+ }
22290
+ var dateFormat = {
22291
+ dateFormat: dateFormat$1,
22292
+ days
22293
+ };
22294
+
22218
22295
  /**
22219
22296
  * 深度拷贝函数
22220
22297
  *
@@ -22743,6 +22820,7 @@ var deepClone = {
22743
22820
  };
22744
22821
 
22745
22822
  var unclassified = {
22823
+ dateFormat,
22746
22824
  deepClone};
22747
22825
 
22748
22826
  // with-table数据模板
@@ -23329,7 +23407,7 @@ var styleModule = {
23329
23407
  input: input$1
23330
23408
  };
23331
23409
 
23332
- var script$m = {
23410
+ var script$o = {
23333
23411
  __name: 'LabelBox',
23334
23412
  props: {
23335
23413
  modelValue: {
@@ -23387,7 +23465,7 @@ return (_ctx, _cache) => {
23387
23465
 
23388
23466
  };
23389
23467
 
23390
- script$m.__file = "src/form/LabelBox.vue";
23468
+ script$o.__file = "src/form/LabelBox.vue";
23391
23469
 
23392
23470
  const _hoisted_1$h = { key: 12 };
23393
23471
  const _hoisted_2$e = { key: 0 };
@@ -23419,7 +23497,7 @@ const _hoisted_27 = { key: 29 };
23419
23497
  const _hoisted_28 = { key: 30 };
23420
23498
 
23421
23499
 
23422
- var script$l = {
23500
+ var script$n = {
23423
23501
  __name: 'InputBox',
23424
23502
  props: {
23425
23503
  modelValue: {
@@ -24160,7 +24238,7 @@ return (_ctx, _cache) => {
24160
24238
 
24161
24239
  };
24162
24240
 
24163
- script$l.__file = "src/form/InputBox.vue";
24241
+ script$n.__file = "src/form/InputBox.vue";
24164
24242
 
24165
24243
  const _hoisted_1$g = { key: 0 };
24166
24244
  const _hoisted_2$d = ["colspan"];
@@ -24168,7 +24246,7 @@ const _hoisted_3$6 = { key: 0 };
24168
24246
  const _hoisted_4$4 = ["colspan"];
24169
24247
 
24170
24248
 
24171
- var script$k = {
24249
+ var script$m = {
24172
24250
  __name: 'Form',
24173
24251
  props: {
24174
24252
  modelValue: {
@@ -24247,7 +24325,7 @@ return (_ctx, _cache) => {
24247
24325
  key: 0,
24248
24326
  style: vue.normalizeStyle(style.field_box.left)
24249
24327
  }, [
24250
- vue.createVNode(script$m, {
24328
+ vue.createVNode(script$o, {
24251
24329
  modelValue: vue.unref(formData_box),
24252
24330
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24253
24331
  myProps: vue.unref(formProps_box),
@@ -24297,7 +24375,7 @@ return (_ctx, _cache) => {
24297
24375
  key: 0,
24298
24376
  style: vue.normalizeStyle(style.field_box.left)
24299
24377
  }, [
24300
- vue.createVNode(script$m, {
24378
+ vue.createVNode(script$o, {
24301
24379
  modelValue: vue.unref(formData_box),
24302
24380
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24303
24381
  myProps: vue.unref(formProps_box),
@@ -24310,7 +24388,7 @@ return (_ctx, _cache) => {
24310
24388
  style: vue.normalizeStyle(style.field_box.right),
24311
24389
  colspan: style.no_field_label(item2)
24312
24390
  }, [
24313
- vue.createVNode(script$l, {
24391
+ vue.createVNode(script$n, {
24314
24392
  modelValue: vue.unref(formData_box),
24315
24393
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24316
24394
  myProps: vue.unref(formProps_box),
@@ -24333,7 +24411,7 @@ return (_ctx, _cache) => {
24333
24411
  _: 2 /* DYNAMIC */
24334
24412
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
24335
24413
  : vue.createCommentVNode("v-if", true),
24336
- vue.createVNode(script$l, {
24414
+ vue.createVNode(script$n, {
24337
24415
  modelValue: vue.unref(formData_box),
24338
24416
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24339
24417
  myProps: vue.unref(formProps_box),
@@ -24379,7 +24457,7 @@ return (_ctx, _cache) => {
24379
24457
 
24380
24458
  };
24381
24459
 
24382
- script$k.__file = "src/form/Form.vue";
24460
+ script$m.__file = "src/form/Form.vue";
24383
24461
 
24384
24462
  // 默认值
24385
24463
 
@@ -24424,7 +24502,7 @@ var ly0default$3 = {
24424
24502
  }
24425
24503
  };
24426
24504
 
24427
- var script$j = {
24505
+ var script$l = {
24428
24506
  __name: 'Index',
24429
24507
  props: {
24430
24508
  modelValue: {
@@ -24466,7 +24544,7 @@ return (_ctx, _cache) => {
24466
24544
  "destroy-on-close": true
24467
24545
  }, {
24468
24546
  default: vue.withCtx(() => [
24469
- vue.createVNode(script$k, {
24547
+ vue.createVNode(script$m, {
24470
24548
  modelValue: vue.unref(formData_box),
24471
24549
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24472
24550
  myProps: formProps_box,
@@ -24475,7 +24553,7 @@ return (_ctx, _cache) => {
24475
24553
  ]),
24476
24554
  _: 1 /* STABLE */
24477
24555
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
24478
- : (vue.openBlock(), vue.createBlock(script$k, {
24556
+ : (vue.openBlock(), vue.createBlock(script$m, {
24479
24557
  key: 1,
24480
24558
  modelValue: vue.unref(formData_box),
24481
24559
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
@@ -24487,7 +24565,7 @@ return (_ctx, _cache) => {
24487
24565
 
24488
24566
  };
24489
24567
 
24490
- script$j.__file = "src/form/Index.vue";
24568
+ script$l.__file = "src/form/Index.vue";
24491
24569
 
24492
24570
  var ly0default$2 = {
24493
24571
  myProps: {
@@ -24503,7 +24581,7 @@ var ly0default$2 = {
24503
24581
  }
24504
24582
  };
24505
24583
 
24506
- var script$i = {
24584
+ var script$k = {
24507
24585
  __name: 'Index',
24508
24586
  props: {
24509
24587
  myProps: {
@@ -24780,7 +24858,7 @@ return (_ctx, _cache) => {
24780
24858
 
24781
24859
  };
24782
24860
 
24783
- script$i.__file = "src/menu/Index.vue";
24861
+ script$k.__file = "src/menu/Index.vue";
24784
24862
 
24785
24863
  var quill$1 = {exports: {}};
24786
24864
 
@@ -41636,7 +41714,7 @@ v-model 是一个语法糖(syntactic sugar)。当你在一个自定义组件
41636
41714
  2. 监听一个名为 update:modelValue 的自定义事件(用于更新值)
41637
41715
  */
41638
41716
 
41639
- var script$h = {
41717
+ var script$j = {
41640
41718
  __name: 'index',
41641
41719
  props: {
41642
41720
  // v-model 对应的 prop
@@ -41778,12 +41856,12 @@ return (_ctx, _cache) => {
41778
41856
 
41779
41857
  };
41780
41858
 
41781
- script$h.__file = "src/richtext/index.vue";
41859
+ script$j.__file = "src/richtext/index.vue";
41782
41860
 
41783
41861
  const _hoisted_1$f = { style: {"text-align":"center"} };
41784
41862
 
41785
41863
 
41786
- var script$g = {
41864
+ var script$i = {
41787
41865
  __name: 'PickCol',
41788
41866
  props: {
41789
41867
  tableProps: {
@@ -41962,7 +42040,7 @@ return (_ctx, _cache) => {
41962
42040
 
41963
42041
  };
41964
42042
 
41965
- script$g.__file = "src/table/PickCol.vue";
42043
+ script$i.__file = "src/table/PickCol.vue";
41966
42044
 
41967
42045
  const _hoisted_1$e = { style: {"padding":"10px"} };
41968
42046
  const _hoisted_2$c = { key: 0 };
@@ -41974,7 +42052,7 @@ const _hoisted_5$1 = {
41974
42052
  };
41975
42053
 
41976
42054
 
41977
- var script$f = {
42055
+ var script$h = {
41978
42056
  __name: 'Table',
41979
42057
  props: {
41980
42058
  modelValue: {
@@ -42456,14 +42534,14 @@ return (_ctx, _cache) => {
42456
42534
  }, null, 8 /* PROPS */, ["total", "page-size", "page-sizes", "current-page", "style", "onSizeChange", "onCurrentChange"]),
42457
42535
  vue.createCommentVNode(" 选择列 "),
42458
42536
  vue.createCommentVNode(" 使用该组件,必须设置每一列的唯一标识:key "),
42459
- vue.createVNode(script$g, { tableProps: vue.unref(tableProps_box) }, null, 8 /* PROPS */, ["tableProps"])
42537
+ vue.createVNode(script$i, { tableProps: vue.unref(tableProps_box) }, null, 8 /* PROPS */, ["tableProps"])
42460
42538
  ]))
42461
42539
  }
42462
42540
  }
42463
42541
 
42464
42542
  };
42465
42543
 
42466
- script$f.__file = "src/table/Table.vue";
42544
+ script$h.__file = "src/table/Table.vue";
42467
42545
 
42468
42546
  // 默认值
42469
42547
 
@@ -42551,7 +42629,7 @@ var ly0default$1 = {
42551
42629
  }
42552
42630
  };
42553
42631
 
42554
- var script$e = {
42632
+ var script$g = {
42555
42633
  __name: 'Index',
42556
42634
  props: {
42557
42635
  modelValue: {
@@ -42594,7 +42672,7 @@ return (_ctx, _cache) => {
42594
42672
  "destroy-on-close": true
42595
42673
  }, {
42596
42674
  default: vue.withCtx(() => [
42597
- vue.createVNode(script$f, {
42675
+ vue.createVNode(script$h, {
42598
42676
  modelValue: vue.unref(tableData_box),
42599
42677
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
42600
42678
  myProps: tableProps_box,
@@ -42603,7 +42681,7 @@ return (_ctx, _cache) => {
42603
42681
  ]),
42604
42682
  _: 1 /* STABLE */
42605
42683
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
42606
- : (vue.openBlock(), vue.createBlock(script$f, {
42684
+ : (vue.openBlock(), vue.createBlock(script$h, {
42607
42685
  key: 1,
42608
42686
  modelValue: vue.unref(tableData_box),
42609
42687
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
@@ -42615,7 +42693,7 @@ return (_ctx, _cache) => {
42615
42693
 
42616
42694
  };
42617
42695
 
42618
- script$e.__file = "src/table/Index.vue";
42696
+ script$g.__file = "src/table/Index.vue";
42619
42697
 
42620
42698
  var ly0default = {
42621
42699
  myProps: {
@@ -42650,7 +42728,7 @@ const _hoisted_2$b = {
42650
42728
 
42651
42729
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42652
42730
 
42653
- var script$d = {
42731
+ var script$f = {
42654
42732
  __name: 'Upload',
42655
42733
  props: {
42656
42734
  // modelValue: 外部 v-model 绑定的值
@@ -42794,14 +42872,14 @@ return (_ctx, _cache) => {
42794
42872
 
42795
42873
  };
42796
42874
 
42797
- script$d.__file = "src/upload/Upload.vue";
42875
+ script$f.__file = "src/upload/Upload.vue";
42798
42876
 
42799
42877
  const _hoisted_1$c = ["src"];
42800
42878
  const _hoisted_2$a = { key: 0 };
42801
42879
 
42802
42880
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42803
42881
 
42804
- var script$c = {
42882
+ var script$e = {
42805
42883
  __name: 'Upload-avatar',
42806
42884
  props: {
42807
42885
  // modelValue: 外部 v-model 绑定的值
@@ -42974,8 +43052,8 @@ return (_ctx, _cache) => {
42974
43052
 
42975
43053
  };
42976
43054
 
42977
- script$c.__scopeId = "data-v-0b647a60";
42978
- script$c.__file = "src/upload/Upload-avatar.vue";
43055
+ script$e.__scopeId = "data-v-0b647a60";
43056
+ script$e.__file = "src/upload/Upload-avatar.vue";
42979
43057
 
42980
43058
  const _hoisted_1$b = ["src"];
42981
43059
  const _hoisted_2$9 = { key: 0 };
@@ -42984,7 +43062,7 @@ const _hoisted_4$2 = { key: 1 };
42984
43062
 
42985
43063
  // 遵循 Vue 3 v-model 规范,使用 modelValue
42986
43064
 
42987
- var script$b = {
43065
+ var script$d = {
42988
43066
  __name: 'Upload-carplate',
42989
43067
  props: {
42990
43068
  // modelValue: 外部 v-model 绑定的值
@@ -43167,8 +43245,8 @@ return (_ctx, _cache) => {
43167
43245
 
43168
43246
  };
43169
43247
 
43170
- script$b.__scopeId = "data-v-6fc32e0e";
43171
- script$b.__file = "src/upload/Upload-carplate.vue";
43248
+ script$d.__scopeId = "data-v-6fc32e0e";
43249
+ script$d.__file = "src/upload/Upload-carplate.vue";
43172
43250
 
43173
43251
  const _hoisted_1$a = { class: "el-upload__tip" };
43174
43252
  const _hoisted_2$8 = {
@@ -43178,7 +43256,7 @@ const _hoisted_2$8 = {
43178
43256
 
43179
43257
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43180
43258
 
43181
- var script$a = {
43259
+ var script$c = {
43182
43260
  __name: 'Upload-drag',
43183
43261
  props: {
43184
43262
  // modelValue: 外部 v-model 绑定的值
@@ -43325,7 +43403,7 @@ return (_ctx, _cache) => {
43325
43403
 
43326
43404
  };
43327
43405
 
43328
- script$a.__file = "src/upload/Upload-drag.vue";
43406
+ script$c.__file = "src/upload/Upload-drag.vue";
43329
43407
 
43330
43408
  const _hoisted_1$9 = { class: "el-upload__tip" };
43331
43409
  const _hoisted_2$7 = {
@@ -43335,7 +43413,7 @@ const _hoisted_2$7 = {
43335
43413
 
43336
43414
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43337
43415
 
43338
- var script$9 = {
43416
+ var script$b = {
43339
43417
  __name: 'Upload-picture',
43340
43418
  props: {
43341
43419
  // modelValue: 外部 v-model 绑定的值
@@ -43478,7 +43556,7 @@ return (_ctx, _cache) => {
43478
43556
 
43479
43557
  };
43480
43558
 
43481
- script$9.__file = "src/upload/Upload-picture.vue";
43559
+ script$b.__file = "src/upload/Upload-picture.vue";
43482
43560
 
43483
43561
  const _hoisted_1$8 = { class: "el-upload__tip" };
43484
43562
  const _hoisted_2$6 = ["src"];
@@ -43489,7 +43567,7 @@ const _hoisted_3$3 = {
43489
43567
 
43490
43568
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43491
43569
 
43492
- var script$8 = {
43570
+ var script$a = {
43493
43571
  __name: 'Upload-picture-card',
43494
43572
  props: {
43495
43573
  // modelValue: 外部 v-model 绑定的值
@@ -43627,15 +43705,15 @@ return (_ctx, _cache) => {
43627
43705
 
43628
43706
  };
43629
43707
 
43630
- script$8.__file = "src/upload/Upload-picture-card.vue";
43708
+ script$a.__file = "src/upload/Upload-picture-card.vue";
43631
43709
 
43632
43710
  var upload = {
43633
- Upload: script$d,
43634
- Upload_avatar: script$c,
43635
- Upload_carplate: script$b,
43636
- Upload_drag: script$a,
43637
- Upload_picture: script$9,
43638
- Upload_pictureCard: script$8
43711
+ Upload: script$f,
43712
+ Upload_avatar: script$e,
43713
+ Upload_carplate: script$d,
43714
+ Upload_drag: script$c,
43715
+ Upload_picture: script$b,
43716
+ Upload_pictureCard: script$a
43639
43717
  };
43640
43718
 
43641
43719
  const _hoisted_1$7 = { style: {"width":"100%"} };
@@ -43643,7 +43721,7 @@ const _hoisted_2$5 = { style: {"width":"30%"} };
43643
43721
 
43644
43722
  // 遵循 Vue 3 v-model 规范,使用 modelValue
43645
43723
 
43646
- var script$7 = {
43724
+ var script$9 = {
43647
43725
  __name: 'Index',
43648
43726
  props: {
43649
43727
  // modelValue: 外部 v-model 绑定的值
@@ -44004,7 +44082,7 @@ return (_ctx, _cache) => {
44004
44082
 
44005
44083
  };
44006
44084
 
44007
- script$7.__file = "src/gbt2260/Index.vue";
44085
+ script$9.__file = "src/gbt2260/Index.vue";
44008
44086
 
44009
44087
  var formData = {
44010
44088
  id_business: null,
@@ -47398,7 +47476,7 @@ var handles = {
47398
47476
  const _hoisted_1$6 = { class: "amount" };
47399
47477
 
47400
47478
 
47401
- var script$6 = {
47479
+ var script$8 = {
47402
47480
  __name: 'Index',
47403
47481
  props: {
47404
47482
  myProps: {
@@ -47471,13 +47549,13 @@ return (_ctx, _cache) => {
47471
47549
 
47472
47550
  };
47473
47551
 
47474
- script$6.__scopeId = "data-v-4b8e1496";
47475
- script$6.__file = "src/ly0d2cash/qrcode/Index.vue";
47552
+ script$8.__scopeId = "data-v-4b8e1496";
47553
+ script$8.__file = "src/ly0d2cash/qrcode/Index.vue";
47476
47554
 
47477
47555
  const _hoisted_1$5 = { style: {"padding":"10px"} };
47478
47556
 
47479
47557
 
47480
- var script$5 = {
47558
+ var script$7 = {
47481
47559
  __name: 'Index',
47482
47560
  props: {
47483
47561
  modelValue: {
@@ -47520,7 +47598,7 @@ return (_ctx, _cache) => {
47520
47598
  scopeThis: scopeThis
47521
47599
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]),
47522
47600
  (!!scopeThis.qrcode.formData.code_url && scopeThis.qrcode.popup.visible)
47523
- ? (vue.openBlock(), vue.createBlock(script$6, {
47601
+ ? (vue.openBlock(), vue.createBlock(script$8, {
47524
47602
  key: 0,
47525
47603
  myProps: scopeThis.qrcode
47526
47604
  }, null, 8 /* PROPS */, ["myProps"]))
@@ -47531,7 +47609,887 @@ return (_ctx, _cache) => {
47531
47609
 
47532
47610
  };
47533
47611
 
47534
- script$5.__file = "src/ly0d2cash/Index.vue";
47612
+ script$7.__file = "src/ly0d2cash/Index.vue";
47613
+
47614
+ var query = {
47615
+ formData: {
47616
+ _id: null,
47617
+ id_business: null,
47618
+ businesstype_code: '',
47619
+ note: ""
47620
+ },
47621
+ sort: null,
47622
+ pageSize: 10,
47623
+ currentPage: 1
47624
+ };
47625
+
47626
+ var tableData = {
47627
+ data: [],
47628
+ sort: JSON.parse(JSON.stringify(query.sort)),
47629
+ pageSize: query.pageSize,
47630
+ currentPage: query.currentPage
47631
+ };
47632
+
47633
+ var tableProps = {
47634
+ // 置顶菜单
47635
+ menu: [{
47636
+ title: "查询",
47637
+ menu: [{
47638
+ title: "全部",
47639
+ async handle(_ref) {
47640
+ let {
47641
+ scopeThis,
47642
+ index
47643
+ } = _ref;
47644
+ await withTable.reload({
47645
+ scopeThis
47646
+ });
47647
+ }
47648
+ }, {
47649
+ title: "刷新",
47650
+ async handle(_ref2) {
47651
+ let {
47652
+ scopeThis,
47653
+ index
47654
+ } = _ref2;
47655
+ await withTable.refresh({
47656
+ scopeThis
47657
+ });
47658
+ }
47659
+ }, {
47660
+ title: "查询",
47661
+ handle(_ref3) {
47662
+ let {
47663
+ scopeThis,
47664
+ index
47665
+ } = _ref3;
47666
+ withTable.popupFind({
47667
+ scopeThis
47668
+ });
47669
+ }
47670
+ }, {
47671
+ title: "新增",
47672
+ hdlDisabled(_ref4) {
47673
+ let {
47674
+ scopeThis,
47675
+ item,
47676
+ index
47677
+ } = _ref4;
47678
+ return scopeThis.initBox.readOnly;
47679
+ },
47680
+ handle(_ref5) {
47681
+ let {
47682
+ scopeThis,
47683
+ index
47684
+ } = _ref5;
47685
+ withTable.popupInsertOne({
47686
+ scopeThis
47687
+ });
47688
+ }
47689
+ }]
47690
+ }, {
47691
+ title: "收银",
47692
+ hdlDisabled(_ref6) {
47693
+ let {
47694
+ scopeThis,
47695
+ item,
47696
+ index
47697
+ } = _ref6;
47698
+ return scopeThis.initBox.readOnly;
47699
+ },
47700
+ menu: [{
47701
+ title: "收银",
47702
+ handle(_ref7) {
47703
+ let {
47704
+ scopeThis,
47705
+ index
47706
+ } = _ref7;
47707
+ scopeThis.cashBox.formData.id_business = scopeThis.initBox.id_business;
47708
+ scopeThis.cashBox.formData.businesstype_code = scopeThis.initBox.businesstype_code;
47709
+ // 支付金额合计
47710
+ scopeThis.cashBox.formData.amount = Math.floor(scopeThis.initBox.deal -
47711
+ // 订单金额(应收应付)
47712
+ scopeThis.amountBox.succeeded -
47713
+ // 支付成功
47714
+ scopeThis.amountBox.started // 支付中
47715
+ ) / 100;
47716
+ scopeThis.cashBox.formData.wx_appid = scopeThis.initBox.wx_appid;
47717
+ scopeThis.cashBox.formData.wx_mchid = scopeThis.initBox.wx_mchid;
47718
+ scopeThis.cashBox.formProps.popup.visible = true;
47719
+ }
47720
+ }, {
47721
+ title: "退款",
47722
+ handle(_ref8) {
47723
+ let {
47724
+ scopeThis,
47725
+ index
47726
+ } = _ref8;
47727
+ elementPlus.ElMessageBox.confirm('退款?', '警告', {
47728
+ confirmButtonText: '确认',
47729
+ cancelButtonText: '取消',
47730
+ type: 'warning'
47731
+ }).then(() => {
47732
+ ly0request$1.ly0.storpro({
47733
+ storproName: "ly0d2.wxzf.refund",
47734
+ data: {
47735
+ id_business: scopeThis.initBox.id_business
47736
+ }
47737
+ }).then(() => {
47738
+ elementPlus.ElMessage("已退款");
47739
+ withTable.refresh({
47740
+ scopeThis
47741
+ });
47742
+ });
47743
+ }).catch(err => {
47744
+ elementPlus.ElMessage({
47745
+ type: 'info',
47746
+ message: '取消退款'
47747
+ });
47748
+ });
47749
+ }
47750
+ }, {
47751
+ title: "中止支付",
47752
+ handle(_ref9) {
47753
+ let {
47754
+ scopeThis,
47755
+ index
47756
+ } = _ref9;
47757
+ ly0request$1.ly0.storpro({
47758
+ storproName: "ly0d2.wxzf.setFail",
47759
+ data: {
47760
+ mchid: scopeThis.initBox.mchid,
47761
+ id_business: scopeThis.initBox.id_business
47762
+ }
47763
+ }).then(() => {
47764
+ elementPlus.ElMessage("已中止支付");
47765
+ withTable.refresh({
47766
+ scopeThis
47767
+ });
47768
+ });
47769
+ }
47770
+ }]
47771
+ }],
47772
+ table: {
47773
+ cols: [{
47774
+ label: '金额',
47775
+ show: 'expression',
47776
+ hdlExpression(_ref0) {
47777
+ let {
47778
+ scopeThis,
47779
+ row
47780
+ } = _ref0;
47781
+ return row.amount ? Math.floor(row.amount) / 100 : 0;
47782
+ },
47783
+ width: "75px"
47784
+ }, {
47785
+ label: '支付方式',
47786
+ show: 'expression',
47787
+ hdlExpression(_ref1) {
47788
+ let {
47789
+ scopeThis,
47790
+ row
47791
+ } = _ref1;
47792
+ return row.process_text + (row.process_code === '0' ? "/" + row.method_text : "");
47793
+ }
47794
+ }, {
47795
+ label: '支付状态',
47796
+ show: 'expression',
47797
+ hdlExpression(_ref10) {
47798
+ let {
47799
+ scopeThis,
47800
+ row
47801
+ } = _ref10;
47802
+ return row.status_text + "\n" + unclassified.dateFormat.dateFormat(row.time, 'yyyy/MM/dd hh:mm:ss');
47803
+ }
47804
+ }, {
47805
+ label: '操作',
47806
+ show: 'button-group',
47807
+ buttonGroup: [{
47808
+ text: "详细",
47809
+ size: "small",
47810
+ hdlClick(_ref11) {
47811
+ let {
47812
+ scopeThis,
47813
+ row
47814
+ } = _ref11;
47815
+ withTable.popupDoc({
47816
+ scopeThis,
47817
+ row
47818
+ });
47819
+ }
47820
+ }, {
47821
+ text: "修改",
47822
+ size: "small",
47823
+ hdlClick(_ref12) {
47824
+ let {
47825
+ scopeThis,
47826
+ row
47827
+ } = _ref12;
47828
+ withTable.popupUpdateOne({
47829
+ scopeThis,
47830
+ row
47831
+ });
47832
+ }
47833
+ }, {
47834
+ text: "删除",
47835
+ hdlVisible(_ref13) {
47836
+ let {
47837
+ scopeThis,
47838
+ row
47839
+ } = _ref13;
47840
+ return scopeThis.initBox.readOnly;
47841
+ },
47842
+ size: "small",
47843
+ hdlClick(_ref14) {
47844
+ let {
47845
+ scopeThis,
47846
+ row
47847
+ } = _ref14;
47848
+ withTable.submitDeleteOne({
47849
+ scopeThis,
47850
+ row
47851
+ });
47852
+ },
47853
+ style: {
47854
+ 'background-color': '#ff640a',
47855
+ 'color': '#ffffff'
47856
+ }
47857
+ }]
47858
+ }]
47859
+ }
47860
+ };
47861
+
47862
+ var storpro = {
47863
+ refresh: "ly0d2.record0.find",
47864
+ insertOne: "ly0d2.record0.insertOne",
47865
+ updateOne: "ly0d2.record0.updateOne",
47866
+ deleteOne: "ly0d2.record0.deleteOne",
47867
+ getPgData: "ly0d2.record0.getPgData",
47868
+ getPayments: "ly0d2.wxzf.getPayments",
47869
+ setFail: "ly0d2.wxzf.setFail"
47870
+ };
47871
+
47872
+ var find = {
47873
+ formProps: {
47874
+ popup: {
47875
+ switch: true,
47876
+ visible: false,
47877
+ title: "查询"
47878
+ },
47879
+ cols: [{
47880
+ items: [{
47881
+ inputType: "input",
47882
+ label: "备注",
47883
+ fieldName: "note",
47884
+ style: {
47885
+ width: "200px"
47886
+ }
47887
+ }]
47888
+ }],
47889
+ submit: {
47890
+ async handle(_ref) {
47891
+ let {
47892
+ formData,
47893
+ scopeThis
47894
+ } = _ref;
47895
+ await withTable.submitFind({
47896
+ scopeThis
47897
+ });
47898
+ }
47899
+ }
47900
+ }
47901
+ };
47902
+
47903
+ var insertOne = {
47904
+ formProps: {
47905
+ popup: {
47906
+ switch: true,
47907
+ visible: false,
47908
+ title: "新增"
47909
+ },
47910
+ cols: [{
47911
+ items: [{
47912
+ inputType: "input",
47913
+ label: "金额",
47914
+ fieldName: "amount0",
47915
+ style: {
47916
+ width: "100px"
47917
+ }
47918
+ }, {
47919
+ inputType: "select",
47920
+ label: "用户自主支付方式",
47921
+ fieldName: "method_code",
47922
+ item_fieldLabel: "text",
47923
+ item_fieldValue: "code",
47924
+ hdlGetItems(_ref) {
47925
+ let {
47926
+ scopeThis
47927
+ } = _ref;
47928
+ return scopeThis.pgData.data.arrMethod;
47929
+ },
47930
+ style: {
47931
+ width: "200px"
47932
+ }
47933
+ }, {
47934
+ inputType: "input",
47935
+ label: "备注",
47936
+ fieldName: "note",
47937
+ style: {
47938
+ width: "400px"
47939
+ }
47940
+ }]
47941
+ }],
47942
+ submit: {
47943
+ async handle(_ref2) {
47944
+ let {
47945
+ scopeThis
47946
+ } = _ref2;
47947
+ await withTable.submitInsertOne({
47948
+ scopeThis
47949
+ });
47950
+ }
47951
+ }
47952
+ },
47953
+ formData: {
47954
+ _id: null,
47955
+ id_business: null,
47956
+ businesstype_code: "",
47957
+ businesstype_text: "",
47958
+ amount: 0,
47959
+ amount0: 0,
47960
+ process_code: "",
47961
+ process_text: "",
47962
+ method_code: "",
47963
+ method_text: "",
47964
+ status_code: "",
47965
+ status_text: "",
47966
+ time: null,
47967
+ end: null,
47968
+ note: "",
47969
+ rec: "",
47970
+ wxzf_appid: "",
47971
+ wxzf_mchid: "",
47972
+ wxzf_code_url: "",
47973
+ wxzf_out_trade_no: "",
47974
+ wxzf_transaction_id: "",
47975
+ wxzf_trade_type: "",
47976
+ wxzf_trade_state: "",
47977
+ wxzf_trade_state_desc: "",
47978
+ wxzf_bank_type: "",
47979
+ wxzf_success_time: "",
47980
+ wxzf_payer_openid: "",
47981
+ wxzf_amount_total: 0
47982
+ }
47983
+ };
47984
+
47985
+ var updateOne = {
47986
+ formProps: {
47987
+ popup: {
47988
+ switch: true,
47989
+ visible: false,
47990
+ title: "修改"
47991
+ },
47992
+ cols: [{
47993
+ items: [{
47994
+ inputType: "input",
47995
+ label: "金额",
47996
+ fieldName: "amount0",
47997
+ style: {
47998
+ width: "100px"
47999
+ }
48000
+ }, {
48001
+ inputType: "select",
48002
+ label: "用户自主支付方式",
48003
+ fieldName: "method_code",
48004
+ item_fieldLabel: "text",
48005
+ item_fieldValue: "code",
48006
+ hdlGetItems(_ref) {
48007
+ let {
48008
+ scopeThis
48009
+ } = _ref;
48010
+ return scopeThis.pgData.data.arrMethod;
48011
+ },
48012
+ style: {
48013
+ width: "200px"
48014
+ }
48015
+ }, {
48016
+ inputType: "input",
48017
+ label: "备注",
48018
+ fieldName: "note",
48019
+ style: {
48020
+ width: "400px"
48021
+ }
48022
+ }]
48023
+ }],
48024
+ submit: {
48025
+ async handle(_ref2) {
48026
+ let {
48027
+ scopeThis
48028
+ } = _ref2;
48029
+ await withTable.submitUpdateOne({
48030
+ scopeThis
48031
+ });
48032
+ }
48033
+ }
48034
+ }
48035
+ };
48036
+
48037
+ var doc = {
48038
+ formProps: {
48039
+ popup: {
48040
+ switch: true,
48041
+ visible: false,
48042
+ title: "详细"
48043
+ },
48044
+ cols: [{
48045
+ items: [{
48046
+ inputType: "text",
48047
+ label: "数据单元id",
48048
+ fieldName: "id_dataunit",
48049
+ style: {
48050
+ width: "300px"
48051
+ }
48052
+ }, {
48053
+ inputType: "text",
48054
+ label: "数据单元名称",
48055
+ fieldName: "dataunit_name",
48056
+ style: {
48057
+ width: "200px"
48058
+ }
48059
+ }, {
48060
+ inputType: "text",
48061
+ label: "订单id",
48062
+ fieldName: "id_business",
48063
+ style: {
48064
+ width: "300px"
48065
+ }
48066
+ }, {
48067
+ inputType: "text",
48068
+ label: "订单类型",
48069
+ fieldName: "businesstype_text",
48070
+ style: {
48071
+ width: "200px"
48072
+ }
48073
+ }, {
48074
+ inputType: "expression",
48075
+ label: "金额",
48076
+ hdlExpression(_ref) {
48077
+ let {
48078
+ scopeThis,
48079
+ formData
48080
+ } = _ref;
48081
+ return Math.floor(formData.amount) / 100;
48082
+ },
48083
+ style: {
48084
+ width: "100px"
48085
+ }
48086
+ }, {
48087
+ inputType: "text",
48088
+ label: "系统内置支付流程",
48089
+ fieldName: "process_text",
48090
+ style: {
48091
+ width: "200px"
48092
+ }
48093
+ }, {
48094
+ inputType: "text",
48095
+ label: "用户自主支付方式",
48096
+ fieldName: "method_text",
48097
+ style: {
48098
+ width: "200px"
48099
+ }
48100
+ }, {
48101
+ inputType: 'text',
48102
+ label: '支付状态',
48103
+ fieldName: "status_text",
48104
+ style: {
48105
+ width: "200px"
48106
+ }
48107
+ }, {
48108
+ inputType: "expression",
48109
+ label: "支付发起时间",
48110
+ hdlExpression(_ref2) {
48111
+ let {
48112
+ scopeThis,
48113
+ formData
48114
+ } = _ref2;
48115
+ return unclassified.dateFormat.dateFormat(formData.time);
48116
+ },
48117
+ style: {
48118
+ width: "200px"
48119
+ }
48120
+ }, {
48121
+ inputType: "expression",
48122
+ label: "支付结束时间",
48123
+ hdlExpression(_ref3) {
48124
+ let {
48125
+ scopeThis,
48126
+ formData
48127
+ } = _ref3;
48128
+ return unclassified.dateFormat.dateFormat(formData.end);
48129
+ },
48130
+ style: {
48131
+ width: "200px"
48132
+ }
48133
+ }, {
48134
+ inputType: "text",
48135
+ label: "备注",
48136
+ fieldName: "note",
48137
+ style: {
48138
+ width: "400px"
48139
+ }
48140
+ }, {
48141
+ inputType: "text",
48142
+ label: "记录",
48143
+ fieldName: "rec",
48144
+ style: {
48145
+ width: "200px"
48146
+ }
48147
+ }, {
48148
+ inputType: "collapse",
48149
+ items: [{
48150
+ title: "微信支付",
48151
+ items: [{
48152
+ inputType: "text",
48153
+ label: "应用ID(appid)",
48154
+ fieldName: "wxzf_appid",
48155
+ style: {
48156
+ width: "200px"
48157
+ }
48158
+ }, {
48159
+ inputType: "text",
48160
+ label: "商户号(mchid)",
48161
+ fieldName: "wxzf_mchid",
48162
+ style: {
48163
+ width: "200px"
48164
+ }
48165
+ }, {
48166
+ inputType: "text",
48167
+ label: "code_url",
48168
+ fieldName: "wxzf_code_url",
48169
+ style: {
48170
+ width: "200px"
48171
+ }
48172
+ }, {
48173
+ inputType: "text",
48174
+ label: "商品描述",
48175
+ fieldName: "wxzf_description",
48176
+ style: {
48177
+ width: "200px"
48178
+ }
48179
+ }, {
48180
+ inputType: "text",
48181
+ label: "商户系统内部订单号",
48182
+ fieldName: "wxzf_out_trade_no",
48183
+ style: {
48184
+ width: "200px"
48185
+ }
48186
+ }, {
48187
+ inputType: "text",
48188
+ label: "交易结束时间/订单失效时间",
48189
+ fieldName: "wxzf_time_expire",
48190
+ style: {
48191
+ width: "200px"
48192
+ }
48193
+ }, {
48194
+ inputType: "text",
48195
+ label: "附加数据",
48196
+ fieldName: "wxzf_attach",
48197
+ style: {
48198
+ width: "200px"
48199
+ }
48200
+ }, {
48201
+ inputType: "text",
48202
+ label: "通知地址",
48203
+ fieldName: "wxzf_notify_url",
48204
+ style: {
48205
+ width: "200px"
48206
+ }
48207
+ }, {
48208
+ inputType: "text",
48209
+ label: "支付者openid",
48210
+ fieldName: "wxzf_payer_openid",
48211
+ style: {
48212
+ width: "200px"
48213
+ }
48214
+ }, {
48215
+ inputType: "text",
48216
+ label: "金额",
48217
+ fieldName: "wxzf_amount_total",
48218
+ style: {
48219
+ width: "200px"
48220
+ }
48221
+ }, {
48222
+ inputType: "text",
48223
+ label: "场景信息-设备号",
48224
+ fieldName: "wxzf_scene_info_device_id",
48225
+ style: {
48226
+ width: "200px"
48227
+ }
48228
+ }, {
48229
+ inputType: "text",
48230
+ label: "预支付交易会话标识",
48231
+ fieldName: "wxzf_prepay_id",
48232
+ style: {
48233
+ width: "200px"
48234
+ }
48235
+ }, {
48236
+ inputType: "text",
48237
+ label: "微信支付订单号",
48238
+ fieldName: "wxzf_transaction_id",
48239
+ style: {
48240
+ width: "200px"
48241
+ }
48242
+ }, {
48243
+ inputType: "text",
48244
+ label: "交易类型",
48245
+ fieldName: "wxzf_trade_type",
48246
+ style: {
48247
+ width: "200px"
48248
+ }
48249
+ }, {
48250
+ inputType: "text",
48251
+ label: "交易状态",
48252
+ fieldName: "wxzf_trade_state",
48253
+ style: {
48254
+ width: "200px"
48255
+ }
48256
+ }, {
48257
+ inputType: "text",
48258
+ label: "交易状态描述",
48259
+ fieldName: "wxzf_trade_state_desc",
48260
+ style: {
48261
+ width: "200px"
48262
+ }
48263
+ }, {
48264
+ inputType: "text",
48265
+ label: "付款银行",
48266
+ fieldName: "wxzf_bank_type",
48267
+ style: {
48268
+ width: "200px"
48269
+ }
48270
+ }, {
48271
+ inputType: "text",
48272
+ label: "支付完成时间",
48273
+ fieldName: "wxzf_success_time",
48274
+ style: {
48275
+ width: "200px"
48276
+ }
48277
+ }, {
48278
+ inputType: "text",
48279
+ label: "查询金额",
48280
+ fieldName: "wxzf_amount_payer_total",
48281
+ style: {
48282
+ width: "200px"
48283
+ }
48284
+ }]
48285
+ }]
48286
+ }]
48287
+ }],
48288
+ submit: {
48289
+ switch: false // true - 提交模式, false - 组件模式
48290
+ }
48291
+ }
48292
+ };
48293
+
48294
+ var amountBox = {
48295
+ fun(_ref) {
48296
+ let {
48297
+ scopeThis
48298
+ } = _ref;
48299
+ let unpaid = 0,
48300
+ // 未支付
48301
+ started = 0,
48302
+ // 支付中
48303
+ succeeded = 0,
48304
+ // 支付成功
48305
+ failed = 0; // 支付失败
48306
+
48307
+ scopeThis.tableData.data.forEach(i => {
48308
+ if (i.status_code === '0') {
48309
+ unpaid = unpaid + i.amount;
48310
+ } else if (i.status_code === '1') {
48311
+ started = started + i.amount;
48312
+ } else if (i.status_code === '2') {
48313
+ succeeded = succeeded + i.amount;
48314
+ } else if (i.status_code === '3') {
48315
+ failed = failed + i.amount;
48316
+ }
48317
+ });
48318
+ return {
48319
+ sum: succeeded + started + unpaid,
48320
+ succeeded,
48321
+ started,
48322
+ failed,
48323
+ unpaid
48324
+ };
48325
+ }
48326
+ };
48327
+
48328
+ var cashBox = {
48329
+ formData,
48330
+ formProps
48331
+ };
48332
+
48333
+ var script$6 = {
48334
+ __name: 'main',
48335
+ props: {
48336
+ myProps: {
48337
+ type: Object,
48338
+ default: () => ({})
48339
+ }
48340
+ },
48341
+ setup(__props) {
48342
+
48343
+ const props = __props;
48344
+
48345
+ const scopeThis = vue.reactive({
48346
+ tableData,
48347
+ tableProps,
48348
+ formData: {},
48349
+ formProps: {},
48350
+ queryInit: query,
48351
+ query: JSON.parse(JSON.stringify(query)),
48352
+ storpro,
48353
+ find,
48354
+ insertOne,
48355
+ updateOne,
48356
+ doc,
48357
+ pgData: {
48358
+ arrBusinessType: [],
48359
+ arrProcess: [],
48360
+ arrMethod: [],
48361
+ arrStatus: []
48362
+ },
48363
+ initBox: props.myProps,
48364
+ amountBox: vue.computed(()=>{
48365
+ return amountBox.fun({scopeThis})
48366
+ }),
48367
+ cashBox
48368
+ });
48369
+
48370
+ vue.onMounted(async ()=>{
48371
+ scopeThis.queryInit.formData.id_business = scopeThis.initBox.id_business;
48372
+ scopeThis.queryInit.formData.businesstype_code = scopeThis.initBox.businesstype_code;
48373
+ await withTable.init({scopeThis});
48374
+ });
48375
+
48376
+ return (_ctx, _cache) => {
48377
+ const _component_ly0Table = vue.resolveComponent("ly0Table");
48378
+ const _component_ly0Form = vue.resolveComponent("ly0Form");
48379
+ const _component_ly0d2cash = vue.resolveComponent("ly0d2cash");
48380
+
48381
+ return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
48382
+ vue.createCommentVNode(" 金额统计 "),
48383
+ vue.createElementVNode("table", null, [
48384
+ _cache[3] || (_cache[3] = vue.createElementVNode("thead", null, [
48385
+ vue.createElementVNode("tr", null, [
48386
+ vue.createElementVNode("th", null, "订单金额(应收应付)"),
48387
+ vue.createElementVNode("th", null, "支付金额合计"),
48388
+ vue.createElementVNode("th", null, "支付成功"),
48389
+ vue.createElementVNode("th", null, "支付中"),
48390
+ vue.createElementVNode("th", null, "支付失败"),
48391
+ vue.createElementVNode("th", null, "未支付")
48392
+ ])
48393
+ ], -1 /* CACHED */)),
48394
+ vue.createElementVNode("tbody", null, [
48395
+ vue.createElementVNode("tr", null, [
48396
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.initBox.deal) / 100), 1 /* TEXT */),
48397
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.amountBox.sum) / 100), 1 /* TEXT */),
48398
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.amountBox.succeeded) / 100), 1 /* TEXT */),
48399
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.amountBox.started) / 100), 1 /* TEXT */),
48400
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.amountBox.failed) / 100), 1 /* TEXT */),
48401
+ vue.createElementVNode("td", null, vue.toDisplayString(Math.floor(scopeThis.amountBox.unpaid) / 100), 1 /* TEXT */)
48402
+ ])
48403
+ ])
48404
+ ]),
48405
+ vue.createCommentVNode(" 支付记录 "),
48406
+ vue.createVNode(_component_ly0Table, {
48407
+ modelValue: scopeThis.tableData,
48408
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((scopeThis.tableData) = $event)),
48409
+ myProps: scopeThis.tableProps,
48410
+ scopeThis: scopeThis
48411
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]),
48412
+ (scopeThis.formData
48413
+ && scopeThis.formProps
48414
+ && scopeThis.formProps.popup
48415
+ && scopeThis.formProps.popup.visible)
48416
+ ? (vue.openBlock(), vue.createBlock(_component_ly0Form, {
48417
+ key: 0,
48418
+ modelValue: scopeThis.formData,
48419
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((scopeThis.formData) = $event)),
48420
+ myProps: scopeThis.formProps,
48421
+ scopeThis: scopeThis
48422
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
48423
+ : vue.createCommentVNode("v-if", true),
48424
+ vue.createCommentVNode(" 收银 "),
48425
+ vue.createVNode(_component_ly0d2cash, {
48426
+ modelValue: scopeThis.cashBox.formData,
48427
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((scopeThis.cashBox.formData) = $event)),
48428
+ myProps: scopeThis.cashBox.formProps
48429
+ }, null, 8 /* PROPS */, ["modelValue", "myProps"])
48430
+ ], 64 /* STABLE_FRAGMENT */))
48431
+ }
48432
+ }
48433
+
48434
+ };
48435
+
48436
+ script$6.__file = "src/ly0d2busiside/main.vue";
48437
+
48438
+ var script$5 = {
48439
+ __name: 'Index',
48440
+ props: {
48441
+ myProps: {
48442
+ type: Object,
48443
+ default: () => ({
48444
+ popup: {
48445
+ switch: false,
48446
+ visible: false,
48447
+ title: '支付记录',
48448
+ width: '1200px',
48449
+ top: '15vh'
48450
+ },
48451
+ id_business: null, // 订单id
48452
+ businesstype_code: '', // 订单类别
48453
+ deal: 0, // 订单金额(应收应付)
48454
+ wx_appid: '',
48455
+ wx_mchid: '',
48456
+ readOnly: false,
48457
+ })
48458
+ }
48459
+ },
48460
+ setup(__props) {
48461
+
48462
+ return (_ctx, _cache) => {
48463
+ const _component_el_dialog = vue.resolveComponent("el-dialog");
48464
+
48465
+ return (__props.myProps.popup.switch)
48466
+ ? (vue.openBlock(), vue.createBlock(_component_el_dialog, {
48467
+ key: 0,
48468
+ modelValue: __props.myProps.popup.visible,
48469
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((__props.myProps.popup.visible) = $event)),
48470
+ "custom-class": 'code-template-dialog',
48471
+ "close-on-press-escape": true,
48472
+ "append-to-body": "",
48473
+ title: __props.myProps.popup.title,
48474
+ width: __props.myProps.popup.width,
48475
+ top: __props.myProps.popup.top,
48476
+ "destroy-on-close": true
48477
+ }, {
48478
+ default: vue.withCtx(() => [
48479
+ vue.createVNode(script$6, { myProps: __props.myProps }, null, 8 /* PROPS */, ["myProps"])
48480
+ ]),
48481
+ _: 1 /* STABLE */
48482
+ }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
48483
+ : (vue.openBlock(), vue.createBlock(script$6, {
48484
+ key: 1,
48485
+ myProps: __props.myProps
48486
+ }, null, 8 /* PROPS */, ["myProps"]))
48487
+ }
48488
+ }
48489
+
48490
+ };
48491
+
48492
+ script$5.__file = "src/ly0d2busiside/Index.vue";
47535
48493
 
47536
48494
  const _hoisted_1$4 = { key: 0 };
47537
48495
  const _hoisted_2$4 = { key: 1 };
@@ -49000,18 +49958,19 @@ script.__file = "src/ly0d7thumb/Index.vue";
49000
49958
  var index = {
49001
49959
  install(app, options) {
49002
49960
  // 全局注册组件
49003
- app.component('ly0Form', script$j);
49004
- app.component('ly0Menu', script$i);
49005
- app.component('ly0Table', script$e);
49006
- app.component('ly0Richtext', script$h);
49961
+ app.component('ly0Form', script$l);
49962
+ app.component('ly0Menu', script$k);
49963
+ app.component('ly0Table', script$g);
49964
+ app.component('ly0Richtext', script$j);
49007
49965
  app.component('ly0Upload', upload.Upload);
49008
49966
  app.component('ly0Upload_avatar', upload.Upload_avatar);
49009
49967
  app.component('ly0Upload_carplate', upload.Upload_carplate);
49010
49968
  app.component('ly0Upload_drag', upload.Upload_drag);
49011
49969
  app.component('ly0Upload_picture', upload.Upload_picture);
49012
49970
  app.component('ly0Upload_pictureCard', upload.Upload_pictureCard);
49013
- app.component('ly0gbt2260', script$7);
49014
- app.component('ly0d2cash', script$5);
49971
+ app.component('ly0gbt2260', script$9);
49972
+ app.component('ly0d2cash', script$7);
49973
+ app.component('ly0d2busiside', script$5);
49015
49974
  app.component('ly0d7group', script$4);
49016
49975
  app.component('ly0d7price', script$2);
49017
49976
  app.component('ly0d7postal', script$3);