@kmkf-fe-packages/services-components 2.3.19-beta.2 → 2.3.19-beta.20

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.
@@ -1,6 +1,6 @@
1
1
  import LogisticsInterception from "../components/LogisticsInterception";
2
2
  import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
3
- export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | import("../components/MsgStatus").default | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsLogistics").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
3
+ export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsLogistics").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
4
4
  export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
5
5
  queryWorkOrderDetail?: ((p: any) => void) | undefined;
6
6
  flatTemplateList?: any;
@@ -26,6 +26,7 @@ import useGetRequest from "./orderQuery/useGetRequest";
26
26
  * 尽量不要直接使用redux,飞鸽项目redux并不会读取最近的store数据,使用redux会有问题,暂时使用从外部传入redux数据的方式
27
27
  * **/
28
28
  var Global = function Global(_ref) {
29
+ var _userInfo$quotaInfo, _userInfo$quotaInfo2, _userInfo$quotaInfo3, _userInfo$quotaInfo4;
29
30
  var children = _ref.children,
30
31
  _ref$requestList = _ref.requestList,
31
32
  requestList = _ref$requestList === void 0 ? [] : _ref$requestList,
@@ -42,20 +43,25 @@ var Global = function Global(_ref) {
42
43
  _useState4 = _slicedToArray(_useState3, 2),
43
44
  loading = _useState4[0],
44
45
  setLoading = _useState4[1];
46
+ var _useState5 = useState({}),
47
+ _useState6 = _slicedToArray(_useState5, 2),
48
+ userInfo = _useState6[0],
49
+ setUserInfo = _useState6[1];
45
50
  var reduxDataMap = useMemo(function () {
46
51
  return reduxData;
47
52
  }, [JSON.stringify(reduxData)]);
48
53
  useEffect(function () {
49
54
  try {
50
55
  var _reduxData$main, _reduxData$workOrder, _reduxData$global;
51
- var userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) || {};
52
- var companyUserConfig = cloneDeep(userInfo.companyUserConfig);
56
+ var _userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) || {};
57
+ var companyUserConfig = cloneDeep(_userInfo.companyUserConfig);
53
58
  if (companyUserConfig && typeof companyUserConfig === "string") {
54
- userInfo = _objectSpread(_objectSpread({}, userInfo), {}, {
59
+ _userInfo = _objectSpread(_objectSpread({}, _userInfo), {}, {
55
60
  companyUserConfig: JSON.parse(companyUserConfig)
56
61
  });
57
62
  }
58
- localStorage.setItem("reduxData_userInfo", JSON.stringify(userInfo));
63
+ setUserInfo(_userInfo);
64
+ localStorage.setItem("reduxData_userInfo", JSON.stringify(_userInfo));
59
65
  } catch (e) {
60
66
  console.error(e);
61
67
  }
@@ -211,20 +217,47 @@ var Global = function Global(_ref) {
211
217
  }
212
218
  });
213
219
  }
214
- if (allState === "failed") {
215
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert, {
216
- message: "\u6570\u636E\u52A0\u8F7D\u5F02\u5E38,\u53EF\u80FD\u5F71\u54CD\u90E8\u5206\u7EC4\u4EF6\u4F7F\u7528",
217
- type: "warning",
218
- action: /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
219
- loading: loading,
220
- type: "primary",
221
- key: "console",
222
- onClick: reloadData,
223
- size: "small"
224
- }, "\u5237\u65B0\u91CD\u8BD5")),
225
- closable: true
226
- }), children);
227
- }
228
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
220
+ // if (allState === "failed") {
221
+ // return (
222
+ // <>
223
+ // <Alert
224
+ // message="数据加载异常,可能影响部分组件使用"
225
+ // type="warning"
226
+ // action={
227
+ // <Space>
228
+ // <Button
229
+ // loading={loading}
230
+ // type="primary"
231
+ // key="console"
232
+ // onClick={reloadData}
233
+ // size="small"
234
+ // >
235
+ // 刷新重试
236
+ // </Button>
237
+ // </Space>
238
+ // }
239
+ // closable
240
+ // />
241
+ // {children}
242
+ // </>
243
+ // );
244
+ // }
245
+
246
+ return /*#__PURE__*/React.createElement(React.Fragment, null, allState === "failed" && /*#__PURE__*/React.createElement(Alert, {
247
+ message: "\u6570\u636E\u52A0\u8F7D\u5F02\u5E38,\u53EF\u80FD\u5F71\u54CD\u90E8\u5206\u7EC4\u4EF6\u4F7F\u7528",
248
+ type: "warning",
249
+ action: /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
250
+ loading: loading,
251
+ type: "primary",
252
+ key: "console",
253
+ onClick: reloadData,
254
+ size: "small"
255
+ }, "\u5237\u65B0\u91CD\u8BD5")),
256
+ closable: true
257
+ }), (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$quotaInfo = userInfo.quotaInfo) === null || _userInfo$quotaInfo === void 0 ? void 0 : _userInfo$quotaInfo.workOrderRemainDays) > 0 && (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$quotaInfo2 = userInfo.quotaInfo) === null || _userInfo$quotaInfo2 === void 0 ? void 0 : _userInfo$quotaInfo2.workOrderRemainDays) < 15 && /*#__PURE__*/React.createElement(Alert, {
258
+ message: "\u5DE5\u5355\u6761\u6570\u5373\u5C06\u6D88\u8017\u5B8C\uFF0C\u5269\u4F59\u5DE5\u5355\u6761\u6570\uFF1A".concat((userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$quotaInfo3 = userInfo.quotaInfo) === null || _userInfo$quotaInfo3 === void 0 ? void 0 : _userInfo$quotaInfo3.workOrderRemain) || 0, "\u6761\uFF0C\u9884\u8BA1\u5269\u4F59\u4F7F\u7528").concat((userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$quotaInfo4 = userInfo.quotaInfo) === null || _userInfo$quotaInfo4 === void 0 ? void 0 : _userInfo$quotaInfo4.workOrderRemainDays) || 0, "\u5929\uFF0C\u6D88\u8017\u5B8C\u540E\u65E0\u6CD5\u65B0\u5EFA\u5DE5\u5355"),
259
+ type: "warning",
260
+ closable: true
261
+ }), children);
229
262
  };
230
263
  export default Global;
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  import React from "react";
18
18
  import GetFormItem from "../../GetFormItem";
19
19
  import ItemView from "../../../commonComponents/ItemView";
20
- import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
20
+ import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
21
21
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
22
22
  import { BsSystemOrderTable } from "../../Common";
23
23
  import { BsHeaderChild } from "../common/index";
@@ -33,7 +33,8 @@ var typeMap = {
33
33
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
34
34
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
35
35
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
36
- WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
36
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG,
37
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG
37
38
  };
38
39
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
39
40
  var _this = this,
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
27
  import { ApaasImage } from "@kmkf-fe-packages/basic-components";
@@ -769,11 +769,13 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
769
769
  src: fileUrl
770
770
  })));
771
771
  };
772
+ var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
772
773
  export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
773
774
  var value = _ref14.value,
774
775
  type = _ref14.type,
775
776
  _ref14$showHeader = _ref14.showHeader,
776
777
  showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
778
+ var isRadio = RADIO_TABLE_KEYS.includes(type);
777
779
  var columnMap = {
778
780
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
779
781
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -784,7 +786,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
784
786
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
785
787
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
786
788
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
787
- WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
789
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
790
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
788
791
  };
789
792
  var rowKeyMap = {
790
793
  BS_SYSTEM_ORDER: "billNo",
@@ -796,9 +799,11 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
796
799
  JST_SYSTEM_ORDER: "oId",
797
800
  JY_SYSTEM_ORDER: "tradeNo",
798
801
  JKY_SYSTEM_ORDER: "tradeNo",
799
- WDT_RETURN_BILL_NO: "refundNo"
802
+ WDT_RETURN_BILL_NO: "refundNo",
803
+ PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
800
804
  };
801
805
  var rowSelection = {
806
+ type: isRadio ? 'radio' : 'checkbox',
802
807
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
803
808
  if (next.select) {
804
809
  prv.push(next[rowKeyMap[type]] || "billNo");
@@ -1188,19 +1188,19 @@ var GoodHeaderMap = {
1188
1188
  saleBasePrice: {
1189
1189
  name: "原价",
1190
1190
  transformValue: function transformValue(price) {
1191
- return price || price === 0 ? Number(price).toFixed(2) : "";
1191
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1192
1192
  },
1193
1193
  renderExport: function renderExport(price) {
1194
- return price || price === 0 ? Number(price).toFixed(2) : "";
1194
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1195
1195
  }
1196
1196
  },
1197
1197
  salePrice: {
1198
1198
  name: "单价",
1199
1199
  transformValue: function transformValue(price) {
1200
- return price || price === 0 ? Number(price).toFixed(2) : "";
1200
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1201
1201
  },
1202
1202
  renderExport: function renderExport(price) {
1203
- return price || price === 0 ? Number(price).toFixed(2) : "";
1203
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1204
1204
  }
1205
1205
  },
1206
1206
  qty: "数量",
@@ -1208,11 +1208,13 @@ var GoodHeaderMap = {
1208
1208
  name: "总金额",
1209
1209
  transformValue: function transformValue(val, record, parentName) {
1210
1210
  if (!record) return "--";
1211
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1211
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1212
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1212
1213
  },
1213
1214
  renderExport: function renderExport(val, record, parentName) {
1214
1215
  if (!record) return "--";
1215
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1216
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1217
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1216
1218
  }
1217
1219
  },
1218
1220
  batchId: "批次号",
@@ -1258,19 +1260,19 @@ var GoodHeaderMap = {
1258
1260
  saleBasePrice: {
1259
1261
  name: "原价",
1260
1262
  transformValue: function transformValue(price) {
1261
- return price || price === 0 ? Number(price).toFixed(2) : "";
1263
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1262
1264
  },
1263
1265
  renderExport: function renderExport(price) {
1264
- return price || price === 0 ? Number(price).toFixed(2) : "";
1266
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1265
1267
  }
1266
1268
  },
1267
1269
  salePrice: {
1268
1270
  name: "单价",
1269
1271
  transformValue: function transformValue(price) {
1270
- return price || price === 0 ? Number(price).toFixed(2) : "";
1272
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1271
1273
  },
1272
1274
  renderExport: function renderExport(price) {
1273
- return price || price === 0 ? Number(price).toFixed(2) : "";
1275
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1274
1276
  }
1275
1277
  },
1276
1278
  qty: "数量",
@@ -1300,19 +1302,19 @@ var GoodHeaderMap = {
1300
1302
  saleBasePrice: {
1301
1303
  name: "原价",
1302
1304
  transformValue: function transformValue(price) {
1303
- return price || price === 0 ? Number(price).toFixed(2) : "";
1305
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1304
1306
  },
1305
1307
  renderExport: function renderExport(price) {
1306
- return price || price === 0 ? Number(price).toFixed(2) : "";
1308
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1307
1309
  }
1308
1310
  },
1309
1311
  salePrice: {
1310
1312
  name: "单价",
1311
1313
  transformValue: function transformValue(price) {
1312
- return price || price === 0 ? Number(price).toFixed(2) : "";
1314
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1313
1315
  },
1314
1316
  renderExport: function renderExport(price) {
1315
- return price || price === 0 ? Number(price).toFixed(2) : "";
1317
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1316
1318
  }
1317
1319
  },
1318
1320
  qty: "数量",
@@ -1320,11 +1322,13 @@ var GoodHeaderMap = {
1320
1322
  name: "总金额",
1321
1323
  transformValue: function transformValue(val, record, parentName) {
1322
1324
  if (!record) return "--";
1323
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1325
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1326
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1324
1327
  },
1325
1328
  renderExport: function renderExport(val, record, parentName) {
1326
1329
  if (!record) return "--";
1327
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1330
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1331
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1328
1332
  }
1329
1333
  },
1330
1334
  batchId: "批次号",
@@ -1355,19 +1359,19 @@ var GoodHeaderMap = {
1355
1359
  saleBasePrice: {
1356
1360
  name: "原价",
1357
1361
  transformValue: function transformValue(price) {
1358
- return price || price === 0 ? Number(price).toFixed(2) : "";
1362
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1359
1363
  },
1360
1364
  renderExport: function renderExport(price) {
1361
- return price || price === 0 ? Number(price).toFixed(2) : "";
1365
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1362
1366
  }
1363
1367
  },
1364
1368
  salePrice: {
1365
1369
  name: "单价",
1366
1370
  transformValue: function transformValue(price) {
1367
- return price || price === 0 ? Number(price).toFixed(2) : "";
1371
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1368
1372
  },
1369
1373
  renderExport: function renderExport(price) {
1370
- return price || price === 0 ? Number(price).toFixed(2) : "";
1374
+ return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, '') : "";
1371
1375
  }
1372
1376
  },
1373
1377
  qty: "数量",
@@ -1375,11 +1379,13 @@ var GoodHeaderMap = {
1375
1379
  name: "总金额",
1376
1380
  transformValue: function transformValue(val, record, parentName) {
1377
1381
  if (!record) return "--";
1378
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1382
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1383
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1379
1384
  },
1380
1385
  renderExport: function renderExport(val, record, parentName) {
1381
1386
  if (!record) return "--";
1382
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1387
+ var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1388
+ return Number(amount).toFixed(4).replace(/\.?0+$/, '');
1383
1389
  }
1384
1390
  },
1385
1391
  isGift: {
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonSystemOrder | MsgStatus | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonSystemOrder | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -147,6 +147,7 @@ export var factory = function factory(type, options) {
147
147
  case "JY_SYSTEM_ORDER":
148
148
  case "JKY_SYSTEM_ORDER":
149
149
  case "WDT_RETURN_BILL_NO":
150
+ case "PLATFORM_AFTER_SALES_ORDER":
150
151
  return new BsSystemOrder(options);
151
152
  case "JST_SEND_GOOD":
152
153
  case "BS_SEND_GOOD":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.3.19-beta.2",
3
+ "version": "2.3.19-beta.20",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.3.19-beta.2",
25
- "@kmkf-fe-packages/kmkf-utils": "2.3.17",
24
+ "@kmkf-fe-packages/basic-components": "2.3.19-beta.20",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.3.19-beta.20",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "319beea5fcbeb6171121bb9be09a6031633fab43",
44
+ "gitHead": "a6cc441e22f98127bf7791e19e1563d5014eb422",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- var react_1 = require("react");
5
- var react_redux_1 = require("react-redux");
6
- var toolkit_1 = require("@reduxjs/toolkit");
7
- var getTemplate = function getTemplate(companyUserConfig) {
8
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
9
- return JSON.stringify({
10
- hasWln: (_c = (_b = (_a = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _a === void 0 ? void 0 : _a.wln) === null || _b === void 0 ? void 0 : _b.show) !== null && _c !== void 0 ? _c : false,
11
- hasWdt: (_f = (_e = (_d = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _d === void 0 ? void 0 : _d.wdt) === null || _e === void 0 ? void 0 : _e.show) !== null && _f !== void 0 ? _f : false,
12
- hasBs: (_j = (_h = (_g = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _g === void 0 ? void 0 : _g.bs) === null || _h === void 0 ? void 0 : _h.show) !== null && _j !== void 0 ? _j : false,
13
- hasE3: (_m = (_l = (_k = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _k === void 0 ? void 0 : _k.bse3) === null || _l === void 0 ? void 0 : _l.show) !== null && _m !== void 0 ? _m : false,
14
- hasJst: (_q = (_p = (_o = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _o === void 0 ? void 0 : _o.jst) === null || _p === void 0 ? void 0 : _p.show) !== null && _q !== void 0 ? _q : false,
15
- hasGy: (_t = (_s = (_r = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _r === void 0 ? void 0 : _r.gy) === null || _s === void 0 ? void 0 : _s.show) !== null && _t !== void 0 ? _t : false
16
- });
17
- };
18
- function useGetHasErpData() {
19
- var companyUserConfig = react_redux_1.useSelector(toolkit_1.createSelector([function (state) {
20
- var _a, _b, _c, _d;
21
- console.log("state--useSelector", state);
22
- /**
23
- * pc main
24
- * 端 workOrder
25
- * **/
26
- return (_d = (_b = (_a = state === null || state === void 0 ? void 0 : state.main) === null || _a === void 0 ? void 0 : _a.userInfo) !== null && _b !== void 0 ? _b : (_c = state === null || state === void 0 ? void 0 : state.workOrder) === null || _c === void 0 ? void 0 : _c.userInfo) !== null && _d !== void 0 ? _d : {};
27
- }], function (state) {
28
- var _a;
29
- var companyUserConfig = (_a = state === null || state === void 0 ? void 0 : state.companyUserConfig) !== null && _a !== void 0 ? _a : {};
30
- if (typeof companyUserConfig === "string") {
31
- try {
32
- companyUserConfig = JSON.parse(companyUserConfig);
33
- } catch (e) {
34
- console.error("companyUserConfig转换异常", companyUserConfig);
35
- companyUserConfig = {};
36
- }
37
- }
38
- return companyUserConfig;
39
- }));
40
- var _a = react_1.useState(getTemplate({})),
41
- hasErpDataJson = _a[0],
42
- setHasErpDataJson = _a[1];
43
- react_1.useEffect(function () {
44
- setHasErpDataJson(getTemplate(companyUserConfig));
45
- console.log("companyUserConfig---", companyUserConfig);
46
- }, [companyUserConfig]);
47
- var hasErpData = react_1.useMemo(function () {
48
- return JSON.parse(hasErpDataJson);
49
- }, [hasErpDataJson]);
50
- return hasErpData;
51
- }
52
- exports["default"] = useGetHasErpData;
@@ -1,180 +0,0 @@
1
- "use strict";
2
-
3
- var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) {
5
- return value instanceof P ? value : new P(function (resolve) {
6
- resolve(value);
7
- });
8
- }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) {
11
- try {
12
- step(generator.next(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- }
17
- function rejected(value) {
18
- try {
19
- step(generator["throw"](value));
20
- } catch (e) {
21
- reject(e);
22
- }
23
- }
24
- function step(result) {
25
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
26
- }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- var __generator = this && this.__generator || function (thisArg, body) {
31
- var _ = {
32
- label: 0,
33
- sent: function sent() {
34
- if (t[0] & 1) throw t[1];
35
- return t[1];
36
- },
37
- trys: [],
38
- ops: []
39
- },
40
- f,
41
- y,
42
- t,
43
- g;
44
- return g = {
45
- next: verb(0),
46
- "throw": verb(1),
47
- "return": verb(2)
48
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
49
- return this;
50
- }), g;
51
- function verb(n) {
52
- return function (v) {
53
- return step([n, v]);
54
- };
55
- }
56
- function step(op) {
57
- if (f) throw new TypeError("Generator is already executing.");
58
- while (_) try {
59
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
60
- if (y = 0, t) op = [op[0] & 2, t.value];
61
- switch (op[0]) {
62
- case 0:
63
- case 1:
64
- t = op;
65
- break;
66
- case 4:
67
- _.label++;
68
- return {
69
- value: op[1],
70
- done: false
71
- };
72
- case 5:
73
- _.label++;
74
- y = op[1];
75
- op = [0];
76
- continue;
77
- case 7:
78
- op = _.ops.pop();
79
- _.trys.pop();
80
- continue;
81
- default:
82
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
83
- _ = 0;
84
- continue;
85
- }
86
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
87
- _.label = op[1];
88
- break;
89
- }
90
- if (op[0] === 6 && _.label < t[1]) {
91
- _.label = t[1];
92
- t = op;
93
- break;
94
- }
95
- if (t && _.label < t[2]) {
96
- _.label = t[2];
97
- _.ops.push(op);
98
- break;
99
- }
100
- if (t[2]) _.ops.pop();
101
- _.trys.pop();
102
- continue;
103
- }
104
- op = body.call(thisArg, _);
105
- } catch (e) {
106
- op = [6, e];
107
- y = 0;
108
- } finally {
109
- f = t = 0;
110
- }
111
- if (op[0] & 5) throw op[1];
112
- return {
113
- value: op[0] ? op[1] : void 0,
114
- done: true
115
- };
116
- }
117
- };
118
- exports.__esModule = true;
119
- var react_1 = require("react");
120
- var useGetHasErpData_1 = require("../hook/useGetHasErpData");
121
- var ahooks_1 = require("ahooks");
122
- var kmkf_utils_1 = require("@kmkf-fe-packages/kmkf-utils");
123
- function useGetErpAddressData(notJudgedErp) {
124
- var _this = this;
125
- var _a = react_1.useState("loading"),
126
- globalState = _a[0],
127
- setGlobalState = _a[1];
128
- var hasErpData = useGetHasErpData_1["default"]();
129
- ahooks_1.useUpdateEffect(function () {
130
- asyncQueryData(hasErpData, notJudgedErp);
131
- }, [hasErpData, notJudgedErp]);
132
- var asyncQueryData = function asyncQueryData(hasErpData, notJudgedErp) {
133
- return __awaiter(_this, void 0, void 0, function () {
134
- var hasBs, hasWdt, hasGy, promises, e_1;
135
- return __generator(this, function (_a) {
136
- switch (_a.label) {
137
- case 0:
138
- hasBs = hasErpData.hasBs, hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy;
139
- promises = [];
140
- if (hasBs || notJudgedErp) promises.push(kmkf_utils_1.servers.queryBsAddressData);
141
- if (hasWdt || notJudgedErp) promises.push(kmkf_utils_1.servers.queryWdtAddressData);
142
- if (hasGy || notJudgedErp) promises.push(kmkf_utils_1.servers.queryGyAddressData);
143
- _a.label = 1;
144
- case 1:
145
- _a.trys.push([1, 3,, 4]);
146
- return [4 /*yield*/, Promise.all(promises.map(function (promise) {
147
- return promise();
148
- }))];
149
- case 2:
150
- _a.sent();
151
- setGlobalState("success");
152
- return [3 /*break*/, 4];
153
- case 3:
154
- e_1 = _a.sent();
155
- setGlobalState("failed");
156
- return [3 /*break*/, 4];
157
- case 4:
158
- return [2 /*return*/];
159
- }
160
- });
161
- });
162
- };
163
-
164
- var onReload = function onReload() {
165
- return __awaiter(_this, void 0, void 0, function () {
166
- return __generator(this, function (_a) {
167
- switch (_a.label) {
168
- case 0:
169
- return [4 /*yield*/, asyncQueryData(hasErpData, notJudgedErp)];
170
- case 1:
171
- _a.sent();
172
- return [2 /*return*/];
173
- }
174
- });
175
- });
176
- };
177
-
178
- return [globalState, onReload];
179
- }
180
- exports["default"] = useGetErpAddressData;