ocpview-pro 0.1.33 → 0.1.36

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-pro";
456
- const version$2 = "0.1.32";
456
+ const version$2 = "0.1.35";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -7461,7 +7461,6 @@ const _sfc_main$1P = {
7461
7461
  }
7462
7462
  };
7463
7463
  const DEFAULT_EXPORT_PAGE_SIZE = 99999;
7464
- const LIST_EXPORT_ACTION = "listExport";
7465
7464
  const NON_QUERY_KEYS = ["summary_fld", "sumgroups"];
7466
7465
  function buildExportSearchParam(baseParam, pageSize) {
7467
7466
  const param = Object.assign({}, baseParam || {});
@@ -7477,26 +7476,6 @@ function toNumber$8(value) {
7477
7476
  const n10 = Number(value);
7478
7477
  return Number.isFinite(n10) ? n10 : 0;
7479
7478
  }
7480
- function collectSummaryFields(items) {
7481
- const fields = [];
7482
- const collect = (list) => {
7483
- if (!Array.isArray(list)) {
7484
- return;
7485
- }
7486
- list.forEach((el2) => {
7487
- if (!el2 || typeof el2 !== "object" || el2.visible === false) {
7488
- return;
7489
- }
7490
- if (Array.isArray(el2.children) && el2.children.length > 0) {
7491
- collect(el2.children);
7492
- } else if (el2.sum === true && el2.name) {
7493
- fields.push(el2.name);
7494
- }
7495
- });
7496
- };
7497
- collect(items);
7498
- return fields;
7499
- }
7500
7479
  function buildSummaryMap(rows, summaryFields) {
7501
7480
  const map2 = {};
7502
7481
  (summaryFields || []).forEach((field) => {
@@ -7589,8 +7568,7 @@ const _sfc_main$1O = {
7589
7568
  dynamicColumnItems: [],
7590
7569
  tempMultiSelectData: [],
7591
7570
  multiSoltTableColumns: [],
7592
- showHelpBtn: false,
7593
- userShowSummary: void 0
7571
+ showHelpBtn: false
7594
7572
  };
7595
7573
  },
7596
7574
  computed: {
@@ -7808,44 +7786,19 @@ const _sfc_main$1O = {
7808
7786
  }
7809
7787
  if (this.dynamicInitData.total_summary !== void 0) {
7810
7788
  this.total_summary = Object.assign({}, {}, this.dynamicInitData.total_summary);
7811
- Object.assign(this.myConfig, { "showSummary": true });
7789
+ if (!this.myConfig.showSummary) {
7790
+ Object.assign(this.myConfig, { "showSummary": true });
7791
+ }
7812
7792
  } else {
7813
- let frontendSummary = this.calcFrontendSummary();
7814
- let userShowSummary = this.getUserShowSummary();
7815
- if (frontendSummary && userShowSummary !== false) {
7793
+ let frontendSummary = this.myConfig.showSummary ? this.buildFrontendSummary() : null;
7794
+ if (frontendSummary) {
7816
7795
  this.total_summary = frontendSummary;
7817
7796
  Object.assign(this.myConfig, { "showSummary": true });
7818
- } else if (userShowSummary === false) {
7819
- this.total_summary = {};
7820
- Object.assign(this.myConfig, { "showSummary": false });
7821
- } else if (this.myConfig.showSummary && this.myConfig.customSummary) {
7822
- this.total_summary = {};
7823
7797
  } else if (this.myConfig.showSummary) {
7824
- this.total_summary = {};
7825
7798
  Object.assign(this.myConfig, { "showSummary": false });
7826
7799
  }
7827
7800
  }
7828
7801
  },
7829
- getUserShowSummary() {
7830
- if (this.userShowSummary !== void 0) {
7831
- return this.userShowSummary;
7832
- }
7833
- if (this.config && this.config.showSummary !== void 0) {
7834
- return this.config.showSummary;
7835
- }
7836
- return void 0;
7837
- },
7838
- calcFrontendSummary() {
7839
- try {
7840
- if (this.dynamicInitData.sumgroups) {
7841
- return null;
7842
- }
7843
- return this.buildFrontendSummary();
7844
- } catch (e11) {
7845
- console.warn("[ocpview-pro] \u524D\u7AEF\u5408\u8BA1\u8BA1\u7B97\u5931\u8D25\uFF0C\u672C\u6B21\u67E5\u8BE2\u5DF2\u8DF3\u8FC7\u5408\u8BA1\u884C:", e11);
7846
- return null;
7847
- }
7848
- },
7849
7802
  callBackChangePage(flag, newvalue, oldvale) {
7850
7803
  if (!flag) {
7851
7804
  this.$nextTick(() => {
@@ -8071,7 +8024,18 @@ const _sfc_main$1O = {
8071
8024
  }
8072
8025
  },
8073
8026
  getFrontendSummaryFields() {
8074
- return collectSummaryFields(this.myConfig.items);
8027
+ let fields = [];
8028
+ const collect = (items) => {
8029
+ (items || []).forEach((el2) => {
8030
+ if (el2.children && el2.children.length > 0) {
8031
+ collect(el2.children);
8032
+ } else if (el2.sum === true && el2.name) {
8033
+ fields.push(el2.name);
8034
+ }
8035
+ });
8036
+ };
8037
+ collect(this.myConfig.items);
8038
+ return fields;
8075
8039
  },
8076
8040
  buildFrontendSummary() {
8077
8041
  const fields = this.getFrontendSummaryFields();
@@ -8619,7 +8583,7 @@ const _sfc_main$1O = {
8619
8583
  if (this.myConfig.dynamicColumnFlag) {
8620
8584
  items = this.dynamicColumnItems;
8621
8585
  } else {
8622
- items = this.myConfig.items || this.config && this.config.items;
8586
+ items = this.config.items;
8623
8587
  }
8624
8588
  for (let pro in this.total_summary) {
8625
8589
  let configItems = {};
@@ -48270,7 +48234,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
48270
48234
  var AppendixBoxs2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s]]);
48271
48235
  const _sfc_main$u = {
48272
48236
  name: "mbilldetailform",
48273
- components: { AppendixBoxs2, Formcard: mFormCardBox, EditGridCardS: mEditGridCard, DetailsBoxs, AppendixBoxs: mAppendixBoxs, FormCardBox2, EditGridBoxs: mEditGridCard },
48237
+ components: { AppendixBoxs2, Formcard: mFormCardBox, EditGridCardS: mEditGridCard, DetailsBoxs, AppendixBoxs: mAppendixBoxs, FormCardBox2 },
48274
48238
  data() {
48275
48239
  return {
48276
48240
  curlEditObject: "",
@@ -49266,7 +49230,6 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
49266
49230
  const _component_AppendixBoxs = resolveComponent("AppendixBoxs");
49267
49231
  const _component_FormCardBox2 = resolveComponent("FormCardBox2");
49268
49232
  const _component_AppendixBoxs2 = resolveComponent("AppendixBoxs2");
49269
- const _component_EditGridBoxs = resolveComponent("EditGridBoxs");
49270
49233
  const _component_Card = resolveComponent("Card");
49271
49234
  return openBlock(), createElementBlock("div", _hoisted_1$r, [
49272
49235
  createElementVNode("div", _hoisted_2$k, [
@@ -49376,15 +49339,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
49376
49339
  modulecode: $data.modulecode,
49377
49340
  onHandleSuccessAfter: $options.handleSuccessAfter,
49378
49341
  onDoAction: $options.doAction
49379
- }, null, 8, ["config", "dictData", "modulecode", "onHandleSuccessAfter", "onDoAction"])) : createCommentVNode("", true),
49380
- _ctx.temp2.type === "EditGridBox" ? (openBlock(), createBlock(_component_EditGridBoxs, {
49381
- key: 7,
49382
- ref_for: true,
49383
- ref: _ctx.temp2.name,
49384
- config: _ctx.temp2,
49385
- dictData: $props.dictData,
49386
- onDoAction: $options.doAction
49387
- }, null, 8, ["config", "dictData", "onDoAction"])) : createCommentVNode("", true)
49342
+ }, null, 8, ["config", "dictData", "modulecode", "onHandleSuccessAfter", "onDoAction"])) : createCommentVNode("", true)
49388
49343
  ], 8, _hoisted_4$9)), [
49389
49344
  [vShow, temp.isHead ? $data.headVisible[temp.index].visible : $data.detailVisible[temp.index].visible]
49390
49345
  ]);
@@ -51117,7 +51072,6 @@ const _sfc_main$r = {
51117
51072
  this.myConfig.billQueryConfig.addDataflag = "Y";
51118
51073
  }
51119
51074
  });
51120
- this.injectListExportBtn();
51121
51075
  if (this.myConfig.detailConfig.showAnchorLink === void 0) {
51122
51076
  this.myConfig.detailConfig.showAnchorLink = false;
51123
51077
  }
@@ -51226,31 +51180,7 @@ const _sfc_main$r = {
51226
51180
  }
51227
51181
  });
51228
51182
  },
51229
- injectListExportBtn() {
51230
- const gridConfig = this.myConfig.billQueryConfig.gridConfig;
51231
- const exportConfig = gridConfig.exportConfig || {};
51232
- if (exportConfig.enabled === false) {
51233
- return;
51234
- }
51235
- const exists = this.myConfig.billQueryConfig.btnData.some((el2) => el2.name === LIST_EXPORT_ACTION);
51236
- if (exists) {
51237
- return;
51238
- }
51239
- this.myConfig.billQueryConfig.btnData.push({
51240
- name: LIST_EXPORT_ACTION,
51241
- text: this.$t("\u5217\u8868\u5BFC\u51FA"),
51242
- btntype: "batch"
51243
- });
51244
- },
51245
51183
  doAction(obj) {
51246
- if (obj.name === LIST_EXPORT_ACTION) {
51247
- if (this.$parent && typeof this.$parent[LIST_EXPORT_ACTION] === "function") {
51248
- this.$parent[LIST_EXPORT_ACTION](obj);
51249
- } else {
51250
- this.$refs.billqureygrid.getGrid().listExport();
51251
- }
51252
- return true;
51253
- }
51254
51184
  if (obj.name === "gridSelectionChange") {
51255
51185
  if (this.$parent[obj.name]) {
51256
51186
  this.$parent[obj.name](obj);
@@ -52684,7 +52614,7 @@ const _sfc_main$n = {
52684
52614
  showModuleCode: false,
52685
52615
  moreFlag: false,
52686
52616
  btnItems: [],
52687
- ignoreModule: ["downTemplate", "listExport"],
52617
+ ignoreModule: ["downTemplate"],
52688
52618
  notpowerFlag: true,
52689
52619
  billoperlog: false
52690
52620
  };
@@ -53072,7 +53002,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
53072
53002
  _: 1
53073
53003
  });
53074
53004
  }
53075
- var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-592884c5"]]);
53005
+ var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-28108c6b"]]);
53076
53006
  const _sfc_main$m = {
53077
53007
  name: "mleftlistrightdetails",
53078
53008
  components: { BillOperLog, ListBtnToolbar, BillDetailForm: billdetailform },
@@ -143177,7 +143107,6 @@ var ZHCN = {
143177
143107
  "\u52A0\u7B7E": "\u52A0\u7B7E",
143178
143108
  "\u52A0\u7C97": "\u52A0\u7C97",
143179
143109
  "\u52A0\u8F7D": "\u52A0\u8F7D",
143180
- "\u5408\u8BA1": "\u5408\u8BA1",
143181
143110
  "\u52A8\u6001\u5408\u8BA1": "\u52A8\u6001\u5408\u8BA1",
143182
143111
  "\u5305\u542B": "\u5305\u542B",
143183
143112
  "\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20": "\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20",
@@ -143511,7 +143440,6 @@ var ZHTW = {
143511
143440
  "\u52A0\u7B7E": "\u52A0\u7C3D",
143512
143441
  "\u52A0\u7C97": "\u52A0\u7C97",
143513
143442
  "\u52A0\u8F7D": "\u52A0\u8F09",
143514
- "\u5408\u8BA1": "\u5408\u8A08",
143515
143443
  "\u52A8\u6001\u5408\u8BA1": "\u52D5\u614B\u5408\u8A08",
143516
143444
  "\u5305\u542B": "\u5305\u542B",
143517
143445
  "\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20": "\u55AE\u64DA\u4E3B\u9375\u4FE1\u606F\u70BA\u7A7A,\u4E0D\u5141\u8A31\u4E0A\u50B3",
@@ -143845,7 +143773,6 @@ var ENUS = {
143845
143773
  "\u52A0\u7B7E": "Add Signer",
143846
143774
  "\u52A0\u7C97": "Bold",
143847
143775
  "\u52A0\u8F7D": "Loading",
143848
- "\u5408\u8BA1": "Total",
143849
143776
  "\u52A8\u6001\u5408\u8BA1": "Dynamic Sum",
143850
143777
  "\u5305\u542B": "Contains",
143851
143778
  "\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20": "Bill primary key is empty, upload not allowed",