ocpview-plus 1.3.3 → 1.3.5

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.3.2";
456
+ const version$2 = "1.3.4";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -46576,28 +46576,34 @@ const _sfc_main$v = {
46576
46576
  type: "ComboBox",
46577
46577
  dictkey: "CUSTFILETYPE",
46578
46578
  codeWithName: false,
46579
- width: 300
46579
+ width: 300,
46580
+ visible: false,
46581
+ readOnly: true
46580
46582
  }, {
46581
46583
  label: "\u9644\u4EF6\u7C7B\u578B",
46582
46584
  name: "filemode",
46583
46585
  type: "TextBox",
46584
46586
  width: 300,
46585
- visible: false
46587
+ readOnly: true
46586
46588
  }, {
46587
46589
  label: "\u6587\u4EF6\u540D\u79F0",
46588
46590
  name: "filename",
46589
- type: "TextBox"
46591
+ type: "TextBox",
46592
+ width: 200,
46593
+ readOnly: true
46590
46594
  }, {
46591
46595
  label: "\u6587\u4EF6\u5927\u5C0F",
46592
46596
  name: "filesize",
46593
46597
  render: this.sizeActionRender,
46594
- width: 120
46598
+ width: 120,
46599
+ readOnly: true
46595
46600
  }, {
46596
46601
  label: "\u4E0A\u4F20\u65E5\u671F",
46597
46602
  name: "ph_timestamp",
46598
46603
  type: "DateBox",
46599
46604
  vtype: "datetime",
46600
- width: 200
46605
+ width: 150,
46606
+ readOnly: true
46601
46607
  }, {
46602
46608
  label: "\u64CD\u4F5C",
46603
46609
  key: "action",
@@ -47074,6 +47080,9 @@ const _sfc_main$v = {
47074
47080
  return check;
47075
47081
  },
47076
47082
  editGrid(params) {
47083
+ if (this.myConfig.beforeUpload) {
47084
+ this.myConfig.beforeUpload();
47085
+ }
47077
47086
  if (!this.billno) {
47078
47087
  this.alert("\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20");
47079
47088
  return;
@@ -48497,6 +48506,7 @@ const _sfc_main$t = {
48497
48506
  if (data.procinfo && data.procinfo.proclist) {
48498
48507
  let result = data.procinfo.proclist || [];
48499
48508
  let copylist = [];
48509
+ let candidateUserList = [];
48500
48510
  if (data.procinfo.cc && data.procinfo.cc.length > 0) {
48501
48511
  data.procinfo.cc.forEach((item) => {
48502
48512
  let tmp = {};
@@ -48506,13 +48516,24 @@ const _sfc_main$t = {
48506
48516
  copylist.push(tmp);
48507
48517
  });
48508
48518
  }
48509
- result.forEach((item) => {
48519
+ if (data.procinfo && data.procinfo.flowerProgress) {
48520
+ if (data.procinfo.flowerProgress.length > 0) {
48521
+ let lastflowerProgress = data.procinfo.flowerProgress[data.procinfo.flowerProgress.length - 1];
48522
+ if (lastflowerProgress && lastflowerProgress.candidateUserList) {
48523
+ candidateUserList = lastflowerProgress.candidateUserList;
48524
+ }
48525
+ }
48526
+ }
48527
+ result.forEach((item, index) => {
48510
48528
  item.active = false;
48511
48529
  item.tasklist.forEach((list) => {
48512
48530
  if (list.usernam) {
48513
48531
  list.userName = list.username.substr(-2, 2);
48514
48532
  }
48515
48533
  });
48534
+ if (index === result.length - 1) {
48535
+ item.candidateUserList = candidateUserList;
48536
+ }
48516
48537
  });
48517
48538
  if (data.procinfo.btnlist) {
48518
48539
  data.procinfo.btnlist.forEach((el2) => {
@@ -48549,6 +48570,9 @@ const _sfc_main$t = {
48549
48570
  ".billrepeal",
48550
48571
  { billno: this.value.billno },
48551
48572
  (data) => {
48573
+ if (this.$parent && typeof this.$parent.approvalOk === "function") {
48574
+ this.$parent.approvalOk();
48575
+ }
48552
48576
  this.alert(data.msg, null, 3);
48553
48577
  this.showDrawer = false;
48554
48578
  }
@@ -48566,6 +48590,9 @@ const _sfc_main$t = {
48566
48590
  ".billreject",
48567
48591
  para,
48568
48592
  (data) => {
48593
+ if (this.$parent && typeof this.$parent.approvalOk === "function") {
48594
+ this.$parent.approvalOk();
48595
+ }
48569
48596
  this.showDrawer = false;
48570
48597
  this.alert(data.msg, null, 3);
48571
48598
  }
@@ -48589,6 +48616,9 @@ const _sfc_main$t = {
48589
48616
  param.comment = this.idea;
48590
48617
  }
48591
48618
  this.doPost(".billsubmit", param, (data) => {
48619
+ if (this.$parent && typeof this.$parent.approvalOk === "function") {
48620
+ this.$parent.approvalOk();
48621
+ }
48592
48622
  this.showDrawer = false;
48593
48623
  this.$nextTick(() => {
48594
48624
  setTimeout(() => {
@@ -48602,6 +48632,9 @@ const _sfc_main$t = {
48602
48632
  ".billapproval",
48603
48633
  { billno: this.value.billno, comment: this.idea },
48604
48634
  (data) => {
48635
+ if (this.$parent && typeof this.$parent.approvalOk === "function") {
48636
+ this.$parent.approvalOk();
48637
+ }
48605
48638
  this.showDrawer = false;
48606
48639
  this.alert(data.msg, null, 3);
48607
48640
  }
@@ -48809,6 +48842,12 @@ const _sfc_main$t = {
48809
48842
  },
48810
48843
  selectTypeChange() {
48811
48844
  this.clearUser();
48845
+ },
48846
+ getCandidateUserText(candidateUserList) {
48847
+ if (!candidateUserList || candidateUserList.length === 0)
48848
+ return "";
48849
+ let approvers = candidateUserList.map((user) => user.userName).join("\u3001");
48850
+ return approvers;
48812
48851
  }
48813
48852
  },
48814
48853
  mounted() {
@@ -48854,24 +48893,28 @@ const _hoisted_19 = { class: "right" };
48854
48893
  const _hoisted_20 = { class: "top" };
48855
48894
  const _hoisted_21 = { style: { "font-size": "16px" } };
48856
48895
  const _hoisted_22 = { class: "status" };
48857
- const _hoisted_23 = { class: "desc" };
48858
- const _hoisted_24 = ["textContent"];
48859
- const _hoisted_25 = {
48896
+ const _hoisted_23 = {
48897
+ key: 0,
48898
+ class: "desc"
48899
+ };
48900
+ const _hoisted_24 = { class: "desc" };
48901
+ const _hoisted_25 = ["textContent"];
48902
+ const _hoisted_26 = {
48860
48903
  key: 0,
48861
48904
  class: "card"
48862
48905
  };
48863
- const _hoisted_26 = { class: "main" };
48864
- const _hoisted_27 = { class: "user-list" };
48865
- const _hoisted_28 = { class: "user" };
48866
- const _hoisted_29 = { class: "icon-wrap" };
48867
- const _hoisted_30 = { style: { "z-index": "99" } };
48868
- const _hoisted_31 = {
48906
+ const _hoisted_27 = { class: "main" };
48907
+ const _hoisted_28 = { class: "user-list" };
48908
+ const _hoisted_29 = { class: "user" };
48909
+ const _hoisted_30 = { class: "icon-wrap" };
48910
+ const _hoisted_31 = { style: { "z-index": "99" } };
48911
+ const _hoisted_32 = {
48869
48912
  ref: "foot",
48870
48913
  class: "footer"
48871
48914
  };
48872
- const _hoisted_32 = { style: { "color": "#AF292E" } };
48873
- const _hoisted_33 = { style: { "color": "#AF292E", "cursor": "pointer" } };
48874
- const _hoisted_34 = ["textContent"];
48915
+ const _hoisted_33 = { style: { "color": "#AF292E" } };
48916
+ const _hoisted_34 = { style: { "color": "#AF292E", "cursor": "pointer" } };
48917
+ const _hoisted_35 = ["textContent"];
48875
48918
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
48876
48919
  const _component_Col = resolveComponent("Col");
48877
48920
  const _component_Button = resolveComponent("Button");
@@ -49219,7 +49262,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49219
49262
  class: "log-list",
49220
49263
  key: index
49221
49264
  }, [
49222
- _cache[23] || (_cache[23] = createElementVNode("div", { class: "line-wrap" }, null, -1)),
49265
+ _cache[24] || (_cache[24] = createElementVNode("div", { class: "line-wrap" }, null, -1)),
49223
49266
  createElementVNode("div", _hoisted_16, [
49224
49267
  item.mulflag === "N" ? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(item.username), 1)) : (openBlock(), createBlock(_component_Icon, {
49225
49268
  key: 1,
@@ -49253,16 +49296,20 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49253
49296
  createElementVNode("span", _hoisted_22, toDisplayString(item.act_status_name), 1)
49254
49297
  ]),
49255
49298
  createElementVNode("div", null, [
49299
+ index === $data.auditLog.length - 1 && item.candidateUserList && item.candidateUserList.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_23, [
49300
+ _cache[20] || (_cache[20] = createTextVNode(" \u5F85\u5BA1\u6279\u4EBA\uFF1A")),
49301
+ createElementVNode("span", null, toDisplayString($options.getCandidateUserText(item.candidateUserList)), 1)
49302
+ ])) : createCommentVNode("", true),
49256
49303
  createElementVNode("span", null, toDisplayString(item.act_time_), 1),
49257
- createElementVNode("p", _hoisted_23, [
49258
- _cache[20] || (_cache[20] = createTextVNode("\u610F\u89C1\uFF1A")),
49304
+ createElementVNode("p", _hoisted_24, [
49305
+ _cache[21] || (_cache[21] = createTextVNode("\u610F\u89C1\uFF1A")),
49259
49306
  createElementVNode("span", {
49260
49307
  textContent: toDisplayString($options.getMessage(item.message))
49261
- }, null, 8, _hoisted_24)
49308
+ }, null, 8, _hoisted_25)
49262
49309
  ])
49263
49310
  ]),
49264
- item.tasklist.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_25, [
49265
- createElementVNode("ul", _hoisted_26, [
49311
+ item.tasklist.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_26, [
49312
+ createElementVNode("ul", _hoisted_27, [
49266
49313
  createVNode(_component_Row, {
49267
49314
  type: "flex",
49268
49315
  justify: "start",
@@ -49274,10 +49321,10 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49274
49321
  key: "task_" + index2
49275
49322
  }, {
49276
49323
  default: withCtx(() => [
49277
- createElementVNode("li", _hoisted_27, [
49278
- createElementVNode("div", _hoisted_28, [
49324
+ createElementVNode("li", _hoisted_28, [
49325
+ createElementVNode("div", _hoisted_29, [
49279
49326
  createElementVNode("span", null, toDisplayString(tmp.username), 1),
49280
- createElementVNode("div", _hoisted_29, [
49327
+ createElementVNode("div", _hoisted_30, [
49281
49328
  item.status === "Y" ? (openBlock(), createBlock(_component_Icon, {
49282
49329
  key: 0,
49283
49330
  custom: "iconfont icon-custom-wancheng",
@@ -49297,7 +49344,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49297
49344
  }))
49298
49345
  ])
49299
49346
  ]),
49300
- createElementVNode("p", _hoisted_30, toDisplayString(tmp.username), 1)
49347
+ createElementVNode("p", _hoisted_31, toDisplayString(tmp.username), 1)
49301
49348
  ])
49302
49349
  ]),
49303
49350
  _: 2
@@ -49324,7 +49371,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49324
49371
  type: "text",
49325
49372
  onClick: ($event) => $options.showGroupUser(index)
49326
49373
  }, {
49327
- default: withCtx(() => _cache[21] || (_cache[21] = [
49374
+ default: withCtx(() => _cache[22] || (_cache[22] = [
49328
49375
  createTextVNode("\u5C55\u5F00 ")
49329
49376
  ])),
49330
49377
  _: 2
@@ -49335,7 +49382,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49335
49382
  type: "text",
49336
49383
  onClick: ($event) => $options.showGroupUser(index)
49337
49384
  }, {
49338
- default: withCtx(() => _cache[22] || (_cache[22] = [
49385
+ default: withCtx(() => _cache[23] || (_cache[23] = [
49339
49386
  createTextVNode(" \u6536\u8D77")
49340
49387
  ])),
49341
49388
  _: 2
@@ -49353,7 +49400,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49353
49400
  ])
49354
49401
  ], 4)
49355
49402
  ]),
49356
- createElementVNode("div", _hoisted_31, [
49403
+ createElementVNode("div", _hoisted_32, [
49357
49404
  withDirectives(createVNode(_component_Form, { "label-width": 45 }, {
49358
49405
  default: withCtx(() => [
49359
49406
  createVNode(_component_FormItem, { label: "\u6284\u9001:" }, {
@@ -49366,9 +49413,9 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49366
49413
  default: withCtx(() => [
49367
49414
  createVNode(_component_Col, { span: "2" }, {
49368
49415
  default: withCtx(() => [
49369
- createElementVNode("span", _hoisted_32, toDisplayString($data.copy.length), 1),
49370
- _cache[24] || (_cache[24] = createTextVNode()),
49371
- _cache[25] || (_cache[25] = createElementVNode("span", null, "\u4EBA", -1))
49416
+ createElementVNode("span", _hoisted_33, toDisplayString($data.copy.length), 1),
49417
+ _cache[25] || (_cache[25] = createTextVNode()),
49418
+ _cache[26] || (_cache[26] = createElementVNode("span", null, "\u4EBA", -1))
49372
49419
  ]),
49373
49420
  _: 1
49374
49421
  }),
@@ -49389,7 +49436,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49389
49436
  size: "12",
49390
49437
  color: "#AF292E"
49391
49438
  }),
49392
- _cache[26] || (_cache[26] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u6284\u9001\u4EBA ", -1))
49439
+ _cache[27] || (_cache[27] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u6284\u9001\u4EBA ", -1))
49393
49440
  ])
49394
49441
  ]),
49395
49442
  _: 1
@@ -49437,11 +49484,11 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49437
49484
  default: withCtx(() => [
49438
49485
  createVNode(_component_Col, { span: "2" }, {
49439
49486
  default: withCtx(() => [
49440
- createElementVNode("span", _hoisted_33, toDisplayString($data.approvals.length), 1),
49441
- _cache[27] || (_cache[27] = createTextVNode()),
49487
+ createElementVNode("span", _hoisted_34, toDisplayString($data.approvals.length), 1),
49488
+ _cache[28] || (_cache[28] = createTextVNode()),
49442
49489
  createElementVNode("span", {
49443
49490
  textContent: toDisplayString($options.info2)
49444
- }, null, 8, _hoisted_34)
49491
+ }, null, 8, _hoisted_35)
49445
49492
  ]),
49446
49493
  _: 1
49447
49494
  }),
@@ -49462,7 +49509,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49462
49509
  size: "12",
49463
49510
  color: "#AF292E"
49464
49511
  }),
49465
- _cache[28] || (_cache[28] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u5BA1\u6279\u4EBA ", -1))
49512
+ _cache[29] || (_cache[29] = createElementVNode("span", { style: { "margin-left": "9px", "color": "#AF292E", "font-size": "14px" } }, " \u6DFB\u52A0\u5BA1\u6279\u4EBA ", -1))
49466
49513
  ])
49467
49514
  ]),
49468
49515
  _: 1
@@ -49530,7 +49577,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49530
49577
  customIcon: "iconfont icon-custom-submit",
49531
49578
  onClick: $options.onSubmit
49532
49579
  }, {
49533
- default: withCtx(() => _cache[29] || (_cache[29] = [
49580
+ default: withCtx(() => _cache[30] || (_cache[30] = [
49534
49581
  createTextVNode("\u63D0\u4EA4")
49535
49582
  ])),
49536
49583
  _: 1
@@ -49544,7 +49591,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49544
49591
  customIcon: "iconfont icon-custom-recall",
49545
49592
  onClick: $options.billBack
49546
49593
  }, {
49547
- default: withCtx(() => _cache[30] || (_cache[30] = [
49594
+ default: withCtx(() => _cache[31] || (_cache[31] = [
49548
49595
  createTextVNode("\u64A4\u56DE")
49549
49596
  ])),
49550
49597
  _: 1
@@ -49558,7 +49605,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49558
49605
  customIcon: "iconfont icon-custom-jiaqian",
49559
49606
  onClick: $options.billBack
49560
49607
  }, {
49561
- default: withCtx(() => _cache[31] || (_cache[31] = [
49608
+ default: withCtx(() => _cache[32] || (_cache[32] = [
49562
49609
  createTextVNode("\u52A0\u7B7E")
49563
49610
  ])),
49564
49611
  _: 1
@@ -49574,7 +49621,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49574
49621
  customIcon: "iconfont icon-custom-reject",
49575
49622
  onClick: $options.reject
49576
49623
  }, {
49577
- default: withCtx(() => _cache[32] || (_cache[32] = [
49624
+ default: withCtx(() => _cache[33] || (_cache[33] = [
49578
49625
  createTextVNode("\u9A73\u56DE")
49579
49626
  ])),
49580
49627
  _: 1
@@ -49588,7 +49635,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49588
49635
  customIcon: "iconfont icon-custom-approve",
49589
49636
  onClick: $options.submitApprove
49590
49637
  }, {
49591
- default: withCtx(() => _cache[33] || (_cache[33] = [
49638
+ default: withCtx(() => _cache[34] || (_cache[34] = [
49592
49639
  createTextVNode("\u5BA1\u6279")
49593
49640
  ])),
49594
49641
  _: 1
@@ -49605,7 +49652,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49605
49652
  }, 8, ["modelValue"])
49606
49653
  ]);
49607
49654
  }
49608
- var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-5dfedae2"]]);
49655
+ var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-2555e92e"]]);
49609
49656
  const _sfc_main$s = {
49610
49657
  name: "moperlog",
49611
49658
  data() {
@@ -50690,8 +50737,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
50690
50737
  ]),
50691
50738
  createVNode(_component_ApprovalBox, {
50692
50739
  ref: "approval",
50693
- config: $data.billApprovalConfig
50694
- }, null, 8, ["config"]),
50740
+ config: $data.billApprovalConfig,
50741
+ onApprovalOk: $options.approvalOk
50742
+ }, null, 8, ["config", "onApprovalOk"]),
50695
50743
  createVNode(_component_Modal, {
50696
50744
  "class-name": "efuture-billapprovalmainframe",
50697
50745
  modelValue: $data.showApproval,