@kmkf-fe-packages/kmkf-utils 2.10.9-beta.20 → 2.10.9-beta.23

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/README.md CHANGED
@@ -1 +1 @@
1
- 112311111111
1
+ 1123111111111
@@ -14,8 +14,8 @@ export declare const DXD_SYSTEM_ORDER_CONFIG: {
14
14
  dataIndex: string;
15
15
  title: string;
16
16
  width: number;
17
- render: (val: boolean) => "" | "";
18
- renderExport: (val: boolean) => "" | "";
17
+ render: (val: boolean) => "" | "";
18
+ renderExport: (val: boolean) => "" | "";
19
19
  conditionOptionsSetting: {
20
20
  dataType: string;
21
21
  getOptions: () => {
@@ -27,8 +27,8 @@ export declare const DXD_SYSTEM_ORDER_CONFIG: {
27
27
  dataIndex: string;
28
28
  title: string;
29
29
  width: number;
30
- render: (val: boolean) => "" | "";
31
- renderExport: (val: boolean) => "" | "";
30
+ render: (val: boolean) => "" | "";
31
+ renderExport: (val: boolean) => "" | "";
32
32
  conditionOptionsSetting?: undefined;
33
33
  })[];
34
34
  };
@@ -11,5 +11,4 @@ export interface LogisticsCustomerCodeOption extends LogisticsCustomerCodeRecord
11
11
  }
12
12
  export declare const JD_LOGISTICS_COMPANY_CODES: readonly ["JD", "JDKY"];
13
13
  export declare const isJdLogisticsCompany: (company?: string) => boolean;
14
- export declare const getJdCustomerCodeType: (company?: string) => LogisticsCustomerCodeType | undefined;
15
- export declare const getJdCustomerCodeOptions: (records?: LogisticsCustomerCodeRecord[], company?: string) => LogisticsCustomerCodeOption[];
14
+ export declare const getJdCustomerCodeOptions: (records?: LogisticsCustomerCodeRecord[]) => LogisticsCustomerCodeOption[];
@@ -8,18 +8,10 @@ export var JD_LOGISTICS_COMPANY_CODES = ["JD", "JDKY"];
8
8
  export var isJdLogisticsCompany = function isJdLogisticsCompany(company) {
9
9
  return JD_LOGISTICS_COMPANY_CODES.includes(company);
10
10
  };
11
- export var getJdCustomerCodeType = function getJdCustomerCodeType(company) {
12
- if (company === "JD") return "K";
13
- if (company === "JDKY") return "EBU";
14
- return undefined;
15
- };
16
11
  export var getJdCustomerCodeOptions = function getJdCustomerCodeOptions() {
17
12
  var records = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
18
- var company = arguments.length > 1 ? arguments[1] : undefined;
19
- var customerCodeType = getJdCustomerCodeType(company);
20
- if (!customerCodeType) return [];
21
13
  return records.filter(function (item) {
22
- return item.cpCode === "JD" && item.customerCodeType === customerCodeType && !!item.customerCode;
14
+ return item.cpCode === "JD" && !!item.customerCode;
23
15
  }).map(function (item) {
24
16
  return _objectSpread(_objectSpread({}, item), {}, {
25
17
  label: item.remark ? "".concat(item.customerCode, "\uFF08").concat(item.remark, "\uFF09") : "".concat(item.customerCode),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "2.10.9-beta.20",
3
+ "version": "2.10.9-beta.23",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "6261fb46d01f2b7d9d58992ce851fa25866a60eb",
44
+ "gitHead": "04e1e62b6cb964e5d1f9b9f2cb30c45c30d9c244",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }