@kmkf-fe-packages/services-components 2.0.19-beta.1 → 2.0.21

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/components/BS/common/BsMemo.js +0 -1
  3. package/dist/esm/components/BS/common/BsType.js +0 -1
  4. package/dist/esm/components/Common/constants/gy.js +0 -66
  5. package/dist/esm/components/Common/index.js +1 -1
  6. package/dist/esm/components/CommonHeaderGood/index.js +0 -98
  7. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  8. package/dist/esm/components/LogisticsInterception/index.d.ts +0 -6
  9. package/dist/esm/components/LogisticsInterception/index.js +8 -19
  10. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -4
  11. package/dist/esm/components/LogisticsMoreInterception/index.js +3 -10
  12. package/dist/esm/components/MsgStatus/index.js +2 -7
  13. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
  14. package/dist/esm/components/Payment/PaymentAmount.js +4 -0
  15. package/dist/esm/components/Select/index.d.ts +1 -1
  16. package/dist/esm/components/Select/index.js +6 -9
  17. package/dist/esm/factory.d.ts +2 -2
  18. package/dist/esm/factory.js +1 -4
  19. package/dist/esm/index.d.ts +0 -1
  20. package/dist/esm/index.js +0 -1
  21. package/package.json +6 -6
  22. package/dist/esm/components/GY/GyReturn/index.d.ts +0 -57
  23. package/dist/esm/components/GY/GyReturn/index.js +0 -181
  24. package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.d.ts +0 -43
  25. package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.js +0 -110
  26. package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
  27. package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.js +0 -84
  28. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.d.ts +0 -44
  29. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.js +0 -113
  30. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
  31. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.js +0 -83
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.19-beta.1",
3
+ "version": "2.0.21",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
+ "sync": "yarn build && yalc push",
10
11
  "build": "yarn run lint && father build",
11
12
  "lint": "eslint '**/*.{ts,tsx}'",
12
- "lint:fix": "eslint --fix '**/*.{ts,tsx}'",
13
- "sync": "yarn build && yalc push"
13
+ "lint:fix": "eslint --fix '**/*.{ts,tsx}'"
14
14
  },
15
15
  "lint-staged": {
16
16
  "*.{js,jsx,less,md,json}": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.19-beta.1",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.0",
24
+ "@kmkf-fe-packages/basic-components": "2.0.21",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.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": "92f1d1fa89d7b1798b11e4bebdd679a4fa8987d4",
44
+ "gitHead": "6fcba2a199a5208a0151f4b84cf9566693574224",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,57 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
- import React from "react";
3
- import CommonHeaderGoods from "../../CommonHeaderGood";
4
- import { BsType, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
5
- declare class GyReturn implements ComponentInterface {
6
- name: string;
7
- id: string;
8
- sortField: string;
9
- type: string;
10
- rules: any[];
11
- componentConfig: ComponentInterface["componentConfig"];
12
- effects: ComponentInterface["effects"];
13
- isCombinationComponent: boolean;
14
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- gyType: BsType;
19
- systemOrderNo: SystemOrderNo;
20
- returnGoods: BsHeaderGood | CommonHeaderGoods;
21
- constructor(options: PickOption);
22
- renderClient: (record: any) => React.JSX.Element | null;
23
- renderPc: () => null;
24
- renderLog: (r: Record) => React.JSX.Element;
25
- getComponentValue: (r: Record) => {
26
- [key: string]: any;
27
- };
28
- renderExport: () => null;
29
- editRender: (p: any) => React.JSX.Element;
30
- filterConfig: (item: ColumnConfig) => ({
31
- searchDefaultConditions: "in";
32
- type: string;
33
- id: string;
34
- name: string;
35
- filterComponentType: "Cascader";
36
- props: {
37
- options: any[] | undefined;
38
- fieldNames: {
39
- label: string;
40
- value: string;
41
- children: string;
42
- };
43
- };
44
- formatFilterValue: (val: Array<string>) => string[] | undefined;
45
- filterFn: (value: string) => (i: Record) => boolean;
46
- } | {
47
- searchDefaultConditions: "like";
48
- type: string;
49
- id: string;
50
- name: string;
51
- filterComponentType: "Input";
52
- props?: undefined;
53
- formatFilterValue?: undefined;
54
- filterFn?: undefined;
55
- })[];
56
- }
57
- export default GyReturn;
@@ -1,181 +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 } from "@kmkf-fe-packages/kmkf-utils";
15
- import { SYMBOL } from "../../../constant";
16
- import { BsGoodsTable } from "../../Common";
17
- import CommonHeaderGoods from "../../CommonHeaderGood";
18
- import { GyReturn as Return } from "@kmkf-fe-packages/basic-components";
19
- import { BsType, SystemOrderNo } from "../../BS/common/index";
20
- var typeMap = {
21
- GY_RETURN_GOODS: {
22
- key: "gyReturnGoods",
23
- name: "管易",
24
- typeName: "gyReturnType",
25
- systemOrderNo: "gySystemOrderNo",
26
- errMsg: "请选择管易退货商品"
27
- }
28
- };
29
- var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
30
- var _this = this,
31
- _typeMap$options$type,
32
- _typeMap$options$type2,
33
- _typeMap$options$type3,
34
- _this$componentConfig6;
35
- _classCallCheck(this, GyReturn);
36
- _defineProperty(this, "name", void 0);
37
- _defineProperty(this, "id", void 0);
38
- _defineProperty(this, "sortField", void 0);
39
- _defineProperty(this, "type", void 0);
40
- _defineProperty(this, "rules", void 0);
41
- _defineProperty(this, "componentConfig", void 0);
42
- _defineProperty(this, "effects", void 0);
43
- _defineProperty(this, "isCombinationComponent", void 0);
44
- _defineProperty(this, "formField", void 0);
45
- _defineProperty(this, "canSort", void 0);
46
- _defineProperty(this, "children", void 0);
47
- _defineProperty(this, "dataType", void 0);
48
- _defineProperty(this, "gyType", void 0);
49
- _defineProperty(this, "systemOrderNo", void 0);
50
- _defineProperty(this, "returnGoods", void 0);
51
- _defineProperty(this, "renderClient", function (record) {
52
- var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
53
- return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.gyType.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
54
- id: _this.id,
55
- label: _this.name,
56
- value: /*#__PURE__*/React.createElement(BsGoodsTable, {
57
- type: _this.type,
58
- list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
59
- showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
60
- })
61
- }) : null) : null;
62
- });
63
- _defineProperty(this, "renderPc", function () {
64
- return null;
65
- });
66
- _defineProperty(this, "renderLog", function (r) {
67
- var _typeMap$_this$type3, _r, _typeMap$_this$type4, _typeMap$_this$type5, _this$componentConfig2;
68
- return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.systemOrderNo)] ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7:", _this.systemOrderNo.renderLog(r))) : null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u9000\u8D27\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
69
- type: _this.type,
70
- list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) || [],
71
- showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
72
- })) : null);
73
- });
74
- _defineProperty(this, "getComponentValue", function (r) {
75
- var _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11;
76
- var obj = {};
77
- obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.typeName)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.typeName)];
78
- obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
79
- obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.systemOrderNo)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.systemOrderNo)];
80
- return obj;
81
- });
82
- _defineProperty(this, "renderExport", function () {
83
- return null;
84
- });
85
- _defineProperty(this, "editRender", function (p) {
86
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
87
- return /*#__PURE__*/React.createElement(GetFormItem, {
88
- title: _this.name,
89
- name: _this.id,
90
- rules: _this.rules,
91
- required: false,
92
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
93
- display: p === null || p === void 0 ? void 0 : p.display,
94
- 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 : "",
95
- component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
96
- maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
97
- shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
98
- shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
99
- companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
100
- width: "90%",
101
- type: _this.type
102
- }))
103
- });
104
- });
105
- _defineProperty(this, "filterConfig", function (item) {
106
- var _item$templateConfig;
107
- return [{
108
- searchDefaultConditions: SYMBOL.in,
109
- type: item.type,
110
- id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
111
- name: "".concat(item.name, "-\u9000\u8D27\u7C7B\u578B"),
112
- filterComponentType: "Cascader",
113
- props: {
114
- options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
115
- fieldNames: {
116
- label: "label",
117
- value: "value",
118
- children: "children"
119
- }
120
- },
121
- formatFilterValue: function formatFilterValue(val) {
122
- if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
123
- return [val[val.length - 1]];
124
- }
125
- },
126
- filterFn: function filterFn(value) {
127
- return function (i) {
128
- var _typeMap$_this$type12;
129
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.typeName)), value);
130
- };
131
- }
132
- }, {
133
- searchDefaultConditions: SYMBOL.like,
134
- type: item.type,
135
- id: "".concat(item.id, "_").concat(typeMap[_this.type].systemOrderNo),
136
- name: "".concat(item.name, "-\u9000\u8D27\u7CFB\u7EDF\u8BA2\u5355\u53F7"),
137
- filterComponentType: "Input"
138
- }, {
139
- searchDefaultConditions: SYMBOL.like,
140
- type: item.type,
141
- id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
142
- name: "".concat(_this.name),
143
- filterComponentType: "Input"
144
- }];
145
- });
146
- this.name = options.name;
147
- this.id = options.id;
148
- this.sortField = "".concat(options.id);
149
- this.formField = "".concat(options.id);
150
- this.type = options.type;
151
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
152
- this.isCombinationComponent = true;
153
- this.canSort = false;
154
- this.gyType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
155
- id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
156
- name: "退货类型"
157
- }));
158
- this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
159
- id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.systemOrderNo),
160
- name: "退货系统订单号"
161
- }));
162
- this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
163
- id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.key),
164
- name: "商品信息"
165
- }));
166
- this.children = [this.gyType, this.systemOrderNo, this.returnGoods];
167
- this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
168
- this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
169
- required: true,
170
- validator: function validator(_, value) {
171
- var _value, _typeMap$options$type4;
172
- if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key)]) !== null && _value !== void 0 && _value.length)) {
173
- var _typeMap$options$type5;
174
- return Promise.reject(new Error("".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.errMsg)));
175
- }
176
- return Promise.resolve();
177
- }
178
- }] : [];
179
- this.dataType = "object";
180
- });
181
- export default GyReturn;
@@ -1,43 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
4
- declare class InterceptLogisticsUserKCode implements ComponentInterface {
5
- name: string;
6
- parentId: string;
7
- id: string;
8
- sortField: string;
9
- companyId: string;
10
- type: string;
11
- rules: any[];
12
- componentConfig: ComponentInterface["componentConfig"];
13
- effects: ComponentInterface["effects"];
14
- align: ALignType;
15
- width: number;
16
- isCombinationComponent: boolean;
17
- formField: string;
18
- canSort: boolean;
19
- children: ComponentInterface[];
20
- logisticsAddress: InstanceType<typeof LogisticsAddressData>;
21
- dataType: ComponentInterface["dataType"];
22
- options: ComponentInterface["options"];
23
- constructor(options: PickOption);
24
- getComponentValue: (r: Record) => any;
25
- renderClient: (record: any) => React.JSX.Element | null;
26
- renderPc: (value: any, record: Record) => any;
27
- renderLog: (r: Record) => any[] | null;
28
- renderExport: (value: any, record: Record) => any;
29
- editRender: () => null;
30
- filterConfig: (item: ColumnConfig) => {
31
- searchDefaultConditions: "in";
32
- type: string;
33
- id: string;
34
- name: string;
35
- filterComponentType: "MultipleSelect";
36
- props: {
37
- options: any[];
38
- };
39
- formatFilterValue: (value: string[]) => string[];
40
- filterFn: (value: string[]) => (i: Record) => boolean;
41
- };
42
- }
43
- export default InterceptLogisticsUserKCode;
@@ -1,110 +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 _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); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
- 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; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- 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); }
8
- import React from "react";
9
- import ItemView from "../../commonComponents/ItemView";
10
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
- import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
12
- import { SYMBOL } from "../../constant";
13
- var InterceptLogisticsUserKCode = /*#__PURE__*/_createClass(function InterceptLogisticsUserKCode(options) {
14
- var _this = this;
15
- _classCallCheck(this, InterceptLogisticsUserKCode);
16
- _defineProperty(this, "name", void 0);
17
- _defineProperty(this, "parentId", void 0);
18
- _defineProperty(this, "id", void 0);
19
- _defineProperty(this, "sortField", void 0);
20
- _defineProperty(this, "companyId", void 0);
21
- _defineProperty(this, "type", void 0);
22
- _defineProperty(this, "rules", void 0);
23
- _defineProperty(this, "componentConfig", void 0);
24
- _defineProperty(this, "effects", void 0);
25
- _defineProperty(this, "align", void 0);
26
- _defineProperty(this, "width", 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, "logisticsAddress", void 0);
32
- _defineProperty(this, "dataType", void 0);
33
- _defineProperty(this, "options", void 0);
34
- _defineProperty(this, "getComponentValue", function (r) {
35
- return r === null || r === void 0 ? void 0 : r[_this.id];
36
- });
37
- _defineProperty(this, "renderClient", function (record) {
38
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
39
- id: _this.id,
40
- label: _this.name,
41
- value: record[_this.id]
42
- }) : null;
43
- });
44
- _defineProperty(this, "renderPc", function (value, record) {
45
- var _record$_this$id;
46
- return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
47
- });
48
- _defineProperty(this, "renderLog", function (r) {
49
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
50
- return [r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
51
- });
52
- _defineProperty(this, "renderExport", function (value, record) {
53
- var _record$_this$id2;
54
- return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
55
- });
56
- _defineProperty(this, "editRender", function () {
57
- return null;
58
- });
59
- _defineProperty(this, "filterConfig", function (item) {
60
- return {
61
- searchDefaultConditions: SYMBOL.in,
62
- type: item.type,
63
- id: "".concat(item.id, "_interceptLogisticsUserKCode"),
64
- name: "".concat(item.name, "-\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09"),
65
- filterComponentType: "MultipleSelect",
66
- props: {
67
- options: _this.options || []
68
- },
69
- formatFilterValue: function formatFilterValue(value) {
70
- var _value$map;
71
- return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
72
- return v === null || v === void 0 ? void 0 : v.split(",");
73
- })) === null || _value$map === void 0 ? void 0 : _value$map.flat();
74
- },
75
- filterFn: function filterFn(value) {
76
- return function (i) {
77
- var _value$map2, _value$map2$flat;
78
- return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
79
- return v === null || v === void 0 ? void 0 : v.split(",");
80
- })) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsUserKCode"));
81
- };
82
- }
83
- };
84
- });
85
- this.name = "客户编码(K码)";
86
- this.parentId = options.id;
87
- this.id = "".concat(options.id, "_interceptLogisticsUserKCode");
88
- this.sortField = "".concat(options.id, "_interceptLogisticsUserKCode");
89
- this.formField = "".concat(options.id, "_interceptLogisticsUserKCode");
90
- this.companyId = "".concat(options.id, "_interceptCompany");
91
- this.type = options.type;
92
- this.componentConfig = options.componentConfig;
93
- this.rules = [];
94
- this.align = "left";
95
- this.width = 220;
96
- this.isCombinationComponent = false;
97
- this.canSort = true;
98
- this.children = [];
99
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
100
- this.logisticsAddress = LogisticsAddressData.getInstance();
101
- this.dataType = "string";
102
- this.options = (this.logisticsAddress.getAddressData() || []).filter(function (item) {
103
- return item.userKCode;
104
- });
105
- }
106
-
107
- //物流轨迹查询
108
- );
109
-
110
- export default InterceptLogisticsUserKCode;
@@ -1,35 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class InterceptLogisticsUserSecretKey implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- companyId: string;
7
- type: string;
8
- rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- effects: ComponentInterface["effects"];
11
- align: ALignType;
12
- width: number;
13
- isCombinationComponent: boolean;
14
- sortField: string;
15
- formField: string;
16
- canSort: boolean;
17
- dataType: ComponentInterface["dataType"];
18
- children: ComponentInterface[];
19
- constructor(options: PickOption);
20
- getComponentValue: (r: Record) => any;
21
- renderClient: (record: any) => React.JSX.Element | null;
22
- renderPc: (value: any, record: Record) => any;
23
- renderLog: (r: Record) => any;
24
- renderExport: (value: any, record: Record) => any;
25
- editRender: () => null;
26
- filterConfig: (item: ColumnConfig) => {
27
- searchDefaultConditions: "like";
28
- type: string;
29
- id: string;
30
- name: string;
31
- filterComponentType: "Input";
32
- filterFn: (value: string) => (i: Record) => boolean;
33
- };
34
- }
35
- export default InterceptLogisticsUserSecretKey;
@@ -1,84 +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 _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); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
- 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; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- 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); }
8
- import React from "react";
9
- import ItemView from "../../commonComponents/ItemView";
10
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
- import { SYMBOL } from "../../constant";
12
- var InterceptLogisticsUserSecretKey = /*#__PURE__*/_createClass(function InterceptLogisticsUserSecretKey(options) {
13
- var _this = this;
14
- _classCallCheck(this, InterceptLogisticsUserSecretKey);
15
- _defineProperty(this, "name", void 0);
16
- _defineProperty(this, "id", void 0);
17
- _defineProperty(this, "companyId", void 0);
18
- _defineProperty(this, "type", void 0);
19
- _defineProperty(this, "rules", void 0);
20
- _defineProperty(this, "componentConfig", void 0);
21
- _defineProperty(this, "effects", void 0);
22
- _defineProperty(this, "align", void 0);
23
- _defineProperty(this, "width", void 0);
24
- _defineProperty(this, "isCombinationComponent", void 0);
25
- _defineProperty(this, "sortField", void 0);
26
- _defineProperty(this, "formField", void 0);
27
- _defineProperty(this, "canSort", void 0);
28
- _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "children", void 0);
30
- _defineProperty(this, "getComponentValue", function (r) {
31
- return r === null || r === void 0 ? void 0 : r[_this.id];
32
- });
33
- _defineProperty(this, "renderClient", function (record) {
34
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
- id: _this.id,
36
- label: _this.name,
37
- value: record === null || record === void 0 ? void 0 : record[_this.id]
38
- }) : null;
39
- });
40
- _defineProperty(this, "renderPc", function (value, record) {
41
- return record === null || record === void 0 ? void 0 : record[_this.id];
42
- });
43
- _defineProperty(this, "renderLog", function (r) {
44
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
45
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
46
- });
47
- _defineProperty(this, "renderExport", function (value, record) {
48
- var _record;
49
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
50
- });
51
- _defineProperty(this, "editRender", function () {
52
- return null;
53
- });
54
- _defineProperty(this, "filterConfig", function (item) {
55
- return {
56
- searchDefaultConditions: SYMBOL.like,
57
- type: item.type,
58
- id: "".concat(item.id, "_interceptLogisticsUserSecretKey"),
59
- name: "".concat(item.name, "-\u5BA2\u6237\u5BC6\u94A5"),
60
- filterComponentType: "Input",
61
- filterFn: function filterFn(value) {
62
- return function (i) {
63
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsUserSecretKey")).includes(value);
64
- };
65
- }
66
- };
67
- });
68
- this.name = "客户密钥";
69
- this.id = "".concat(options.id, "_interceptLogisticsUserSecretKey");
70
- this.companyId = "".concat(options.id, "_interceptCompany");
71
- this.formField = "".concat(options.id, "_interceptLogisticsUserSecretKey");
72
- this.sortField = "".concat(options.id, "_interceptLogisticsUserSecretKey");
73
- this.dataType = "string";
74
- this.type = options.type;
75
- this.componentConfig = options.componentConfig;
76
- this.rules = [];
77
- this.align = "left";
78
- this.width = 200;
79
- this.isCombinationComponent = false;
80
- this.canSort = true;
81
- this.children = [];
82
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
83
- });
84
- export default InterceptLogisticsUserSecretKey;
@@ -1,44 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
4
- declare class InterceptLogisticsUserKCode implements ComponentInterface {
5
- name: string;
6
- parentId: string;
7
- id: string;
8
- sortField: string;
9
- companyId: string;
10
- type: string;
11
- rules: any[];
12
- componentConfig: ComponentInterface["componentConfig"];
13
- effects: ComponentInterface["effects"];
14
- align: ALignType;
15
- width: number;
16
- isCombinationComponent: boolean;
17
- formField: string;
18
- canSort: boolean;
19
- children: ComponentInterface[];
20
- logisticsAddress: InstanceType<typeof LogisticsAddressData>;
21
- dataType: ComponentInterface["dataType"];
22
- options: ComponentInterface["options"];
23
- constructor(options: PickOption);
24
- getComponentValue: (r: Record) => any;
25
- renderUserKCode: (record: any) => React.JSX.Element;
26
- renderClient: () => null;
27
- renderPc: (value: any, record: Record) => React.JSX.Element | "--";
28
- renderLog: () => null;
29
- renderExport: (value: any, record: Record) => any;
30
- editRender: () => null;
31
- filterConfig: (item: ColumnConfig) => {
32
- searchDefaultConditions: "in";
33
- type: string;
34
- id: string;
35
- name: string;
36
- filterComponentType: "MultipleSelect";
37
- props: {
38
- options: any[];
39
- };
40
- formatFilterValue: (value: string[]) => string[];
41
- filterFn: (value: string[]) => (i: Record) => boolean;
42
- };
43
- }
44
- export default InterceptLogisticsUserKCode;