@kmkf-fe-packages/services-components 0.6.3-alpha.57 → 0.6.3-alpha.59
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/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +2 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +2 -2
- package/dist/esm/components/ExpressCode/index.d.ts +6 -6
- package/dist/esm/components/ExpressCode/index.js +9 -9
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +2 -2
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode,
|
|
2
|
+
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
|
|
3
3
|
title?: string | undefined;
|
|
4
4
|
modelWidth?: string | number | undefined;
|
|
5
5
|
interceptCompany: string;
|
|
6
6
|
interceptCode: string;
|
|
7
|
-
|
|
7
|
+
interceptSenderMobile: string | number;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
export default QueryLogisticsTrack;
|
|
@@ -13,7 +13,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
13
13
|
modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
|
|
14
14
|
interceptCompany = _ref.interceptCompany,
|
|
15
15
|
interceptCode = _ref.interceptCode,
|
|
16
|
-
|
|
16
|
+
interceptSenderMobile = _ref.interceptSenderMobile;
|
|
17
17
|
var LogisticsList = function LogisticsList(list) {
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
19
|
style: {
|
|
@@ -45,7 +45,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
45
45
|
data: {
|
|
46
46
|
mailNo: interceptCode,
|
|
47
47
|
cpCode: interceptCompany,
|
|
48
|
-
mobile:
|
|
48
|
+
mobile: interceptSenderMobile
|
|
49
49
|
},
|
|
50
50
|
handleError: function handleError(msg) {
|
|
51
51
|
msg && message.error(msg);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class ExpressCode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,12 +11,12 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
constructor(options: PickOption);
|
|
14
|
-
renderClient: (record: any) => JSX.Element | null;
|
|
15
|
-
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
|
-
renderLog: (r: Record) => JSX.Element | null;
|
|
14
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
17
|
getComponentValue: (r: Record) => any;
|
|
18
18
|
renderExport: (value: string, record: Record) => any;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
20
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
21
|
type: string;
|
|
22
22
|
id: string;
|
|
@@ -5,11 +5,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
|
|
9
|
-
import { Input } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Input } from "antd";
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull, filterFn as _filterFn } from
|
|
12
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
13
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
14
14
|
var _this = this,
|
|
15
15
|
_this$componentConfig5;
|
|
@@ -32,7 +32,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
32
32
|
});
|
|
33
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
34
|
var _record$_this$id;
|
|
35
|
-
return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id :
|
|
35
|
+
return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--");
|
|
36
36
|
});
|
|
37
37
|
_defineProperty(this, "renderLog", function (r) {
|
|
38
38
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -43,7 +43,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
43
43
|
});
|
|
44
44
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
45
45
|
var _record$_this$id2;
|
|
46
|
-
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 :
|
|
46
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
47
47
|
});
|
|
48
48
|
_defineProperty(this, "editRender", function () {
|
|
49
49
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
@@ -52,7 +52,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
52
52
|
name: _this.id,
|
|
53
53
|
rules: _this.rules,
|
|
54
54
|
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,
|
|
55
|
-
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) ===
|
|
55
|
+
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === "EXPRESS_WAYBILL_CODE" ? /*#__PURE__*/React.createElement(Input, null) : null
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "filterConfig", function (item) {
|
|
@@ -61,7 +61,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
61
61
|
type: item.type,
|
|
62
62
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
63
63
|
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
64
|
-
filterComponentType:
|
|
64
|
+
filterComponentType: "Input",
|
|
65
65
|
filterFn: function filterFn(value) {
|
|
66
66
|
return function (i) {
|
|
67
67
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
@@ -78,10 +78,10 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
78
78
|
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
79
79
|
return Promise.resolve();
|
|
80
80
|
}
|
|
81
|
-
return Promise.reject(new Error(
|
|
81
|
+
return Promise.reject(new Error("只能输入数字和字母"));
|
|
82
82
|
}
|
|
83
83
|
}] : [];
|
|
84
|
-
this.align =
|
|
84
|
+
this.align = "left";
|
|
85
85
|
this.width = 200;
|
|
86
86
|
this.isCombinationComponent = false;
|
|
87
87
|
this.children = [];
|
|
@@ -33,13 +33,13 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
33
33
|
var _this$expressIntercep;
|
|
34
34
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
35
35
|
var interceptCode = "".concat(_this.parentId, "_interceptCode");
|
|
36
|
-
var
|
|
36
|
+
var interceptSenderMobile = "".concat(_this.parentId, "_interceptSenderMobile");
|
|
37
37
|
var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[_this.id])];
|
|
38
38
|
return /*#__PURE__*/React.createElement("div", null, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
39
39
|
modelWidth: w,
|
|
40
40
|
interceptCompany: record[_this.companyId],
|
|
41
41
|
interceptCode: record[interceptCode],
|
|
42
|
-
|
|
42
|
+
interceptSenderMobile: record[interceptSenderMobile]
|
|
43
43
|
}) : null);
|
|
44
44
|
});
|
|
45
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -34,7 +34,7 @@ var ColumnHeader = function ColumnHeader(_ref) {
|
|
|
34
34
|
style: {
|
|
35
35
|
color: "#ff4d4f"
|
|
36
36
|
}
|
|
37
|
-
}, "\
|
|
37
|
+
}, "\u8F6C\u5355\u6216\u4FEE\u6539\u5730\u5740\u8F6C\u5BC4/\u5DF2\u7B7E\u6536/\u4ECE\u5FEB\u9012\u67DC\u6216\u8005\u9A7F\u7AD9\u53D6\u51FA/\u9000\u56DE\u7B7E\u6536/\u5305\u88F9\u5F02\u5E38/\u62D2\u6536/\u6D3E\u4EF6\u5F02\u5E38/\u6EDE\u7559\u4EF6/\u95EE\u9898\u4EF6/\u9000\u56DE\u4EF6/\u7834\u635F/\u63FD\u4EF6\u53D6\u6D88 \u662F\u6700\u7EC8\u72B6\u6001\uFF0C\u4E0D\u518D\u505A\u66F4\u65B0\uFF0C\u53EF\u901A\u8FC7\u67E5\u8BE2\u7269\u6D41\u8F68\u8FF9\u6765\u83B7\u53D6\u6700\u65B0\u7269\u6D41\u72B6\u6001"), "\uFF09\uFF0C\u53EF\u4EE5\u901A\u8FC7\u67E5\u770B\u8BE5\u72B6\u6001\u6765\u5224\u65AD\u6B64\u6B21\u62E6\u622A\u662F\u5426\u6210\u529F\uFF08\u5BF9\u5173\u7CFB\u5982\u4E0B\uFF09"), /*#__PURE__*/React.createElement("p", null, "1.", /*#__PURE__*/React.createElement("b", {
|
|
38
38
|
style: {
|
|
39
39
|
color: "#1890ff"
|
|
40
40
|
}
|
|
@@ -124,7 +124,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
124
124
|
return Promise.reject(new Error("请填写发件人手机号"));
|
|
125
125
|
}
|
|
126
126
|
if (showSender && value !== null && value !== void 0 && value.interceptSenderMobile && !(value !== null && value !== void 0 && (_value$interceptSende = value.interceptSenderMobile) !== null && _value$interceptSende !== void 0 && _value$interceptSende.match(/^[1][0-9]{10}$/))) {
|
|
127
|
-
return Promise.reject(new Error("
|
|
127
|
+
return Promise.reject(new Error("请填写正确的发件人手机号"));
|
|
128
128
|
}
|
|
129
129
|
return Promise.resolve();
|
|
130
130
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export { default as Handler } from './components/Handler';
|
|
|
46
46
|
export { default as CompletedUser } from './components/CompletedUser';
|
|
47
47
|
export { factory } from './factory';
|
|
48
48
|
export { default as PlatformAvatar } from './commonComponents/PlatformAvatar';
|
|
49
|
+
export { default as PlatBuyer } from './commonComponents/PlatBuyer';
|
|
49
50
|
export { default as ShopList } from './commonComponents/ShopList';
|
|
50
51
|
export { default as OperationLog } from './commonComponents/OperationLog';
|
|
51
52
|
export { default as GetFormItem } from './components/GetFormItem';
|
package/dist/esm/index.js
CHANGED
|
@@ -46,6 +46,7 @@ export { default as Handler } from "./components/Handler";
|
|
|
46
46
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
47
47
|
export { factory } from "./factory";
|
|
48
48
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
49
|
+
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
|
49
50
|
export { default as ShopList } from "./commonComponents/ShopList";
|
|
50
51
|
export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
51
52
|
export { default as GetFormItem } from "./components/GetFormItem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.6.3-alpha.
|
|
3
|
+
"version": "0.6.3-alpha.59",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.6.3-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.6.3-alpha.59",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.6.3-alpha.59"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9158065bef0aecfbd31d70ed129146ff51968fd4"
|
|
44
44
|
}
|