form-custom-test 3.0.149 → 3.0.151

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.
@@ -2899,6 +2899,16 @@ function buildDefaultFormJson() {
2899
2899
  formConfig: deepClone(getDefaultFormConfig())
2900
2900
  };
2901
2901
  }
2902
+ function formatAmount(value2, fractionDigits = 6) {
2903
+ if (value2 === null || value2 === void 0 || value2 === "") {
2904
+ return "";
2905
+ }
2906
+ const num = Number(value2);
2907
+ if (Number.isNaN(num)) {
2908
+ return String(value2);
2909
+ }
2910
+ return num.toFixed(fractionDigits).replace(/\.?0+$/, "");
2911
+ }
2902
2912
  function isDef(value2) {
2903
2913
  return value2 !== void 0 && value2 !== null;
2904
2914
  }
@@ -68612,13 +68622,13 @@ function registerIcon(app) {
68612
68622
  if (typeof window !== "undefined") {
68613
68623
  let loadSvg = function() {
68614
68624
  var body = document.body;
68615
- var svgDom = document.getElementById("__svg__icons__dom__1779155894631__");
68625
+ var svgDom = document.getElementById("__svg__icons__dom__1779156456593__");
68616
68626
  if (!svgDom) {
68617
68627
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68618
68628
  svgDom.style.position = "absolute";
68619
68629
  svgDom.style.width = "0";
68620
68630
  svgDom.style.height = "0";
68621
- svgDom.id = "__svg__icons__dom__1779155894631__";
68631
+ svgDom.id = "__svg__icons__dom__1779156456593__";
68622
68632
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68623
68633
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68624
68634
  }
@@ -78755,6 +78765,7 @@ const _sfc_main$6 = {
78755
78765
  };
78756
78766
  },
78757
78767
  methods: {
78768
+ formatAmount,
78758
78769
  handleClose() {
78759
78770
  this.form = {
78760
78771
  assetCode: "",
@@ -78812,6 +78823,15 @@ const _sfc_main$6 = {
78812
78823
  });
78813
78824
  return obj;
78814
78825
  });
78826
+ if (records == null ? void 0 : records.length) {
78827
+ console.log("[assetDialog] pageList \u91D1\u989D\u5B57\u6BB5(\u63A5\u53E3\u539F\u59CB\u503C):", records.slice(0, 5).map((r) => ({
78828
+ assetCode: r.assetCode,
78829
+ originalValue: r.originalValue,
78830
+ originalValueType: typeof r.originalValue,
78831
+ netValue: r.netValue,
78832
+ netValueType: typeof r.netValue
78833
+ })));
78834
+ }
78815
78835
  this.total = total;
78816
78836
  this.currentPage = current;
78817
78837
  });
@@ -79118,7 +79138,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
79118
79138
  width: "120"
79119
79139
  }, {
79120
79140
  default: withCtx(({ row }) => [
79121
- createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
79141
+ createTextVNode(toDisplayString(row.originalValue), 1)
79122
79142
  ]),
79123
79143
  _: 1
79124
79144
  }),
@@ -79128,7 +79148,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
79128
79148
  width: "120"
79129
79149
  }, {
79130
79150
  default: withCtx(({ row }) => [
79131
- createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
79151
+ createTextVNode(toDisplayString(row.netValue), 1)
79132
79152
  ]),
79133
79153
  _: 1
79134
79154
  })
@@ -79212,7 +79232,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
79212
79232
  _: 1
79213
79233
  }, 8, ["modelValue", "onClose"]);
79214
79234
  }
79215
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0603b722"]]);
79235
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-066e1fe6"]]);
79216
79236
  var index_vue_vue_type_style_index_0_lang$1 = "";
79217
79237
  const _sfc_main$5 = {
79218
79238
  name: "asset-select-widget",
@@ -79817,6 +79837,7 @@ const _sfc_main$3 = {
79817
79837
  this.unregisterFromRefList();
79818
79838
  },
79819
79839
  methods: {
79840
+ formatAmount,
79820
79841
  handleShowIsUpdate() {
79821
79842
  return !(this.field.options.disabled || !this.field.options.clickRow);
79822
79843
  },
@@ -79969,7 +79990,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
79969
79990
  label: "\u539F\u503C"
79970
79991
  }, {
79971
79992
  default: withCtx(({ row }) => [
79972
- createTextVNode(toDisplayString(String(row.originalValue)), 1)
79993
+ createTextVNode(toDisplayString(row.originalValue), 1)
79973
79994
  ]),
79974
79995
  _: 1
79975
79996
  }),
@@ -79978,7 +79999,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
79978
79999
  label: "\u51C0\u503C"
79979
80000
  }, {
79980
80001
  default: withCtx(({ row }) => [
79981
- createTextVNode(toDisplayString(String(row.netValue)), 1)
80002
+ createTextVNode(toDisplayString(row.netValue), 1)
79982
80003
  ]),
79983
80004
  _: 1
79984
80005
  }),