ocpview-pro 0.1.30 → 0.1.33
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.
- package/dist/ocpviewplus.min.esm.js +309 -89
- package/dist/ocpviewplus.min.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/grid/editgridbase.vue +1 -2
- package/src/components/grid/viewgridbase.vue +162 -6
- package/src/components/masterplate/billdetailform.vue +35 -15
- package/src/components/masterplate/listbtntoolbar.vue +1 -1
- package/src/components/masterplate/listdetails.vue +33 -0
- package/src/localePlus/en-US.js +3 -0
- package/src/localePlus/zh-CN.js +3 -0
- package/src/localePlus/zh-TW.js +3 -0
- package/src/method/listexport.js +163 -0
- package/src/static/excel/exportexcel.js +7 -1
|
@@ -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.
|
|
456
|
+
const version$2 = "0.1.32";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -2201,7 +2201,8 @@ function exportExcelStyle(config2, data, headNum, filename) {
|
|
|
2201
2201
|
let temp = [];
|
|
2202
2202
|
names.forEach((el22) => {
|
|
2203
2203
|
if (el22.excelPro.t === "n") {
|
|
2204
|
-
|
|
2204
|
+
const numValue = Number(el2[el22.name]);
|
|
2205
|
+
temp.push(Number.isFinite(numValue) ? numValue : void 0);
|
|
2205
2206
|
} else if (el22.excelPro.t === "d") {
|
|
2206
2207
|
let value = datenum(new Date(el2[el22.name]));
|
|
2207
2208
|
temp.push(value);
|
|
@@ -7459,6 +7460,87 @@ const _sfc_main$1P = {
|
|
|
7459
7460
|
mounted() {
|
|
7460
7461
|
}
|
|
7461
7462
|
};
|
|
7463
|
+
const DEFAULT_EXPORT_PAGE_SIZE = 99999;
|
|
7464
|
+
const LIST_EXPORT_ACTION = "listExport";
|
|
7465
|
+
const NON_QUERY_KEYS = ["summary_fld", "sumgroups"];
|
|
7466
|
+
function buildExportSearchParam(baseParam, pageSize) {
|
|
7467
|
+
const param = Object.assign({}, baseParam || {});
|
|
7468
|
+
NON_QUERY_KEYS.forEach((key) => {
|
|
7469
|
+
delete param[key];
|
|
7470
|
+
});
|
|
7471
|
+
const size2 = Number(pageSize);
|
|
7472
|
+
param.page_no = 1;
|
|
7473
|
+
param.page_size = Number.isFinite(size2) && size2 > 0 ? size2 : DEFAULT_EXPORT_PAGE_SIZE;
|
|
7474
|
+
return param;
|
|
7475
|
+
}
|
|
7476
|
+
function toNumber$8(value) {
|
|
7477
|
+
const n10 = Number(value);
|
|
7478
|
+
return Number.isFinite(n10) ? n10 : 0;
|
|
7479
|
+
}
|
|
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
|
+
function buildSummaryMap(rows, summaryFields) {
|
|
7501
|
+
const map2 = {};
|
|
7502
|
+
(summaryFields || []).forEach((field) => {
|
|
7503
|
+
const total = (rows || []).reduce((acc, r2) => acc + toNumber$8(r2[field]), 0);
|
|
7504
|
+
map2[field] = Number(total.toFixed(10));
|
|
7505
|
+
});
|
|
7506
|
+
return map2;
|
|
7507
|
+
}
|
|
7508
|
+
function buildSummaryRow(rows, summaryFields, firstColumnName, sumText) {
|
|
7509
|
+
const row = {};
|
|
7510
|
+
if (firstColumnName) {
|
|
7511
|
+
row[firstColumnName] = sumText;
|
|
7512
|
+
}
|
|
7513
|
+
Object.assign(row, buildSummaryMap(rows, summaryFields));
|
|
7514
|
+
return row;
|
|
7515
|
+
}
|
|
7516
|
+
function translateDictValues(rows, columns, dictData) {
|
|
7517
|
+
const result = (rows || []).map((row) => Object.assign({}, row));
|
|
7518
|
+
(columns || []).forEach((column2) => {
|
|
7519
|
+
if (column2.type !== "ComboBox" || !column2.name) {
|
|
7520
|
+
return;
|
|
7521
|
+
}
|
|
7522
|
+
const dictList = column2.data || (dictData || {})[column2.customDictkey || column2.dictkey];
|
|
7523
|
+
if (!dictList) {
|
|
7524
|
+
return;
|
|
7525
|
+
}
|
|
7526
|
+
const valueField = column2.valueField || "code";
|
|
7527
|
+
const textField = column2.textField || "name";
|
|
7528
|
+
const dict = /* @__PURE__ */ new Map();
|
|
7529
|
+
dictList.forEach((item) => dict.set(item[valueField], item));
|
|
7530
|
+
result.forEach((row) => {
|
|
7531
|
+
const raw = row[column2.name];
|
|
7532
|
+
if (raw === void 0 || raw === null || raw === "") {
|
|
7533
|
+
return;
|
|
7534
|
+
}
|
|
7535
|
+
const hit = dict.get(raw);
|
|
7536
|
+
if (!hit) {
|
|
7537
|
+
return;
|
|
7538
|
+
}
|
|
7539
|
+
row[column2.name] = column2.codeWithName === false ? hit[textField] : "[" + hit[valueField] + "]" + hit[textField];
|
|
7540
|
+
});
|
|
7541
|
+
});
|
|
7542
|
+
return result;
|
|
7543
|
+
}
|
|
7462
7544
|
const _sfc_main$1O = {
|
|
7463
7545
|
name: "viewgridbase",
|
|
7464
7546
|
extends: _sfc_main$1P,
|
|
@@ -7507,7 +7589,8 @@ const _sfc_main$1O = {
|
|
|
7507
7589
|
dynamicColumnItems: [],
|
|
7508
7590
|
tempMultiSelectData: [],
|
|
7509
7591
|
multiSoltTableColumns: [],
|
|
7510
|
-
showHelpBtn: false
|
|
7592
|
+
showHelpBtn: false,
|
|
7593
|
+
userShowSummary: void 0
|
|
7511
7594
|
};
|
|
7512
7595
|
},
|
|
7513
7596
|
computed: {
|
|
@@ -7725,15 +7808,44 @@ const _sfc_main$1O = {
|
|
|
7725
7808
|
}
|
|
7726
7809
|
if (this.dynamicInitData.total_summary !== void 0) {
|
|
7727
7810
|
this.total_summary = Object.assign({}, {}, this.dynamicInitData.total_summary);
|
|
7728
|
-
|
|
7729
|
-
Object.assign(this.myConfig, { "showSummary": true });
|
|
7730
|
-
}
|
|
7811
|
+
Object.assign(this.myConfig, { "showSummary": true });
|
|
7731
7812
|
} else {
|
|
7732
|
-
|
|
7813
|
+
let frontendSummary = this.calcFrontendSummary();
|
|
7814
|
+
let userShowSummary = this.getUserShowSummary();
|
|
7815
|
+
if (frontendSummary && userShowSummary !== false) {
|
|
7816
|
+
this.total_summary = frontendSummary;
|
|
7817
|
+
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
|
+
} else if (this.myConfig.showSummary) {
|
|
7824
|
+
this.total_summary = {};
|
|
7733
7825
|
Object.assign(this.myConfig, { "showSummary": false });
|
|
7734
7826
|
}
|
|
7735
7827
|
}
|
|
7736
7828
|
},
|
|
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
|
+
},
|
|
7737
7849
|
callBackChangePage(flag, newvalue, oldvale) {
|
|
7738
7850
|
if (!flag) {
|
|
7739
7851
|
this.$nextTick(() => {
|
|
@@ -7958,6 +8070,65 @@ const _sfc_main$1O = {
|
|
|
7958
8070
|
this.doExportExcel(_baseUrl, this.myConfig.method, _param, this.myConfig.exportType, _self);
|
|
7959
8071
|
}
|
|
7960
8072
|
},
|
|
8073
|
+
getFrontendSummaryFields() {
|
|
8074
|
+
return collectSummaryFields(this.myConfig.items);
|
|
8075
|
+
},
|
|
8076
|
+
buildFrontendSummary() {
|
|
8077
|
+
const fields = this.getFrontendSummaryFields();
|
|
8078
|
+
if (fields.length === 0) {
|
|
8079
|
+
return null;
|
|
8080
|
+
}
|
|
8081
|
+
return buildSummaryMap(this.tempData, fields);
|
|
8082
|
+
},
|
|
8083
|
+
listExport() {
|
|
8084
|
+
const exportConfig = this.myConfig.exportConfig || {};
|
|
8085
|
+
if (exportConfig.enabled === false) {
|
|
8086
|
+
return;
|
|
8087
|
+
}
|
|
8088
|
+
if (this.data.length === 0) {
|
|
8089
|
+
this.alert(this.$t("\u8BF7\u5148\u67E5\u8BE2\u6570\u636E"));
|
|
8090
|
+
return;
|
|
8091
|
+
}
|
|
8092
|
+
const param = buildExportSearchParam(
|
|
8093
|
+
this.getSearchParam(),
|
|
8094
|
+
exportConfig.pageSize || DEFAULT_EXPORT_PAGE_SIZE
|
|
8095
|
+
);
|
|
8096
|
+
this.loading = true;
|
|
8097
|
+
const self2 = this;
|
|
8098
|
+
this.asyncPost(this.myConfig.resources, this.myConfig.method, param, function(data) {
|
|
8099
|
+
self2.loading = false;
|
|
8100
|
+
self2.doListExport(data, exportConfig);
|
|
8101
|
+
}, function(e11) {
|
|
8102
|
+
self2.loading = false;
|
|
8103
|
+
self2.alert(e11, null, 2);
|
|
8104
|
+
});
|
|
8105
|
+
},
|
|
8106
|
+
doListExport(data, exportConfig) {
|
|
8107
|
+
const tableKey = this.myConfig.response;
|
|
8108
|
+
const rows = data && data[tableKey] || [];
|
|
8109
|
+
const total = data && data.total_results !== void 0 ? Number(data.total_results) : 0;
|
|
8110
|
+
if (total > rows.length) {
|
|
8111
|
+
this.alert(this.$t("\u5171{total}\u6761\uFF0C\u5DF2\u5BFC\u51FA\u524D{count}\u6761", { total, count: rows.length }));
|
|
8112
|
+
}
|
|
8113
|
+
const exportColumns = [];
|
|
8114
|
+
this.initAsynExportConfig(this.myConfig.items, "", exportColumns);
|
|
8115
|
+
const summaryFields = exportConfig.summaryFields || [];
|
|
8116
|
+
let exportData = translateDictValues(rows, exportColumns, this.dictData);
|
|
8117
|
+
if (summaryFields.length > 0 && exportColumns.length > 0) {
|
|
8118
|
+
exportData.push(
|
|
8119
|
+
buildSummaryRow(exportData, summaryFields, exportColumns[0].name, this.$t("\u5408\u8BA1"))
|
|
8120
|
+
);
|
|
8121
|
+
}
|
|
8122
|
+
this.$Method.exportExcelStyle(exportColumns, exportData, 1, this.buildListExportFileName(rows.length));
|
|
8123
|
+
},
|
|
8124
|
+
buildListExportFileName(count) {
|
|
8125
|
+
let fileName = this.$Method.formatDate(new Date(), "yyyyMMddhhmmss") + this.$t("({count}\u6761).xlsx", { count });
|
|
8126
|
+
const modulecode = this.getModulecode();
|
|
8127
|
+
if (modulecode) {
|
|
8128
|
+
fileName = modulecode + "_" + fileName;
|
|
8129
|
+
}
|
|
8130
|
+
return fileName;
|
|
8131
|
+
},
|
|
7961
8132
|
zip(str) {
|
|
7962
8133
|
let binaryString = gzip(str, { to: "string" });
|
|
7963
8134
|
return btoa(binaryString);
|
|
@@ -8448,7 +8619,7 @@ const _sfc_main$1O = {
|
|
|
8448
8619
|
if (this.myConfig.dynamicColumnFlag) {
|
|
8449
8620
|
items = this.dynamicColumnItems;
|
|
8450
8621
|
} else {
|
|
8451
|
-
items = this.config.items;
|
|
8622
|
+
items = this.myConfig.items || this.config && this.config.items;
|
|
8452
8623
|
}
|
|
8453
8624
|
for (let pro in this.total_summary) {
|
|
8454
8625
|
let configItems = {};
|
|
@@ -8705,7 +8876,7 @@ const _hoisted_4$q = {
|
|
|
8705
8876
|
ref: "page",
|
|
8706
8877
|
name: "page"
|
|
8707
8878
|
};
|
|
8708
|
-
const _hoisted_5$
|
|
8879
|
+
const _hoisted_5$l = {
|
|
8709
8880
|
key: 0,
|
|
8710
8881
|
style: { "background": "#eee", "padding-top": "5px" }
|
|
8711
8882
|
};
|
|
@@ -8892,7 +9063,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8892
9063
|
renderSlot(_ctx.$slots, "footer")
|
|
8893
9064
|
])) : createCommentVNode("", true),
|
|
8894
9065
|
createElementVNode("div", _hoisted_4$q, [
|
|
8895
|
-
_ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
9066
|
+
_ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
8896
9067
|
createVNode(_component_Card, {
|
|
8897
9068
|
bordered: false,
|
|
8898
9069
|
padding: 0,
|
|
@@ -9177,7 +9348,7 @@ const _sfc_main$1M = {
|
|
|
9177
9348
|
rowAction: [{
|
|
9178
9349
|
iconcls: "row",
|
|
9179
9350
|
name: "editRowForm",
|
|
9180
|
-
text: "\u7F16\u8F91"
|
|
9351
|
+
text: this.$t("\u7F16\u8F91")
|
|
9181
9352
|
}],
|
|
9182
9353
|
openChange: false,
|
|
9183
9354
|
focusIndex: null,
|
|
@@ -9191,7 +9362,6 @@ const _sfc_main$1M = {
|
|
|
9191
9362
|
this.myConfig.cancelBtnName = this.$t("\u653E\u5F03");
|
|
9192
9363
|
this.delBatchBtnName = this.$t("\u5220\u9664");
|
|
9193
9364
|
this.addBtnName = this.$t("\u65B0\u589E");
|
|
9194
|
-
this.rowAction[0].text = this.$t("\u7F16\u8F91");
|
|
9195
9365
|
},
|
|
9196
9366
|
computed: {
|
|
9197
9367
|
colKeys() {
|
|
@@ -10518,7 +10688,7 @@ const _hoisted_3$r = {
|
|
|
10518
10688
|
style: { "margin-left": "10px" }
|
|
10519
10689
|
};
|
|
10520
10690
|
const _hoisted_4$o = ["onClick"];
|
|
10521
|
-
const _hoisted_5$
|
|
10691
|
+
const _hoisted_5$k = {
|
|
10522
10692
|
key: 0,
|
|
10523
10693
|
ref: "page",
|
|
10524
10694
|
style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
|
|
@@ -10616,7 +10786,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10616
10786
|
};
|
|
10617
10787
|
})
|
|
10618
10788
|
]), 1032, ["loading", "size", "row-class-name", "stripe", "border", "height", "maxHeight", "show-header", "columns", "onOnSelectionChange", "data", "onOnColumnWidthResize", "show-summary", "summary-method"]),
|
|
10619
|
-
$data.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10789
|
+
$data.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
|
|
10620
10790
|
createVNode(_component_Card, {
|
|
10621
10791
|
bordered: false,
|
|
10622
10792
|
padding: 0,
|
|
@@ -27242,7 +27412,7 @@ const _hoisted_3$q = {
|
|
|
27242
27412
|
class: "ivu-tag ivu-tag-checked"
|
|
27243
27413
|
};
|
|
27244
27414
|
const _hoisted_4$n = { class: "ivu-tag-text ivu-select-max-tag" };
|
|
27245
|
-
const _hoisted_5$
|
|
27415
|
+
const _hoisted_5$j = { class: "ivu-tag-text" };
|
|
27246
27416
|
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27247
27417
|
const _component_Icon = resolveComponent("Icon");
|
|
27248
27418
|
const _component_Col = resolveComponent("Col");
|
|
@@ -27284,7 +27454,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27284
27454
|
key: "tag_" + index
|
|
27285
27455
|
}, {
|
|
27286
27456
|
default: withCtx(() => [
|
|
27287
|
-
createElementVNode("span", _hoisted_5$
|
|
27457
|
+
createElementVNode("span", _hoisted_5$j, toDisplayString$1(item.label), 1),
|
|
27288
27458
|
!$data.myConfig.readOnly ? (openBlock(), createBlock(_component_Icon, {
|
|
27289
27459
|
key: 0,
|
|
27290
27460
|
type: "ios-close",
|
|
@@ -30189,7 +30359,7 @@ const _hoisted_1$11 = { style: { "text-align": "center" } };
|
|
|
30189
30359
|
const _hoisted_2$L = ["onClick"];
|
|
30190
30360
|
const _hoisted_3$p = ["onClick"];
|
|
30191
30361
|
const _hoisted_4$m = ["src", "data-original"];
|
|
30192
|
-
const _hoisted_5$
|
|
30362
|
+
const _hoisted_5$i = { key: 0 };
|
|
30193
30363
|
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30194
30364
|
const _component_Icon = resolveComponent("Icon");
|
|
30195
30365
|
const _component_Badge = resolveComponent("Badge");
|
|
@@ -30287,7 +30457,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30287
30457
|
size: $data.myConfig.iconSize,
|
|
30288
30458
|
color: $options.iconColor
|
|
30289
30459
|
}, null, 8, ["custom", "size", "color"]),
|
|
30290
|
-
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
30460
|
+
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$i, toDisplayString$1(_ctx.$t($data.myConfig.text)), 1)) : createCommentVNode("", true)
|
|
30291
30461
|
]),
|
|
30292
30462
|
_: 1
|
|
30293
30463
|
}, 8, ["style"])
|
|
@@ -30647,7 +30817,7 @@ const _hoisted_1$10 = {
|
|
|
30647
30817
|
const _hoisted_2$K = { ref: "photo" };
|
|
30648
30818
|
const _hoisted_3$o = ["src", "data-original"];
|
|
30649
30819
|
const _hoisted_4$l = ["innerHTML"];
|
|
30650
|
-
const _hoisted_5$
|
|
30820
|
+
const _hoisted_5$h = {
|
|
30651
30821
|
ref: "pdf",
|
|
30652
30822
|
style: { "height": "630px" }
|
|
30653
30823
|
};
|
|
@@ -30771,7 +30941,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30771
30941
|
"footer-hide": true
|
|
30772
30942
|
}, {
|
|
30773
30943
|
default: withCtx(() => [
|
|
30774
|
-
createElementVNode("div", _hoisted_5$
|
|
30944
|
+
createElementVNode("div", _hoisted_5$h, null, 512)
|
|
30775
30945
|
]),
|
|
30776
30946
|
_: 1
|
|
30777
30947
|
}, 8, ["title", "modelValue"]),
|
|
@@ -31385,7 +31555,7 @@ const _hoisted_1$$ = { style: { "text-align": "center" } };
|
|
|
31385
31555
|
const _hoisted_2$J = ["onClick"];
|
|
31386
31556
|
const _hoisted_3$n = ["onClick"];
|
|
31387
31557
|
const _hoisted_4$k = ["src"];
|
|
31388
|
-
const _hoisted_5$
|
|
31558
|
+
const _hoisted_5$g = { key: 1 };
|
|
31389
31559
|
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31390
31560
|
const _component_Icon = resolveComponent("Icon");
|
|
31391
31561
|
const _component_Badge = resolveComponent("Badge");
|
|
@@ -31477,7 +31647,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31477
31647
|
size: $data.myConfig.iconSize,
|
|
31478
31648
|
color: $options.iconColor
|
|
31479
31649
|
}, null, 8, ["type", "size", "color"])) : createCommentVNode("", true),
|
|
31480
|
-
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
31650
|
+
$data.myConfig.text ? (openBlock(), createElementBlock("span", _hoisted_5$g, toDisplayString$1($data.myConfig.text), 1)) : createCommentVNode("", true)
|
|
31481
31651
|
]),
|
|
31482
31652
|
_: 1
|
|
31483
31653
|
}, 8, ["style"])
|
|
@@ -33701,7 +33871,7 @@ const _hoisted_1$U = ["textContent"];
|
|
|
33701
33871
|
const _hoisted_2$E = { style: { "padding": "16px" } };
|
|
33702
33872
|
const _hoisted_3$l = ["textContent"];
|
|
33703
33873
|
const _hoisted_4$i = { key: 1 };
|
|
33704
|
-
const _hoisted_5$
|
|
33874
|
+
const _hoisted_5$f = { style: { "padding": "16px" } };
|
|
33705
33875
|
const _hoisted_6$c = ["textContent"];
|
|
33706
33876
|
const _hoisted_7$7 = ["textContent"];
|
|
33707
33877
|
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -33816,7 +33986,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33816
33986
|
$data.showBtn && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString$1($data.myConfig.editBtnName), 1)) : createCommentVNode("", true)
|
|
33817
33987
|
]),
|
|
33818
33988
|
default: withCtx(() => [
|
|
33819
|
-
withDirectives(createElementVNode("div", _hoisted_5$
|
|
33989
|
+
withDirectives(createElementVNode("div", _hoisted_5$f, [
|
|
33820
33990
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.data, (temp) => {
|
|
33821
33991
|
return openBlock(), createBlock(_component_FormDetail, {
|
|
33822
33992
|
ref_for: true,
|
|
@@ -38094,7 +38264,7 @@ const _hoisted_1$L = ["title"];
|
|
|
38094
38264
|
const _hoisted_2$A = ["title"];
|
|
38095
38265
|
const _hoisted_3$k = ["value", "disabled"];
|
|
38096
38266
|
const _hoisted_4$h = ["title"];
|
|
38097
|
-
const _hoisted_5$
|
|
38267
|
+
const _hoisted_5$e = ["title"];
|
|
38098
38268
|
const _hoisted_6$b = {
|
|
38099
38269
|
key: 1,
|
|
38100
38270
|
class: "ivu-icon ivu-icon-ios-arrow-back"
|
|
@@ -38199,7 +38369,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38199
38369
|
createTextVNode(toDisplayString$1(_ctx.prevText), 1)
|
|
38200
38370
|
], 64)) : (openBlock(), createElementBlock("i", _hoisted_6$b))
|
|
38201
38371
|
])
|
|
38202
|
-
], 10, _hoisted_5$
|
|
38372
|
+
], 10, _hoisted_5$e),
|
|
38203
38373
|
createElementVNode("li", {
|
|
38204
38374
|
title: "1",
|
|
38205
38375
|
class: normalizeClass(_ctx.firstPageClasses),
|
|
@@ -38392,7 +38562,7 @@ const _hoisted_3$j = {
|
|
|
38392
38562
|
style: { "padding-top": "10px" }
|
|
38393
38563
|
};
|
|
38394
38564
|
const _hoisted_4$g = ["textContent"];
|
|
38395
|
-
const _hoisted_5$
|
|
38565
|
+
const _hoisted_5$d = ["textContent"];
|
|
38396
38566
|
const _hoisted_6$a = {
|
|
38397
38567
|
ref: "page",
|
|
38398
38568
|
name: "page"
|
|
@@ -38649,7 +38819,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38649
38819
|
title: withCtx(() => [
|
|
38650
38820
|
createElementVNode("span", {
|
|
38651
38821
|
textContent: toDisplayString$1(_ctx.myConfig.multiGridTitle)
|
|
38652
|
-
}, null, 8, _hoisted_5$
|
|
38822
|
+
}, null, 8, _hoisted_5$d)
|
|
38653
38823
|
]),
|
|
38654
38824
|
default: withCtx(() => [
|
|
38655
38825
|
createVNode(_component_Table, {
|
|
@@ -41427,7 +41597,7 @@ const _hoisted_1$G = ["textContent"];
|
|
|
41427
41597
|
const _hoisted_2$x = { style: { "padding-left": "24px" } };
|
|
41428
41598
|
const _hoisted_3$h = { ref: "photo" };
|
|
41429
41599
|
const _hoisted_4$f = ["src", "data-original"];
|
|
41430
|
-
const _hoisted_5$
|
|
41600
|
+
const _hoisted_5$c = ["innerHTML"];
|
|
41431
41601
|
const _hoisted_6$9 = {
|
|
41432
41602
|
ref: "pdf",
|
|
41433
41603
|
style: { "height": "630px" }
|
|
@@ -41568,7 +41738,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41568
41738
|
"footer-hide": true
|
|
41569
41739
|
}, {
|
|
41570
41740
|
default: withCtx(() => [
|
|
41571
|
-
createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$
|
|
41741
|
+
createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$c)
|
|
41572
41742
|
]),
|
|
41573
41743
|
_: 1
|
|
41574
41744
|
}, 8, ["title", "modelValue"]),
|
|
@@ -42066,7 +42236,7 @@ const _hoisted_1$F = { style: { "margin-bottom": "10px", "display": "flex", "jus
|
|
|
42066
42236
|
const _hoisted_2$w = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42067
42237
|
const _hoisted_3$g = { style: { "margin-bottom": "10px", "display": "flex", "justify-content": "space-between" } };
|
|
42068
42238
|
const _hoisted_4$e = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42069
|
-
const _hoisted_5$
|
|
42239
|
+
const _hoisted_5$b = { style: { "margin-bottom": "10px" } };
|
|
42070
42240
|
const _hoisted_6$8 = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42071
42241
|
const _hoisted_7$4 = { class: "demo-spin-col-bill" };
|
|
42072
42242
|
const _hoisted_8$2 = {
|
|
@@ -42184,7 +42354,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42184
42354
|
}),
|
|
42185
42355
|
createVNode(_component_Col, { span: "8" }, {
|
|
42186
42356
|
default: withCtx(() => [
|
|
42187
|
-
createElementVNode("p", _hoisted_5$
|
|
42357
|
+
createElementVNode("p", _hoisted_5$b, [
|
|
42188
42358
|
_cache[11] || (_cache[11] = createElementVNode("span", { class: "efuture-title-verticalline" }, null, -1)),
|
|
42189
42359
|
_cache[12] || (_cache[12] = createTextVNode()),
|
|
42190
42360
|
createElementVNode("span", _hoisted_6$8, toDisplayString$1(_ctx.$t("\u5BFC\u5165\u6587\u4EF6")), 1)
|
|
@@ -44717,7 +44887,7 @@ const _hoisted_1$y = { style: { "font-size": "14px" } };
|
|
|
44717
44887
|
const _hoisted_2$r = { style: { "margin-top": "3px", "margin-bottom": "3px", "margin-left": "8px", "margin-right": "10px" } };
|
|
44718
44888
|
const _hoisted_3$f = { style: { "font-size": "14px" } };
|
|
44719
44889
|
const _hoisted_4$d = { style: { "color": "#AF292E", "font-size": "14px" } };
|
|
44720
|
-
const _hoisted_5$
|
|
44890
|
+
const _hoisted_5$a = { style: { "max-height": "400px", "overflow-y": "auto", "overflow-x": "hidden", "margin": "14px 16px" } };
|
|
44721
44891
|
const _hoisted_6$7 = { style: { "padding-left": "14px" } };
|
|
44722
44892
|
const _hoisted_7$3 = { style: { "font-size": "12px" } };
|
|
44723
44893
|
const _hoisted_8$1 = ["onClick"];
|
|
@@ -44794,7 +44964,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44794
44964
|
])
|
|
44795
44965
|
]),
|
|
44796
44966
|
default: withCtx(() => [
|
|
44797
|
-
createElementVNode("div", _hoisted_5$
|
|
44967
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
44798
44968
|
createVNode(_component_VueDraggable, {
|
|
44799
44969
|
modelValue: $data.data,
|
|
44800
44970
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.data = $event),
|
|
@@ -45623,7 +45793,7 @@ const _hoisted_2$p = {
|
|
|
45623
45793
|
};
|
|
45624
45794
|
const _hoisted_3$e = ["textContent"];
|
|
45625
45795
|
const _hoisted_4$c = { key: 0 };
|
|
45626
|
-
const _hoisted_5$
|
|
45796
|
+
const _hoisted_5$9 = ["onClick", "cell-row", "cell-col"];
|
|
45627
45797
|
const _hoisted_6$6 = {
|
|
45628
45798
|
key: 0,
|
|
45629
45799
|
ref: "page",
|
|
@@ -45823,7 +45993,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45823
45993
|
config: config2,
|
|
45824
45994
|
rowIndex: index
|
|
45825
45995
|
}, null, 8, ["label", "contentAlign", "class", "config", "rowIndex"]))
|
|
45826
|
-
], 10, _hoisted_5$
|
|
45996
|
+
], 10, _hoisted_5$9)
|
|
45827
45997
|
])
|
|
45828
45998
|
};
|
|
45829
45999
|
})
|
|
@@ -47968,7 +48138,7 @@ const _hoisted_1$s = ["textContent"];
|
|
|
47968
48138
|
const _hoisted_2$l = { style: { "padding-left": "24px" } };
|
|
47969
48139
|
const _hoisted_3$c = { ref: "photo" };
|
|
47970
48140
|
const _hoisted_4$a = ["src", "data-original"];
|
|
47971
|
-
const _hoisted_5$
|
|
48141
|
+
const _hoisted_5$8 = ["innerHTML"];
|
|
47972
48142
|
const _hoisted_6$5 = {
|
|
47973
48143
|
ref: "pdf",
|
|
47974
48144
|
style: { "height": "630px" }
|
|
@@ -48077,7 +48247,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48077
48247
|
"footer-hide": true
|
|
48078
48248
|
}, {
|
|
48079
48249
|
default: withCtx(() => [
|
|
48080
|
-
createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$
|
|
48250
|
+
createElementVNode("div", { innerHTML: $data.textStr }, null, 8, _hoisted_5$8)
|
|
48081
48251
|
]),
|
|
48082
48252
|
_: 1
|
|
48083
48253
|
}, 8, ["title", "modelValue"]),
|
|
@@ -48100,7 +48270,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48100
48270
|
var AppendixBoxs2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["render", _sfc_render$s]]);
|
|
48101
48271
|
const _sfc_main$u = {
|
|
48102
48272
|
name: "mbilldetailform",
|
|
48103
|
-
components: { AppendixBoxs2, Formcard: mFormCardBox, EditGridCardS: mEditGridCard, DetailsBoxs, AppendixBoxs: mAppendixBoxs, FormCardBox2 },
|
|
48273
|
+
components: { AppendixBoxs2, Formcard: mFormCardBox, EditGridCardS: mEditGridCard, DetailsBoxs, AppendixBoxs: mAppendixBoxs, FormCardBox2, EditGridBoxs: mEditGridCard },
|
|
48104
48274
|
data() {
|
|
48105
48275
|
return {
|
|
48106
48276
|
curlEditObject: "",
|
|
@@ -48183,7 +48353,7 @@ const _sfc_main$u = {
|
|
|
48183
48353
|
el2.modetype = modetype;
|
|
48184
48354
|
el2.divId = "headForm_" + this.getRandom() + "_" + index;
|
|
48185
48355
|
this.headVisible.push({ refname: el2.name, visible: true });
|
|
48186
|
-
this.anchorData.push({ id: "#" + el2.divId, name: el2.title ? this.$t(el2.title) : el2.title, visible: true, refname: el2.name, isHead: true });
|
|
48356
|
+
this.anchorData.push({ id: "#" + el2.divId, name: el2.title ? this.$t(el2.title) : el2.title, visible: true, refname: el2.name, isHead: true, sort: el2.sort === void 0 ? 0 : el2.sort });
|
|
48187
48357
|
});
|
|
48188
48358
|
}
|
|
48189
48359
|
if (this.myConfig.billDetailConfig !== void 0) {
|
|
@@ -48223,7 +48393,7 @@ const _sfc_main$u = {
|
|
|
48223
48393
|
}
|
|
48224
48394
|
el2.divId = "detail_" + this.getRandom() + "_" + index;
|
|
48225
48395
|
this.detailVisible.push({ refname: el2.name, visible: true });
|
|
48226
|
-
this.anchorData.push({ id: "#" + el2.divId, name: el2.title ? this.$t(el2.title) : el2.title, refname: el2.name, visible: true, isHead: false });
|
|
48396
|
+
this.anchorData.push({ id: "#" + el2.divId, name: el2.title ? this.$t(el2.title) : el2.title, refname: el2.name, visible: true, isHead: false, sort: el2.sort === void 0 ? Number.MAX_SAFE_INTEGER : el2.sort });
|
|
48227
48397
|
});
|
|
48228
48398
|
}
|
|
48229
48399
|
}
|
|
@@ -48242,7 +48412,7 @@ const _sfc_main$u = {
|
|
|
48242
48412
|
tmp.divId = "detail_" + this.getRandom() + "_" + this.detailConfig.items.length;
|
|
48243
48413
|
this.detailConfig.items.push(tmp);
|
|
48244
48414
|
this.detailVisible.push({ refname: tmp.name, visible: true });
|
|
48245
|
-
this.anchorData.push({ id: "#" + tmp.divId, name: tmp.title ? this.$t(tmp.title) : tmp.title, refname: tmp.name, visible: true });
|
|
48415
|
+
this.anchorData.push({ id: "#" + tmp.divId, name: tmp.title ? this.$t(tmp.title) : tmp.title, refname: tmp.name, visible: true, sort: Number.MAX_SAFE_INTEGER });
|
|
48246
48416
|
} else if (this.billAppendixConfig.showAppendix2) {
|
|
48247
48417
|
let tmp = Object.assign({}, {}, this.billAppendixConfig);
|
|
48248
48418
|
tmp.type = "AppendixBox2";
|
|
@@ -48252,13 +48422,29 @@ const _sfc_main$u = {
|
|
|
48252
48422
|
tmp.divId = "detail_" + this.getRandom() + "_" + this.detailConfig.items.length;
|
|
48253
48423
|
this.detailConfig.items.push(tmp);
|
|
48254
48424
|
this.detailVisible.push({ refname: tmp.name, visible: true });
|
|
48255
|
-
this.anchorData.push({ id: "#" + tmp.divId, name: tmp.title ? this.$t(tmp.title) : tmp.title, refname: tmp.name, visible: true });
|
|
48425
|
+
this.anchorData.push({ id: "#" + tmp.divId, name: tmp.title ? this.$t(tmp.title) : tmp.title, refname: tmp.name, visible: true, sort: Number.MAX_SAFE_INTEGER });
|
|
48256
48426
|
}
|
|
48257
48427
|
if (this.myConfig.showAnchorLink !== void 0) {
|
|
48258
48428
|
this.showAnchorLink = this.myConfig.showAnchorLink;
|
|
48259
48429
|
}
|
|
48430
|
+
this.anchorData.sort((a2, b10) => a2.sort - b10.sort);
|
|
48260
48431
|
},
|
|
48261
48432
|
computed: {
|
|
48433
|
+
renderItems() {
|
|
48434
|
+
let heads = [];
|
|
48435
|
+
let details = [];
|
|
48436
|
+
if (this.myConfig.formsConfig && this.myConfig.formsConfig.items) {
|
|
48437
|
+
heads = this.myConfig.formsConfig.items.map((el2, index) => {
|
|
48438
|
+
return { el: el2, index, isHead: true, sort: el2.sort === void 0 ? 0 : el2.sort };
|
|
48439
|
+
});
|
|
48440
|
+
}
|
|
48441
|
+
if (this.detailConfig.items) {
|
|
48442
|
+
details = this.detailConfig.items.map((el2, index) => {
|
|
48443
|
+
return { el: el2, index, isHead: false, sort: el2.sort === void 0 ? Number.MAX_SAFE_INTEGER : el2.sort };
|
|
48444
|
+
});
|
|
48445
|
+
}
|
|
48446
|
+
return heads.concat(details).sort((a2, b10) => a2.sort - b10.sort);
|
|
48447
|
+
},
|
|
48262
48448
|
style2() {
|
|
48263
48449
|
let height = this.$Store.state.app.clientHeight;
|
|
48264
48450
|
if (this.extraHeight) {
|
|
@@ -49069,7 +49255,6 @@ const _hoisted_1$r = { style: { "background": "#fff" } };
|
|
|
49069
49255
|
const _hoisted_2$k = { ref: "headarea" };
|
|
49070
49256
|
const _hoisted_3$b = ["id"];
|
|
49071
49257
|
const _hoisted_4$9 = ["id"];
|
|
49072
|
-
const _hoisted_5$8 = ["id"];
|
|
49073
49258
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49074
49259
|
const _component_AnchorLink = resolveComponent("AnchorLink");
|
|
49075
49260
|
const _component_Anchor = resolveComponent("Anchor");
|
|
@@ -49081,6 +49266,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49081
49266
|
const _component_AppendixBoxs = resolveComponent("AppendixBoxs");
|
|
49082
49267
|
const _component_FormCardBox2 = resolveComponent("FormCardBox2");
|
|
49083
49268
|
const _component_AppendixBoxs2 = resolveComponent("AppendixBoxs2");
|
|
49269
|
+
const _component_EditGridBoxs = resolveComponent("EditGridBoxs");
|
|
49084
49270
|
const _component_Card = resolveComponent("Card");
|
|
49085
49271
|
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
49086
49272
|
createElementVNode("div", _hoisted_2$k, [
|
|
@@ -49130,77 +49316,77 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49130
49316
|
style: normalizeStyle($options.style2),
|
|
49131
49317
|
onScroll: _cache[0] || (_cache[0] = (...args) => $options.handleScroll && $options.handleScroll(...args))
|
|
49132
49318
|
}, [
|
|
49133
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($
|
|
49319
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.renderItems, (temp) => {
|
|
49134
49320
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
49135
|
-
|
|
49136
|
-
|
|
49321
|
+
key: temp.el.divId,
|
|
49322
|
+
id: temp.el.divId
|
|
49137
49323
|
}, [
|
|
49138
|
-
|
|
49139
|
-
ref_for: true,
|
|
49140
|
-
ref: item.name,
|
|
49141
|
-
config: item,
|
|
49142
|
-
dictData: $props.dictData,
|
|
49143
|
-
onDoAction: $options.doAction
|
|
49144
|
-
}, null, 8, ["config", "dictData", "onDoAction"])
|
|
49145
|
-
], 8, _hoisted_4$9)), [
|
|
49146
|
-
[vShow, $data.headVisible[index].visible]
|
|
49147
|
-
]);
|
|
49148
|
-
}), 128)),
|
|
49149
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.detailConfig.items, (temp2, index) => {
|
|
49150
|
-
return withDirectives((openBlock(), createElementBlock("div", {
|
|
49151
|
-
key: temp2.divId,
|
|
49152
|
-
id: temp2.divId
|
|
49153
|
-
}, [
|
|
49154
|
-
temp2.type === "EditGridCard" ? (openBlock(), createBlock(_component_EditGridCardS, {
|
|
49324
|
+
temp.isHead ? (openBlock(), createBlock(_component_Formcard, {
|
|
49155
49325
|
key: 0,
|
|
49156
49326
|
ref_for: true,
|
|
49157
|
-
ref:
|
|
49158
|
-
config:
|
|
49327
|
+
ref: temp.el.name,
|
|
49328
|
+
config: temp.el,
|
|
49159
49329
|
dictData: $props.dictData,
|
|
49160
49330
|
onDoAction: $options.doAction
|
|
49161
49331
|
}, null, 8, ["config", "dictData", "onDoAction"])) : createCommentVNode("", true),
|
|
49162
|
-
|
|
49332
|
+
!temp.isHead && temp.el.type === "EditGridCard" ? (openBlock(), createBlock(_component_EditGridCardS, {
|
|
49163
49333
|
key: 1,
|
|
49164
49334
|
ref_for: true,
|
|
49165
|
-
ref:
|
|
49166
|
-
config:
|
|
49335
|
+
ref: temp.el.name,
|
|
49336
|
+
config: temp.el,
|
|
49167
49337
|
dictData: $props.dictData,
|
|
49168
49338
|
onDoAction: $options.doAction
|
|
49169
49339
|
}, null, 8, ["config", "dictData", "onDoAction"])) : createCommentVNode("", true),
|
|
49170
|
-
|
|
49340
|
+
!temp.isHead && temp.el.type === "DetailsBox" ? (openBlock(), createBlock(_component_DetailsBoxs, {
|
|
49171
49341
|
key: 2,
|
|
49172
49342
|
ref_for: true,
|
|
49173
|
-
ref:
|
|
49174
|
-
config:
|
|
49343
|
+
ref: temp.el.name,
|
|
49344
|
+
config: temp.el,
|
|
49345
|
+
dictData: $props.dictData,
|
|
49346
|
+
onDoAction: $options.doAction
|
|
49347
|
+
}, null, 8, ["config", "dictData", "onDoAction"])) : createCommentVNode("", true),
|
|
49348
|
+
!temp.isHead && temp.el.type === "FormCardBox" ? (openBlock(), createBlock(_component_FormCardBox, {
|
|
49349
|
+
key: 3,
|
|
49350
|
+
ref_for: true,
|
|
49351
|
+
ref: temp.el.name,
|
|
49352
|
+
config: temp.el,
|
|
49175
49353
|
dictData: $props.dictData
|
|
49176
49354
|
}, null, 8, ["config", "dictData"])) : createCommentVNode("", true),
|
|
49177
|
-
|
|
49178
|
-
key:
|
|
49355
|
+
!temp.isHead && temp.el.type === "AppendixBox" ? (openBlock(), createBlock(_component_AppendixBoxs, {
|
|
49356
|
+
key: 4,
|
|
49179
49357
|
ref_for: true,
|
|
49180
|
-
ref:
|
|
49181
|
-
config:
|
|
49358
|
+
ref: temp.el.name,
|
|
49359
|
+
config: temp.el,
|
|
49182
49360
|
modulecode: $data.modulecode,
|
|
49183
49361
|
onDoAction: $options.doAction
|
|
49184
49362
|
}, null, 8, ["config", "modulecode", "onDoAction"])) : createCommentVNode("", true),
|
|
49185
|
-
|
|
49186
|
-
key:
|
|
49363
|
+
!temp.isHead && temp.el.type === "FormCardBox2" ? (openBlock(), createBlock(_component_FormCardBox2, {
|
|
49364
|
+
key: 5,
|
|
49187
49365
|
ref_for: true,
|
|
49188
|
-
ref:
|
|
49189
|
-
config:
|
|
49366
|
+
ref: temp.el.name,
|
|
49367
|
+
config: temp.el,
|
|
49190
49368
|
dictData: $props.dictData
|
|
49191
49369
|
}, null, 8, ["config", "dictData"])) : createCommentVNode("", true),
|
|
49192
|
-
|
|
49193
|
-
key:
|
|
49370
|
+
!temp.isHead && temp.el.type === "AppendixBox2" ? (openBlock(), createBlock(_component_AppendixBoxs2, {
|
|
49371
|
+
key: 6,
|
|
49194
49372
|
ref_for: true,
|
|
49195
|
-
ref:
|
|
49196
|
-
config:
|
|
49373
|
+
ref: temp.el.name,
|
|
49374
|
+
config: temp.el,
|
|
49197
49375
|
dictData: $props.dictData,
|
|
49198
49376
|
modulecode: $data.modulecode,
|
|
49199
49377
|
onHandleSuccessAfter: $options.handleSuccessAfter,
|
|
49200
49378
|
onDoAction: $options.doAction
|
|
49201
|
-
}, null, 8, ["config", "dictData", "modulecode", "onHandleSuccessAfter", "onDoAction"])) : createCommentVNode("", true)
|
|
49202
|
-
|
|
49203
|
-
|
|
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)
|
|
49388
|
+
], 8, _hoisted_4$9)), [
|
|
49389
|
+
[vShow, temp.isHead ? $data.headVisible[temp.index].visible : $data.detailVisible[temp.index].visible]
|
|
49204
49390
|
]);
|
|
49205
49391
|
}), 128))
|
|
49206
49392
|
], 44, _hoisted_3$b)
|
|
@@ -50931,6 +51117,7 @@ const _sfc_main$r = {
|
|
|
50931
51117
|
this.myConfig.billQueryConfig.addDataflag = "Y";
|
|
50932
51118
|
}
|
|
50933
51119
|
});
|
|
51120
|
+
this.injectListExportBtn();
|
|
50934
51121
|
if (this.myConfig.detailConfig.showAnchorLink === void 0) {
|
|
50935
51122
|
this.myConfig.detailConfig.showAnchorLink = false;
|
|
50936
51123
|
}
|
|
@@ -51039,7 +51226,31 @@ const _sfc_main$r = {
|
|
|
51039
51226
|
}
|
|
51040
51227
|
});
|
|
51041
51228
|
},
|
|
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
|
+
},
|
|
51042
51245
|
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
|
+
}
|
|
51043
51254
|
if (obj.name === "gridSelectionChange") {
|
|
51044
51255
|
if (this.$parent[obj.name]) {
|
|
51045
51256
|
this.$parent[obj.name](obj);
|
|
@@ -52473,7 +52684,7 @@ const _sfc_main$n = {
|
|
|
52473
52684
|
showModuleCode: false,
|
|
52474
52685
|
moreFlag: false,
|
|
52475
52686
|
btnItems: [],
|
|
52476
|
-
ignoreModule: ["downTemplate"],
|
|
52687
|
+
ignoreModule: ["downTemplate", "listExport"],
|
|
52477
52688
|
notpowerFlag: true,
|
|
52478
52689
|
billoperlog: false
|
|
52479
52690
|
};
|
|
@@ -52861,7 +53072,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52861
53072
|
_: 1
|
|
52862
53073
|
});
|
|
52863
53074
|
}
|
|
52864
|
-
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
53075
|
+
var ListBtnToolbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$k], ["__scopeId", "data-v-592884c5"]]);
|
|
52865
53076
|
const _sfc_main$m = {
|
|
52866
53077
|
name: "mleftlistrightdetails",
|
|
52867
53078
|
components: { BillOperLog, ListBtnToolbar, BillDetailForm: billdetailform },
|
|
@@ -142966,6 +143177,7 @@ var ZHCN = {
|
|
|
142966
143177
|
"\u52A0\u7B7E": "\u52A0\u7B7E",
|
|
142967
143178
|
"\u52A0\u7C97": "\u52A0\u7C97",
|
|
142968
143179
|
"\u52A0\u8F7D": "\u52A0\u8F7D",
|
|
143180
|
+
"\u5408\u8BA1": "\u5408\u8BA1",
|
|
142969
143181
|
"\u52A8\u6001\u5408\u8BA1": "\u52A8\u6001\u5408\u8BA1",
|
|
142970
143182
|
"\u5305\u542B": "\u5305\u542B",
|
|
142971
143183
|
"\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",
|
|
@@ -143011,6 +143223,8 @@ var ZHCN = {
|
|
|
143011
143223
|
"\u5BFC\u51FA\u5931\u8D25": "\u5BFC\u51FA\u5931\u8D25",
|
|
143012
143224
|
"\u5BFC\u51FA\u5931\u8D25\uFF1A{status} {statusText}": "\u5BFC\u51FA\u5931\u8D25\uFF1A{status} {statusText}",
|
|
143013
143225
|
"\u5BFC\u51FA\u4E2D...\uFF0C\u8BF7\u52FF\u5173\u95ED\uFF01": "\u5BFC\u51FA\u4E2D...\uFF0C\u8BF7\u52FF\u5173\u95ED\uFF01",
|
|
143226
|
+
"\u5217\u8868\u5BFC\u51FA": "\u5217\u8868\u5BFC\u51FA",
|
|
143227
|
+
"\u5171{total}\u6761\uFF0C\u5DF2\u5BFC\u51FA\u524D{count}\u6761": "\u5171{total}\u6761\uFF0C\u5DF2\u5BFC\u51FA\u524D{count}\u6761",
|
|
143014
143228
|
"\u5BFC\u51FA\u4EFB\u52A1\u5DF2\u751F\u6210\uFF0C\u8BF7\u7A0D\u540E\u5728\u4EFB\u52A1\u5217\u8868\u4E0B\u8F7D\u6587\u4EF6": "\u5BFC\u51FA\u4EFB\u52A1\u5DF2\u751F\u6210\uFF0C\u8BF7\u7A0D\u540E\u5728\u4EFB\u52A1\u5217\u8868\u4E0B\u8F7D\u6587\u4EF6",
|
|
143015
143229
|
"\u5BFC\u51FA\u9009\u62E9": "\u5BFC\u51FA\u9009\u62E9",
|
|
143016
143230
|
"\u5C0F\u4E00": "\u5C0F\u4E00",
|
|
@@ -143297,6 +143511,7 @@ var ZHTW = {
|
|
|
143297
143511
|
"\u52A0\u7B7E": "\u52A0\u7C3D",
|
|
143298
143512
|
"\u52A0\u7C97": "\u52A0\u7C97",
|
|
143299
143513
|
"\u52A0\u8F7D": "\u52A0\u8F09",
|
|
143514
|
+
"\u5408\u8BA1": "\u5408\u8A08",
|
|
143300
143515
|
"\u52A8\u6001\u5408\u8BA1": "\u52D5\u614B\u5408\u8A08",
|
|
143301
143516
|
"\u5305\u542B": "\u5305\u542B",
|
|
143302
143517
|
"\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",
|
|
@@ -143342,6 +143557,8 @@ var ZHTW = {
|
|
|
143342
143557
|
"\u5BFC\u51FA\u5931\u8D25": "\u5C0E\u51FA\u5931\u6557",
|
|
143343
143558
|
"\u5BFC\u51FA\u5931\u8D25\uFF1A{status} {statusText}": "\u5C0E\u51FA\u5931\u6557\uFF1A{status} {statusText}",
|
|
143344
143559
|
"\u5BFC\u51FA\u4E2D...\uFF0C\u8BF7\u52FF\u5173\u95ED\uFF01": "\u5C0E\u51FA\u4E2D...\uFF0C\u8ACB\u52FF\u95DC\u9589\uFF01",
|
|
143560
|
+
"\u5217\u8868\u5BFC\u51FA": "\u5217\u8868\u532F\u51FA",
|
|
143561
|
+
"\u5171{total}\u6761\uFF0C\u5DF2\u5BFC\u51FA\u524D{count}\u6761": "\u5171{total}\u689D\uFF0C\u5DF2\u532F\u51FA\u524D{count}\u689D",
|
|
143345
143562
|
"\u5BFC\u51FA\u4EFB\u52A1\u5DF2\u751F\u6210\uFF0C\u8BF7\u7A0D\u540E\u5728\u4EFB\u52A1\u5217\u8868\u4E0B\u8F7D\u6587\u4EF6": "\u5C0E\u51FA\u4EFB\u52D9\u5DF2\u751F\u6210\uFF0C\u8ACB\u7A0D\u5F8C\u5728\u4EFB\u52D9\u5217\u8868\u4E0B\u8F09\u6587\u4EF6",
|
|
143346
143563
|
"\u5BFC\u51FA\u9009\u62E9": "\u5C0E\u51FA\u9078\u64C7",
|
|
143347
143564
|
"\u5C0F\u4E00": "\u5C0F\u4E00",
|
|
@@ -143628,6 +143845,7 @@ var ENUS = {
|
|
|
143628
143845
|
"\u52A0\u7B7E": "Add Signer",
|
|
143629
143846
|
"\u52A0\u7C97": "Bold",
|
|
143630
143847
|
"\u52A0\u8F7D": "Loading",
|
|
143848
|
+
"\u5408\u8BA1": "Total",
|
|
143631
143849
|
"\u52A8\u6001\u5408\u8BA1": "Dynamic Sum",
|
|
143632
143850
|
"\u5305\u542B": "Contains",
|
|
143633
143851
|
"\u5355\u636E\u4E3B\u5065\u4FE1\u606F\u4E3A\u7A7A,\u4E0D\u5141\u8BB8\u4E0A\u4F20": "Bill primary key is empty, upload not allowed",
|
|
@@ -143673,6 +143891,8 @@ var ENUS = {
|
|
|
143673
143891
|
"\u5BFC\u51FA\u5931\u8D25": "Export Failed",
|
|
143674
143892
|
"\u5BFC\u51FA\u5931\u8D25\uFF1A{status} {statusText}": "Export failed: {status} {statusText}",
|
|
143675
143893
|
"\u5BFC\u51FA\u4E2D...\uFF0C\u8BF7\u52FF\u5173\u95ED\uFF01": "Exporting..., do not close!",
|
|
143894
|
+
"\u5217\u8868\u5BFC\u51FA": "Export List",
|
|
143895
|
+
"\u5171{total}\u6761\uFF0C\u5DF2\u5BFC\u51FA\u524D{count}\u6761": "Total {total} rows, exported the first {count}",
|
|
143676
143896
|
"\u5BFC\u51FA\u4EFB\u52A1\u5DF2\u751F\u6210\uFF0C\u8BF7\u7A0D\u540E\u5728\u4EFB\u52A1\u5217\u8868\u4E0B\u8F7D\u6587\u4EF6": "Export task generated, download from task list later",
|
|
143677
143897
|
"\u5BFC\u51FA\u9009\u62E9": "Export Selection",
|
|
143678
143898
|
"\u5C0F\u4E00": "24pt",
|