@kmkf-fe-packages/services-components 0.8.16 → 0.8.17-alpha.1
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/components/BS/BsGoods/index.d.ts +1 -1
- package/dist/esm/components/BS/BsGoods/index.js +10 -5
- package/dist/esm/components/BS/BsReissue/index.d.ts +1 -1
- package/dist/esm/components/BS/BsReissue/index.js +9 -5
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +25 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +107 -0
- package/dist/esm/components/BS/common/index.d.ts +5 -5
- package/dist/esm/components/BS/common/index.js +0 -7
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +37 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +36 -0
- package/dist/esm/components/CommonTradeId/index.js +135 -0
- package/dist/esm/components/JST/JstLogistics/index.js +6 -0
- package/dist/esm/components/PostIng/index.js +4 -3
- package/dist/esm/components/ShopInput/index.d.ts +0 -1
- package/dist/esm/components/ShopInput/index.js +0 -2
- package/dist/esm/components/StatusSelect/index.d.ts +35 -0
- package/dist/esm/components/StatusSelect/index.js +178 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +14 -2
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/type.d.ts +3 -2
- package/package.json +4 -4
|
@@ -18,7 +18,7 @@ declare class BsGoods implements ComponentInterface {
|
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
renderPc: () => null;
|
|
21
|
-
renderLog: (r: Record) => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
22
|
getComponentValue: (r: Record) => any;
|
|
23
23
|
renderExport: () => null;
|
|
24
24
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -18,7 +18,7 @@ import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
19
|
var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
20
20
|
var _this = this,
|
|
21
|
-
_this$
|
|
21
|
+
_this$componentConfig4;
|
|
22
22
|
_classCallCheck(this, BsGoods);
|
|
23
23
|
_defineProperty(this, "name", void 0);
|
|
24
24
|
_defineProperty(this, "id", void 0);
|
|
@@ -48,7 +48,12 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
48
48
|
return null;
|
|
49
49
|
});
|
|
50
50
|
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
-
|
|
51
|
+
var _this$componentConfig2;
|
|
52
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")])) return null;
|
|
53
|
+
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
54
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")]) || [],
|
|
55
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
56
|
+
});
|
|
52
57
|
});
|
|
53
58
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
59
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")];
|
|
@@ -57,7 +62,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
57
62
|
return null;
|
|
58
63
|
});
|
|
59
64
|
_defineProperty(this, "editRender", function (p) {
|
|
60
|
-
var _this$
|
|
65
|
+
var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
|
|
61
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
67
|
title: _this.name,
|
|
63
68
|
name: _this.id,
|
|
@@ -65,7 +70,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
65
70
|
required: false,
|
|
66
71
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
72
|
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
68
|
-
maxLength: ((_this$
|
|
73
|
+
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
69
74
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
70
75
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
71
76
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
@@ -98,7 +103,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
98
103
|
}));
|
|
99
104
|
this.children = [this.bsGoods];
|
|
100
105
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
101
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
106
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
102
107
|
required: true,
|
|
103
108
|
validator: function validator(_, value) {
|
|
104
109
|
var _value$bsGoods;
|
|
@@ -20,7 +20,7 @@ declare class BsReissue implements ComponentInterface {
|
|
|
20
20
|
constructor(options: PickOption);
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
22
|
renderPc: () => null;
|
|
23
|
-
renderLog: (r: Record) =>
|
|
23
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderExport: () => null;
|
|
26
26
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -18,7 +18,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
19
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
20
20
|
var _this = this,
|
|
21
|
-
_this$
|
|
21
|
+
_this$componentConfig4;
|
|
22
22
|
_classCallCheck(this, BsReissue);
|
|
23
23
|
_defineProperty(this, "name", void 0);
|
|
24
24
|
_defineProperty(this, "id", void 0);
|
|
@@ -50,7 +50,11 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
50
50
|
return null;
|
|
51
51
|
});
|
|
52
52
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
-
|
|
53
|
+
var _this$componentConfig2;
|
|
54
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")]) || [],
|
|
56
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
57
|
+
})));
|
|
54
58
|
});
|
|
55
59
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
56
60
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")];
|
|
@@ -59,7 +63,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
59
63
|
return null;
|
|
60
64
|
});
|
|
61
65
|
_defineProperty(this, "editRender", function (p) {
|
|
62
|
-
var _this$
|
|
66
|
+
var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
|
|
63
67
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
64
68
|
title: _this.name,
|
|
65
69
|
name: _this.id,
|
|
@@ -67,7 +71,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
67
71
|
required: false,
|
|
68
72
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
69
73
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
70
|
-
maxLength: ((_this$
|
|
74
|
+
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
71
75
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
72
76
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
73
77
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
@@ -131,7 +135,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
131
135
|
}));
|
|
132
136
|
this.children = [this.bsType, this.bsMemo, this.reissueGoods];
|
|
133
137
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
134
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
138
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
135
139
|
required: true,
|
|
136
140
|
validator: function validator(_, value) {
|
|
137
141
|
var _value$bsReissueGoods;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class BsSystemOrder implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: () => null;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: () => null;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => never[];
|
|
24
|
+
}
|
|
25
|
+
export default BsSystemOrder;
|
|
@@ -0,0 +1,107 @@
|
|
|
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 } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { BsSystemOrder as Goods } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import { BsSystemOrderTable } from "../../Common";
|
|
17
|
+
import { BsHeaderChild } from "../common/index";
|
|
18
|
+
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
19
|
+
var _this = this,
|
|
20
|
+
_this$componentConfig;
|
|
21
|
+
_classCallCheck(this, BsSystemOrder);
|
|
22
|
+
_defineProperty(this, "name", void 0);
|
|
23
|
+
_defineProperty(this, "id", void 0);
|
|
24
|
+
_defineProperty(this, "sortField", void 0);
|
|
25
|
+
_defineProperty(this, "type", void 0);
|
|
26
|
+
_defineProperty(this, "rules", void 0);
|
|
27
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
28
|
+
_defineProperty(this, "effects", void 0);
|
|
29
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
31
|
+
_defineProperty(this, "canSort", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "children", void 0);
|
|
34
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
35
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
36
|
+
id: _this.id,
|
|
37
|
+
label: _this.name,
|
|
38
|
+
value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
39
|
+
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
|
|
40
|
+
})
|
|
41
|
+
})) : null;
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "renderPc", function () {
|
|
44
|
+
return null;
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
47
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSystemShowOrder")])) return null;
|
|
48
|
+
return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
49
|
+
value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSystemShowOrder")]
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
53
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderExport", function () {
|
|
56
|
+
return null;
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "editRender", function (p) {
|
|
59
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
|
+
title: _this.name,
|
|
61
|
+
name: _this.id,
|
|
62
|
+
rules: _this.rules,
|
|
63
|
+
required: false,
|
|
64
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
66
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
67
|
+
}))
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
71
|
+
return [];
|
|
72
|
+
});
|
|
73
|
+
this.name = options.name;
|
|
74
|
+
this.id = options.id;
|
|
75
|
+
this.sortField = "".concat(options.id, "_bsSystemShowOrder");
|
|
76
|
+
this.formField = "".concat(options.id, "_bsSystemShowOrder");
|
|
77
|
+
this.type = options.type;
|
|
78
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
79
|
+
this.isCombinationComponent = true;
|
|
80
|
+
this.canSort = false;
|
|
81
|
+
this.children = [new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
82
|
+
name: "单据类型",
|
|
83
|
+
id: "".concat(options.id, "_bsSystemShowOrder_billType"),
|
|
84
|
+
width: 150
|
|
85
|
+
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
|
+
name: "系统订单号",
|
|
87
|
+
id: "".concat(options.id, "_bsSystemShowOrder_billNo"),
|
|
88
|
+
width: 150
|
|
89
|
+
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
90
|
+
name: "标签",
|
|
91
|
+
id: "".concat(options.id, "_bsSystemShowOrder_billTag"),
|
|
92
|
+
width: 150
|
|
93
|
+
}))];
|
|
94
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
95
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
96
|
+
required: true,
|
|
97
|
+
validator: function validator(_, value) {
|
|
98
|
+
var _value$selectIds;
|
|
99
|
+
if (!value || !(value !== null && value !== void 0 && (_value$selectIds = value.selectIds) !== null && _value$selectIds !== void 0 && _value$selectIds.length)) {
|
|
100
|
+
return Promise.reject(new Error("请选择bs系统订单号"));
|
|
101
|
+
}
|
|
102
|
+
return Promise.resolve();
|
|
103
|
+
}
|
|
104
|
+
}] : [];
|
|
105
|
+
this.dataType = "object";
|
|
106
|
+
});
|
|
107
|
+
export default BsSystemOrder;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as BsType } from
|
|
2
|
-
export { default as BsMemo } from
|
|
3
|
-
export { default as BsHeaderPic } from
|
|
4
|
-
export { default as BsHeaderChild } from
|
|
5
|
-
export { default as BsHeaderGood } from
|
|
1
|
+
export { default as BsType } from "./BsType";
|
|
2
|
+
export { default as BsMemo } from "./BsMemo";
|
|
3
|
+
export { default as BsHeaderPic } from "./BsHeaderPic";
|
|
4
|
+
export { default as BsHeaderChild } from "./BsHeaderChild";
|
|
5
|
+
export { default as BsHeaderGood } from "./BsHeaderGood";
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export { default as BsType } from "./BsType";
|
|
2
2
|
export { default as BsMemo } from "./BsMemo";
|
|
3
3
|
export { default as BsHeaderPic } from "./BsHeaderPic";
|
|
4
|
-
// export { default as BsHeaderName } from "./BsHeaderName";
|
|
5
|
-
// export { default as BsHeaderCode } from "./BsHeaderCode";
|
|
6
|
-
// export { default as BsHeaderSku } from "./BsHeaderSku";
|
|
7
|
-
// export { default as BsHeaderMoney } from "./BsHeaderMoney";
|
|
8
|
-
// export { default as BsHeaderNumber } from "./BsHeaderNumber";
|
|
9
|
-
// export { default as BsHeaderShare } from "./BsHeaderShare";
|
|
10
|
-
// export { default as BsHeaderType } from "./BsHeaderType";
|
|
11
4
|
export { default as BsHeaderChild } from "./BsHeaderChild";
|
|
12
5
|
export { default as BsHeaderGood } from "./BsHeaderGood";
|
|
@@ -27,4 +27,5 @@ export declare const BsGoodsTable: ({ list, showHeader, text, }: {
|
|
|
27
27
|
text?: string | undefined;
|
|
28
28
|
}) => React.JSX.Element;
|
|
29
29
|
export declare const FileRender: ({ fileList }: any) => React.JSX.Element;
|
|
30
|
+
export declare const BsSystemOrderTable: ({ value }: any) => React.JSX.Element;
|
|
30
31
|
export {};
|
|
@@ -467,4 +467,41 @@ export var FileRender = function FileRender(_ref10) {
|
|
|
467
467
|
controls: true,
|
|
468
468
|
src: fileUrl
|
|
469
469
|
})));
|
|
470
|
+
};
|
|
471
|
+
export var BsSystemOrderTable = function BsSystemOrderTable(_ref11) {
|
|
472
|
+
var value = _ref11.value;
|
|
473
|
+
var columns = [{
|
|
474
|
+
dataIndex: "billType",
|
|
475
|
+
title: "单据类型"
|
|
476
|
+
}, {
|
|
477
|
+
dataIndex: "billNo",
|
|
478
|
+
title: "系统订单号"
|
|
479
|
+
}, {
|
|
480
|
+
dataIndex: "billTag",
|
|
481
|
+
title: "标签"
|
|
482
|
+
}];
|
|
483
|
+
var rowSelection = {
|
|
484
|
+
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
485
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
486
|
+
return {
|
|
487
|
+
disabled: true,
|
|
488
|
+
// Column configuration not to be checked
|
|
489
|
+
name: record.name
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
494
|
+
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
495
|
+
columns: columns,
|
|
496
|
+
rowSelection: rowSelection,
|
|
497
|
+
rowKey: "billNo",
|
|
498
|
+
size: "small",
|
|
499
|
+
pagination: false,
|
|
500
|
+
scroll: {
|
|
501
|
+
x: "100%"
|
|
502
|
+
},
|
|
503
|
+
locale: {
|
|
504
|
+
emptyText: "暂无数据"
|
|
505
|
+
}
|
|
506
|
+
});
|
|
470
507
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonTradeId implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
showContains: boolean;
|
|
10
|
+
onlyContainsString: boolean;
|
|
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
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
copyHandle: (text: string) => void;
|
|
21
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
24
|
+
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "in";
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "Input";
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
formatFilterValue: (input: string) => string[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export default CommonTradeId;
|
|
@@ -0,0 +1,135 @@
|
|
|
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 _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); }
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { message, Input } from "antd";
|
|
11
|
+
import { CopyOutlined } from "@ant-design/icons";
|
|
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 copy from "copy-to-clipboard";
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
var TRADE_ID_MAP = {
|
|
18
|
+
REISSUE_TRADE_ID: {
|
|
19
|
+
key: "reissueTradeId"
|
|
20
|
+
},
|
|
21
|
+
EXCHANGE_TRADE_ID: {
|
|
22
|
+
key: "exchangeTradeId"
|
|
23
|
+
},
|
|
24
|
+
RETURN_GOODS_TRADE_ID: {
|
|
25
|
+
key: "returnGoodsTradeId"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
|
|
29
|
+
var _this = this;
|
|
30
|
+
_classCallCheck(this, CommonTradeId);
|
|
31
|
+
_defineProperty(this, "name", void 0);
|
|
32
|
+
_defineProperty(this, "id", void 0);
|
|
33
|
+
_defineProperty(this, "sortField", void 0);
|
|
34
|
+
_defineProperty(this, "type", void 0);
|
|
35
|
+
_defineProperty(this, "rules", void 0);
|
|
36
|
+
_defineProperty(this, "showContains", void 0);
|
|
37
|
+
_defineProperty(this, "onlyContainsString", void 0);
|
|
38
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
39
|
+
_defineProperty(this, "effects", void 0);
|
|
40
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
41
|
+
_defineProperty(this, "formField", void 0);
|
|
42
|
+
_defineProperty(this, "canSort", void 0);
|
|
43
|
+
_defineProperty(this, "children", void 0);
|
|
44
|
+
_defineProperty(this, "dataType", void 0);
|
|
45
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
46
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
47
|
+
id: _this.id,
|
|
48
|
+
label: _this.name,
|
|
49
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
50
|
+
}) : null;
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "copyHandle", function (text) {
|
|
53
|
+
copy(text);
|
|
54
|
+
message.success("复制成功");
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
57
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)]) === undefined) {
|
|
58
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
59
|
+
}
|
|
60
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
onClick: function onClick(e) {
|
|
62
|
+
return e.stopPropagation();
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)], /*#__PURE__*/React.createElement("span", {
|
|
65
|
+
onClick: function onClick(e) {
|
|
66
|
+
_this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)]);
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
}
|
|
69
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
70
|
+
style: {
|
|
71
|
+
paddingLeft: "4px",
|
|
72
|
+
cursor: "pointer"
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
77
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)])) return null;
|
|
78
|
+
return _this.renderPc(undefined, r);
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
81
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)];
|
|
82
|
+
});
|
|
83
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
84
|
+
var _record;
|
|
85
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "editRender", function (p) {
|
|
88
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
89
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
90
|
+
title: _this.name,
|
|
91
|
+
name: _this.id,
|
|
92
|
+
rules: _this.rules,
|
|
93
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
94
|
+
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,
|
|
95
|
+
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
96
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
97
|
+
disabled: true
|
|
98
|
+
}))
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
102
|
+
return {
|
|
103
|
+
searchDefaultConditions: SYMBOL.in,
|
|
104
|
+
type: item.type,
|
|
105
|
+
id: "".concat(item.id, "_").concat(TRADE_ID_MAP[_this.type].key),
|
|
106
|
+
// 过滤组件id
|
|
107
|
+
name: item.name,
|
|
108
|
+
// 过滤组件名称
|
|
109
|
+
filterComponentType: "Input",
|
|
110
|
+
filterFn: function filterFn(value) {
|
|
111
|
+
return function (i) {
|
|
112
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(TRADE_ID_MAP[_this.type].key)), value);
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
116
|
+
return input.split(/[,|,]/);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
this.name = options.name;
|
|
121
|
+
this.id = options.id;
|
|
122
|
+
this.sortField = "".concat(options.id, "_").concat(TRADE_ID_MAP[options.type].key);
|
|
123
|
+
this.formField = "".concat(options.id, "_").concat(TRADE_ID_MAP[options.type].key);
|
|
124
|
+
this.type = options.type;
|
|
125
|
+
this.showContains = false;
|
|
126
|
+
this.onlyContainsString = true;
|
|
127
|
+
this.componentConfig = options.componentConfig;
|
|
128
|
+
this.effects = options.effects;
|
|
129
|
+
this.rules = [];
|
|
130
|
+
this.isCombinationComponent = false;
|
|
131
|
+
this.canSort = true;
|
|
132
|
+
this.children = [];
|
|
133
|
+
this.dataType = "string";
|
|
134
|
+
});
|
|
135
|
+
export default CommonTradeId;
|
|
@@ -27,6 +27,12 @@ var typeMap = {
|
|
|
27
27
|
name: 'bs',
|
|
28
28
|
company: 'bsLogisticsCompany',
|
|
29
29
|
code: 'bsLogisticsCode'
|
|
30
|
+
},
|
|
31
|
+
REISSUE_LOGISTICS: {
|
|
32
|
+
key: 'reissueLogisticsList',
|
|
33
|
+
name: 'reissue',
|
|
34
|
+
company: 'reissueLogisticsCompany',
|
|
35
|
+
code: 'reissueLogisticsCode'
|
|
30
36
|
}
|
|
31
37
|
};
|
|
32
38
|
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
@@ -32,7 +32,8 @@ var typeMap = {
|
|
|
32
32
|
};
|
|
33
33
|
var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
34
34
|
var _this = this,
|
|
35
|
-
_options$componentCon
|
|
35
|
+
_options$componentCon,
|
|
36
|
+
_options$componentCon2;
|
|
36
37
|
_classCallCheck(this, BasicPosting);
|
|
37
38
|
_defineProperty(this, "name", void 0);
|
|
38
39
|
_defineProperty(this, "id", void 0);
|
|
@@ -200,8 +201,8 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
200
201
|
this.canSort = false;
|
|
201
202
|
this.children = [];
|
|
202
203
|
this.dataType = "string";
|
|
203
|
-
this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
204
|
-
this.rules = options !== null && options !== void 0 && (_options$
|
|
204
|
+
this.addressDateInstance = options.type === "BS_POSTING" || ((_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showField) === "bs" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
205
|
+
this.rules = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.required ? [{
|
|
205
206
|
validator: function validator(_, value) {
|
|
206
207
|
var _value$postingAddress;
|
|
207
208
|
if (!(value !== null && value !== void 0 && (_value$postingAddress = value.postingAddress) !== null && _value$postingAddress !== void 0 && _value$postingAddress.length) || !(value !== null && value !== void 0 && value.postingDetail) || !(value !== null && value !== void 0 && value.postingReceiverName) || !(value !== null && value !== void 0 && value.postingReceiverMobile)) {
|
|
@@ -13,7 +13,6 @@ declare class ShopInput implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface['dataType'];
|
|
15
15
|
options: ComponentInterface['options'];
|
|
16
|
-
format: ComponentInterface['format'];
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
19
18
|
renderLog: (record: Record) => any;
|
|
@@ -25,7 +25,6 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
26
|
_defineProperty(this, "dataType", void 0);
|
|
27
27
|
_defineProperty(this, "options", void 0);
|
|
28
|
-
_defineProperty(this, "format", void 0);
|
|
29
28
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
31
30
|
type: record === null || record === void 0 ? void 0 : record.platform,
|
|
@@ -97,6 +96,5 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
97
96
|
this.children = [];
|
|
98
97
|
this.dataType = 'string';
|
|
99
98
|
this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
|
|
100
|
-
this.format = 'shopInput';
|
|
101
99
|
});
|
|
102
100
|
export default ShopInput;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class StatusSelect 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
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
editRender: (p: any) => React.JSX.Element;
|
|
18
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element | "--";
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | "--" | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
22
|
+
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
props: {
|
|
30
|
+
options: Record[];
|
|
31
|
+
};
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default StatusSelect;
|
|
@@ -0,0 +1,178 @@
|
|
|
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 { CommonStatus } from "@kmkf-fe-packages/basic-components";
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
// const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
|
|
18
|
+
var selectTypeMap = {
|
|
19
|
+
REISSUE_STATUS: {
|
|
20
|
+
options: [{
|
|
21
|
+
value: "成功",
|
|
22
|
+
label: "成功",
|
|
23
|
+
color: "#52c41a"
|
|
24
|
+
}, {
|
|
25
|
+
value: "失败",
|
|
26
|
+
label: "失败",
|
|
27
|
+
color: "#ff4d4f"
|
|
28
|
+
}],
|
|
29
|
+
key: "reissueStatusValue",
|
|
30
|
+
info: "reissueReason",
|
|
31
|
+
failValue: "失败"
|
|
32
|
+
},
|
|
33
|
+
EXCHANGE_STATUS: {
|
|
34
|
+
options: [{
|
|
35
|
+
value: "成功",
|
|
36
|
+
label: "成功",
|
|
37
|
+
color: "#52c41a"
|
|
38
|
+
}, {
|
|
39
|
+
value: "失败",
|
|
40
|
+
label: "失败",
|
|
41
|
+
color: "#ff4d4f"
|
|
42
|
+
}],
|
|
43
|
+
key: "exchangeStatusValue",
|
|
44
|
+
info: "exchangeReason",
|
|
45
|
+
failValue: "失败"
|
|
46
|
+
},
|
|
47
|
+
CREATE_STATUS: {
|
|
48
|
+
options: [{
|
|
49
|
+
value: "成功",
|
|
50
|
+
label: "成功",
|
|
51
|
+
color: "#52c41a"
|
|
52
|
+
}, {
|
|
53
|
+
value: "失败",
|
|
54
|
+
label: "失败",
|
|
55
|
+
color: "#ff4d4f"
|
|
56
|
+
}],
|
|
57
|
+
key: "createStatusValue",
|
|
58
|
+
info: "createReason",
|
|
59
|
+
failValue: "失败"
|
|
60
|
+
},
|
|
61
|
+
RETURN_GOODS_STATUS: {
|
|
62
|
+
options: [{
|
|
63
|
+
value: "成功",
|
|
64
|
+
label: "成功",
|
|
65
|
+
color: "#52c41a"
|
|
66
|
+
}, {
|
|
67
|
+
value: "失败",
|
|
68
|
+
label: "失败",
|
|
69
|
+
color: "#ff4d4f"
|
|
70
|
+
}],
|
|
71
|
+
key: "returnGoodsStatusValue",
|
|
72
|
+
info: "returnGoodsReason",
|
|
73
|
+
failValue: "失败"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
77
|
+
var _this = this;
|
|
78
|
+
_classCallCheck(this, StatusSelect);
|
|
79
|
+
_defineProperty(this, "name", void 0);
|
|
80
|
+
_defineProperty(this, "id", void 0);
|
|
81
|
+
_defineProperty(this, "sortField", void 0);
|
|
82
|
+
_defineProperty(this, "type", void 0);
|
|
83
|
+
_defineProperty(this, "rules", void 0);
|
|
84
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
85
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
86
|
+
_defineProperty(this, "formField", void 0);
|
|
87
|
+
_defineProperty(this, "canSort", void 0);
|
|
88
|
+
_defineProperty(this, "children", void 0);
|
|
89
|
+
_defineProperty(this, "dataType", void 0);
|
|
90
|
+
_defineProperty(this, "options", void 0);
|
|
91
|
+
_defineProperty(this, "editRender", function (p) {
|
|
92
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
93
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
94
|
+
title: _this.name,
|
|
95
|
+
name: _this.id,
|
|
96
|
+
rules: _this.rules,
|
|
97
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
98
|
+
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,
|
|
99
|
+
component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
|
|
100
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
101
|
+
failValue: selectTypeMap[_this.type].failValue
|
|
102
|
+
}))
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
106
|
+
var _record$_this$id, _selectTypeMap$_this$, _record$_this$id2, _record$_this$id3, _record$_this$id4;
|
|
107
|
+
var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
|
|
108
|
+
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
109
|
+
return item.value === status;
|
|
110
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
|
|
111
|
+
return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
112
|
+
id: _this.id,
|
|
113
|
+
label: _this.name,
|
|
114
|
+
value: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
style: {
|
|
116
|
+
color: statusColor
|
|
117
|
+
}
|
|
118
|
+
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
|
|
119
|
+
}) : null;
|
|
120
|
+
});
|
|
121
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
122
|
+
var _selectTypeMap$_this$2;
|
|
123
|
+
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
124
|
+
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
125
|
+
return item.value === status;
|
|
126
|
+
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
|
|
127
|
+
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
style: {
|
|
129
|
+
color: statusColor
|
|
130
|
+
}
|
|
131
|
+
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
|
|
132
|
+
});
|
|
133
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
134
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
135
|
+
return _this.renderPc(undefined, r);
|
|
136
|
+
});
|
|
137
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
138
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
139
|
+
});
|
|
140
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
141
|
+
var _record;
|
|
142
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
143
|
+
});
|
|
144
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
145
|
+
return {
|
|
146
|
+
searchDefaultConditions: SYMBOL.in,
|
|
147
|
+
type: item.type,
|
|
148
|
+
id: "".concat(item.id, "_").concat(selectTypeMap[_this.type].key),
|
|
149
|
+
// 过滤组件id
|
|
150
|
+
name: item.name,
|
|
151
|
+
// 过滤组件名称
|
|
152
|
+
filterComponentType: "MultipleSelect",
|
|
153
|
+
props: {
|
|
154
|
+
options: selectTypeMap[_this.type].options
|
|
155
|
+
},
|
|
156
|
+
filterFn: function filterFn(value) {
|
|
157
|
+
return function (i) {
|
|
158
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(selectTypeMap[_this.type].key)));
|
|
159
|
+
};
|
|
160
|
+
} // 第一个为选中值,第二个参数为表格行记录值
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
this.name = options.name;
|
|
164
|
+
this.id = options.id;
|
|
165
|
+
this.sortField = "".concat(options.id, "_").concat(selectTypeMap[options.type].key);
|
|
166
|
+
this.formField = "".concat(options.id, "_").concat(selectTypeMap[options.type].key);
|
|
167
|
+
this.type = options.type;
|
|
168
|
+
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
169
|
+
options: selectTypeMap[options.type].options
|
|
170
|
+
});
|
|
171
|
+
this.rules = [];
|
|
172
|
+
this.isCombinationComponent = false;
|
|
173
|
+
this.canSort = true;
|
|
174
|
+
this.children = [];
|
|
175
|
+
this.dataType = "string";
|
|
176
|
+
this.options = selectTypeMap[options.type].options;
|
|
177
|
+
});
|
|
178
|
+
export default StatusSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsExchange | CommonTradeId | JstLogistics | BasicPosting | BasicRadio | BasicSelect | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -23,7 +23,7 @@ export var factory = function factory(type, options) {
|
|
|
23
23
|
case "DATETIME":
|
|
24
24
|
return new BasicDataTime(options);
|
|
25
25
|
case "SELECT":
|
|
26
|
-
case
|
|
26
|
+
case "BUYER_MESSAGE_NOTICE":
|
|
27
27
|
return new BasicSelect(options);
|
|
28
28
|
case "PICTURE":
|
|
29
29
|
return new BasicPicture(options);
|
|
@@ -106,11 +106,14 @@ export var factory = function factory(type, options) {
|
|
|
106
106
|
return new TemplateSelect(options);
|
|
107
107
|
case "JST_LOGISTICS":
|
|
108
108
|
case "BS_LOGISTICS":
|
|
109
|
+
case "REISSUE_LOGISTICS":
|
|
109
110
|
return new JstLogistics(options);
|
|
110
111
|
case "JST_ITEM_SELECT_THIRD":
|
|
111
112
|
return new JstItemSelect(options);
|
|
112
113
|
case "JST_SUPPLY":
|
|
113
114
|
return new JstSupply(options);
|
|
115
|
+
case "BS_SYSTEM_ORDER":
|
|
116
|
+
return new BsSystemOrder(options);
|
|
114
117
|
case "JST_SEND_GOOD":
|
|
115
118
|
case "BS_SEND_GOOD":
|
|
116
119
|
return new JstSendGood(options);
|
|
@@ -126,6 +129,15 @@ export var factory = function factory(type, options) {
|
|
|
126
129
|
return new FlowWorkOrderId(options);
|
|
127
130
|
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
128
131
|
return new FlowWorkOrderId(options);
|
|
132
|
+
case "REISSUE_STATUS":
|
|
133
|
+
case "EXCHANGE_STATUS":
|
|
134
|
+
case "CREATE_STATUS":
|
|
135
|
+
case "RETURN_GOODS_STATUS":
|
|
136
|
+
return new StatusSelect(options);
|
|
137
|
+
case "REISSUE_TRADE_ID":
|
|
138
|
+
case "EXCHANGE_TRADE_ID":
|
|
139
|
+
case "RETURN_GOODS_TRADE_ID":
|
|
140
|
+
return new CommonTradeId(options);
|
|
129
141
|
default:
|
|
130
142
|
return new BasicInput(options);
|
|
131
143
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { default as JstLogistics } from "./components/JST/JstLogistics";
|
|
|
37
37
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
38
38
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
39
39
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
40
|
+
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
40
41
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
41
42
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
42
43
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
@@ -51,6 +52,8 @@ export { default as Submitter } from "./components/Submitter";
|
|
|
51
52
|
export { default as Handler } from "./components/Handler";
|
|
52
53
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
53
54
|
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
55
|
+
export { default as StatusSelect } from "./components/StatusSelect";
|
|
56
|
+
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
54
57
|
export { factory } from "./factory";
|
|
55
58
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
56
59
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export { default as JstLogistics } from "./components/JST/JstLogistics";
|
|
|
37
37
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
38
38
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
39
39
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
40
|
+
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
40
41
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
41
42
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
42
43
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
@@ -51,6 +52,8 @@ export { default as Submitter } from "./components/Submitter";
|
|
|
51
52
|
export { default as Handler } from "./components/Handler";
|
|
52
53
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
53
54
|
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
55
|
+
export { default as StatusSelect } from "./components/StatusSelect";
|
|
56
|
+
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
54
57
|
export { factory } from "./factory";
|
|
55
58
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
56
59
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface ComponentInterface {
|
|
|
39
39
|
width?: number;
|
|
40
40
|
align?: ALignType;
|
|
41
41
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
42
|
-
format?: "dateTime" | "date" | "time" | "cascader"
|
|
42
|
+
format?: "dateTime" | "date" | "time" | "cascader";
|
|
43
43
|
options?: Array<any>;
|
|
44
44
|
/**
|
|
45
45
|
* @description 组件下标
|
|
@@ -62,7 +62,7 @@ export interface ComponentInterface {
|
|
|
62
62
|
/**
|
|
63
63
|
* @description 显示字段名称
|
|
64
64
|
*/
|
|
65
|
-
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all";
|
|
65
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs";
|
|
66
66
|
/**
|
|
67
67
|
* @description 是否选择SKU
|
|
68
68
|
*/
|
|
@@ -143,6 +143,7 @@ export interface ComponentInterface {
|
|
|
143
143
|
* @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
|
|
144
144
|
*/
|
|
145
145
|
erpFlag?: boolean;
|
|
146
|
+
reissueFlag?: boolean;
|
|
146
147
|
showHeader?: string[];
|
|
147
148
|
reasonList?: any[];
|
|
148
149
|
disabled?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17-alpha.1",
|
|
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.8.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.1",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.1"
|
|
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": "4d96e54eb4d5bf04c6189fbfe2655d76f3eaffb4"
|
|
44
44
|
}
|