form-custom-test 3.0.116 → 3.0.118

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.
@@ -68451,13 +68451,13 @@ function registerIcon(app) {
68451
68451
  if (typeof window !== "undefined") {
68452
68452
  let loadSvg = function() {
68453
68453
  var body = document.body;
68454
- var svgDom = document.getElementById("__svg__icons__dom__1777457223613__");
68454
+ var svgDom = document.getElementById("__svg__icons__dom__1777525834315__");
68455
68455
  if (!svgDom) {
68456
68456
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68457
68457
  svgDom.style.position = "absolute";
68458
68458
  svgDom.style.width = "0";
68459
68459
  svgDom.style.height = "0";
68460
- svgDom.id = "__svg__icons__dom__1777457223613__";
68460
+ svgDom.id = "__svg__icons__dom__1777525834315__";
68461
68461
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68462
68462
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68463
68463
  }
@@ -77135,7 +77135,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
77135
77135
  _: 1
77136
77136
  }, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
77137
77137
  }
77138
- var SubTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-03a3b831"]]);
77138
+ var SubTableWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-1fb729c8"]]);
77139
77139
  var subTableItem_vue_vue_type_style_index_0_scoped_true_lang = "";
77140
77140
  const _sfc_main$7 = {
77141
77141
  name: "sub-table-item",
@@ -77514,7 +77514,6 @@ const _hoisted_2$4 = {
77514
77514
  const _hoisted_3$3 = { class: "table-toolbar" };
77515
77515
  const _hoisted_4$2 = { class: "dialog-footer" };
77516
77516
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
77517
- const _component_svg_icon = resolveComponent("svg-icon");
77518
77517
  const _component_el_button = resolveComponent("el-button");
77519
77518
  const _component_el_table_column = resolveComponent("el-table-column");
77520
77519
  const _component_el_table = resolveComponent("el-table");
@@ -77546,12 +77545,12 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
77546
77545
  type: "primary",
77547
77546
  size: "small",
77548
77547
  disabled: $props.widget.options.disabled,
77549
- onClick: $options.handleAddRow
77548
+ onClick: $options.handleAddRow,
77549
+ icon: "el-icon-plus"
77550
77550
  }, {
77551
- default: withCtx(() => [
77552
- createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
77553
- _cache[2] || (_cache[2] = createTextVNode(" \u65B0\u589E ", -1))
77554
- ]),
77551
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
77552
+ createTextVNode(" \u65B0\u589E ", -1)
77553
+ ])]),
77555
77554
  _: 1
77556
77555
  }, 8, ["disabled", "onClick"])) : createCommentVNode("", true)
77557
77556
  ]),
@@ -77769,7 +77768,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
77769
77768
  _: 1
77770
77769
  }, 8, ["widget"]);
77771
77770
  }
77772
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-47eddd0f"]]);
77771
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-21c20fec"]]);
77773
77772
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
77774
77773
  const _sfc_main$6 = {
77775
77774
  name: "sub-table-columns-editor",
@@ -78551,11 +78550,11 @@ const _sfc_main$4 = {
78551
78550
  },
78552
78551
  assetTypeValue: {
78553
78552
  handler(newVal) {
78553
+ this.disabled = !!newVal;
78554
78554
  if (newVal) {
78555
78555
  this.form.assetType = newVal;
78556
- this.disabled = true;
78557
78556
  } else {
78558
- this.disabled = false;
78557
+ this.form.assetType = "all";
78559
78558
  }
78560
78559
  },
78561
78560
  immediate: true
@@ -78577,7 +78576,7 @@ const _sfc_main$4 = {
78577
78576
  assetTypeOptions: [],
78578
78577
  form: {
78579
78578
  assetCode: "",
78580
- assetType: "",
78579
+ assetType: "all",
78581
78580
  assetOwnerUnit: "",
78582
78581
  labelName: ""
78583
78582
  },
@@ -78590,9 +78589,21 @@ const _sfc_main$4 = {
78590
78589
  },
78591
78590
  methods: {
78592
78591
  handleClose() {
78592
+ this.form = {
78593
+ assetCode: "",
78594
+ assetType: "all",
78595
+ assetOwnerUnit: "",
78596
+ labelName: ""
78597
+ };
78593
78598
  this.$emit("close");
78594
78599
  },
78595
78600
  handleConfirm() {
78601
+ this.form = {
78602
+ assetCode: "",
78603
+ assetType: "all",
78604
+ assetOwnerUnit: "",
78605
+ labelName: ""
78606
+ };
78596
78607
  this.$emit("confirm", this.selectedRows);
78597
78608
  },
78598
78609
  handleSelectionChange(selection) {
@@ -78623,7 +78634,7 @@ const _sfc_main$4 = {
78623
78634
  service$1({
78624
78635
  method: "post",
78625
78636
  url: "/asset-business/overview/pageList",
78626
- data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
78637
+ data: __spreadProps(__spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form), { assetType: this.form.assetType === "all" ? "" : this.form.assetType })
78627
78638
  }).then(({ data: data2 }) => {
78628
78639
  const { records, total, current } = data2;
78629
78640
  this.tableData = records.map((item) => {
@@ -78651,39 +78662,19 @@ const _sfc_main$4 = {
78651
78662
  if (!selection || selection.length === 0) {
78652
78663
  return;
78653
78664
  }
78654
- if (this.limit === 1) {
78655
- const picked = selection[selection.length - 1];
78656
- this.selectedRows = picked ? [picked] : [];
78657
- if (tableRef && typeof tableRef.clearSelection === "function") {
78658
- tableRef.clearSelection();
78659
- }
78660
- return;
78661
- }
78662
- if (this.limit > 1) {
78663
- const acc = [...this.selectedRows];
78664
- selection.forEach((item) => {
78665
- if (acc.length >= this.limit)
78666
- return;
78667
- if (!acc.some((i) => i.assetId === item.assetId)) {
78668
- acc.push(item);
78669
- }
78670
- });
78671
- this.selectedRows = acc;
78672
- if (tableRef && typeof tableRef.clearSelection === "function") {
78673
- tableRef.clearSelection();
78674
- }
78675
- return;
78676
- }
78677
78665
  const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
78678
78666
  if (!acc.some((i) => i.assetId === item.assetId)) {
78679
78667
  acc.push(item);
78680
78668
  }
78681
78669
  return acc;
78682
78670
  }, []);
78683
- this.selectedRows = arr;
78684
- if (tableRef && typeof tableRef.clearSelection === "function") {
78685
- tableRef.clearSelection();
78671
+ if (this.limit) {
78672
+ if (arr.length > this.limit) {
78673
+ this.$message.error(`\u6700\u591A\u9009\u62E9 ${this.limit} \u4E2A\u8D44\u4EA7`);
78674
+ return;
78675
+ }
78686
78676
  }
78677
+ this.selectedRows = arr;
78687
78678
  },
78688
78679
  handleRemove(assetId) {
78689
78680
  const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
@@ -78705,6 +78696,10 @@ const _sfc_main$4 = {
78705
78696
  label: item.label,
78706
78697
  value: item.itemValue
78707
78698
  }));
78699
+ this.assetTypeOptions.unshift({
78700
+ label: "\u5168\u90E8",
78701
+ value: "all"
78702
+ });
78708
78703
  });
78709
78704
  },
78710
78705
  handleSearch() {
@@ -78782,7 +78777,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78782
78777
  createElementVNode("div", _hoisted_2$2, [
78783
78778
  createElementVNode("div", _hoisted_3$1, [
78784
78779
  createElementVNode("div", _hoisted_4, [
78785
- createVNode(_component_el_form, { model: $data.form }, {
78780
+ createVNode(_component_el_form, {
78781
+ model: $data.form,
78782
+ ref: "formRef"
78783
+ }, {
78786
78784
  default: withCtx(() => [
78787
78785
  createVNode(_component_el_row, { gutter: 12 }, {
78788
78786
  default: withCtx(() => [
@@ -78794,7 +78792,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78794
78792
  maxlength: "50",
78795
78793
  modelValue: $data.form.assetCode,
78796
78794
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
78797
- placeholder: "\u8BF7\u8F93\u5165"
78795
+ placeholder: "\u8BF7\u8F93\u5165",
78796
+ clearable: ""
78798
78797
  }, {
78799
78798
  prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
78800
78799
  createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
@@ -78815,7 +78814,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78815
78814
  maxlength: "50",
78816
78815
  modelValue: $data.form.labelName,
78817
78816
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
78818
- placeholder: "\u8BF7\u8F93\u5165"
78817
+ placeholder: "\u8BF7\u8F93\u5165",
78818
+ clearable: ""
78819
78819
  }, {
78820
78820
  prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
78821
78821
  createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
@@ -78836,7 +78836,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78836
78836
  disabled: $data.disabled,
78837
78837
  modelValue: $data.form.assetType,
78838
78838
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
78839
- placeholder: "\u8BF7\u9009\u62E9"
78839
+ placeholder: "\u8BF7\u9009\u62E9",
78840
+ clearable: ""
78840
78841
  }, {
78841
78842
  prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
78842
78843
  createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
@@ -78866,7 +78867,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78866
78867
  maxlength: "50",
78867
78868
  modelValue: $data.form.assetOwnerUnit,
78868
78869
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
78869
- placeholder: "\u8BF7\u8F93\u5165"
78870
+ placeholder: "\u8BF7\u8F93\u5165",
78871
+ clearable: ""
78870
78872
  }, {
78871
78873
  prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
78872
78874
  createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
@@ -78912,7 +78914,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78912
78914
  "check-strictly": "",
78913
78915
  "row-key": "assetId",
78914
78916
  ref: "tableRef",
78915
- onSelectionChange: $options.handleSelectionChange,
78916
78917
  "header-row-class-name": "headerRowClassName",
78917
78918
  "header-cell-class-name": "headerCellClassName",
78918
78919
  stripe: ""
@@ -78963,7 +78964,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78963
78964
  })
78964
78965
  ]),
78965
78966
  _: 1
78966
- }, 8, ["data", "onSelectionChange"]),
78967
+ }, 8, ["data"]),
78967
78968
  createVNode(_component_el_pagination, {
78968
78969
  onSizeChange: $options.handleSizeChange,
78969
78970
  onCurrentChange: $options.handleCurrentChange,
@@ -79041,7 +79042,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
79041
79042
  _: 1
79042
79043
  }, 8, ["modelValue", "onClose"]);
79043
79044
  }
79044
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-58c3d01c"]]);
79045
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-6f20caea"]]);
79045
79046
  var index_vue_vue_type_style_index_0_lang$1 = "";
79046
79047
  const _sfc_main$3 = {
79047
79048
  name: "asset-select-widget",
@@ -79809,7 +79810,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79809
79810
  ]),
79810
79811
  _: 1
79811
79812
  }),
79812
- createVNode(_component_el_table_column, {
79813
+ !$props.field.options.disabled ? (openBlock(), createBlock(_component_el_table_column, {
79814
+ key: 0,
79813
79815
  prop: "isUpdate",
79814
79816
  align: "center",
79815
79817
  "header-align": "center",
@@ -79819,7 +79821,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79819
79821
  createTextVNode(toDisplayString(row.isUpdate ? "\u662F" : "\u5426"), 1)
79820
79822
  ]),
79821
79823
  _: 1
79822
- })
79824
+ })) : createCommentVNode("", true)
79823
79825
  ]),
79824
79826
  _: 1
79825
79827
  }, 8, ["data"])