@kmkf-fe-packages/services-components 1.22.1-beta.4 → 1.22.1-beta.41
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/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +4 -2
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -1
- package/dist/esm/commonComponents/ShopList/index.js +5 -5
- package/dist/esm/components/BS/BsGoods/index.js +6 -2
- package/dist/esm/components/BS/BsLogistics/index.js +8 -1
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -15
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +151 -101
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
- package/dist/esm/components/Common/index.d.ts +6 -5
- package/dist/esm/components/Common/index.js +532 -364
- package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +126 -93
- package/dist/esm/components/CommonMultiStatus/index.d.ts +5 -4
- package/dist/esm/components/CommonMultiStatus/index.js +98 -65
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +25 -25
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +28 -29
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MemberLevel/index.d.ts +35 -0
- package/dist/esm/components/MemberLevel/index.js +119 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Radio/index.js +3 -2
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +2 -2
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +3 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -4
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/service/api.d.ts +2 -0
- package/dist/esm/service/api.js +12 -0
- package/dist/esm/type.d.ts +7 -2
- package/package.json +4 -4
|
@@ -6,42 +6,42 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
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
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
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
|
|
10
|
-
import some from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import some from "lodash/some";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import { CommonOrderContent } from "../Common";
|
|
13
|
-
import { CommonSystemOrder as SystemOrder } from
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import { SYMBOL, batchInput } from "../../constant";
|
|
17
17
|
var typeMap = {
|
|
18
18
|
BS_DELIVERY_NO: {
|
|
19
|
-
key:
|
|
20
|
-
code:
|
|
21
|
-
name:
|
|
19
|
+
key: "deliveryNoList",
|
|
20
|
+
code: "deliveryNoIds",
|
|
21
|
+
name: "出库单",
|
|
22
22
|
type: 1,
|
|
23
|
-
valueKey:
|
|
23
|
+
valueKey: "deliveryNo"
|
|
24
24
|
},
|
|
25
25
|
RETURN_GOODS_TRADE_ID: {
|
|
26
|
-
key:
|
|
27
|
-
code:
|
|
28
|
-
name:
|
|
26
|
+
key: "returnGoodsTradeItemList",
|
|
27
|
+
code: "returnGoodsTradeIdList",
|
|
28
|
+
name: "退货单id",
|
|
29
29
|
type: 2,
|
|
30
|
-
valueKey:
|
|
30
|
+
valueKey: ["returnGoodsTradeId", "returnLogisticsCode"]
|
|
31
31
|
},
|
|
32
32
|
REISSUE_TRADE_ID: {
|
|
33
|
-
key:
|
|
34
|
-
code:
|
|
35
|
-
name:
|
|
33
|
+
key: "tradeItemList",
|
|
34
|
+
code: "tradeIdList",
|
|
35
|
+
name: "补发单id",
|
|
36
36
|
type: 3,
|
|
37
|
-
valueKey:
|
|
37
|
+
valueKey: "billNo"
|
|
38
38
|
},
|
|
39
39
|
EXCHANGE_TRADE_ID: {
|
|
40
|
-
key:
|
|
41
|
-
code:
|
|
42
|
-
name:
|
|
40
|
+
key: "tradeItemList",
|
|
41
|
+
code: "tradeIdList",
|
|
42
|
+
name: "换货单id",
|
|
43
43
|
type: 4,
|
|
44
|
-
valueKey:
|
|
44
|
+
valueKey: "billNo"
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
@@ -108,7 +108,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
108
108
|
return (list || []).map(function (item) {
|
|
109
109
|
var _typeMap$_this$type8;
|
|
110
110
|
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
|
|
111
|
-
}).join(
|
|
111
|
+
}).join(",");
|
|
112
112
|
});
|
|
113
113
|
_defineProperty(this, "editRender", function (p) {
|
|
114
114
|
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _typeMap$_this$type9;
|
|
@@ -119,7 +119,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
119
119
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
120
120
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
121
121
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
122
|
-
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip :
|
|
122
|
+
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip : "",
|
|
123
123
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
124
124
|
type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
|
|
125
125
|
}))
|
|
@@ -132,7 +132,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
132
132
|
type: item.type,
|
|
133
133
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
134
134
|
name: "".concat(_this.name),
|
|
135
|
-
filterComponentType:
|
|
135
|
+
filterComponentType: "Input",
|
|
136
136
|
filterFn: function filterFn(value) {
|
|
137
137
|
return function (i) {
|
|
138
138
|
var _typeMap$_this$type11;
|
|
@@ -153,7 +153,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
153
153
|
this.isCombinationComponent = false;
|
|
154
154
|
this.canSort = false;
|
|
155
155
|
this.children = [];
|
|
156
|
-
this.dataType =
|
|
156
|
+
this.dataType = "object";
|
|
157
157
|
this.rules = (_this$componentConfig7 = this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required ? [{
|
|
158
158
|
required: true,
|
|
159
159
|
validator: function validator(_, value) {
|
|
@@ -168,6 +168,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
168
168
|
return Promise.resolve();
|
|
169
169
|
}
|
|
170
170
|
}] : [];
|
|
171
|
-
this.align =
|
|
171
|
+
this.align = "left";
|
|
172
172
|
});
|
|
173
173
|
export default CommonSystemOrder;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { BsHeaderGood } from "../BS/common/index";
|
|
4
|
+
import type { ShowHeaderObjType } from "../../type";
|
|
4
5
|
declare class EItemEncode implements ComponentInterface {
|
|
5
6
|
name: string;
|
|
6
7
|
id: string;
|
|
@@ -15,7 +16,7 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
15
16
|
children: ComponentInterface[];
|
|
16
17
|
goods: BsHeaderGood;
|
|
17
18
|
dataType: ComponentInterface["dataType"];
|
|
18
|
-
showHeader: string[];
|
|
19
|
+
showHeader: (string | ShowHeaderObjType)[];
|
|
19
20
|
platform?: ComponentInterface["platform"];
|
|
20
21
|
sortChildField: {
|
|
21
22
|
name: string;
|
|
@@ -16,6 +16,7 @@ import { BsHeaderGood } from "../BS/common/index";
|
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
17
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
|
+
import { columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
20
|
var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig3,
|
|
@@ -38,22 +39,32 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
38
39
|
_defineProperty(this, "platform", void 0);
|
|
39
40
|
_defineProperty(this, "sortChildField", void 0);
|
|
40
41
|
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
return
|
|
42
|
+
// const mapping = {
|
|
43
|
+
// title: "商品名称",
|
|
44
|
+
// outerId: "商品编码",
|
|
45
|
+
// numIid: "商品id",
|
|
46
|
+
// skuId: "skuId",
|
|
47
|
+
// outerSkuId: "sku编码",
|
|
48
|
+
// propertiesName: "sku信息",
|
|
49
|
+
// };
|
|
50
|
+
return columnsGoodsList.filter(function (item) {
|
|
51
|
+
return item.dataIndex !== "picUrl";
|
|
52
|
+
}).map(function (item) {
|
|
50
53
|
return {
|
|
51
|
-
name:
|
|
52
|
-
key: "".concat(_this.id, "_").concat(item),
|
|
54
|
+
name: item.title,
|
|
55
|
+
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
53
56
|
dataType: "arrayObject",
|
|
54
|
-
disabled: !_this.showHeader.includes(item)
|
|
57
|
+
disabled: !_this.showHeader.includes(item.dataIndex)
|
|
55
58
|
};
|
|
56
59
|
});
|
|
60
|
+
// return Object.keys(mapping).map((item) => {
|
|
61
|
+
// return {
|
|
62
|
+
// name: mapping[item as keyof typeof mapping],
|
|
63
|
+
// key: `${this.id}_${item}`,
|
|
64
|
+
// dataType: "arrayObject",
|
|
65
|
+
// disabled: !this.showHeader.includes(item),
|
|
66
|
+
// };
|
|
67
|
+
// });
|
|
57
68
|
});
|
|
58
69
|
_defineProperty(this, "renderClient", function (record) {
|
|
59
70
|
if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
|
|
@@ -105,9 +116,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
105
116
|
required: false,
|
|
106
117
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
107
118
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
108
|
-
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip :
|
|
119
|
+
tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
|
|
109
120
|
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({
|
|
110
|
-
isSingleRow: _this.platform !==
|
|
121
|
+
isSingleRow: _this.platform !== "pc"
|
|
111
122
|
}, _this.componentConfig, {
|
|
112
123
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
113
124
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
@@ -134,21 +145,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
134
145
|
this.type = options.type;
|
|
135
146
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
136
147
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
137
|
-
this.showHeader = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) ||
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
// 商品编码
|
|
141
|
-
"picUrl",
|
|
142
|
-
// 图片
|
|
143
|
-
"numIid",
|
|
144
|
-
// 商品id
|
|
145
|
-
"skuId",
|
|
146
|
-
// skuId
|
|
147
|
-
"outerSkuId",
|
|
148
|
-
// sku编码
|
|
149
|
-
"propertiesName" // sku 信息
|
|
150
|
-
];
|
|
151
|
-
|
|
148
|
+
this.showHeader = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || columnsGoodsList.map(function (item) {
|
|
149
|
+
return item.dataIndex;
|
|
150
|
+
});
|
|
152
151
|
this.isCombinationComponent = true;
|
|
153
152
|
this.canSort = false;
|
|
154
153
|
this.goods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -160,7 +160,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
160
160
|
});
|
|
161
161
|
_defineProperty(this, "filterConfig", function (item) {
|
|
162
162
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
163
|
-
return [_this.type === 'WDT_SEND_GOOD' || _this.type === 'BS_E3_SEND_GOOD' ? {
|
|
163
|
+
return [_this.type === 'WDT_SEND_GOOD' || _this.type === 'BS_E3_SEND_GOOD' || _this.type === 'KM_SEND_GOOD' ? {
|
|
164
164
|
searchDefaultConditions: SYMBOL.in,
|
|
165
165
|
type: item.type,
|
|
166
166
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class MemberLevel 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
|
+
getComponentValue: (r: Record) => any;
|
|
18
|
+
editRender: (p: any) => React.JSX.Element;
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
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: any;
|
|
31
|
+
};
|
|
32
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export default MemberLevel;
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
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); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { Select } from "antd";
|
|
11
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import intersection from "lodash/intersection";
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
16
|
+
var EditRenderItem = function EditRenderItem(props) {
|
|
17
|
+
var value = props.value;
|
|
18
|
+
return /*#__PURE__*/React.createElement(Select, _extends({}, props, {
|
|
19
|
+
value: value,
|
|
20
|
+
mode: "multiple"
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
var MemberLevel = /*#__PURE__*/_createClass(function MemberLevel(options) {
|
|
24
|
+
var _this = this,
|
|
25
|
+
_this$componentConfig5;
|
|
26
|
+
_classCallCheck(this, MemberLevel);
|
|
27
|
+
_defineProperty(this, "name", void 0);
|
|
28
|
+
_defineProperty(this, "id", void 0);
|
|
29
|
+
_defineProperty(this, "sortField", void 0);
|
|
30
|
+
_defineProperty(this, "type", void 0);
|
|
31
|
+
_defineProperty(this, "rules", void 0);
|
|
32
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
|
+
_defineProperty(this, "formField", void 0);
|
|
35
|
+
_defineProperty(this, "canSort", void 0);
|
|
36
|
+
_defineProperty(this, "children", void 0);
|
|
37
|
+
_defineProperty(this, "dataType", void 0);
|
|
38
|
+
_defineProperty(this, "options", void 0);
|
|
39
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
40
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")];
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "editRender", function (p) {
|
|
43
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
44
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
45
|
+
title: _this.name,
|
|
46
|
+
name: _this.id,
|
|
47
|
+
rules: _this.rules,
|
|
48
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
49
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
50
|
+
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,
|
|
51
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
52
|
+
component: /*#__PURE__*/React.createElement(EditRenderItem, _extends({}, _this.componentConfig, {
|
|
53
|
+
placeholder: "\u8BF7\u9009\u62E9\u4F1A\u5458\u7B49\u7EA7",
|
|
54
|
+
showSearch: true,
|
|
55
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange,
|
|
56
|
+
options: _this.options,
|
|
57
|
+
optionFilterProp: "label"
|
|
58
|
+
}))
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
62
|
+
var _record;
|
|
63
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
64
|
+
id: _this.id,
|
|
65
|
+
label: _this.name,
|
|
66
|
+
value: record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_memberLevel")]) === null || _record === void 0 ? void 0 : _record.join("、")
|
|
67
|
+
}) : null;
|
|
68
|
+
});
|
|
69
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
70
|
+
var _record2;
|
|
71
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
|
|
72
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
73
|
+
}
|
|
74
|
+
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_memberLevel")]) === null || _record2 === void 0 ? void 0 : _record2.join("、"));
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
77
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_memberLevel")])) return null;
|
|
78
|
+
return _this.renderPc(undefined, r);
|
|
79
|
+
});
|
|
80
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
81
|
+
var _record3;
|
|
82
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_memberLevel")])) {
|
|
83
|
+
return "--";
|
|
84
|
+
}
|
|
85
|
+
return record === null || record === void 0 ? void 0 : (_record3 = record["".concat(_this.id, "_memberLevel")]) === null || _record3 === void 0 ? void 0 : _record3.join("、");
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
88
|
+
return {
|
|
89
|
+
searchDefaultConditions: SYMBOL.in,
|
|
90
|
+
type: item.type,
|
|
91
|
+
id: "".concat(item.id, "_memberLevel"),
|
|
92
|
+
// 过滤组件id
|
|
93
|
+
name: item.name,
|
|
94
|
+
// 过滤组件名称
|
|
95
|
+
filterComponentType: "MultipleSelect",
|
|
96
|
+
props: {
|
|
97
|
+
options: _this.options || []
|
|
98
|
+
},
|
|
99
|
+
filterFn: function filterFn(value) {
|
|
100
|
+
return function (i) {
|
|
101
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "memberLevel")).length > 0;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
this.name = options.name;
|
|
107
|
+
this.id = options.id;
|
|
108
|
+
this.sortField = options.id;
|
|
109
|
+
this.formField = "".concat(options.id, "_memberLevel");
|
|
110
|
+
this.type = options.type;
|
|
111
|
+
this.componentConfig = options.componentConfig;
|
|
112
|
+
this.rules = [];
|
|
113
|
+
this.isCombinationComponent = false;
|
|
114
|
+
this.canSort = false;
|
|
115
|
+
this.children = [];
|
|
116
|
+
this.dataType = "array";
|
|
117
|
+
this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
|
|
118
|
+
});
|
|
119
|
+
export default MemberLevel;
|
|
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
-
formDataTransform: (value: string) => string | number;
|
|
40
39
|
}
|
|
41
40
|
export default PaymentAmount;
|
|
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
-
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
-
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
-
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
-
});
|
|
139
135
|
this.name = '打款金额';
|
|
140
136
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
141
137
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -61,7 +61,8 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
61
61
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) === undefined) {
|
|
62
62
|
return "--";
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
var other = get(record, "".concat(_this.id, "_").concat(typeMap[type], "Other"), "");
|
|
65
|
+
return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]).concat(other ? " " + other : "");
|
|
65
66
|
});
|
|
66
67
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
67
68
|
return typeMap[type] || "";
|
|
@@ -82,7 +83,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
82
83
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
83
84
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
84
85
|
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,
|
|
85
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
86
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
86
87
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
|
|
87
88
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
88
89
|
}))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
declare class
|
|
4
|
+
declare class Logistics implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
@@ -60,4 +60,4 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
60
60
|
formatFilterValue?: undefined;
|
|
61
61
|
})[];
|
|
62
62
|
}
|
|
63
|
-
export default
|
|
63
|
+
export default Logistics;
|
|
@@ -16,12 +16,6 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
|
-
JST_LOGISTICS: {
|
|
20
|
-
key: "jstItemList",
|
|
21
|
-
name: "jst",
|
|
22
|
-
company: "logisticsCompany",
|
|
23
|
-
code: "logisticsCode"
|
|
24
|
-
},
|
|
25
19
|
REISSUE_LOGISTICS: {
|
|
26
20
|
key: "reissueLogisticsList",
|
|
27
21
|
name: "reissue",
|
|
@@ -29,14 +23,14 @@ var typeMap = {
|
|
|
29
23
|
code: "reissueLogisticsCode"
|
|
30
24
|
}
|
|
31
25
|
};
|
|
32
|
-
var
|
|
26
|
+
var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
33
27
|
var _this = this,
|
|
34
28
|
_typeMap$_options$typ,
|
|
35
29
|
_typeMap$_options$typ2,
|
|
36
30
|
_this$componentConfig8,
|
|
37
31
|
_this$componentConfig9,
|
|
38
32
|
_this$componentConfig10;
|
|
39
|
-
_classCallCheck(this,
|
|
33
|
+
_classCallCheck(this, Logistics);
|
|
40
34
|
_defineProperty(this, "name", void 0);
|
|
41
35
|
_defineProperty(this, "id", void 0);
|
|
42
36
|
_defineProperty(this, "sortField", void 0);
|
|
@@ -203,4 +197,4 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
203
197
|
this.expressDateInstance = ExpressData.getInstance((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.logistics);
|
|
204
198
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig10 = this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.showField) || "", _options);
|
|
205
199
|
});
|
|
206
|
-
export default
|
|
200
|
+
export default Logistics;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } 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) => BsLogistics | CommonSystemOrder | JstSendGood | MsgStatus | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -122,9 +122,8 @@ export var factory = function factory(type, options) {
|
|
|
122
122
|
return new CommonDataTime(options);
|
|
123
123
|
case "TEMPLATE_ID_INPUT":
|
|
124
124
|
return new TemplateSelect(options);
|
|
125
|
-
case "JST_LOGISTICS":
|
|
126
125
|
case "REISSUE_LOGISTICS":
|
|
127
|
-
return new
|
|
126
|
+
return new ReissueLogistics(options);
|
|
128
127
|
case "JST_ITEM_SELECT_THIRD":
|
|
129
128
|
return new JstItemSelect(options);
|
|
130
129
|
case "JST_SUPPLY":
|
|
@@ -171,6 +170,7 @@ export var factory = function factory(type, options) {
|
|
|
171
170
|
case "BS_E3_LOGISTICS":
|
|
172
171
|
case "WLN_LOGISTICS":
|
|
173
172
|
case "WDT_LOGISTICS":
|
|
173
|
+
case "JST_LOGISTICS":
|
|
174
174
|
return new BsLogistics(options);
|
|
175
175
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
176
176
|
return new FlowWorkOrderId(options);
|
|
@@ -187,6 +187,7 @@ export var factory = function factory(type, options) {
|
|
|
187
187
|
case "RETURN_GOODS_STATUS":
|
|
188
188
|
case "EXCHANGE_STATUS":
|
|
189
189
|
case "WAREHOUSING_STATUS":
|
|
190
|
+
case "BS_E3_WAREHOUSING_STATUS":
|
|
190
191
|
return new CommonMultiStatus(options);
|
|
191
192
|
case "MSG_STATUS":
|
|
192
193
|
return new MsgStatus(options);
|
|
@@ -229,6 +230,8 @@ export var factory = function factory(type, options) {
|
|
|
229
230
|
case "AFTER_SALES_ORDER_ID":
|
|
230
231
|
// 售后单ID
|
|
231
232
|
return new AfterSalesOrderId(options);
|
|
233
|
+
case "MEMBER_LEVEL":
|
|
234
|
+
return new MemberLevel(options);
|
|
232
235
|
default:
|
|
233
236
|
return new BasicInput(options);
|
|
234
237
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
|
34
34
|
export { default as Ordinary } from "./components/Ordinary";
|
|
35
35
|
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
36
36
|
export { default as Payment } from "./components/Payment";
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as ReissueLogistics } from "./components/Reissue/Logistics";
|
|
38
38
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
39
39
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
|
83
83
|
export { default as CommonInput } from "./components/CommonInput";
|
|
84
84
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
85
85
|
export { default as Label } from "./components/Label";
|
|
86
|
+
export { default as MemberLevel } from "./components/MemberLevel";
|
|
86
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
87
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
88
89
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
package/dist/esm/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
|
34
34
|
export { default as Ordinary } from "./components/Ordinary";
|
|
35
35
|
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
36
36
|
export { default as Payment } from "./components/Payment";
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as ReissueLogistics } from "./components/Reissue/Logistics";
|
|
38
38
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
39
39
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
|
|
|
83
83
|
export { default as CommonInput } from "./components/CommonInput";
|
|
84
84
|
export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
|
|
85
85
|
export { default as Label } from "./components/Label";
|
|
86
|
+
export { default as MemberLevel } from "./components/MemberLevel";
|
|
86
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
87
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
88
89
|
// TODO: ERP 打款工单使用
|
|
@@ -8,6 +8,8 @@ export declare const queryLogisticsAddressData: () => Promise<void>;
|
|
|
8
8
|
export declare const queryAllLogisticsCompany: () => Promise<void>;
|
|
9
9
|
export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
10
10
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
|
+
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
|
+
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
11
13
|
export declare const querySendData: () => Promise<void>;
|
|
12
14
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
13
15
|
export declare const queryLabel: () => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -266,6 +266,18 @@ export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
|
266
266
|
instance.expressData = data;
|
|
267
267
|
}).catch(console.log);
|
|
268
268
|
};
|
|
269
|
+
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
270
|
+
var instance = ExpressData.getInstance('jst');
|
|
271
|
+
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
272
|
+
instance.expressData = data;
|
|
273
|
+
}).catch(console.log);
|
|
274
|
+
};
|
|
275
|
+
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
276
|
+
var instance = ExpressData.getInstance('wln');
|
|
277
|
+
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
278
|
+
instance.expressData = data;
|
|
279
|
+
}).catch(console.log);
|
|
280
|
+
};
|
|
269
281
|
export var querySendData = /*#__PURE__*/function () {
|
|
270
282
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
271
283
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormInstance } from "antd";
|
|
3
3
|
import { SYMBOL } from "./constant";
|
|
4
|
+
export declare type ShowHeaderObjType = {
|
|
5
|
+
title: string;
|
|
6
|
+
dataIndex: string;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
};
|
|
4
9
|
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
5
10
|
export declare type ALignType = "left" | "right" | "center";
|
|
6
11
|
export declare type QuerySymbol = keyof typeof SYMBOL;
|
|
@@ -176,7 +181,7 @@ export interface ComponentInterface {
|
|
|
176
181
|
*/
|
|
177
182
|
erpFlag?: boolean;
|
|
178
183
|
reissueFlag?: boolean;
|
|
179
|
-
showHeader?: string[];
|
|
184
|
+
showHeader?: (ShowHeaderObjType | string)[];
|
|
180
185
|
reasonList?: any[];
|
|
181
186
|
disabled?: boolean;
|
|
182
187
|
config?: any;
|
|
@@ -270,7 +275,7 @@ export interface ComponentInterface {
|
|
|
270
275
|
getComponentValue: (r: Record) => any;
|
|
271
276
|
formDataTransform?: (r: any) => any;
|
|
272
277
|
}
|
|
273
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue">;
|
|
278
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
|
|
274
279
|
export declare type ColumnConfig = {
|
|
275
280
|
id: string;
|
|
276
281
|
name: string;
|