form-custom-test 3.0.109 → 3.0.110
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/designer.es.js +261 -92
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +113 -113
- package/dist/render.es.js +256 -87
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +84 -84
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source2, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source2)
|
|
23
|
+
if (__hasOwnProp.call(source2, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source2[prop];
|
|
25
|
+
if (source2 != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source2)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source2, prop))
|
|
28
|
+
target[prop] = source2[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var _a, _b, _c;
|
|
21
33
|
import * as vue from "vue";
|
|
22
34
|
import { reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, createBlock, withCtx, createVNode, createTextVNode, Fragment, renderList, renderSlot, normalizeStyle, withModifiers, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, withDirectives, mergeProps, resolveDynamicComponent, vShow, resolveDirective, isVNode } from "vue";
|
|
@@ -3843,7 +3855,7 @@ const assetSelectSchema = {
|
|
|
3843
3855
|
hideFooter: false,
|
|
3844
3856
|
typeJson: {},
|
|
3845
3857
|
assetTypeValue: "",
|
|
3846
|
-
customClass: "",
|
|
3858
|
+
customClass: ["assetCss"],
|
|
3847
3859
|
onOpen: "",
|
|
3848
3860
|
onConfirm: ""
|
|
3849
3861
|
}
|
|
@@ -12571,7 +12583,7 @@ const _hoisted_6$e = ["src"];
|
|
|
12571
12583
|
const _hoisted_7$b = ["title"];
|
|
12572
12584
|
const _hoisted_8$8 = { class: "right-wrap" };
|
|
12573
12585
|
const _hoisted_9$7 = ["title", "onClick"];
|
|
12574
|
-
const _hoisted_10$
|
|
12586
|
+
const _hoisted_10$6 = ["onClick"];
|
|
12575
12587
|
const _hoisted_11$4 = ["onClick"];
|
|
12576
12588
|
function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12577
12589
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -12644,7 +12656,7 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12644
12656
|
key: 1,
|
|
12645
12657
|
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
12646
12658
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
12647
|
-
}, " \u9884\u89C8 ", 8, _hoisted_10$
|
|
12659
|
+
}, " \u9884\u89C8 ", 8, _hoisted_10$6)) : createCommentVNode("", true),
|
|
12648
12660
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
12649
12661
|
key: 2,
|
|
12650
12662
|
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
@@ -53841,7 +53853,7 @@ const _hoisted_8$7 = {
|
|
|
53841
53853
|
class: ""
|
|
53842
53854
|
};
|
|
53843
53855
|
const _hoisted_9$6 = { class: "dialog-footer" };
|
|
53844
|
-
const _hoisted_10$
|
|
53856
|
+
const _hoisted_10$5 = {
|
|
53845
53857
|
key: 3,
|
|
53846
53858
|
class: ""
|
|
53847
53859
|
};
|
|
@@ -54242,7 +54254,7 @@ function _sfc_render$2O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54242
54254
|
])), [
|
|
54243
54255
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
54244
54256
|
]) : createCommentVNode("", true),
|
|
54245
|
-
$data.showExportCodeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$
|
|
54257
|
+
$data.showExportCodeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$5, [
|
|
54246
54258
|
createVNode(_component_el_dialog, {
|
|
54247
54259
|
title: _ctx.i18nt("designer.toolbar.exportCode"),
|
|
54248
54260
|
modelValue: $data.showExportCodeDialogFlag,
|
|
@@ -56232,7 +56244,7 @@ const _hoisted_8$6 = {
|
|
|
56232
56244
|
style: { "margin-bottom": "10px" }
|
|
56233
56245
|
};
|
|
56234
56246
|
const _hoisted_9$5 = { key: 7 };
|
|
56235
|
-
const _hoisted_10$
|
|
56247
|
+
const _hoisted_10$4 = {
|
|
56236
56248
|
key: 8,
|
|
56237
56249
|
class: ""
|
|
56238
56250
|
};
|
|
@@ -56528,7 +56540,7 @@ function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56528
56540
|
_: 1
|
|
56529
56541
|
}, 8, ["onClick"])
|
|
56530
56542
|
])) : createCommentVNode("", true),
|
|
56531
|
-
$data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$
|
|
56543
|
+
$data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$4, [
|
|
56532
56544
|
createVNode(_component_el_dialog, {
|
|
56533
56545
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
56534
56546
|
modelValue: $data.showImportDialogFlag,
|
|
@@ -62379,7 +62391,7 @@ const _hoisted_9$4 = {
|
|
|
62379
62391
|
key: 1,
|
|
62380
62392
|
class: "drag-handler"
|
|
62381
62393
|
};
|
|
62382
|
-
const _hoisted_10$
|
|
62394
|
+
const _hoisted_10$3 = ["title"];
|
|
62383
62395
|
const _hoisted_11$1 = { key: 0 };
|
|
62384
62396
|
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62385
62397
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
@@ -62441,7 +62453,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62441
62453
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
62442
62454
|
}, [
|
|
62443
62455
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
62444
|
-
], 8, _hoisted_10$
|
|
62456
|
+
], 8, _hoisted_10$3),
|
|
62445
62457
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.widget.type}`, `extension.widgetLabel.${$props.widget.type}`)), 1),
|
|
62446
62458
|
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$1, [
|
|
62447
62459
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
@@ -68420,13 +68432,13 @@ function registerIcon(app) {
|
|
|
68420
68432
|
if (typeof window !== "undefined") {
|
|
68421
68433
|
let loadSvg = function() {
|
|
68422
68434
|
var body = document.body;
|
|
68423
|
-
var svgDom = document.getElementById("
|
|
68435
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777362655539__");
|
|
68424
68436
|
if (!svgDom) {
|
|
68425
68437
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68426
68438
|
svgDom.style.position = "absolute";
|
|
68427
68439
|
svgDom.style.width = "0";
|
|
68428
68440
|
svgDom.style.height = "0";
|
|
68429
|
-
svgDom.id = "
|
|
68441
|
+
svgDom.id = "__svg__icons__dom__1777362655539__";
|
|
68430
68442
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68431
68443
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68432
68444
|
}
|
|
@@ -75445,7 +75457,7 @@ const _hoisted_6$4 = {
|
|
|
75445
75457
|
const _hoisted_7$3 = { class: "group-actions" };
|
|
75446
75458
|
const _hoisted_8$3 = { class: "group-content" };
|
|
75447
75459
|
const _hoisted_9$2 = { class: "form-widget-list" };
|
|
75448
|
-
const _hoisted_10$
|
|
75460
|
+
const _hoisted_10$2 = {
|
|
75449
75461
|
key: 0,
|
|
75450
75462
|
class: "empty-hint"
|
|
75451
75463
|
};
|
|
@@ -75549,7 +75561,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75549
75561
|
]),
|
|
75550
75562
|
_: 1
|
|
75551
75563
|
}, 16, ["list", "onUpdate", "move"]),
|
|
75552
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
75564
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$2, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
|
|
75553
75565
|
], 2)
|
|
75554
75566
|
], 2))
|
|
75555
75567
|
]),
|
|
@@ -75941,7 +75953,7 @@ const _hoisted_9$1 = {
|
|
|
75941
75953
|
class: "field-loading",
|
|
75942
75954
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
75943
75955
|
};
|
|
75944
|
-
const _hoisted_10 = {
|
|
75956
|
+
const _hoisted_10$1 = {
|
|
75945
75957
|
key: 1,
|
|
75946
75958
|
class: "empty-hint"
|
|
75947
75959
|
};
|
|
@@ -76023,7 +76035,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76023
76035
|
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9$1, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
76024
76036
|
], 64)) : createCommentVNode("", true)
|
|
76025
76037
|
], 64);
|
|
76026
|
-
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
76038
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
76027
76039
|
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_11, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
|
|
76028
76040
|
]))
|
|
76029
76041
|
])
|
|
@@ -78503,6 +78515,12 @@ const _sfc_main$4 = {
|
|
|
78503
78515
|
immediate: true
|
|
78504
78516
|
}
|
|
78505
78517
|
},
|
|
78518
|
+
computed: {
|
|
78519
|
+
filterList() {
|
|
78520
|
+
const value2 = this.searchValue.toLocaleLowerCase();
|
|
78521
|
+
return this.selectedRows.filter((item) => item.labelName.toLocaleLowerCase().includes(value2) || item.assetCode.toLocaleLowerCase().includes(value2));
|
|
78522
|
+
}
|
|
78523
|
+
},
|
|
78506
78524
|
data() {
|
|
78507
78525
|
return {
|
|
78508
78526
|
tableData: [],
|
|
@@ -78514,9 +78532,12 @@ const _sfc_main$4 = {
|
|
|
78514
78532
|
form: {
|
|
78515
78533
|
assetCode: "",
|
|
78516
78534
|
assetType: "",
|
|
78517
|
-
|
|
78535
|
+
assetOwnerUnit: "",
|
|
78536
|
+
labelName: ""
|
|
78518
78537
|
},
|
|
78519
|
-
disabled: false
|
|
78538
|
+
disabled: false,
|
|
78539
|
+
total: 0,
|
|
78540
|
+
searchValue: ""
|
|
78520
78541
|
};
|
|
78521
78542
|
},
|
|
78522
78543
|
methods: {
|
|
@@ -78530,29 +78551,40 @@ const _sfc_main$4 = {
|
|
|
78530
78551
|
service$1({
|
|
78531
78552
|
method: "post",
|
|
78532
78553
|
url: "/asset-business/overview/pageList",
|
|
78533
|
-
data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
|
|
78554
|
+
data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
|
|
78534
78555
|
}).then(({ data: data2 }) => {
|
|
78535
|
-
|
|
78556
|
+
const { records, total, current } = data2;
|
|
78557
|
+
this.tableData = records.map((item) => {
|
|
78558
|
+
const _a2 = item, { id } = _a2, rest = __objRest(_a2, ["id"]);
|
|
78559
|
+
const obj = __spreadProps(__spreadValues({}, rest), {
|
|
78560
|
+
assetId: id
|
|
78561
|
+
});
|
|
78562
|
+
return obj;
|
|
78563
|
+
});
|
|
78564
|
+
this.total = total;
|
|
78565
|
+
this.currentPage = current;
|
|
78536
78566
|
});
|
|
78537
78567
|
},
|
|
78538
78568
|
handleSizeChange(size) {
|
|
78539
78569
|
this.pageSize = size;
|
|
78570
|
+
this.getTableData();
|
|
78540
78571
|
},
|
|
78541
78572
|
handleCurrentChange(page) {
|
|
78542
78573
|
this.currentPage = page;
|
|
78574
|
+
this.getTableData();
|
|
78543
78575
|
},
|
|
78544
78576
|
handleAdd() {
|
|
78545
78577
|
const selection = this.$refs.tableRef.getSelectionRows();
|
|
78546
78578
|
const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
|
|
78547
|
-
if (!acc.some((i) => i.
|
|
78579
|
+
if (!acc.some((i) => i.assetId === item.assetId)) {
|
|
78548
78580
|
acc.push(item);
|
|
78549
78581
|
}
|
|
78550
78582
|
return acc;
|
|
78551
78583
|
}, []);
|
|
78552
78584
|
this.selectedRows = arr;
|
|
78553
78585
|
},
|
|
78554
|
-
handleRemove(
|
|
78555
|
-
const index2 = this.selectedRows.findIndex((item) => item.
|
|
78586
|
+
handleRemove(assetId) {
|
|
78587
|
+
const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
|
|
78556
78588
|
if (index2 !== -1) {
|
|
78557
78589
|
this.selectedRows.splice(index2, 1);
|
|
78558
78590
|
}
|
|
@@ -78588,10 +78620,11 @@ const _hoisted_2$2 = { class: "bottom-wrap" };
|
|
|
78588
78620
|
const _hoisted_3$1 = { class: "left-wrap" };
|
|
78589
78621
|
const _hoisted_4 = { class: "filter-wrap" };
|
|
78590
78622
|
const _hoisted_5 = { class: "right-wrap" };
|
|
78591
|
-
const _hoisted_6 = { class: "asset-wrap" };
|
|
78592
|
-
const _hoisted_7 = { class: "asset-
|
|
78593
|
-
const _hoisted_8 = { class: "asset-item-
|
|
78594
|
-
const _hoisted_9 = { class: "
|
|
78623
|
+
const _hoisted_6 = { class: "asset-wrap-title" };
|
|
78624
|
+
const _hoisted_7 = { class: "asset-wrap" };
|
|
78625
|
+
const _hoisted_8 = { class: "asset-item-left" };
|
|
78626
|
+
const _hoisted_9 = { class: "asset-item-right" };
|
|
78627
|
+
const _hoisted_10 = { class: "dialog-footer" };
|
|
78595
78628
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78596
78629
|
const _component_el_input = resolveComponent("el-input");
|
|
78597
78630
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -78604,25 +78637,28 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78604
78637
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
78605
78638
|
const _component_el_table = resolveComponent("el-table");
|
|
78606
78639
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
78607
|
-
const
|
|
78640
|
+
const _component_DArrowRight = resolveComponent("DArrowRight");
|
|
78608
78641
|
const _component_el_icon = resolveComponent("el-icon");
|
|
78642
|
+
const _component_Search = resolveComponent("Search");
|
|
78643
|
+
const _component_Close = resolveComponent("Close");
|
|
78644
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
78609
78645
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
78610
78646
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
78611
78647
|
modelValue: $data.visible,
|
|
78612
|
-
"onUpdate:modelValue": _cache[
|
|
78648
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.visible = $event),
|
|
78613
78649
|
title: "\u8D44\u4EA7\u9009\u62E9",
|
|
78614
|
-
width: "
|
|
78650
|
+
width: "1418px",
|
|
78615
78651
|
onClose: $options.handleClose,
|
|
78616
|
-
"body-class": "
|
|
78617
|
-
"header-class": "
|
|
78652
|
+
"body-class": "asset-list-dialog-body",
|
|
78653
|
+
"header-class": "asset-list-dialog-header"
|
|
78618
78654
|
}, {
|
|
78619
78655
|
footer: withCtx(() => [
|
|
78620
|
-
createElementVNode("div",
|
|
78656
|
+
createElementVNode("div", _hoisted_10, [
|
|
78621
78657
|
createVNode(_component_el_button, {
|
|
78622
78658
|
onClick: $options.handleClose,
|
|
78623
78659
|
size: "default"
|
|
78624
78660
|
}, {
|
|
78625
|
-
default: withCtx(() => [..._cache[
|
|
78661
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
78626
78662
|
createTextVNode(" \u53D6\u6D88 ", -1)
|
|
78627
78663
|
])]),
|
|
78628
78664
|
_: 1
|
|
@@ -78632,7 +78668,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78632
78668
|
onClick: $options.handleConfirm,
|
|
78633
78669
|
size: "default"
|
|
78634
78670
|
}, {
|
|
78635
|
-
default: withCtx(() => [..._cache[
|
|
78671
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
78636
78672
|
createTextVNode(" \u786E\u5B9A ", -1)
|
|
78637
78673
|
])]),
|
|
78638
78674
|
_: 1
|
|
@@ -78644,22 +78680,24 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78644
78680
|
createElementVNode("div", _hoisted_2$2, [
|
|
78645
78681
|
createElementVNode("div", _hoisted_3$1, [
|
|
78646
78682
|
createElementVNode("div", _hoisted_4, [
|
|
78647
|
-
createVNode(_component_el_form, {
|
|
78648
|
-
model: $data.form,
|
|
78649
|
-
size: "small"
|
|
78650
|
-
}, {
|
|
78683
|
+
createVNode(_component_el_form, { model: $data.form }, {
|
|
78651
78684
|
default: withCtx(() => [
|
|
78652
78685
|
createVNode(_component_el_row, { gutter: 20 }, {
|
|
78653
78686
|
default: withCtx(() => [
|
|
78654
|
-
createVNode(_component_el_col, { span:
|
|
78687
|
+
createVNode(_component_el_col, { span: 5 }, {
|
|
78655
78688
|
default: withCtx(() => [
|
|
78656
|
-
createVNode(_component_el_form_item,
|
|
78689
|
+
createVNode(_component_el_form_item, null, {
|
|
78657
78690
|
default: withCtx(() => [
|
|
78658
78691
|
createVNode(_component_el_input, {
|
|
78659
|
-
size: "small",
|
|
78660
78692
|
modelValue: $data.form.assetCode,
|
|
78661
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event)
|
|
78662
|
-
|
|
78693
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
|
|
78694
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
78695
|
+
}, {
|
|
78696
|
+
prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
78697
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
|
|
78698
|
+
])]),
|
|
78699
|
+
_: 1
|
|
78700
|
+
}, 8, ["modelValue"])
|
|
78663
78701
|
]),
|
|
78664
78702
|
_: 1
|
|
78665
78703
|
})
|
|
@@ -78668,15 +78706,37 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78668
78706
|
}),
|
|
78669
78707
|
createVNode(_component_el_col, { span: 6 }, {
|
|
78670
78708
|
default: withCtx(() => [
|
|
78671
|
-
createVNode(_component_el_form_item,
|
|
78709
|
+
createVNode(_component_el_form_item, null, {
|
|
78710
|
+
default: withCtx(() => [
|
|
78711
|
+
createVNode(_component_el_input, {
|
|
78712
|
+
modelValue: $data.form.labelName,
|
|
78713
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
|
|
78714
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
78715
|
+
}, {
|
|
78716
|
+
prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
78717
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
|
|
78718
|
+
])]),
|
|
78719
|
+
_: 1
|
|
78720
|
+
}, 8, ["modelValue"])
|
|
78721
|
+
]),
|
|
78722
|
+
_: 1
|
|
78723
|
+
})
|
|
78724
|
+
]),
|
|
78725
|
+
_: 1
|
|
78726
|
+
}),
|
|
78727
|
+
createVNode(_component_el_col, { span: 5 }, {
|
|
78728
|
+
default: withCtx(() => [
|
|
78729
|
+
createVNode(_component_el_form_item, null, {
|
|
78672
78730
|
default: withCtx(() => [
|
|
78673
78731
|
createVNode(_component_el_select, {
|
|
78674
|
-
size: "small",
|
|
78675
78732
|
disabled: $data.disabled,
|
|
78676
78733
|
modelValue: $data.form.assetType,
|
|
78677
|
-
"onUpdate:modelValue": _cache[
|
|
78678
|
-
placeholder: "\u8BF7\u9009\u62E9
|
|
78734
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
|
|
78735
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
78679
78736
|
}, {
|
|
78737
|
+
prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
78738
|
+
createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
|
|
78739
|
+
])]),
|
|
78680
78740
|
default: withCtx(() => [
|
|
78681
78741
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.assetTypeOptions, (item) => {
|
|
78682
78742
|
return openBlock(), createBlock(_component_el_option, {
|
|
@@ -78696,29 +78756,33 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78696
78756
|
}),
|
|
78697
78757
|
createVNode(_component_el_col, { span: 6 }, {
|
|
78698
78758
|
default: withCtx(() => [
|
|
78699
|
-
createVNode(_component_el_form_item,
|
|
78759
|
+
createVNode(_component_el_form_item, null, {
|
|
78700
78760
|
default: withCtx(() => [
|
|
78701
78761
|
createVNode(_component_el_input, {
|
|
78702
|
-
|
|
78703
|
-
modelValue: $data.form.
|
|
78704
|
-
|
|
78705
|
-
},
|
|
78762
|
+
modelValue: $data.form.assetOwnerUnit,
|
|
78763
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
|
|
78764
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
78765
|
+
}, {
|
|
78766
|
+
prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
78767
|
+
createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
|
|
78768
|
+
])]),
|
|
78769
|
+
_: 1
|
|
78770
|
+
}, 8, ["modelValue"])
|
|
78706
78771
|
]),
|
|
78707
78772
|
_: 1
|
|
78708
78773
|
})
|
|
78709
78774
|
]),
|
|
78710
78775
|
_: 1
|
|
78711
78776
|
}),
|
|
78712
|
-
createVNode(_component_el_col, { span:
|
|
78777
|
+
createVNode(_component_el_col, { span: 2 }, {
|
|
78713
78778
|
default: withCtx(() => [
|
|
78714
78779
|
createVNode(_component_el_form_item, null, {
|
|
78715
78780
|
default: withCtx(() => [
|
|
78716
78781
|
createVNode(_component_el_button, {
|
|
78717
78782
|
type: "primary",
|
|
78718
|
-
size: "small",
|
|
78719
78783
|
onClick: $options.handleSearch
|
|
78720
78784
|
}, {
|
|
78721
|
-
default: withCtx(() => [..._cache[
|
|
78785
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
78722
78786
|
createTextVNode("\u641C\u7D22", -1)
|
|
78723
78787
|
])]),
|
|
78724
78788
|
_: 1
|
|
@@ -78738,11 +78802,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78738
78802
|
]),
|
|
78739
78803
|
createVNode(_component_el_table, {
|
|
78740
78804
|
data: $data.tableData,
|
|
78741
|
-
|
|
78805
|
+
height: "500px",
|
|
78742
78806
|
style: { "width": "100%" },
|
|
78743
78807
|
"check-strictly": "",
|
|
78744
|
-
"row-key": "
|
|
78745
|
-
ref: "tableRef"
|
|
78808
|
+
"row-key": "assetId",
|
|
78809
|
+
ref: "tableRef",
|
|
78810
|
+
"header-row-class-name": "headerRowClassName",
|
|
78811
|
+
"header-cell-class-name": "headerCellClassName",
|
|
78812
|
+
stripe: ""
|
|
78746
78813
|
}, {
|
|
78747
78814
|
default: withCtx(() => [
|
|
78748
78815
|
createVNode(_component_el_table_column, {
|
|
@@ -78751,7 +78818,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78751
78818
|
}),
|
|
78752
78819
|
createVNode(_component_el_table_column, {
|
|
78753
78820
|
prop: "assetCode",
|
|
78754
|
-
label: "\u8D44\u4EA7\u7F16\u7801"
|
|
78821
|
+
label: "\u8D44\u4EA7\u7F16\u7801",
|
|
78822
|
+
width: "200"
|
|
78755
78823
|
}),
|
|
78756
78824
|
createVNode(_component_el_table_column, {
|
|
78757
78825
|
prop: "labelName",
|
|
@@ -78767,7 +78835,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78767
78835
|
}),
|
|
78768
78836
|
createVNode(_component_el_table_column, {
|
|
78769
78837
|
prop: "originalValue",
|
|
78770
|
-
label: "\u539F\u503C"
|
|
78838
|
+
label: "\u539F\u503C(\u4E07\u5143)"
|
|
78771
78839
|
}, {
|
|
78772
78840
|
default: withCtx(({ row }) => [
|
|
78773
78841
|
createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
|
|
@@ -78776,7 +78844,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78776
78844
|
}),
|
|
78777
78845
|
createVNode(_component_el_table_column, {
|
|
78778
78846
|
prop: "netValue",
|
|
78779
|
-
label: "\u51C0\u503C"
|
|
78847
|
+
label: "\u51C0\u503C(\u4E07\u5143)"
|
|
78780
78848
|
}, {
|
|
78781
78849
|
default: withCtx(({ row }) => [
|
|
78782
78850
|
createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
|
|
@@ -78792,34 +78860,70 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78792
78860
|
"current-page": $data.currentPage,
|
|
78793
78861
|
layout: "total, sizes, prev, pager, next",
|
|
78794
78862
|
size: "small",
|
|
78795
|
-
total: $data.
|
|
78863
|
+
total: $data.total
|
|
78796
78864
|
}, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "total"])
|
|
78797
78865
|
]),
|
|
78798
78866
|
createElementVNode("div", {
|
|
78799
78867
|
class: "center-wrap",
|
|
78800
|
-
onClick: _cache[
|
|
78801
|
-
},
|
|
78868
|
+
onClick: _cache[4] || (_cache[4] = (...args) => $options.handleAdd && $options.handleAdd(...args))
|
|
78869
|
+
}, [
|
|
78870
|
+
createVNode(_component_el_icon, null, {
|
|
78871
|
+
default: withCtx(() => [
|
|
78872
|
+
createVNode(_component_DArrowRight)
|
|
78873
|
+
]),
|
|
78874
|
+
_: 1
|
|
78875
|
+
})
|
|
78876
|
+
]),
|
|
78802
78877
|
createElementVNode("div", _hoisted_5, [
|
|
78803
|
-
createElementVNode("
|
|
78804
|
-
(
|
|
78805
|
-
|
|
78806
|
-
|
|
78807
|
-
|
|
78808
|
-
|
|
78809
|
-
|
|
78810
|
-
|
|
78811
|
-
|
|
78812
|
-
|
|
78813
|
-
|
|
78814
|
-
|
|
78815
|
-
|
|
78878
|
+
createElementVNode("div", _hoisted_6, [
|
|
78879
|
+
createVNode(_component_el_input, {
|
|
78880
|
+
modelValue: $data.searchValue,
|
|
78881
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.searchValue = $event),
|
|
78882
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0\u6216\u8D44\u4EA7\u7F16\u7801\u641C\u7D22",
|
|
78883
|
+
clearable: ""
|
|
78884
|
+
}, {
|
|
78885
|
+
prefix: withCtx(() => [
|
|
78886
|
+
createVNode(_component_el_icon, null, {
|
|
78887
|
+
default: withCtx(() => [
|
|
78888
|
+
createVNode(_component_Search)
|
|
78889
|
+
]),
|
|
78890
|
+
_: 1
|
|
78891
|
+
})
|
|
78892
|
+
]),
|
|
78893
|
+
_: 1
|
|
78894
|
+
}, 8, ["modelValue"])
|
|
78895
|
+
]),
|
|
78896
|
+
createVNode(_component_el_scrollbar, {
|
|
78897
|
+
height: "512px",
|
|
78898
|
+
class: "asset-wrap-scroll"
|
|
78899
|
+
}, {
|
|
78900
|
+
default: withCtx(() => [
|
|
78901
|
+
createElementVNode("ul", _hoisted_7, [
|
|
78902
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
|
|
78903
|
+
return openBlock(), createElementBlock("li", {
|
|
78904
|
+
class: "asset-item",
|
|
78905
|
+
key: item.assetId
|
|
78906
|
+
}, [
|
|
78907
|
+
createElementVNode("div", _hoisted_8, [
|
|
78908
|
+
createElementVNode("div", null, toDisplayString(item.labelName), 1),
|
|
78909
|
+
createElementVNode("div", null, toDisplayString(item.assetCode), 1)
|
|
78816
78910
|
]),
|
|
78817
|
-
|
|
78818
|
-
|
|
78819
|
-
|
|
78820
|
-
|
|
78821
|
-
|
|
78822
|
-
|
|
78911
|
+
createElementVNode("div", _hoisted_9, [
|
|
78912
|
+
createVNode(_component_el_icon, {
|
|
78913
|
+
onClick: ($event) => $options.handleRemove(item.assetId)
|
|
78914
|
+
}, {
|
|
78915
|
+
default: withCtx(() => [
|
|
78916
|
+
createVNode(_component_Close)
|
|
78917
|
+
]),
|
|
78918
|
+
_: 1
|
|
78919
|
+
}, 8, ["onClick"])
|
|
78920
|
+
])
|
|
78921
|
+
]);
|
|
78922
|
+
}), 128))
|
|
78923
|
+
])
|
|
78924
|
+
]),
|
|
78925
|
+
_: 1
|
|
78926
|
+
})
|
|
78823
78927
|
])
|
|
78824
78928
|
])
|
|
78825
78929
|
])
|
|
@@ -78827,9 +78931,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78827
78931
|
_: 1
|
|
78828
78932
|
}, 8, ["modelValue", "onClose"]);
|
|
78829
78933
|
}
|
|
78830
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
78934
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5f717360"]]);
|
|
78831
78935
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
78832
|
-
var index_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
78833
78936
|
const _sfc_main$3 = {
|
|
78834
78937
|
name: "asset-select-widget",
|
|
78835
78938
|
componentName: "FieldWidget",
|
|
@@ -78913,6 +79016,57 @@ const _sfc_main$3 = {
|
|
|
78913
79016
|
this.unregisterFromRefList();
|
|
78914
79017
|
},
|
|
78915
79018
|
methods: {
|
|
79019
|
+
updateFieldLabel(fieldName, newLabel) {
|
|
79020
|
+
var _a2;
|
|
79021
|
+
if (!fieldName)
|
|
79022
|
+
return false;
|
|
79023
|
+
const labelText = newLabel == null ? "" : String(newLabel);
|
|
79024
|
+
const widgetRef = this.getWidgetRef(fieldName, false);
|
|
79025
|
+
if ((_a2 = widgetRef == null ? void 0 : widgetRef.field) == null ? void 0 : _a2.options) {
|
|
79026
|
+
widgetRef.field.options.label = labelText;
|
|
79027
|
+
const formRef2 = this.getFormRef();
|
|
79028
|
+
if (formRef2 && typeof formRef2.$forceUpdate === "function") {
|
|
79029
|
+
formRef2.$forceUpdate();
|
|
79030
|
+
}
|
|
79031
|
+
return true;
|
|
79032
|
+
}
|
|
79033
|
+
const formRef = this.getFormRef();
|
|
79034
|
+
if (!formRef || typeof formRef.getFormJson !== "function" || typeof formRef.setFormJson !== "function") {
|
|
79035
|
+
return false;
|
|
79036
|
+
}
|
|
79037
|
+
const formJson = formRef.getFormJson();
|
|
79038
|
+
let updated = false;
|
|
79039
|
+
const walk = (list) => {
|
|
79040
|
+
if (!Array.isArray(list))
|
|
79041
|
+
return;
|
|
79042
|
+
list.forEach((w) => {
|
|
79043
|
+
var _a3;
|
|
79044
|
+
if (updated)
|
|
79045
|
+
return;
|
|
79046
|
+
if (((_a3 = w == null ? void 0 : w.options) == null ? void 0 : _a3.name) === fieldName) {
|
|
79047
|
+
w.options.label = labelText;
|
|
79048
|
+
updated = true;
|
|
79049
|
+
return;
|
|
79050
|
+
}
|
|
79051
|
+
if (Array.isArray(w == null ? void 0 : w.widgetList))
|
|
79052
|
+
walk(w.widgetList);
|
|
79053
|
+
if (Array.isArray(w == null ? void 0 : w.cols)) {
|
|
79054
|
+
w.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList));
|
|
79055
|
+
}
|
|
79056
|
+
if (Array.isArray(w == null ? void 0 : w.rows)) {
|
|
79057
|
+
w.rows.forEach((r) => Array.isArray(r == null ? void 0 : r.cols) && r.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList)));
|
|
79058
|
+
}
|
|
79059
|
+
if (Array.isArray(w == null ? void 0 : w.tabs)) {
|
|
79060
|
+
w.tabs.forEach((t) => walk(t == null ? void 0 : t.widgetList));
|
|
79061
|
+
}
|
|
79062
|
+
});
|
|
79063
|
+
};
|
|
79064
|
+
walk(formJson == null ? void 0 : formJson.widgetList);
|
|
79065
|
+
if (!updated)
|
|
79066
|
+
return false;
|
|
79067
|
+
formRef.setFormJson(formJson);
|
|
79068
|
+
return true;
|
|
79069
|
+
},
|
|
78916
79070
|
handleClick() {
|
|
78917
79071
|
this.dialogVisible = true;
|
|
78918
79072
|
},
|
|
@@ -78973,7 +79127,7 @@ const _sfc_main$3 = {
|
|
|
78973
79127
|
}
|
|
78974
79128
|
}
|
|
78975
79129
|
};
|
|
78976
|
-
const _hoisted_1$3 = { class: "
|
|
79130
|
+
const _hoisted_1$3 = { class: "asset-select-widget__trigger" };
|
|
78977
79131
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78978
79132
|
const _component_el_button = resolveComponent("el-button");
|
|
78979
79133
|
const _component_asset_dialog = resolveComponent("asset-dialog");
|
|
@@ -78992,12 +79146,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78992
79146
|
}, {
|
|
78993
79147
|
default: withCtx(() => [
|
|
78994
79148
|
createElementVNode("div", {
|
|
78995
|
-
class: "
|
|
79149
|
+
class: "asset-select-widget",
|
|
78996
79150
|
style: normalizeStyle($options.widgetStyle)
|
|
78997
79151
|
}, [
|
|
78998
79152
|
createElementVNode("div", _hoisted_1$3, [
|
|
78999
79153
|
createVNode(_component_el_button, {
|
|
79000
79154
|
type: "primary",
|
|
79155
|
+
class: "asset-select-widget__button",
|
|
79156
|
+
plain: "",
|
|
79001
79157
|
disabled: $props.field.options.disabled,
|
|
79002
79158
|
placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7",
|
|
79003
79159
|
onClick: $options.handleClick,
|
|
@@ -79022,7 +79178,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79022
79178
|
_: 1
|
|
79023
79179
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
79024
79180
|
}
|
|
79025
|
-
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]
|
|
79181
|
+
var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
79026
79182
|
var detailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
79027
79183
|
const _sfc_main$2 = {
|
|
79028
79184
|
name: "detail-dialog",
|
|
@@ -79142,8 +79298,6 @@ const _sfc_main$2 = {
|
|
|
79142
79298
|
if (typeof ref2.disableForm === "function") {
|
|
79143
79299
|
ref2.disableForm();
|
|
79144
79300
|
}
|
|
79145
|
-
} else if (typeof ref2.enableForm === "function") {
|
|
79146
|
-
ref2.enableForm();
|
|
79147
79301
|
}
|
|
79148
79302
|
},
|
|
79149
79303
|
applyFormJsonToRender(parsed) {
|
|
@@ -79310,7 +79464,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79310
79464
|
_: 1
|
|
79311
79465
|
}, 8, ["modelValue", "onClose"]);
|
|
79312
79466
|
}
|
|
79313
|
-
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
79467
|
+
var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8f804046"]]);
|
|
79314
79468
|
var index_vue_vue_type_style_index_0_lang = "";
|
|
79315
79469
|
const _sfc_main$1 = {
|
|
79316
79470
|
name: "asset-table-widget",
|
|
@@ -79413,6 +79567,17 @@ const _sfc_main$1 = {
|
|
|
79413
79567
|
const rowData = args[0];
|
|
79414
79568
|
const fn = new Function("rowData", handler);
|
|
79415
79569
|
fn.call(this, rowData);
|
|
79570
|
+
} else if (eventName === "onChange") {
|
|
79571
|
+
const value2 = args[0];
|
|
79572
|
+
const oldValue = args[1];
|
|
79573
|
+
if (this.subFormItemFlag) {
|
|
79574
|
+
const subFormData = this.formModel[this.subFormName] || [];
|
|
79575
|
+
const fn = new Function("value", "oldValue", "subFormData", "rowId", "sfrIdx", handler);
|
|
79576
|
+
fn.call(this, value2, oldValue, subFormData, this.subFormRowId, this.subFormRowIndex);
|
|
79577
|
+
} else {
|
|
79578
|
+
const fn = new Function("value", "oldValue", handler);
|
|
79579
|
+
fn.call(this, value2, oldValue);
|
|
79580
|
+
}
|
|
79416
79581
|
} else if (args.length > 0) {
|
|
79417
79582
|
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
79418
79583
|
const fn = new Function(paramNames, handler);
|
|
@@ -79452,8 +79617,9 @@ const _sfc_main$1 = {
|
|
|
79452
79617
|
const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
|
|
79453
79618
|
if (index2 === -1)
|
|
79454
79619
|
return;
|
|
79620
|
+
const oldValue = lodash.exports.cloneDeep(this.fieldModel);
|
|
79455
79621
|
this.fieldModel[index2] = __spreadProps(__spreadValues(__spreadValues({}, this.fieldModel[index2]), formData), { isUpdate: true });
|
|
79456
|
-
|
|
79622
|
+
this.triggerEvent("onChange", this.fieldModel, oldValue);
|
|
79457
79623
|
}
|
|
79458
79624
|
}
|
|
79459
79625
|
};
|
|
@@ -79484,6 +79650,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79484
79650
|
createVNode(_component_el_table, {
|
|
79485
79651
|
data: $data.fieldModel,
|
|
79486
79652
|
"max-height": "500px",
|
|
79653
|
+
"header-row-class-name": "headerRowClassName",
|
|
79654
|
+
"header-cell-class-name": "headerCellClassName",
|
|
79655
|
+
stripe: "",
|
|
79487
79656
|
style: { "width": "100%" },
|
|
79488
79657
|
"row-key": "id",
|
|
79489
79658
|
ref: "tableRef"
|