@kmkf-fe-packages/services-components 2.10.9-beta.3 → 2.10.9

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.
Files changed (44) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.js +1 -1
  3. package/dist/esm/Hooks/useGoodsSourceFormat.js +5 -9
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  5. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +2 -17
  6. package/dist/esm/commonComponents/GlobalContext/index.js +1 -3
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/constants.js +2 -6
  8. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +12 -13
  9. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -14
  10. package/dist/esm/commonComponents/OperationLog/index.js +0 -2
  11. package/dist/esm/components/BS/BsGoods/index.js +0 -1
  12. package/dist/esm/components/BS/BsLogistics/index.js +0 -9
  13. package/dist/esm/components/BS/BsSystemOrder/index.js +3 -5
  14. package/dist/esm/components/BS/common/expressCode.js +0 -3
  15. package/dist/esm/components/BS/common/expressCompany.js +0 -3
  16. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +2 -4
  17. package/dist/esm/components/Common/index.js +3 -5
  18. package/dist/esm/components/CommonHeaderGood/index.js +1 -31
  19. package/dist/esm/components/CommonMultiStatus/index.js +3 -26
  20. package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
  21. package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
  22. package/dist/esm/components/JST/JstSendGood/index.js +6 -11
  23. package/dist/esm/components/PicturePro/PictureName.js +1 -3
  24. package/dist/esm/components/PicturePro/index.js +1 -3
  25. package/dist/esm/components/PostIng/index.d.ts +1 -1
  26. package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
  27. package/dist/esm/components/Public/Goods/index.js +1 -10
  28. package/dist/esm/components/ReceiverAddress/index.js +2 -3
  29. package/dist/esm/components/Select/index.js +0 -1
  30. package/dist/esm/factory.d.ts +2 -2
  31. package/dist/esm/factory.js +1 -9
  32. package/dist/esm/index.d.ts +0 -1
  33. package/dist/esm/index.js +0 -1
  34. package/dist/esm/service/api.d.ts +0 -1
  35. package/dist/esm/service/api.js +10 -25
  36. package/dist/esm/service/request.js +1 -4
  37. package/package.json +4 -4
  38. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  39. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  40. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  41. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  42. package/dist/esm/components/Common/dist/index.js +0 -1019
  43. package/dist/esm/components/DXD/DxdShopSelect/index.d.ts +0 -40
  44. package/dist/esm/components/DXD/DxdShopSelect/index.js +0 -120
@@ -1,40 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
- import React from "react";
3
- declare class DxdShopSelect implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- sortField: string;
7
- type: string;
8
- rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- isCombinationComponent: boolean;
11
- formField: string;
12
- canSort: boolean;
13
- children: ComponentInterface[];
14
- shopDateInstance: InstanceType<any>;
15
- dataType: ComponentInterface["dataType"];
16
- options: ComponentInterface["options"];
17
- optionsMap: {
18
- [key: string]: string;
19
- };
20
- constructor(options: PickOption);
21
- editRender: (p: any) => React.JSX.Element;
22
- getLabel: (record: any) => string;
23
- renderClient: (record: any) => React.JSX.Element | null;
24
- renderPc: (value: unknown, record: Record) => string;
25
- renderLog: (r: Record) => string | null;
26
- getComponentValue: (r: Record) => string;
27
- renderExport: (value: string, record: Record) => string;
28
- filterConfig: (item: ColumnConfig) => {
29
- searchDefaultConditions: "in";
30
- type: string;
31
- id: string;
32
- name: string;
33
- filterComponentType: "MultipleSelect";
34
- props: {
35
- options: any[] | undefined;
36
- };
37
- filterFn: (value: string) => (i: Record) => boolean;
38
- };
39
- }
40
- export default DxdShopSelect;
@@ -1,120 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- import React from "react";
12
- import GetFormItem from "../../GetFormItem";
13
- import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, filterFn as _filterFn, DxdShopDataCenter } from "@kmkf-fe-packages/kmkf-utils";
15
- import { SYMBOL } from "../../../constant";
16
- import { Select } from "antd";
17
- var DxdShopSelect = /*#__PURE__*/_createClass(function DxdShopSelect(options) {
18
- var _this = this,
19
- _this$options;
20
- _classCallCheck(this, DxdShopSelect);
21
- _defineProperty(this, "name", void 0);
22
- _defineProperty(this, "id", void 0);
23
- _defineProperty(this, "sortField", void 0);
24
- _defineProperty(this, "type", void 0);
25
- _defineProperty(this, "rules", void 0);
26
- _defineProperty(this, "componentConfig", void 0);
27
- _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "formField", void 0);
29
- _defineProperty(this, "canSort", void 0);
30
- _defineProperty(this, "children", void 0);
31
- _defineProperty(this, "shopDateInstance", void 0);
32
- _defineProperty(this, "dataType", void 0);
33
- _defineProperty(this, "options", void 0);
34
- _defineProperty(this, "optionsMap", void 0);
35
- _defineProperty(this, "editRender", function (p) {
36
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
37
- return /*#__PURE__*/React.createElement(GetFormItem, {
38
- title: _this.name,
39
- name: _this.id,
40
- rules: _this.rules,
41
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
42
- display: p === null || p === void 0 ? void 0 : p.display,
43
- required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
44
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
45
- component: /*#__PURE__*/React.createElement(Select, _extends({}, _this.componentConfig, {
46
- style: {
47
- width: 200
48
- },
49
- placeholder: "\u8BF7\u9009\u62E9".concat(_this.name),
50
- options: _this.options,
51
- showSearch: true,
52
- filterOption: function filterOption(input, option) {
53
- return option.label.includes(input);
54
- }
55
- }))
56
- });
57
- });
58
- _defineProperty(this, "getLabel", function (record) {
59
- var _this$optionsMap;
60
- return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopCode")]];
61
- });
62
- _defineProperty(this, "renderClient", function (record) {
63
- return !isNull(_this.getLabel(record)) ? /*#__PURE__*/React.createElement(ItemView, {
64
- id: _this.id,
65
- label: _this.name,
66
- value: _this.getLabel(record)
67
- }) : null;
68
- });
69
- _defineProperty(this, "renderPc", function (value, record) {
70
- return _this.getLabel(record) ? _this.getLabel(record) : "--";
71
- });
72
- _defineProperty(this, "renderLog", function (r) {
73
- if (isNull(_this.getLabel(r))) return null;
74
- return _this.renderPc(undefined, r);
75
- });
76
- _defineProperty(this, "getComponentValue", function (r) {
77
- return _this.getLabel(r);
78
- });
79
- _defineProperty(this, "renderExport", function (value, record) {
80
- var _this$getLabel;
81
- return (_this$getLabel = _this.getLabel(record)) !== null && _this$getLabel !== void 0 ? _this$getLabel : "--";
82
- });
83
- _defineProperty(this, "filterConfig", function (item) {
84
- return {
85
- searchDefaultConditions: SYMBOL.in,
86
- type: item.type,
87
- id: "".concat(item.id, "_shopCode"),
88
- name: item.name,
89
- filterComponentType: "MultipleSelect",
90
- props: {
91
- options: _this.options
92
- },
93
- filterFn: function filterFn(value) {
94
- return function (i) {
95
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "shopCode"));
96
- };
97
- }
98
- };
99
- });
100
- this.name = options.name;
101
- this.id = options.id;
102
- this.sortField = "".concat(options.id, "_shopCode");
103
- this.formField = "".concat(options.id, "_shopCode");
104
- this.type = options.type;
105
- this.rules = [];
106
- this.isCombinationComponent = false;
107
- this.canSort = false;
108
- this.children = [];
109
- this.shopDateInstance = DxdShopDataCenter.getInstance();
110
- this.options = this.shopDateInstance.getShopData();
111
- this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (acc, cur) {
112
- acc[cur.value] = cur.label;
113
- return acc;
114
- }, {});
115
- this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
116
- options: this.options
117
- });
118
- this.dataType = "string";
119
- });
120
- export default DxdShopSelect;