ocpview-plus 1.3.5 → 1.3.6

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.5";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -46569,7 +46569,8 @@ const _sfc_main$v = {
46569
46569
  { code: "D", name: "\u5220\u9664" }
46570
46570
  ],
46571
46571
  visible: false,
46572
- width: 100
46572
+ width: 100,
46573
+ readOnly: true
46573
46574
  }, {
46574
46575
  label: "\u9644\u4EF6\u7C7B\u578B",
46575
46576
  name: "filememo",
@@ -46589,7 +46590,7 @@ const _sfc_main$v = {
46589
46590
  label: "\u6587\u4EF6\u540D\u79F0",
46590
46591
  name: "filename",
46591
46592
  type: "TextBox",
46592
- width: 200,
46593
+ minWidth: 200,
46593
46594
  readOnly: true
46594
46595
  }, {
46595
46596
  label: "\u6587\u4EF6\u5927\u5C0F",
@@ -46609,7 +46610,7 @@ const _sfc_main$v = {
46609
46610
  key: "action",
46610
46611
  align: "center",
46611
46612
  render: this.actionRender,
46612
- minWidth: 100
46613
+ width: 350
46613
46614
  }]
46614
46615
  },
46615
46616
  loadFlag: false,
@@ -46652,6 +46653,11 @@ const _sfc_main$v = {
46652
46653
  icon: "custom-filerecall",
46653
46654
  name: "recall",
46654
46655
  text: "\u64A4\u56DE"
46656
+ },
46657
+ {
46658
+ icon: "custom-fileupload",
46659
+ name: "reupFile",
46660
+ text: "\u53D8\u66F4"
46655
46661
  }
46656
46662
  ]
46657
46663
  };
@@ -46763,7 +46769,7 @@ const _sfc_main$v = {
46763
46769
  if (this.myConfig.readOnly) {
46764
46770
  del.readOnly = true;
46765
46771
  }
46766
- if (params.row.scenetype !== "0") {
46772
+ if (params.row.scenetype !== "0" && params.row.modflag !== "M") {
46767
46773
  btnConfig.items.push(del);
46768
46774
  }
46769
46775
  } else {
@@ -46785,6 +46791,9 @@ const _sfc_main$v = {
46785
46791
  if (params.row.modflag === "N") {
46786
46792
  btnConfig.items.push(recall);
46787
46793
  }
46794
+ if ((!params.row.filekey || params.row.filekey !== "") && params.row.modflag === "N") {
46795
+ btnConfig.items.push(this.$Method.copy(this.rowBtnData[5]));
46796
+ }
46788
46797
  }
46789
46798
  return h10("div", [
46790
46799
  h10(resolveComponent("RowBtnToolbar"), {
@@ -46805,6 +46814,9 @@ const _sfc_main$v = {
46805
46814
  if (val2.name === "recall") {
46806
46815
  this.recall(params);
46807
46816
  }
46817
+ if (val2.name === "reupFile") {
46818
+ this.reupFile(params);
46819
+ }
46808
46820
  }
46809
46821
  })
46810
46822
  ]);
@@ -46861,7 +46873,7 @@ const _sfc_main$v = {
46861
46873
  return;
46862
46874
  }
46863
46875
  if (params.row.modflag === "I") {
46864
- this.delCommon(params.row.filekey, "Y");
46876
+ this.delCommon(params.row.filekey, "N");
46865
46877
  this.$refs.grid.delRow(params.index);
46866
46878
  }
46867
46879
  if (params.row.modflag === "N") {
@@ -47098,6 +47110,25 @@ const _sfc_main$v = {
47098
47110
  document.querySelector("#billiviewUp input").click();
47099
47111
  }
47100
47112
  },
47113
+ reupFile(params) {
47114
+ if (this.myConfig.beforeUpload) {
47115
+ this.myConfig.beforeUpload();
47116
+ }
47117
+ if (!this.billno) {
47118
+ this.alert("\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20");
47119
+ return;
47120
+ }
47121
+ if (this.checkIsEdit()) {
47122
+ this.$nextTick(() => {
47123
+ this.$refs.billupload.clearFiles();
47124
+ });
47125
+ if (this.myConfig.readOnly) {
47126
+ this.setReadOnly(false);
47127
+ }
47128
+ this.filememo = params.row.filememo;
47129
+ document.querySelector("#billiviewUp input").click();
47130
+ }
47131
+ },
47101
47132
  isChange() {
47102
47133
  return this.$refs.grid.isChange();
47103
47134
  },
@@ -47451,13 +47482,6 @@ const _sfc_main$u = {
47451
47482
  let billmoduleid = data.billmoduleid;
47452
47483
  this.$refs.detail_appenndix[0].setData(billno, billmoduleid);
47453
47484
  }
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
47485
  }
47462
47486
  },
47463
47487
  doAction(obj) {