ocpview-plus 1.0.2 → 1.0.4

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.
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-plus";
456
- const version$2 = "1.0.1";
456
+ const version$2 = "1.0.3";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -8654,7 +8654,7 @@ const _hoisted_4$o = {
8654
8654
  ref: "page",
8655
8655
  name: "page"
8656
8656
  };
8657
- const _hoisted_5$l = {
8657
+ const _hoisted_5$k = {
8658
8658
  key: 0,
8659
8659
  style: { "background": "#eee", "padding-top": "5px" }
8660
8660
  };
@@ -8841,7 +8841,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
8841
8841
  renderSlot(_ctx.$slots, "footer")
8842
8842
  ])) : createCommentVNode("", true),
8843
8843
  createElementVNode("div", _hoisted_4$o, [
8844
- _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
8844
+ _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
8845
8845
  createVNode(_component_Card, {
8846
8846
  bordered: false,
8847
8847
  padding: 0,
@@ -10360,7 +10360,7 @@ const _hoisted_3$n = {
10360
10360
  style: { "margin-left": "10px" }
10361
10361
  };
10362
10362
  const _hoisted_4$m = ["onClick"];
10363
- const _hoisted_5$k = {
10363
+ const _hoisted_5$j = {
10364
10364
  key: 0,
10365
10365
  ref: "page",
10366
10366
  style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
@@ -10458,7 +10458,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
10458
10458
  };
10459
10459
  })
10460
10460
  ]), 1032, ["loading", "size", "row-class-name", "stripe", "border", "height", "maxHeight", "show-header", "columns", "onOnSelectionChange", "data", "onOnColumnWidthResize", "show-summary", "summary-method"]),
10461
- $data.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
10461
+ $data.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
10462
10462
  createVNode(_component_Card, {
10463
10463
  bordered: false,
10464
10464
  padding: 0,
@@ -26899,7 +26899,7 @@ const _hoisted_3$m = {
26899
26899
  class: "ivu-tag ivu-tag-checked"
26900
26900
  };
26901
26901
  const _hoisted_4$l = { class: "ivu-tag-text ivu-select-max-tag" };
26902
- const _hoisted_5$j = { class: "ivu-tag-text" };
26902
+ const _hoisted_5$i = { class: "ivu-tag-text" };
26903
26903
  function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
26904
26904
  const _component_Icon = resolveComponent("Icon");
26905
26905
  const _component_Col = resolveComponent("Col");
@@ -26941,7 +26941,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
26941
26941
  key: "tag_" + index
26942
26942
  }, {
26943
26943
  default: withCtx(() => [
26944
- createElementVNode("span", _hoisted_5$j, toDisplayString(item.label), 1),
26944
+ createElementVNode("span", _hoisted_5$i, toDisplayString(item.label), 1),
26945
26945
  !$data.myConfig.readOnly ? (openBlock(), createBlock(_component_Icon, {
26946
26946
  key: 0,
26947
26947
  type: "ios-close",
@@ -29691,7 +29691,7 @@ const _hoisted_1$R = { style: { "text-align": "center" } };
29691
29691
  const _hoisted_2$A = ["onClick"];
29692
29692
  const _hoisted_3$l = ["onClick"];
29693
29693
  const _hoisted_4$k = ["src", "data-original"];
29694
- const _hoisted_5$i = { key: 0 };
29694
+ const _hoisted_5$h = { key: 0 };
29695
29695
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
29696
29696
  const _component_Icon = resolveComponent("Icon");
29697
29697
  const _component_Badge = resolveComponent("Badge");
@@ -29789,7 +29789,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
29789
29789
  size: $data.myConfig.iconSize,
29790
29790
  color: $options.iconColor
29791
29791
  }, null, 8, ["custom", "size", "color"]),
29792
- $data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$i, toDisplayString($data.myConfig.text), 1)) : createCommentVNode("", true)
29792
+ $data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$h, toDisplayString($data.myConfig.text), 1)) : createCommentVNode("", true)
29793
29793
  ]),
29794
29794
  _: 1
29795
29795
  }, 8, ["style"])
@@ -30140,7 +30140,7 @@ const _hoisted_1$Q = {
30140
30140
  const _hoisted_2$z = { ref: "photo" };
30141
30141
  const _hoisted_3$k = ["src", "data-original"];
30142
30142
  const _hoisted_4$j = ["innerHTML"];
30143
- const _hoisted_5$h = {
30143
+ const _hoisted_5$g = {
30144
30144
  ref: "pdf",
30145
30145
  style: { "height": "630px" }
30146
30146
  };
@@ -30264,7 +30264,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
30264
30264
  "footer-hide": true
30265
30265
  }, {
30266
30266
  default: withCtx(() => [
30267
- createElementVNode("div", _hoisted_5$h, null, 512)
30267
+ createElementVNode("div", _hoisted_5$g, null, 512)
30268
30268
  ]),
30269
30269
  _: 1
30270
30270
  }, 8, ["modelValue"]),
@@ -30875,7 +30875,7 @@ const _hoisted_1$P = { style: { "text-align": "center" } };
30875
30875
  const _hoisted_2$y = ["onClick"];
30876
30876
  const _hoisted_3$j = ["onClick"];
30877
30877
  const _hoisted_4$i = ["src"];
30878
- const _hoisted_5$g = { key: 1 };
30878
+ const _hoisted_5$f = { key: 1 };
30879
30879
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
30880
30880
  const _component_Icon = resolveComponent("Icon");
30881
30881
  const _component_Badge = resolveComponent("Badge");
@@ -30967,7 +30967,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
30967
30967
  size: $data.myConfig.iconSize,
30968
30968
  color: $options.iconColor
30969
30969
  }, null, 8, ["type", "size", "color"])) : createCommentVNode("", true),
30970
- $data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$g, toDisplayString($data.myConfig.text), 1)) : createCommentVNode("", true)
30970
+ $data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString($data.myConfig.text), 1)) : createCommentVNode("", true)
30971
30971
  ]),
30972
30972
  _: 1
30973
30973
  }, 8, ["style"])
@@ -33184,7 +33184,7 @@ const _hoisted_1$I = ["textContent"];
33184
33184
  const _hoisted_2$t = { style: { "padding": "16px" } };
33185
33185
  const _hoisted_3$h = ["textContent"];
33186
33186
  const _hoisted_4$g = { key: 1 };
33187
- const _hoisted_5$f = { style: { "padding": "16px" } };
33187
+ const _hoisted_5$e = { style: { "padding": "16px" } };
33188
33188
  const _hoisted_6$b = ["textContent"];
33189
33189
  const _hoisted_7$5 = ["textContent"];
33190
33190
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
@@ -33299,7 +33299,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
33299
33299
  $data.showBtn && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString($data.myConfig.editBtnName), 1)) : createCommentVNode("", true)
33300
33300
  ]),
33301
33301
  default: withCtx(() => [
33302
- withDirectives(createElementVNode("div", _hoisted_5$f, [
33302
+ withDirectives(createElementVNode("div", _hoisted_5$e, [
33303
33303
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.data, (temp) => {
33304
33304
  return openBlock(), createBlock(_component_FormDetail, {
33305
33305
  ref_for: true,
@@ -36966,7 +36966,7 @@ const _hoisted_1$A = ["title"];
36966
36966
  const _hoisted_2$p = ["title"];
36967
36967
  const _hoisted_3$g = ["value", "disabled"];
36968
36968
  const _hoisted_4$f = ["title"];
36969
- const _hoisted_5$e = ["title"];
36969
+ const _hoisted_5$d = ["title"];
36970
36970
  const _hoisted_6$a = {
36971
36971
  key: 1,
36972
36972
  class: "ivu-icon ivu-icon-ios-arrow-back"
@@ -37071,7 +37071,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
37071
37071
  createTextVNode(toDisplayString(_ctx.prevText), 1)
37072
37072
  ], 64)) : (openBlock(), createElementBlock("i", _hoisted_6$a))
37073
37073
  ])
37074
- ], 10, _hoisted_5$e),
37074
+ ], 10, _hoisted_5$d),
37075
37075
  createElementVNode("li", {
37076
37076
  title: "1",
37077
37077
  class: normalizeClass(_ctx.firstPageClasses),
@@ -37264,7 +37264,7 @@ const _hoisted_3$f = {
37264
37264
  style: { "padding-top": "10px" }
37265
37265
  };
37266
37266
  const _hoisted_4$e = ["textContent"];
37267
- const _hoisted_5$d = {
37267
+ const _hoisted_5$c = {
37268
37268
  ref: "page",
37269
37269
  name: "page"
37270
37270
  };
@@ -37453,7 +37453,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
37453
37453
  ]),
37454
37454
  _: 1
37455
37455
  }),
37456
- createElementVNode("div", _hoisted_5$d, [
37456
+ createElementVNode("div", _hoisted_5$c, [
37457
37457
  _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
37458
37458
  createVNode(_component_Card, {
37459
37459
  bordered: false,
@@ -40187,7 +40187,7 @@ const _hoisted_1$w = ["textContent"];
40187
40187
  const _hoisted_2$m = { style: { "padding-left": "24px" } };
40188
40188
  const _hoisted_3$e = { ref: "photo" };
40189
40189
  const _hoisted_4$d = ["src", "data-original"];
40190
- const _hoisted_5$c = ["innerHTML"];
40190
+ const _hoisted_5$b = ["innerHTML"];
40191
40191
  const _hoisted_6$8 = {
40192
40192
  ref: "pdf",
40193
40193
  style: { "height": "630px" }
@@ -40328,7 +40328,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
40328
40328
  "footer-hide": true
40329
40329
  }, {
40330
40330
  default: withCtx(() => [
40331
- createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$c)
40331
+ createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$b)
40332
40332
  ]),
40333
40333
  _: 1
40334
40334
  }, 8, ["modelValue"]),
@@ -40824,7 +40824,7 @@ const _hoisted_4$c = {
40824
40824
  key: 0,
40825
40825
  style: { "border": "1px solid #F3B352", "background-color": "#FFF7EB", "padding-left": "30px", "padding-right": "30px" }
40826
40826
  };
40827
- const _hoisted_5$b = {
40827
+ const _hoisted_5$a = {
40828
40828
  key: 1,
40829
40829
  style: { "border": "1px solid #739943", "background-color": "#FBFFF6", "padding-left": "30px", "padding-right": "30px" }
40830
40830
  };
@@ -41134,7 +41134,7 @@ function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
41134
41134
  _cache[14] || (_cache[14] = createTextVNode()),
41135
41135
  _cache[15] || (_cache[15] = createElementVNode("span", { style: { "margin-left": "12px", "font-size": "18px", "color": "#F3B352", "font-weight": "bold" } }, "\u5DF2\u5B58\u5728\u751F\u6210\u4E2D\u7684\u5BFC\u51FA\u4EFB\u52A1\uFF0C\u8BF7\u7A0D\u540E\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1", -1))
41136
41136
  ])) : createCommentVNode("", true),
41137
- $data.checkExportSuccessFlag ? (openBlock(), createElementBlock("p", _hoisted_5$b, [
41137
+ $data.checkExportSuccessFlag ? (openBlock(), createElementBlock("p", _hoisted_5$a, [
41138
41138
  createVNode(_component_Icon, {
41139
41139
  custom: "iconfont icon-custom-wancheng",
41140
41140
  size: "20",
@@ -43284,7 +43284,7 @@ const _hoisted_1$p = { style: { "margin-top": "3px", "margin-bottom": "3px", "ma
43284
43284
  const _hoisted_2$i = { style: { "color": "#AF292E", "font-size": "14px" } };
43285
43285
  const _hoisted_3$c = { style: { "max-height": "400px", "overflow-y": "auto", "overflow-x": "hidden", "margin": "14px 16px" } };
43286
43286
  const _hoisted_4$b = { style: { "padding-left": "14px" } };
43287
- const _hoisted_5$a = ["onClick"];
43287
+ const _hoisted_5$9 = ["onClick"];
43288
43288
  const _hoisted_6$6 = ["onClick"];
43289
43289
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43290
43290
  const _component_Col = resolveComponent("Col");
@@ -43437,7 +43437,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43437
43437
  size: "22",
43438
43438
  color: "#A8ABB2"
43439
43439
  }))
43440
- ], 8, _hoisted_5$a)
43440
+ ], 8, _hoisted_5$9)
43441
43441
  ]),
43442
43442
  _: 2
43443
43443
  }, 1024)
@@ -44052,7 +44052,7 @@ const _hoisted_2$h = {
44052
44052
  };
44053
44053
  const _hoisted_3$b = ["textContent"];
44054
44054
  const _hoisted_4$a = { key: 0 };
44055
- const _hoisted_5$9 = ["onClick"];
44055
+ const _hoisted_5$8 = ["onClick"];
44056
44056
  const _hoisted_6$5 = {
44057
44057
  key: 0,
44058
44058
  ref: "page",
@@ -44232,7 +44232,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
44232
44232
  config: config2,
44233
44233
  rowIndex: index
44234
44234
  }, null, 8, ["label", "contentAlign", "class", "config", "rowIndex"]))
44235
- ], 10, _hoisted_5$9)
44235
+ ], 10, _hoisted_5$8)
44236
44236
  ])
44237
44237
  };
44238
44238
  })
@@ -46596,7 +46596,7 @@ const _hoisted_1$j = { style: { "background": "#fff" } };
46596
46596
  const _hoisted_2$d = { ref: "headarea" };
46597
46597
  const _hoisted_3$9 = ["id"];
46598
46598
  const _hoisted_4$9 = ["id"];
46599
- const _hoisted_5$8 = ["id"];
46599
+ const _hoisted_5$7 = ["id"];
46600
46600
  function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
46601
46601
  const _component_AnchorLink = resolveComponent("AnchorLink");
46602
46602
  const _component_Anchor = resolveComponent("Anchor");
@@ -46707,7 +46707,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
46707
46707
  modulecode: $data.modulecode,
46708
46708
  onDoAction: $options.doAction
46709
46709
  }, null, 8, ["config", "modulecode", "onDoAction"])) : createCommentVNode("", true)
46710
- ], 8, _hoisted_5$8)), [
46710
+ ], 8, _hoisted_5$7)), [
46711
46711
  [vShow, $data.detailVisible[index].visible]
46712
46712
  ]);
46713
46713
  }), 128))
@@ -47194,7 +47194,7 @@ const _hoisted_1$i = { style: { "color": "#AF292E" } };
47194
47194
  const _hoisted_2$c = ["textContent"];
47195
47195
  const _hoisted_3$8 = ["textContent"];
47196
47196
  const _hoisted_4$8 = { style: { "color": "#AF292E" } };
47197
- const _hoisted_5$7 = ["textContent"];
47197
+ const _hoisted_5$6 = ["textContent"];
47198
47198
  const _hoisted_6$4 = { style: { "color": "#AF292E" } };
47199
47199
  const _hoisted_7$1 = ["textContent"];
47200
47200
  const _hoisted_8 = { style: { "display": "flex", "align-items": "center" } };
@@ -47333,7 +47333,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
47333
47333
  createElementVNode("span", _hoisted_4$8, toDisplayString($data.selectuserdata.length), 1),
47334
47334
  createElementVNode("span", {
47335
47335
  textContent: toDisplayString($options.info)
47336
- }, null, 8, _hoisted_5$7)
47336
+ }, null, 8, _hoisted_5$6)
47337
47337
  ]),
47338
47338
  _: 1
47339
47339
  })) : createCommentVNode("", true),
@@ -49877,7 +49877,7 @@ const _hoisted_2$9 = {
49877
49877
  };
49878
49878
  const _hoisted_3$7 = { style: { "margin-bottom": "10px" } };
49879
49879
  const _hoisted_4$7 = ["textContent"];
49880
- const _hoisted_5$6 = { ref: "para" };
49880
+ const _hoisted_5$5 = { ref: "para" };
49881
49881
  const _hoisted_6$3 = {
49882
49882
  class: "efuture-demo-split-pane",
49883
49883
  style: { "padding": "14px 0px" }
@@ -49936,7 +49936,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
49936
49936
  textContent: toDisplayString($data.myConfig.gridtitle)
49937
49937
  }, null, 8, _hoisted_4$7)
49938
49938
  ]),
49939
- createElementVNode("div", _hoisted_5$6, [
49939
+ createElementVNode("div", _hoisted_5$5, [
49940
49940
  createVNode(_component_Input, {
49941
49941
  placeholder: $data.searchPlaceholder,
49942
49942
  modelValue: $data.searchValue,
@@ -50542,7 +50542,7 @@ const _hoisted_2$8 = {
50542
50542
  };
50543
50543
  const _hoisted_3$6 = { style: { "margin-bottom": "10px" } };
50544
50544
  const _hoisted_4$6 = ["textContent"];
50545
- const _hoisted_5$5 = { ref: "para" };
50545
+ const _hoisted_5$4 = { ref: "para" };
50546
50546
  const _hoisted_6$2 = {
50547
50547
  class: "efuture-demo-split-pane",
50548
50548
  style: { "padding": "14px 0px" }
@@ -50604,7 +50604,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
50604
50604
  textContent: toDisplayString($data.myConfig.gridtitle)
50605
50605
  }, null, 8, _hoisted_4$6)
50606
50606
  ]),
50607
- createElementVNode("div", _hoisted_5$5, [
50607
+ createElementVNode("div", _hoisted_5$4, [
50608
50608
  _ctx.showCondition ? (openBlock(), createBlock(_component_Row, { key: 0 }, {
50609
50609
  default: withCtx(() => [
50610
50610
  createVNode(_component_ControlBox, {
@@ -51100,7 +51100,7 @@ const _hoisted_2$7 = {
51100
51100
  };
51101
51101
  const _hoisted_3$5 = { style: { "margin-bottom": "10px" } };
51102
51102
  const _hoisted_4$5 = ["textContent"];
51103
- const _hoisted_5$4 = { ref: "para" };
51103
+ const _hoisted_5$3 = { ref: "para" };
51104
51104
  const _hoisted_6$1 = {
51105
51105
  class: "efuture-demo-split-pane",
51106
51106
  style: { "padding": "14px 16px" }
@@ -51159,7 +51159,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
51159
51159
  textContent: toDisplayString($data.myConfig.gridtitle)
51160
51160
  }, null, 8, _hoisted_4$5)
51161
51161
  ]),
51162
- createElementVNode("div", _hoisted_5$4, [
51162
+ createElementVNode("div", _hoisted_5$3, [
51163
51163
  createVNode(_component_Input, {
51164
51164
  placeholder: $data.searchPlaceholder,
51165
51165
  modelValue: $data.searchValue,
@@ -52384,7 +52384,7 @@ const _hoisted_4$4 = {
52384
52384
  style: { "text-decoration": "underline" },
52385
52385
  class: "efuture-leveltextname"
52386
52386
  };
52387
- const _hoisted_5$3 = {
52387
+ const _hoisted_5$2 = {
52388
52388
  key: 1,
52389
52389
  style: { "text-decoration": "underline", "color": "#303133" }
52390
52390
  };
@@ -52458,7 +52458,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
52458
52458
  onClick: ($event) => $options.levelClick(temp)
52459
52459
  }, {
52460
52460
  default: withCtx(() => [
52461
- index === $data.levelData.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(temp.name), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString(temp.name), 1))
52461
+ index === $data.levelData.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(temp.name), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString(temp.name), 1))
52462
52462
  ]),
52463
52463
  _: 2
52464
52464
  }, 1032, ["onClick"]);
@@ -52774,6 +52774,11 @@ const _sfc_main$8 = {
52774
52774
  ...item
52775
52775
  };
52776
52776
  });
52777
+ },
52778
+ seqConfig() {
52779
+ return {
52780
+ startIndex: (this.myConfig.pageConfig.page_no - 1) * this.myConfig.pageConfig.page_size
52781
+ };
52777
52782
  }
52778
52783
  },
52779
52784
  methods: {
@@ -52811,7 +52816,7 @@ const _hoisted_3$2 = {
52811
52816
  style: { "padding-top": "10px" }
52812
52817
  };
52813
52818
  const _hoisted_4$2 = ["textContent"];
52814
- const _hoisted_5$2 = {
52819
+ const _hoisted_5$1 = {
52815
52820
  ref: "page",
52816
52821
  name: "page"
52817
52822
  };
@@ -52862,13 +52867,14 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
52862
52867
  default: withCtx(() => [
52863
52868
  createVNode(_component_vxe_grid, {
52864
52869
  ref: "table",
52865
- border: "inner",
52870
+ border: "full",
52866
52871
  columns: $options.RewriteColumns,
52867
52872
  data: $options.RewriteData,
52868
52873
  height: _ctx.tableHeight,
52869
52874
  "max-height": _ctx.tableMaxHeight,
52870
52875
  loading: _ctx.loading,
52871
52876
  "sort-config": { remote: true, trigger: "cell" },
52877
+ "seq-config": $options.seqConfig,
52872
52878
  onSortChange: $options.RewriteTableOnSortChange,
52873
52879
  onCellDblclick: $options.RewriteTableCellDBlclick
52874
52880
  }, {
@@ -52879,7 +52885,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
52879
52885
  })
52880
52886
  ]),
52881
52887
  _: 1
52882
- }, 8, ["columns", "data", "height", "max-height", "loading", "onSortChange", "onCellDblclick"])
52888
+ }, 8, ["columns", "data", "height", "max-height", "loading", "seq-config", "onSortChange", "onCellDblclick"])
52883
52889
  ]),
52884
52890
  _: 1
52885
52891
  }),
@@ -52982,7 +52988,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
52982
52988
  ]),
52983
52989
  _: 1
52984
52990
  }),
52985
- createElementVNode("div", _hoisted_5$2, [
52991
+ createElementVNode("div", _hoisted_5$1, [
52986
52992
  _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_6, [
52987
52993
  createVNode(_component_Card, {
52988
52994
  bordered: false,
@@ -53241,9 +53247,184 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
53241
53247
  ]);
53242
53248
  }
53243
53249
  var BillListPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render$7]]);
53250
+ var useVxeGridEditTypeKeydownEventHook = {
53251
+ name: "useVxeGridEditTypeKeydownEventHook",
53252
+ data() {
53253
+ return {
53254
+ VG_currentEditRecord: {}
53255
+ };
53256
+ },
53257
+ computed: {
53258
+ VG_keyboardConfig() {
53259
+ const onOff = true;
53260
+ return {
53261
+ isArrow: onOff,
53262
+ isEdit: onOff,
53263
+ isEsc: onOff,
53264
+ isEnter: onOff,
53265
+ enterToTab: onOff,
53266
+ isChecked: onOff
53267
+ };
53268
+ },
53269
+ VG_mouseConfig() {
53270
+ const onOff = true;
53271
+ return {
53272
+ selected: onOff
53273
+ };
53274
+ }
53275
+ },
53276
+ methods: {
53277
+ VG_keydown({ $event, $table }) {
53278
+ const keyCode = $event.keyCode;
53279
+ switch (keyCode) {
53280
+ case 13:
53281
+ window.event.returnValue = false;
53282
+ $event.preventDefault();
53283
+ this.VG_keyCode13Event($table);
53284
+ break;
53285
+ case 38:
53286
+ window.event.returnValue = false;
53287
+ $event.preventDefault();
53288
+ this.VG_keyCodeUpAndDownEvent($table, "up");
53289
+ break;
53290
+ case 40:
53291
+ window.event.returnValue = false;
53292
+ $event.preventDefault();
53293
+ this.VG_keyCodeUpAndDownEvent($table, "down");
53294
+ break;
53295
+ }
53296
+ },
53297
+ VG_keyCode13Event($table) {
53298
+ const activeMethod = this.$utils.get(
53299
+ $table,
53300
+ "editConfig.beforeEditMethod",
53301
+ function() {
53302
+ return true;
53303
+ }
53304
+ );
53305
+ const editRecord = $table.getEditRecord();
53306
+ const selectedCell = $table.getSelectedCell();
53307
+ const { tableColumn } = $table.getTableColumn();
53308
+ const fullData = $table.getTableData().fullData;
53309
+ if (editRecord) {
53310
+ const { row, column: column2 } = editRecord;
53311
+ const rowIndex = $table.getVTRowIndex(row);
53312
+ const columnIndex = $table.getVTColumnIndex(column2);
53313
+ $table.scrollToRow(row, column2).then(() => {
53314
+ $table.clearEdit();
53315
+ const isLastEditCell = this.VG_setRowIsEditCell(
53316
+ row,
53317
+ columnIndex,
53318
+ tableColumn,
53319
+ activeMethod,
53320
+ $table
53321
+ );
53322
+ if (isLastEditCell) {
53323
+ const nextRowSub = rowIndex + 1;
53324
+ if (fullData[nextRowSub]) {
53325
+ const { scrollTop } = $table.getScroll();
53326
+ $table.scrollTo(0, scrollTop).then(() => {
53327
+ this.VG_setRowIsEditCell(
53328
+ fullData[nextRowSub],
53329
+ 0,
53330
+ tableColumn,
53331
+ activeMethod,
53332
+ $table
53333
+ );
53334
+ });
53335
+ } else {
53336
+ $table.setEditRow(fullData[rowIndex], column2);
53337
+ }
53338
+ }
53339
+ });
53340
+ }
53341
+ if (selectedCell) {
53342
+ const { row, column: column2 } = selectedCell;
53343
+ const rowIndex = $table.getVTRowIndex(row);
53344
+ const columnIndex = $table.getVTColumnIndex(column2);
53345
+ $table.scrollToRow(row, column2).then(() => {
53346
+ const succ = activeMethod(selectedCell);
53347
+ if (column2.editRender && succ) {
53348
+ $table.setEditCell(row, column2.property);
53349
+ } else {
53350
+ const isLastEditCell = this.VG_setRowIsEditCell(
53351
+ row,
53352
+ columnIndex,
53353
+ tableColumn,
53354
+ activeMethod,
53355
+ $table
53356
+ );
53357
+ if (isLastEditCell) {
53358
+ const nextRowSub = rowIndex + 1;
53359
+ if (fullData[nextRowSub]) {
53360
+ const { scrollTop } = $table.getScroll();
53361
+ $table.scrollTo(0, scrollTop).then(() => {
53362
+ this.VG_setRowIsEditCell(
53363
+ fullData[nextRowSub],
53364
+ 0,
53365
+ tableColumn,
53366
+ activeMethod,
53367
+ $table
53368
+ );
53369
+ });
53370
+ }
53371
+ }
53372
+ }
53373
+ });
53374
+ }
53375
+ },
53376
+ VG_keyCodeUpAndDownEvent($table, type = "down") {
53377
+ this.VG_currentEditRecord = $table.getEditRecord();
53378
+ const activeMethod = this.$utils.get(
53379
+ $table,
53380
+ "editConfig.beforeEditMethod",
53381
+ function() {
53382
+ return true;
53383
+ }
53384
+ );
53385
+ const editRecord = $table.getEditRecord();
53386
+ const fullData = $table.getTableData().fullData;
53387
+ if (editRecord) {
53388
+ const { row, column: column2 } = editRecord;
53389
+ const rowIndex = $table.getVTRowIndex(row);
53390
+ $table.scrollToRow(row, column2).then(() => {
53391
+ $table.clearEdit();
53392
+ const succ = activeMethod({ row, column: column2 });
53393
+ if (column2.editRender && succ) {
53394
+ const nextRowSub = type === "down" ? rowIndex + 1 : rowIndex - 1;
53395
+ if (fullData[nextRowSub]) {
53396
+ const { scrollTop } = $table.getScroll();
53397
+ $table.scrollTo(0, scrollTop).then(() => {
53398
+ $table.setEditRow(fullData[nextRowSub], column2);
53399
+ });
53400
+ } else {
53401
+ $table.setEditRow(fullData[rowIndex], column2);
53402
+ }
53403
+ }
53404
+ });
53405
+ }
53406
+ },
53407
+ VG_setRowIsEditCell(row, columnIndex, fullColumn, activeMethod, $table) {
53408
+ let isLastEditCell = true;
53409
+ for (let i = columnIndex + 1, len = fullColumn.length; i < len; i++) {
53410
+ const column2 = fullColumn[i];
53411
+ const succ = activeMethod({ row, column: column2 });
53412
+ if (column2.editRender && column2.editRender.enabled && succ) {
53413
+ $table.scrollToRow(row, column2).then(() => {
53414
+ $table.setEditCell(row, column2.property);
53415
+ });
53416
+ isLastEditCell = false;
53417
+ break;
53418
+ }
53419
+ }
53420
+ return isLastEditCell;
53421
+ }
53422
+ }
53423
+ };
53244
53424
  const _sfc_main$6 = {
53245
53425
  name: "BillInfoPanelEditTable",
53246
53426
  extends: mEditGridCard,
53427
+ mixins: [useVxeGridEditTypeKeydownEventHook],
53247
53428
  data() {
53248
53429
  return {
53249
53430
  editType: false,
@@ -53256,7 +53437,9 @@ const _sfc_main$6 = {
53256
53437
  return false;
53257
53438
  }
53258
53439
  if (this.myConfig.cellbeginedit) {
53259
- return this.myConfig.cellbeginedit({ column: column2 });
53440
+ return this.myConfig.cellbeginedit({
53441
+ column: { ...column2, name: column2.property }
53442
+ });
53260
53443
  }
53261
53444
  return true;
53262
53445
  }
@@ -53305,7 +53488,7 @@ const _sfc_main$6 = {
53305
53488
  enabled: false,
53306
53489
  defaultValue: item.defaultValue || ""
53307
53490
  },
53308
- ...!item.readOnly && {
53491
+ ...!item.readOnly && !columnsItemType && {
53309
53492
  editRender: {
53310
53493
  enabled: true,
53311
53494
  defaultValue: item.defaultValue || ""
@@ -53342,12 +53525,27 @@ const _sfc_main$6 = {
53342
53525
  },
53343
53526
  sumFields() {
53344
53527
  return this.tableColumns.filter((item) => item.summary).map((item) => item.name);
53528
+ },
53529
+ toolbarConfig() {
53530
+ return {
53531
+ zoom: this.myConfig.zoom,
53532
+ slots: {
53533
+ buttons: "toolbar_buttons"
53534
+ }
53535
+ };
53345
53536
  }
53346
53537
  },
53347
53538
  methods: {
53539
+ enterKeyDown() {
53540
+ const $table = this.$refs.table;
53541
+ this.VG_keyCode13Event($table);
53542
+ },
53348
53543
  valueChanged(obj) {
53349
53544
  const $tableVM = this.$refs.table;
53350
- const editRecord = $tableVM.getEditRecord();
53545
+ let editRecord = $tableVM.getEditRecord();
53546
+ if (!editRecord) {
53547
+ editRecord = this.VG_currentEditRecord;
53548
+ }
53351
53549
  const params = { ...obj, rowinfo: editRecord };
53352
53550
  const column2 = this.findColumnConfig(obj.name, this.myConfig.items);
53353
53551
  const valueChangedSucc = column2.valueChanged(params);
@@ -53440,24 +53638,34 @@ const _sfc_main$6 = {
53440
53638
  },
53441
53639
  async handleAddRow() {
53442
53640
  const $tableVM = this.$refs.table;
53443
- let row = null;
53641
+ let rowData = null;
53444
53642
  if (this.myConfig.addRowBefore) {
53445
53643
  let temp = {};
53446
53644
  temp.name = this.myConfig.name;
53447
53645
  temp.grid = $tableVM;
53448
- row = this.myConfig.addRowBefore(temp);
53449
- if (row === false) {
53646
+ rowData = this.myConfig.addRowBefore(temp);
53647
+ if (rowData === false) {
53450
53648
  return;
53451
53649
  }
53452
53650
  }
53453
- if (!row || row === true) {
53454
- row = {};
53651
+ if (!rowData || rowData === true) {
53652
+ rowData = {};
53455
53653
  }
53456
53654
  const errMap = await $tableVM.validate(true);
53457
53655
  if (errMap) {
53458
53656
  return false;
53459
53657
  }
53460
- await $tableVM.insertAt(row, -1);
53658
+ const { row: newRow } = await $tableVM.insertAt(rowData, -1);
53659
+ const tableColumns = $tableVM.getTableColumn();
53660
+ const visibleColumns = this.$utils.get(
53661
+ tableColumns,
53662
+ "visibleColumn",
53663
+ []
53664
+ );
53665
+ this.$utils.find(visibleColumns, (column2) => {
53666
+ return column2 && column2.editRender && column2.editRender.enabled !== false;
53667
+ });
53668
+ await $tableVM.setEditRow(newRow, false);
53461
53669
  },
53462
53670
  delBatchRow() {
53463
53671
  const $tableVM = this.$refs.table;
@@ -53570,6 +53778,10 @@ const _sfc_main$6 = {
53570
53778
  RewriteTableCellDBlclick(params) {
53571
53779
  const { row } = params;
53572
53780
  this.dbclick(row);
53781
+ },
53782
+ handleZoom() {
53783
+ const $tableVM = this.$refs.table;
53784
+ $tableVM.zoom();
53573
53785
  }
53574
53786
  },
53575
53787
  mounted() {
@@ -53581,8 +53793,7 @@ const _hoisted_2$2 = {
53581
53793
  style: { "margin-bottom": "10px" }
53582
53794
  };
53583
53795
  const _hoisted_3$1 = ["textContent"];
53584
- const _hoisted_4$1 = { key: 0 };
53585
- const _hoisted_5$1 = {
53796
+ const _hoisted_4$1 = {
53586
53797
  key: 0,
53587
53798
  ref: "page",
53588
53799
  style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
@@ -53657,76 +53868,17 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
53657
53868
  createElementVNode("div", {
53658
53869
  style: normalizeStyle(_ctx.divStyle)
53659
53870
  }, [
53660
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
53661
- renderSlot(_ctx.$slots, "header")
53662
- ])) : withDirectives((openBlock(), createBlock(_component_Row, {
53663
- key: 1,
53664
- type: "flex",
53665
- justify: "start",
53666
- align: "middle",
53667
- gutter: 0,
53668
- style: { "margin-bottom": "10px" }
53669
- }, {
53670
- default: withCtx(() => [
53671
- _ctx.showAddBtn ? (openBlock(), createBlock(_component_Col, { key: 0 }, {
53672
- default: withCtx(() => [
53673
- createVNode(_component_Button, {
53674
- style: normalizeStyle(_ctx.btnStyle),
53675
- customIcon: "iconfont icon-custom-rowadd3",
53676
- type: "text",
53677
- disabled: _ctx.myConfig.readOnly,
53678
- onClick: $options.handleAddRow
53679
- }, {
53680
- default: withCtx(() => _cache[4] || (_cache[4] = [
53681
- createTextVNode("\u6DFB\u52A0")
53682
- ])),
53683
- _: 1
53684
- }, 8, ["style", "disabled", "onClick"])
53685
- ]),
53686
- _: 1
53687
- })) : createCommentVNode("", true),
53688
- _ctx.showAddBtn && _ctx.showDelBatchBtn ? (openBlock(), createBlock(_component_Col, { key: 1 }, {
53689
- default: withCtx(() => [
53690
- createVNode(_component_Divider, {
53691
- type: "vertical",
53692
- style: { "margin": "0 6px 0 6px" }
53693
- })
53694
- ]),
53695
- _: 1
53696
- })) : createCommentVNode("", true),
53697
- _ctx.showDelBatchBtn ? (openBlock(), createBlock(_component_Col, { key: 2 }, {
53698
- default: withCtx(() => [
53699
- createVNode(_component_Button, {
53700
- style: normalizeStyle(_ctx.btnStyle),
53701
- customIcon: "iconfont icon-custom-rowdel3",
53702
- type: "text",
53703
- disabled: _ctx.myConfig.readOnly,
53704
- onClick: $options.delBatchRow
53705
- }, {
53706
- default: withCtx(() => _cache[5] || (_cache[5] = [
53707
- createTextVNode("\u5220\u9664")
53708
- ])),
53709
- _: 1
53710
- }, 8, ["style", "disabled", "onClick"])
53711
- ]),
53712
- _: 1
53713
- })) : createCommentVNode("", true)
53714
- ]),
53715
- _: 1
53716
- }, 512)), [
53717
- [vShow, _ctx.showGrid]
53718
- ]),
53719
53871
  withDirectives(createVNode(_component_Row, { style: { "width": "100%" } }, {
53720
53872
  default: withCtx(() => [
53721
53873
  createVNode(_component_vxe_grid, {
53722
53874
  ref: "table",
53723
53875
  "keep-source": "",
53724
- border: "inner",
53876
+ border: "full",
53725
53877
  style: { "width": "100%" },
53726
53878
  columns: $options.RewriteColumns,
53727
53879
  data: $data.dataList,
53728
53880
  height: _ctx.tableHeight,
53729
- "max-height": _ctx.tableMaxHeight,
53881
+ "max-height": _ctx.tableMaxHeight + 100,
53730
53882
  loading: _ctx.loading,
53731
53883
  "sort-config": { remote: true, trigger: "cell" },
53732
53884
  "valid-config": {
@@ -53738,9 +53890,70 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
53738
53890
  "show-footer": $options.showFooter,
53739
53891
  "footer-method": $options.footerMethod,
53740
53892
  "footer-cell-class-name": $options.footerCellClassName,
53893
+ "toolbar-config": $options.toolbarConfig,
53894
+ "keyboard-config": _ctx.VG_keyboardConfig,
53895
+ "mouse-config": _ctx.VG_mouseConfig,
53741
53896
  onSortChange: $options.RewriteTableOnSortChange,
53742
- onCellDblclick: $options.RewriteTableCellDBlclick
53897
+ onCellDblclick: $options.RewriteTableCellDBlclick,
53898
+ onKeydown: _ctx.VG_keydown
53743
53899
  }, {
53900
+ toolbar_buttons: withCtx(() => [
53901
+ withDirectives(createVNode(_component_Row, {
53902
+ type: "flex",
53903
+ justify: "start",
53904
+ align: "middle",
53905
+ gutter: 0
53906
+ }, {
53907
+ default: withCtx(() => [
53908
+ _ctx.showAddBtn ? (openBlock(), createBlock(_component_Col, { key: 0 }, {
53909
+ default: withCtx(() => [
53910
+ createVNode(_component_Button, {
53911
+ style: normalizeStyle(_ctx.btnStyle),
53912
+ customIcon: "iconfont icon-custom-rowadd3",
53913
+ type: "text",
53914
+ disabled: _ctx.myConfig.readOnly,
53915
+ onClick: $options.handleAddRow
53916
+ }, {
53917
+ default: withCtx(() => _cache[4] || (_cache[4] = [
53918
+ createTextVNode("\u6DFB\u52A0")
53919
+ ])),
53920
+ _: 1
53921
+ }, 8, ["style", "disabled", "onClick"])
53922
+ ]),
53923
+ _: 1
53924
+ })) : createCommentVNode("", true),
53925
+ _ctx.showAddBtn && _ctx.showDelBatchBtn ? (openBlock(), createBlock(_component_Col, { key: 1 }, {
53926
+ default: withCtx(() => [
53927
+ createVNode(_component_Divider, {
53928
+ type: "vertical",
53929
+ style: { "margin": "0 6px 0 6px" }
53930
+ })
53931
+ ]),
53932
+ _: 1
53933
+ })) : createCommentVNode("", true),
53934
+ _ctx.showDelBatchBtn ? (openBlock(), createBlock(_component_Col, { key: 2 }, {
53935
+ default: withCtx(() => [
53936
+ createVNode(_component_Button, {
53937
+ style: normalizeStyle(_ctx.btnStyle),
53938
+ customIcon: "iconfont icon-custom-rowdel3",
53939
+ type: "text",
53940
+ disabled: _ctx.myConfig.readOnly,
53941
+ onClick: $options.delBatchRow
53942
+ }, {
53943
+ default: withCtx(() => _cache[5] || (_cache[5] = [
53944
+ createTextVNode("\u5220\u9664")
53945
+ ])),
53946
+ _: 1
53947
+ }, 8, ["style", "disabled", "onClick"])
53948
+ ]),
53949
+ _: 1
53950
+ })) : createCommentVNode("", true)
53951
+ ]),
53952
+ _: 1
53953
+ }, 512), [
53954
+ [vShow, _ctx.showGrid]
53955
+ ])
53956
+ ]),
53744
53957
  columnEdit: withCtx(({ row, rowIndex, columnIndex }) => [
53745
53958
  createVNode(_component_ControlBox, {
53746
53959
  autofocus: true,
@@ -53754,8 +53967,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
53754
53967
  }, null, 8, ["config", "valueData", "editIndex", "onInputValue", "onDoAction"])
53755
53968
  ]),
53756
53969
  _: 1
53757
- }, 8, ["columns", "data", "height", "max-height", "loading", "editConfig", "edit-rules", "show-footer", "footer-method", "footer-cell-class-name", "onSortChange", "onCellDblclick"]),
53758
- _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
53970
+ }, 8, ["columns", "data", "height", "max-height", "loading", "editConfig", "edit-rules", "show-footer", "footer-method", "footer-cell-class-name", "toolbar-config", "keyboard-config", "mouse-config", "onSortChange", "onCellDblclick", "onKeydown"]),
53971
+ _ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
53759
53972
  createVNode(_component_Card, {
53760
53973
  bordered: false,
53761
53974
  padding: 0,
@@ -53865,7 +54078,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
53865
54078
  _: 1
53866
54079
  }, 8, ["modelValue", "onOnOk"])) : createCommentVNode("", true)
53867
54080
  ]),
53868
- _: 3
54081
+ _: 1
53869
54082
  }, 512);
53870
54083
  }
53871
54084
  var BillInfoPanelEditTable = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6]]);
@@ -131142,10 +131355,13 @@ VXETableExport.setup({
131142
131355
  },
131143
131356
  scrollY: {
131144
131357
  enabled: true,
131145
- gt: 100
131358
+ gt: 60
131146
131359
  },
131147
131360
  loading: {
131148
131361
  icon: "vxe-icon-spinner roll"
131362
+ },
131363
+ mouseConfig: {
131364
+ selected: true
131149
131365
  }
131150
131366
  },
131151
131367
  grid: {