@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.
- package/README.md +1 -1
- package/dist/esm/components/BS/common/BsMemo.js +0 -1
- package/dist/esm/components/BS/common/BsType.js +0 -1
- package/dist/esm/components/Common/constants/gy.js +0 -66
- package/dist/esm/components/Common/index.js +1 -1
- package/dist/esm/components/CommonHeaderGood/index.js +0 -98
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -6
- package/dist/esm/components/LogisticsInterception/index.js +8 -19
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -4
- package/dist/esm/components/LogisticsMoreInterception/index.js +3 -10
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -1
- package/dist/esm/components/Select/index.js +6 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -4
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +6 -6
- package/dist/esm/components/GY/GyReturn/index.d.ts +0 -57
- package/dist/esm/components/GY/GyReturn/index.js +0 -181
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.d.ts +0 -43
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.js +0 -110
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.js +0 -84
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.d.ts +0 -44
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.js +0 -113
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.d.ts +0 -35
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.js +0 -83
|
@@ -1,113 +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 { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
import { SYMBOL } from "../../constant";
|
|
12
|
-
var InterceptLogisticsUserKCode = /*#__PURE__*/_createClass(function InterceptLogisticsUserKCode(options) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
_classCallCheck(this, InterceptLogisticsUserKCode);
|
|
15
|
-
_defineProperty(this, "name", void 0);
|
|
16
|
-
_defineProperty(this, "parentId", void 0);
|
|
17
|
-
_defineProperty(this, "id", void 0);
|
|
18
|
-
_defineProperty(this, "sortField", void 0);
|
|
19
|
-
_defineProperty(this, "companyId", void 0);
|
|
20
|
-
_defineProperty(this, "type", void 0);
|
|
21
|
-
_defineProperty(this, "rules", void 0);
|
|
22
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
23
|
-
_defineProperty(this, "effects", void 0);
|
|
24
|
-
_defineProperty(this, "align", void 0);
|
|
25
|
-
_defineProperty(this, "width", void 0);
|
|
26
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
-
_defineProperty(this, "formField", void 0);
|
|
28
|
-
_defineProperty(this, "canSort", void 0);
|
|
29
|
-
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "logisticsAddress", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "options", void 0);
|
|
33
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
34
|
-
var _logisticsInterceptLi;
|
|
35
|
-
var logisticsInterceptList = (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || [];
|
|
36
|
-
return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : (_logisticsInterceptLi = logisticsInterceptList.map(function (item) {
|
|
37
|
-
return item === null || item === void 0 ? void 0 : item.userKCode;
|
|
38
|
-
})) === null || _logisticsInterceptLi === void 0 ? void 0 : _logisticsInterceptLi.join(",");
|
|
39
|
-
});
|
|
40
|
-
_defineProperty(this, "renderUserKCode", function (record) {
|
|
41
|
-
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
|
|
42
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
43
|
-
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item !== null && item !== void 0 && item.userKCode ? item === null || item === void 0 ? void 0 : item.userKCode : "--");
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(this, "renderClient", function () {
|
|
47
|
-
return null;
|
|
48
|
-
});
|
|
49
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
|
-
return !isNull(record[_this.id]) ? _this.renderUserKCode(record) : "--";
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(this, "renderLog", function () {
|
|
53
|
-
return null;
|
|
54
|
-
});
|
|
55
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
|
-
var _this$getComponentVal;
|
|
57
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
58
|
-
});
|
|
59
|
-
_defineProperty(this, "editRender", function () {
|
|
60
|
-
return null;
|
|
61
|
-
});
|
|
62
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
63
|
-
return {
|
|
64
|
-
searchDefaultConditions: SYMBOL.in,
|
|
65
|
-
type: item.type,
|
|
66
|
-
id: "".concat(item.id, "_logisticsInterceptList"),
|
|
67
|
-
name: "".concat(item.name, "-\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09"),
|
|
68
|
-
filterComponentType: "MultipleSelect",
|
|
69
|
-
props: {
|
|
70
|
-
options: _this.options || []
|
|
71
|
-
},
|
|
72
|
-
formatFilterValue: function formatFilterValue(value) {
|
|
73
|
-
var _value$map;
|
|
74
|
-
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
|
|
75
|
-
return v === null || v === void 0 ? void 0 : v.split(",");
|
|
76
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.flat();
|
|
77
|
-
},
|
|
78
|
-
filterFn: function filterFn(value) {
|
|
79
|
-
return function (i) {
|
|
80
|
-
var _value$map2, _value$map2$flat;
|
|
81
|
-
return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
|
|
82
|
-
return v === null || v === void 0 ? void 0 : v.split(",");
|
|
83
|
-
})) === 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, "logisticsInterceptList"));
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
});
|
|
88
|
-
this.name = "客户编码(K码)";
|
|
89
|
-
this.parentId = options.id;
|
|
90
|
-
this.id = options.id;
|
|
91
|
-
this.sortField = options.id;
|
|
92
|
-
this.formField = options.id;
|
|
93
|
-
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
94
|
-
this.type = options.type;
|
|
95
|
-
this.componentConfig = options.componentConfig;
|
|
96
|
-
this.rules = [];
|
|
97
|
-
this.align = "left";
|
|
98
|
-
this.width = 220;
|
|
99
|
-
this.isCombinationComponent = false;
|
|
100
|
-
this.canSort = true;
|
|
101
|
-
this.children = [];
|
|
102
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
|
-
this.logisticsAddress = LogisticsAddressData.getInstance();
|
|
104
|
-
this.dataType = "string";
|
|
105
|
-
this.options = (this.logisticsAddress.getAddressData() || []).filter(function (item) {
|
|
106
|
-
return item.userKCode;
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
//物流轨迹查询
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
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
|
-
renderUserSecretKey: (record: any) => React.JSX.Element;
|
|
22
|
-
renderClient: () => null;
|
|
23
|
-
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
24
|
-
renderLog: () => null;
|
|
25
|
-
renderExport: (value: any, record: Record) => any;
|
|
26
|
-
editRender: () => null;
|
|
27
|
-
filterConfig: (item: ColumnConfig) => {
|
|
28
|
-
searchDefaultConditions: "like";
|
|
29
|
-
type: string;
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
filterComponentType: "Input";
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export default InterceptLogisticsUserSecretKey;
|
|
@@ -1,83 +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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import { SYMBOL } from "../../constant";
|
|
11
|
-
var InterceptLogisticsUserSecretKey = /*#__PURE__*/_createClass(function InterceptLogisticsUserSecretKey(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, InterceptLogisticsUserSecretKey);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "id", void 0);
|
|
16
|
-
_defineProperty(this, "companyId", void 0);
|
|
17
|
-
_defineProperty(this, "type", void 0);
|
|
18
|
-
_defineProperty(this, "rules", void 0);
|
|
19
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
-
_defineProperty(this, "effects", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "sortField", void 0);
|
|
25
|
-
_defineProperty(this, "formField", void 0);
|
|
26
|
-
_defineProperty(this, "canSort", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
30
|
-
var _logisticsInterceptLi;
|
|
31
|
-
var logisticsInterceptList = (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || [];
|
|
32
|
-
return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : (_logisticsInterceptLi = logisticsInterceptList.map(function (item) {
|
|
33
|
-
return item === null || item === void 0 ? void 0 : item.userSecretKey;
|
|
34
|
-
})) === null || _logisticsInterceptLi === void 0 ? void 0 : _logisticsInterceptLi.join(",");
|
|
35
|
-
});
|
|
36
|
-
_defineProperty(this, "renderUserSecretKey", function (record) {
|
|
37
|
-
var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
|
|
38
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item !== null && item !== void 0 && item.userSecretKey ? item === null || item === void 0 ? void 0 : item.userSecretKey : "--");
|
|
40
|
-
}));
|
|
41
|
-
});
|
|
42
|
-
_defineProperty(this, "renderClient", function () {
|
|
43
|
-
return null;
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
46
|
-
return !isNull(record[_this.id]) ? _this.renderUserSecretKey(record) : "--";
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(this, "renderLog", function () {
|
|
49
|
-
return null;
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
-
var _this$getComponentVal;
|
|
53
|
-
return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
|
|
54
|
-
});
|
|
55
|
-
_defineProperty(this, "editRender", function () {
|
|
56
|
-
return null;
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
59
|
-
return {
|
|
60
|
-
searchDefaultConditions: SYMBOL.like,
|
|
61
|
-
type: item.type,
|
|
62
|
-
id: "".concat(item.id, "_logisticsInterceptList"),
|
|
63
|
-
name: "".concat(item.name, "-\u5BA2\u6237\u5BC6\u94A5"),
|
|
64
|
-
filterComponentType: "Input"
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
this.name = "客户密钥";
|
|
68
|
-
this.id = options.id;
|
|
69
|
-
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
70
|
-
this.formField = options.id;
|
|
71
|
-
this.sortField = options.id;
|
|
72
|
-
this.dataType = "string";
|
|
73
|
-
this.type = options.type;
|
|
74
|
-
this.componentConfig = options.componentConfig;
|
|
75
|
-
this.rules = [];
|
|
76
|
-
this.align = "left";
|
|
77
|
-
this.width = 200;
|
|
78
|
-
this.isCombinationComponent = false;
|
|
79
|
-
this.canSort = true;
|
|
80
|
-
this.children = [];
|
|
81
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
82
|
-
});
|
|
83
|
-
export default InterceptLogisticsUserSecretKey;
|