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/render.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
  import { openBlock, createElementBlock, normalizeClass, renderSlot, reactive, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeStyle, withModifiers, Fragment, createVNode, createBlock, withCtx, createTextVNode, renderList, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, withDirectives, mergeProps, resolveDynamicComponent, vShow, isVNode } from "vue";
21
33
  import { ElMessage } from "element-plus";
22
34
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -10861,7 +10873,7 @@ const _hoisted_6$b = ["src"];
10861
10873
  const _hoisted_7$9 = ["title"];
10862
10874
  const _hoisted_8$6 = { class: "right-wrap" };
10863
10875
  const _hoisted_9$5 = ["title", "onClick"];
10864
- const _hoisted_10$3 = ["onClick"];
10876
+ const _hoisted_10$4 = ["onClick"];
10865
10877
  const _hoisted_11$2 = ["onClick"];
10866
10878
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10867
10879
  const _component_el_button = resolveComponent("el-button");
@@ -10934,7 +10946,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10934
10946
  key: 1,
10935
10947
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
10936
10948
  class: "pr-8px color-primary cursor-pointer file-action-right"
10937
- }, " \u9884\u89C8 ", 8, _hoisted_10$3)) : createCommentVNode("", true),
10949
+ }, " \u9884\u89C8 ", 8, _hoisted_10$4)) : createCommentVNode("", true),
10938
10950
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
10939
10951
  key: 2,
10940
10952
  onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
@@ -26161,13 +26173,13 @@ function registerIcon(app) {
26161
26173
  if (typeof window !== "undefined") {
26162
26174
  let loadSvg = function() {
26163
26175
  var body = document.body;
26164
- var svgDom = document.getElementById("__svg__icons__dom__1777281822788__");
26176
+ var svgDom = document.getElementById("__svg__icons__dom__1777362666281__");
26165
26177
  if (!svgDom) {
26166
26178
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26167
26179
  svgDom.style.position = "absolute";
26168
26180
  svgDom.style.width = "0";
26169
26181
  svgDom.style.height = "0";
26170
- svgDom.id = "__svg__icons__dom__1777281822788__";
26182
+ svgDom.id = "__svg__icons__dom__1777362666281__";
26171
26183
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26172
26184
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26173
26185
  }
@@ -26446,7 +26458,7 @@ const _hoisted_9$4 = {
26446
26458
  key: 1,
26447
26459
  class: "drag-handler"
26448
26460
  };
26449
- const _hoisted_10$2 = ["title"];
26461
+ const _hoisted_10$3 = ["title"];
26450
26462
  const _hoisted_11$1 = { key: 0 };
26451
26463
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
26452
26464
  const _component_svg_icon = resolveComponent("svg-icon");
@@ -26508,7 +26520,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
26508
26520
  title: _ctx.i18nt("designer.hint.dragHandler")
26509
26521
  }, [
26510
26522
  createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
26511
- ], 8, _hoisted_10$2),
26523
+ ], 8, _hoisted_10$3),
26512
26524
  createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.widget.type}`, `extension.widgetLabel.${$props.widget.type}`)), 1),
26513
26525
  $props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$1, [
26514
26526
  createVNode(_component_svg_icon, { "icon-class": "el-hide" })
@@ -34254,7 +34266,7 @@ const _hoisted_6$4 = {
34254
34266
  const _hoisted_7$3 = { class: "group-actions" };
34255
34267
  const _hoisted_8$3 = { class: "group-content" };
34256
34268
  const _hoisted_9$2 = { class: "form-widget-list" };
34257
- const _hoisted_10$1 = {
34269
+ const _hoisted_10$2 = {
34258
34270
  key: 0,
34259
34271
  class: "empty-hint"
34260
34272
  };
@@ -34358,7 +34370,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
34358
34370
  ]),
34359
34371
  _: 1
34360
34372
  }, 16, ["list", "onUpdate", "move"]),
34361
- !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$1, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
34373
+ !$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)
34362
34374
  ], 2)
34363
34375
  ], 2))
34364
34376
  ]),
@@ -34750,7 +34762,7 @@ const _hoisted_9$1 = {
34750
34762
  class: "field-loading",
34751
34763
  style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
34752
34764
  };
34753
- const _hoisted_10 = {
34765
+ const _hoisted_10$1 = {
34754
34766
  key: 1,
34755
34767
  class: "empty-hint"
34756
34768
  };
@@ -34832,7 +34844,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
34832
34844
  }, 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... "))
34833
34845
  ], 64)) : createCommentVNode("", true)
34834
34846
  ], 64);
34835
- }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
34847
+ }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
34836
34848
  !$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)
34837
34849
  ]))
34838
34850
  ])
@@ -61791,6 +61803,12 @@ const _sfc_main$4 = {
61791
61803
  immediate: true
61792
61804
  }
61793
61805
  },
61806
+ computed: {
61807
+ filterList() {
61808
+ const value2 = this.searchValue.toLocaleLowerCase();
61809
+ return this.selectedRows.filter((item) => item.labelName.toLocaleLowerCase().includes(value2) || item.assetCode.toLocaleLowerCase().includes(value2));
61810
+ }
61811
+ },
61794
61812
  data() {
61795
61813
  return {
61796
61814
  tableData: [],
@@ -61802,9 +61820,12 @@ const _sfc_main$4 = {
61802
61820
  form: {
61803
61821
  assetCode: "",
61804
61822
  assetType: "",
61805
- ownerUnit: ""
61823
+ assetOwnerUnit: "",
61824
+ labelName: ""
61806
61825
  },
61807
- disabled: false
61826
+ disabled: false,
61827
+ total: 0,
61828
+ searchValue: ""
61808
61829
  };
61809
61830
  },
61810
61831
  methods: {
@@ -61818,29 +61839,40 @@ const _sfc_main$4 = {
61818
61839
  service$1({
61819
61840
  method: "post",
61820
61841
  url: "/asset-business/overview/pageList",
61821
- data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
61842
+ data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
61822
61843
  }).then(({ data: data2 }) => {
61823
- this.tableData = data2.records;
61844
+ const { records, total, current } = data2;
61845
+ this.tableData = records.map((item) => {
61846
+ const _a = item, { id } = _a, rest = __objRest(_a, ["id"]);
61847
+ const obj = __spreadProps(__spreadValues({}, rest), {
61848
+ assetId: id
61849
+ });
61850
+ return obj;
61851
+ });
61852
+ this.total = total;
61853
+ this.currentPage = current;
61824
61854
  });
61825
61855
  },
61826
61856
  handleSizeChange(size) {
61827
61857
  this.pageSize = size;
61858
+ this.getTableData();
61828
61859
  },
61829
61860
  handleCurrentChange(page) {
61830
61861
  this.currentPage = page;
61862
+ this.getTableData();
61831
61863
  },
61832
61864
  handleAdd() {
61833
61865
  const selection = this.$refs.tableRef.getSelectionRows();
61834
61866
  const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
61835
- if (!acc.some((i) => i.id === item.id)) {
61867
+ if (!acc.some((i) => i.assetId === item.assetId)) {
61836
61868
  acc.push(item);
61837
61869
  }
61838
61870
  return acc;
61839
61871
  }, []);
61840
61872
  this.selectedRows = arr;
61841
61873
  },
61842
- handleRemove(id) {
61843
- const index2 = this.selectedRows.findIndex((item) => item.id === id);
61874
+ handleRemove(assetId) {
61875
+ const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
61844
61876
  if (index2 !== -1) {
61845
61877
  this.selectedRows.splice(index2, 1);
61846
61878
  }
@@ -61876,10 +61908,11 @@ const _hoisted_2$2 = { class: "bottom-wrap" };
61876
61908
  const _hoisted_3$1 = { class: "left-wrap" };
61877
61909
  const _hoisted_4 = { class: "filter-wrap" };
61878
61910
  const _hoisted_5 = { class: "right-wrap" };
61879
- const _hoisted_6 = { class: "asset-wrap" };
61880
- const _hoisted_7 = { class: "asset-item-left" };
61881
- const _hoisted_8 = { class: "asset-item-right" };
61882
- const _hoisted_9 = { class: "dialog-footer" };
61911
+ const _hoisted_6 = { class: "asset-wrap-title" };
61912
+ const _hoisted_7 = { class: "asset-wrap" };
61913
+ const _hoisted_8 = { class: "asset-item-left" };
61914
+ const _hoisted_9 = { class: "asset-item-right" };
61915
+ const _hoisted_10 = { class: "dialog-footer" };
61883
61916
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61884
61917
  const _component_el_input = resolveComponent("el-input");
61885
61918
  const _component_el_form_item = resolveComponent("el-form-item");
@@ -61892,25 +61925,28 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61892
61925
  const _component_el_table_column = resolveComponent("el-table-column");
61893
61926
  const _component_el_table = resolveComponent("el-table");
61894
61927
  const _component_el_pagination = resolveComponent("el-pagination");
61895
- const _component_Close = resolveComponent("Close");
61928
+ const _component_DArrowRight = resolveComponent("DArrowRight");
61896
61929
  const _component_el_icon = resolveComponent("el-icon");
61930
+ const _component_Search = resolveComponent("Search");
61931
+ const _component_Close = resolveComponent("Close");
61932
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
61897
61933
  const _component_el_dialog = resolveComponent("el-dialog");
61898
61934
  return openBlock(), createBlock(_component_el_dialog, {
61899
61935
  modelValue: $data.visible,
61900
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.visible = $event),
61936
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.visible = $event),
61901
61937
  title: "\u8D44\u4EA7\u9009\u62E9",
61902
- width: "1200px",
61938
+ width: "1418px",
61903
61939
  onClose: $options.handleClose,
61904
- "body-class": "person-tree-dialog-body",
61905
- "header-class": "person-tree-dialog-header"
61940
+ "body-class": "asset-list-dialog-body",
61941
+ "header-class": "asset-list-dialog-header"
61906
61942
  }, {
61907
61943
  footer: withCtx(() => [
61908
- createElementVNode("div", _hoisted_9, [
61944
+ createElementVNode("div", _hoisted_10, [
61909
61945
  createVNode(_component_el_button, {
61910
61946
  onClick: $options.handleClose,
61911
61947
  size: "default"
61912
61948
  }, {
61913
- default: withCtx(() => [..._cache[6] || (_cache[6] = [
61949
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
61914
61950
  createTextVNode(" \u53D6\u6D88 ", -1)
61915
61951
  ])]),
61916
61952
  _: 1
@@ -61920,7 +61956,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61920
61956
  onClick: $options.handleConfirm,
61921
61957
  size: "default"
61922
61958
  }, {
61923
- default: withCtx(() => [..._cache[7] || (_cache[7] = [
61959
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
61924
61960
  createTextVNode(" \u786E\u5B9A ", -1)
61925
61961
  ])]),
61926
61962
  _: 1
@@ -61932,22 +61968,24 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61932
61968
  createElementVNode("div", _hoisted_2$2, [
61933
61969
  createElementVNode("div", _hoisted_3$1, [
61934
61970
  createElementVNode("div", _hoisted_4, [
61935
- createVNode(_component_el_form, {
61936
- model: $data.form,
61937
- size: "small"
61938
- }, {
61971
+ createVNode(_component_el_form, { model: $data.form }, {
61939
61972
  default: withCtx(() => [
61940
61973
  createVNode(_component_el_row, { gutter: 20 }, {
61941
61974
  default: withCtx(() => [
61942
- createVNode(_component_el_col, { span: 6 }, {
61975
+ createVNode(_component_el_col, { span: 5 }, {
61943
61976
  default: withCtx(() => [
61944
- createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7F16\u7801/\u8D44\u4EA7\u540D\u79F0" }, {
61977
+ createVNode(_component_el_form_item, null, {
61945
61978
  default: withCtx(() => [
61946
61979
  createVNode(_component_el_input, {
61947
- size: "small",
61948
61980
  modelValue: $data.form.assetCode,
61949
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event)
61950
- }, null, 8, ["modelValue"])
61981
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
61982
+ placeholder: "\u8BF7\u8F93\u5165"
61983
+ }, {
61984
+ prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
61985
+ createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
61986
+ ])]),
61987
+ _: 1
61988
+ }, 8, ["modelValue"])
61951
61989
  ]),
61952
61990
  _: 1
61953
61991
  })
@@ -61956,15 +61994,37 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61956
61994
  }),
61957
61995
  createVNode(_component_el_col, { span: 6 }, {
61958
61996
  default: withCtx(() => [
61959
- createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7C7B\u578B" }, {
61997
+ createVNode(_component_el_form_item, null, {
61998
+ default: withCtx(() => [
61999
+ createVNode(_component_el_input, {
62000
+ modelValue: $data.form.labelName,
62001
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
62002
+ placeholder: "\u8BF7\u8F93\u5165"
62003
+ }, {
62004
+ prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
62005
+ createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
62006
+ ])]),
62007
+ _: 1
62008
+ }, 8, ["modelValue"])
62009
+ ]),
62010
+ _: 1
62011
+ })
62012
+ ]),
62013
+ _: 1
62014
+ }),
62015
+ createVNode(_component_el_col, { span: 5 }, {
62016
+ default: withCtx(() => [
62017
+ createVNode(_component_el_form_item, null, {
61960
62018
  default: withCtx(() => [
61961
62019
  createVNode(_component_el_select, {
61962
- size: "small",
61963
62020
  disabled: $data.disabled,
61964
62021
  modelValue: $data.form.assetType,
61965
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.assetType = $event),
61966
- placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7\u7C7B\u578B"
62022
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
62023
+ placeholder: "\u8BF7\u9009\u62E9"
61967
62024
  }, {
62025
+ prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
62026
+ createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
62027
+ ])]),
61968
62028
  default: withCtx(() => [
61969
62029
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.assetTypeOptions, (item) => {
61970
62030
  return openBlock(), createBlock(_component_el_option, {
@@ -61984,29 +62044,33 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
61984
62044
  }),
61985
62045
  createVNode(_component_el_col, { span: 6 }, {
61986
62046
  default: withCtx(() => [
61987
- createVNode(_component_el_form_item, { label: "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D" }, {
62047
+ createVNode(_component_el_form_item, null, {
61988
62048
  default: withCtx(() => [
61989
62049
  createVNode(_component_el_input, {
61990
- size: "small",
61991
- modelValue: $data.form.ownerUnit,
61992
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.ownerUnit = $event)
61993
- }, null, 8, ["modelValue"])
62050
+ modelValue: $data.form.assetOwnerUnit,
62051
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
62052
+ placeholder: "\u8BF7\u8F93\u5165"
62053
+ }, {
62054
+ prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
62055
+ createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
62056
+ ])]),
62057
+ _: 1
62058
+ }, 8, ["modelValue"])
61994
62059
  ]),
61995
62060
  _: 1
61996
62061
  })
61997
62062
  ]),
61998
62063
  _: 1
61999
62064
  }),
62000
- createVNode(_component_el_col, { span: 6 }, {
62065
+ createVNode(_component_el_col, { span: 2 }, {
62001
62066
  default: withCtx(() => [
62002
62067
  createVNode(_component_el_form_item, null, {
62003
62068
  default: withCtx(() => [
62004
62069
  createVNode(_component_el_button, {
62005
62070
  type: "primary",
62006
- size: "small",
62007
62071
  onClick: $options.handleSearch
62008
62072
  }, {
62009
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
62073
+ default: withCtx(() => [..._cache[11] || (_cache[11] = [
62010
62074
  createTextVNode("\u641C\u7D22", -1)
62011
62075
  ])]),
62012
62076
  _: 1
@@ -62026,11 +62090,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62026
62090
  ]),
62027
62091
  createVNode(_component_el_table, {
62028
62092
  data: $data.tableData,
62029
- "max-height": "500px",
62093
+ height: "500px",
62030
62094
  style: { "width": "100%" },
62031
62095
  "check-strictly": "",
62032
- "row-key": "id",
62033
- ref: "tableRef"
62096
+ "row-key": "assetId",
62097
+ ref: "tableRef",
62098
+ "header-row-class-name": "headerRowClassName",
62099
+ "header-cell-class-name": "headerCellClassName",
62100
+ stripe: ""
62034
62101
  }, {
62035
62102
  default: withCtx(() => [
62036
62103
  createVNode(_component_el_table_column, {
@@ -62039,7 +62106,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62039
62106
  }),
62040
62107
  createVNode(_component_el_table_column, {
62041
62108
  prop: "assetCode",
62042
- label: "\u8D44\u4EA7\u7F16\u7801"
62109
+ label: "\u8D44\u4EA7\u7F16\u7801",
62110
+ width: "200"
62043
62111
  }),
62044
62112
  createVNode(_component_el_table_column, {
62045
62113
  prop: "labelName",
@@ -62055,7 +62123,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62055
62123
  }),
62056
62124
  createVNode(_component_el_table_column, {
62057
62125
  prop: "originalValue",
62058
- label: "\u539F\u503C"
62126
+ label: "\u539F\u503C(\u4E07\u5143)"
62059
62127
  }, {
62060
62128
  default: withCtx(({ row }) => [
62061
62129
  createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
@@ -62064,7 +62132,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62064
62132
  }),
62065
62133
  createVNode(_component_el_table_column, {
62066
62134
  prop: "netValue",
62067
- label: "\u51C0\u503C"
62135
+ label: "\u51C0\u503C(\u4E07\u5143)"
62068
62136
  }, {
62069
62137
  default: withCtx(({ row }) => [
62070
62138
  createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
@@ -62080,34 +62148,70 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62080
62148
  "current-page": $data.currentPage,
62081
62149
  layout: "total, sizes, prev, pager, next",
62082
62150
  size: "small",
62083
- total: $data.tableData.length
62151
+ total: $data.total
62084
62152
  }, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "total"])
62085
62153
  ]),
62086
62154
  createElementVNode("div", {
62087
62155
  class: "center-wrap",
62088
- onClick: _cache[3] || (_cache[3] = (...args) => $options.handleAdd && $options.handleAdd(...args))
62089
- }, "\u6DFB\u52A0"),
62156
+ onClick: _cache[4] || (_cache[4] = (...args) => $options.handleAdd && $options.handleAdd(...args))
62157
+ }, [
62158
+ createVNode(_component_el_icon, null, {
62159
+ default: withCtx(() => [
62160
+ createVNode(_component_DArrowRight)
62161
+ ]),
62162
+ _: 1
62163
+ })
62164
+ ]),
62090
62165
  createElementVNode("div", _hoisted_5, [
62091
- createElementVNode("ul", _hoisted_6, [
62092
- (openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedRows, (item) => {
62093
- return openBlock(), createElementBlock("li", {
62094
- class: "asset-item",
62095
- key: item.id
62096
- }, [
62097
- createElementVNode("div", _hoisted_7, toDisplayString(item.labelName) + "(" + toDisplayString(item.assetCode) + ") ", 1),
62098
- createElementVNode("div", _hoisted_8, [
62099
- createVNode(_component_el_icon, {
62100
- onClick: ($event) => $options.handleRemove(item.id)
62101
- }, {
62102
- default: withCtx(() => [
62103
- createVNode(_component_Close)
62166
+ createElementVNode("div", _hoisted_6, [
62167
+ createVNode(_component_el_input, {
62168
+ modelValue: $data.searchValue,
62169
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.searchValue = $event),
62170
+ placeholder: "\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0\u6216\u8D44\u4EA7\u7F16\u7801\u641C\u7D22",
62171
+ clearable: ""
62172
+ }, {
62173
+ prefix: withCtx(() => [
62174
+ createVNode(_component_el_icon, null, {
62175
+ default: withCtx(() => [
62176
+ createVNode(_component_Search)
62177
+ ]),
62178
+ _: 1
62179
+ })
62180
+ ]),
62181
+ _: 1
62182
+ }, 8, ["modelValue"])
62183
+ ]),
62184
+ createVNode(_component_el_scrollbar, {
62185
+ height: "512px",
62186
+ class: "asset-wrap-scroll"
62187
+ }, {
62188
+ default: withCtx(() => [
62189
+ createElementVNode("ul", _hoisted_7, [
62190
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
62191
+ return openBlock(), createElementBlock("li", {
62192
+ class: "asset-item",
62193
+ key: item.assetId
62194
+ }, [
62195
+ createElementVNode("div", _hoisted_8, [
62196
+ createElementVNode("div", null, toDisplayString(item.labelName), 1),
62197
+ createElementVNode("div", null, toDisplayString(item.assetCode), 1)
62104
62198
  ]),
62105
- _: 1
62106
- }, 8, ["onClick"])
62107
- ])
62108
- ]);
62109
- }), 128))
62110
- ])
62199
+ createElementVNode("div", _hoisted_9, [
62200
+ createVNode(_component_el_icon, {
62201
+ onClick: ($event) => $options.handleRemove(item.assetId)
62202
+ }, {
62203
+ default: withCtx(() => [
62204
+ createVNode(_component_Close)
62205
+ ]),
62206
+ _: 1
62207
+ }, 8, ["onClick"])
62208
+ ])
62209
+ ]);
62210
+ }), 128))
62211
+ ])
62212
+ ]),
62213
+ _: 1
62214
+ })
62111
62215
  ])
62112
62216
  ])
62113
62217
  ])
@@ -62115,9 +62219,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
62115
62219
  _: 1
62116
62220
  }, 8, ["modelValue", "onClose"]);
62117
62221
  }
62118
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-18da89e8"]]);
62222
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5f717360"]]);
62119
62223
  var index_vue_vue_type_style_index_0_lang$1 = "";
62120
- var index_vue_vue_type_style_index_1_scoped_true_lang = "";
62121
62224
  const _sfc_main$3 = {
62122
62225
  name: "asset-select-widget",
62123
62226
  componentName: "FieldWidget",
@@ -62201,6 +62304,57 @@ const _sfc_main$3 = {
62201
62304
  this.unregisterFromRefList();
62202
62305
  },
62203
62306
  methods: {
62307
+ updateFieldLabel(fieldName, newLabel) {
62308
+ var _a;
62309
+ if (!fieldName)
62310
+ return false;
62311
+ const labelText = newLabel == null ? "" : String(newLabel);
62312
+ const widgetRef = this.getWidgetRef(fieldName, false);
62313
+ if ((_a = widgetRef == null ? void 0 : widgetRef.field) == null ? void 0 : _a.options) {
62314
+ widgetRef.field.options.label = labelText;
62315
+ const formRef2 = this.getFormRef();
62316
+ if (formRef2 && typeof formRef2.$forceUpdate === "function") {
62317
+ formRef2.$forceUpdate();
62318
+ }
62319
+ return true;
62320
+ }
62321
+ const formRef = this.getFormRef();
62322
+ if (!formRef || typeof formRef.getFormJson !== "function" || typeof formRef.setFormJson !== "function") {
62323
+ return false;
62324
+ }
62325
+ const formJson = formRef.getFormJson();
62326
+ let updated = false;
62327
+ const walk = (list) => {
62328
+ if (!Array.isArray(list))
62329
+ return;
62330
+ list.forEach((w) => {
62331
+ var _a2;
62332
+ if (updated)
62333
+ return;
62334
+ if (((_a2 = w == null ? void 0 : w.options) == null ? void 0 : _a2.name) === fieldName) {
62335
+ w.options.label = labelText;
62336
+ updated = true;
62337
+ return;
62338
+ }
62339
+ if (Array.isArray(w == null ? void 0 : w.widgetList))
62340
+ walk(w.widgetList);
62341
+ if (Array.isArray(w == null ? void 0 : w.cols)) {
62342
+ w.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList));
62343
+ }
62344
+ if (Array.isArray(w == null ? void 0 : w.rows)) {
62345
+ w.rows.forEach((r) => Array.isArray(r == null ? void 0 : r.cols) && r.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList)));
62346
+ }
62347
+ if (Array.isArray(w == null ? void 0 : w.tabs)) {
62348
+ w.tabs.forEach((t) => walk(t == null ? void 0 : t.widgetList));
62349
+ }
62350
+ });
62351
+ };
62352
+ walk(formJson == null ? void 0 : formJson.widgetList);
62353
+ if (!updated)
62354
+ return false;
62355
+ formRef.setFormJson(formJson);
62356
+ return true;
62357
+ },
62204
62358
  handleClick() {
62205
62359
  this.dialogVisible = true;
62206
62360
  },
@@ -62261,7 +62415,7 @@ const _sfc_main$3 = {
62261
62415
  }
62262
62416
  }
62263
62417
  };
62264
- const _hoisted_1$3 = { class: "person-tree-widget__trigger" };
62418
+ const _hoisted_1$3 = { class: "asset-select-widget__trigger" };
62265
62419
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
62266
62420
  const _component_el_button = resolveComponent("el-button");
62267
62421
  const _component_asset_dialog = resolveComponent("asset-dialog");
@@ -62280,12 +62434,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
62280
62434
  }, {
62281
62435
  default: withCtx(() => [
62282
62436
  createElementVNode("div", {
62283
- class: "person-tree-widget",
62437
+ class: "asset-select-widget",
62284
62438
  style: normalizeStyle($options.widgetStyle)
62285
62439
  }, [
62286
62440
  createElementVNode("div", _hoisted_1$3, [
62287
62441
  createVNode(_component_el_button, {
62288
62442
  type: "primary",
62443
+ class: "asset-select-widget__button",
62444
+ plain: "",
62289
62445
  disabled: $props.field.options.disabled,
62290
62446
  placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7",
62291
62447
  onClick: $options.handleClick,
@@ -62310,7 +62466,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
62310
62466
  _: 1
62311
62467
  }, 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"]);
62312
62468
  }
62313
- var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-1cb25748"]]);
62469
+ var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]]);
62314
62470
  var detailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
62315
62471
  const _sfc_main$2 = {
62316
62472
  name: "detail-dialog",
@@ -62430,8 +62586,6 @@ const _sfc_main$2 = {
62430
62586
  if (typeof ref2.disableForm === "function") {
62431
62587
  ref2.disableForm();
62432
62588
  }
62433
- } else if (typeof ref2.enableForm === "function") {
62434
- ref2.enableForm();
62435
62589
  }
62436
62590
  },
62437
62591
  applyFormJsonToRender(parsed) {
@@ -62598,7 +62752,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
62598
62752
  _: 1
62599
62753
  }, 8, ["modelValue", "onClose"]);
62600
62754
  }
62601
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-0f9f38bd"]]);
62755
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8f804046"]]);
62602
62756
  var index_vue_vue_type_style_index_0_lang = "";
62603
62757
  const _sfc_main$1 = {
62604
62758
  name: "asset-table-widget",
@@ -62701,6 +62855,17 @@ const _sfc_main$1 = {
62701
62855
  const rowData = args[0];
62702
62856
  const fn = new Function("rowData", handler);
62703
62857
  fn.call(this, rowData);
62858
+ } else if (eventName === "onChange") {
62859
+ const value2 = args[0];
62860
+ const oldValue = args[1];
62861
+ if (this.subFormItemFlag) {
62862
+ const subFormData = this.formModel[this.subFormName] || [];
62863
+ const fn = new Function("value", "oldValue", "subFormData", "rowId", "sfrIdx", handler);
62864
+ fn.call(this, value2, oldValue, subFormData, this.subFormRowId, this.subFormRowIndex);
62865
+ } else {
62866
+ const fn = new Function("value", "oldValue", handler);
62867
+ fn.call(this, value2, oldValue);
62868
+ }
62704
62869
  } else if (args.length > 0) {
62705
62870
  const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
62706
62871
  const fn = new Function(paramNames, handler);
@@ -62740,8 +62905,9 @@ const _sfc_main$1 = {
62740
62905
  const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
62741
62906
  if (index2 === -1)
62742
62907
  return;
62908
+ const oldValue = lodash.exports.cloneDeep(this.fieldModel);
62743
62909
  this.fieldModel[index2] = __spreadProps(__spreadValues(__spreadValues({}, this.fieldModel[index2]), formData), { isUpdate: true });
62744
- console.log(this.fieldModel, "this.fieldModel");
62910
+ this.triggerEvent("onChange", this.fieldModel, oldValue);
62745
62911
  }
62746
62912
  }
62747
62913
  };
@@ -62772,6 +62938,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
62772
62938
  createVNode(_component_el_table, {
62773
62939
  data: $data.fieldModel,
62774
62940
  "max-height": "500px",
62941
+ "header-row-class-name": "headerRowClassName",
62942
+ "header-cell-class-name": "headerCellClassName",
62943
+ stripe: "",
62775
62944
  style: { "width": "100%" },
62776
62945
  "row-key": "id",
62777
62946
  ref: "tableRef"