ocpview-plus 1.3.5 → 1.3.7

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.4";
456
+ const version$2 = "1.3.6";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -42323,8 +42323,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
42323
42323
  dictData: _ctx.globalConfig.dictData,
42324
42324
  moduleMethod: _ctx.globalConfig.userModuleMethod,
42325
42325
  onHandleSuccessAfter: _ctx.handleSuccessAfter,
42326
+ onOnSubmitBefore: _ctx.onSubmitBefore,
42326
42327
  onDoAction: _ctx.doAction
42327
- }, null, 40, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onDoAction"])),
42328
+ }, null, 40, ["config", "dictData", "moduleMethod", "onHandleSuccessAfter", "onOnSubmitBefore", "onDoAction"])),
42328
42329
  createVNode(_component_Modal, {
42329
42330
  title: "\u9644\u4EF6",
42330
42331
  modelValue: _ctx.showDetailAppendix,
@@ -46569,7 +46570,8 @@ const _sfc_main$v = {
46569
46570
  { code: "D", name: "\u5220\u9664" }
46570
46571
  ],
46571
46572
  visible: false,
46572
- width: 100
46573
+ width: 100,
46574
+ readOnly: true
46573
46575
  }, {
46574
46576
  label: "\u9644\u4EF6\u7C7B\u578B",
46575
46577
  name: "filememo",
@@ -46589,7 +46591,7 @@ const _sfc_main$v = {
46589
46591
  label: "\u6587\u4EF6\u540D\u79F0",
46590
46592
  name: "filename",
46591
46593
  type: "TextBox",
46592
- width: 200,
46594
+ minWidth: 200,
46593
46595
  readOnly: true
46594
46596
  }, {
46595
46597
  label: "\u6587\u4EF6\u5927\u5C0F",
@@ -46609,7 +46611,7 @@ const _sfc_main$v = {
46609
46611
  key: "action",
46610
46612
  align: "center",
46611
46613
  render: this.actionRender,
46612
- minWidth: 100
46614
+ width: 350
46613
46615
  }]
46614
46616
  },
46615
46617
  loadFlag: false,
@@ -46652,6 +46654,11 @@ const _sfc_main$v = {
46652
46654
  icon: "custom-filerecall",
46653
46655
  name: "recall",
46654
46656
  text: "\u64A4\u56DE"
46657
+ },
46658
+ {
46659
+ icon: "custom-fileupload",
46660
+ name: "reupFile",
46661
+ text: "\u53D8\u66F4"
46655
46662
  }
46656
46663
  ]
46657
46664
  };
@@ -46763,7 +46770,7 @@ const _sfc_main$v = {
46763
46770
  if (this.myConfig.readOnly) {
46764
46771
  del.readOnly = true;
46765
46772
  }
46766
- if (params.row.scenetype !== "0") {
46773
+ if (params.row.scenetype !== "0" && params.row.modflag !== "M") {
46767
46774
  btnConfig.items.push(del);
46768
46775
  }
46769
46776
  } else {
@@ -46785,6 +46792,9 @@ const _sfc_main$v = {
46785
46792
  if (params.row.modflag === "N") {
46786
46793
  btnConfig.items.push(recall);
46787
46794
  }
46795
+ if ((!params.row.filekey || params.row.filekey !== "") && params.row.modflag === "N") {
46796
+ btnConfig.items.push(this.$Method.copy(this.rowBtnData[5]));
46797
+ }
46788
46798
  }
46789
46799
  return h10("div", [
46790
46800
  h10(resolveComponent("RowBtnToolbar"), {
@@ -46805,6 +46815,9 @@ const _sfc_main$v = {
46805
46815
  if (val2.name === "recall") {
46806
46816
  this.recall(params);
46807
46817
  }
46818
+ if (val2.name === "reupFile") {
46819
+ this.reupFile(params);
46820
+ }
46808
46821
  }
46809
46822
  })
46810
46823
  ]);
@@ -46861,7 +46874,7 @@ const _sfc_main$v = {
46861
46874
  return;
46862
46875
  }
46863
46876
  if (params.row.modflag === "I") {
46864
- this.delCommon(params.row.filekey, "Y");
46877
+ this.delCommon(params.row.filekey, "N");
46865
46878
  this.$refs.grid.delRow(params.index);
46866
46879
  }
46867
46880
  if (params.row.modflag === "N") {
@@ -47098,6 +47111,25 @@ const _sfc_main$v = {
47098
47111
  document.querySelector("#billiviewUp input").click();
47099
47112
  }
47100
47113
  },
47114
+ reupFile(params) {
47115
+ if (this.myConfig.beforeUpload) {
47116
+ this.myConfig.beforeUpload();
47117
+ }
47118
+ if (!this.billno) {
47119
+ this.alert("\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20");
47120
+ return;
47121
+ }
47122
+ if (this.checkIsEdit()) {
47123
+ this.$nextTick(() => {
47124
+ this.$refs.billupload.clearFiles();
47125
+ });
47126
+ if (this.myConfig.readOnly) {
47127
+ this.setReadOnly(false);
47128
+ }
47129
+ this.filememo = params.row.filememo;
47130
+ document.querySelector("#billiviewUp input").click();
47131
+ }
47132
+ },
47101
47133
  isChange() {
47102
47134
  return this.$refs.grid.isChange();
47103
47135
  },
@@ -47451,13 +47483,6 @@ const _sfc_main$u = {
47451
47483
  let billmoduleid = data.billmoduleid;
47452
47484
  this.$refs.detail_appenndix[0].setData(billno, billmoduleid);
47453
47485
  }
47454
- } else if (this.billAppendixConfig.showAppendix2) {
47455
- if (this.$refs.detail_appenndix2 && this.$refs.detail_appenndix2[0]) {
47456
- let data = this.getData();
47457
- let billno = data[this.billAppendixConfig.appendixKey];
47458
- let billmoduleid = data.billmoduleid;
47459
- this.$refs.detail_appenndix2[0].setData(billno, billmoduleid);
47460
- }
47461
47486
  }
47462
47487
  },
47463
47488
  doAction(obj) {
@@ -48447,7 +48472,13 @@ const _sfc_main$t = {
48447
48472
  },
48448
48473
  methods: {
48449
48474
  onSubmit() {
48450
- this.billSubmit();
48475
+ let flag = true;
48476
+ if (this.$parent.onSubmitBefore() !== void 0) {
48477
+ flag = this.$parent.onSubmitBefore();
48478
+ }
48479
+ if (flag) {
48480
+ this.billSubmit();
48481
+ }
48451
48482
  },
48452
48483
  setData(config2) {
48453
48484
  this.clearData();
@@ -49652,7 +49683,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
49652
49683
  }, 8, ["modelValue"])
49653
49684
  ]);
49654
49685
  }
49655
- var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-2555e92e"]]);
49686
+ var ApprovalBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$q], ["__scopeId", "data-v-3e27e42b"]]);
49656
49687
  const _sfc_main$s = {
49657
49688
  name: "moperlog",
49658
49689
  data() {
@@ -58152,6 +58183,13 @@ const _sfc_main$5 = {
58152
58183
  },
58153
58184
  handleSuccessAfter(response, file, fileList) {
58154
58185
  this.$emit("handleSuccessAfter", response, file, fileList);
58186
+ },
58187
+ onSubmitBefore() {
58188
+ let flag = true;
58189
+ if (this.$parent.onSubmitBefore() !== void 0) {
58190
+ flag = this.$parent.onSubmitBefore();
58191
+ }
58192
+ return flag;
58155
58193
  }
58156
58194
  },
58157
58195
  mounted() {
@@ -58218,8 +58256,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
58218
58256
  ]),
58219
58257
  createVNode(_component_ApprovalBox, {
58220
58258
  ref: "approval",
58221
- config: _ctx.billApprovalConfig
58222
- }, null, 8, ["config"]),
58259
+ config: _ctx.billApprovalConfig,
58260
+ onOnSubmitBefore: $options.onSubmitBefore
58261
+ }, null, 8, ["config", "onOnSubmitBefore"]),
58223
58262
  createVNode(_component_Modal, {
58224
58263
  "class-name": "efuture-billapprovalmainframe",
58225
58264
  modelValue: _ctx.showApproval,