@kmkf-fe-packages/services-components 0.7.15-alpha.7 → 0.7.15-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
- package/dist/esm/commonComponents/ShopList/index.d.ts +1 -1
- package/dist/esm/commonComponents/ShopList/index.js +4 -2
- package/dist/esm/components/ActualPayment/index.d.ts +5 -4
- package/dist/esm/components/ActualPayment/index.js +25 -21
- package/dist/esm/components/AlipayAccount/index.js +2 -1
- package/dist/esm/components/BS/BsExchange/index.d.ts +12 -6
- package/dist/esm/components/BS/BsExchange/index.js +233 -111
- package/dist/esm/components/BS/BsGoods/index.d.ts +11 -9
- package/dist/esm/components/BS/BsGoods/index.js +93 -60
- package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
- package/dist/esm/components/BS/BsReissue/index.js +110 -54
- package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderCode.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderCode.js} +28 -11
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +27 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +156 -0
- package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +29 -11
- package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderNumber.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderNumber.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +7 -6
- package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +36 -10
- package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +28 -11
- package/dist/esm/components/BS/common/BsMemo.d.ts +8 -7
- package/dist/esm/components/BS/common/BsMemo.js +55 -21
- package/dist/esm/components/BS/common/BsType.d.ts +8 -6
- package/dist/esm/components/BS/common/BsType.js +53 -17
- package/dist/esm/components/BS/common/index.d.ts +9 -8
- package/dist/esm/components/BS/common/index.js +9 -8
- package/dist/esm/components/BuyerNick/index.js +5 -1
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +3 -1
- package/dist/esm/components/Common/index.d.ts +6 -1
- package/dist/esm/components/Common/index.js +115 -20
- package/dist/esm/components/EItemEnCode/index.js +6 -2
- package/dist/esm/components/EItemId/index.d.ts +3 -3
- package/dist/esm/components/EItemId/index.js +14 -10
- package/dist/esm/components/EItemSelect/index.js +6 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
- package/dist/esm/components/ErpTradeId/index.js +27 -4
- package/dist/esm/components/ExpressCode/index.d.ts +1 -1
- package/dist/esm/components/ExpressCode/index.js +2 -2
- package/dist/esm/components/File/index.d.ts +1 -1
- package/dist/esm/components/File/index.js +26 -5
- package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -1
- package/dist/esm/components/FlowStatusSelect/index.js +30 -24
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +33 -0
- package/dist/esm/components/FlowWorkOrderId/index.js +112 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +6 -2
- package/dist/esm/components/JST/JstLogistics/index.d.ts +19 -13
- package/dist/esm/components/JST/JstLogistics/index.js +71 -33
- package/dist/esm/components/JST/JstSendGood/index.d.ts +6 -0
- package/dist/esm/components/JST/JstSendGood/index.js +33 -13
- package/dist/esm/components/JST/JstSupply/index.js +6 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +8 -9
- package/dist/esm/components/LogisticsTrajectory/index.js +12 -10
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +11 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +6 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +8 -8
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +4 -10
- package/dist/esm/components/Payment/AlipayNick.js +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -3
- package/dist/esm/components/Payment/index.d.ts +1 -0
- package/dist/esm/components/Payment/index.js +9 -6
- package/dist/esm/components/Picture/index.js +3 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -24
- package/dist/esm/components/PostIng/index.js +53 -52
- package/dist/esm/components/Rate/index.js +5 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +2 -1
- package/dist/esm/components/ReceiverName/index.js +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -2
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -14
- package/dist/esm/components/TradeDateTime/index.js +30 -25
- package/dist/esm/components/TradeId/index.d.ts +1 -0
- package/dist/esm/components/TradeId/index.js +27 -4
- package/dist/esm/components/WorkOrderId/index.js +5 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/type.d.ts +10 -2
- package/package.json +4 -4
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -50
- package/dist/esm/components/BS/BsLogistics/index.js +0 -115
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsExchangeImage.js +0 -126
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsGoodImage.js +0 -88
|
@@ -11,8 +11,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
-
import { SYMBOL } from "../../constant";
|
|
14
|
+
import { AddressData, BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
15
|
var typeMap = {
|
|
17
16
|
POSTING: {
|
|
18
17
|
province: "postingProvince",
|
|
@@ -61,7 +60,12 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
61
60
|
var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
62
61
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
63
62
|
}).join("");
|
|
64
|
-
return /*#__PURE__*/React.createElement("
|
|
63
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
style: {
|
|
65
|
+
maxHeight: "100px",
|
|
66
|
+
overflowY: "auto"
|
|
67
|
+
}
|
|
68
|
+
}, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile));
|
|
65
69
|
});
|
|
66
70
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
71
|
var _ref2;
|
|
@@ -141,53 +145,50 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
141
145
|
});
|
|
142
146
|
});
|
|
143
147
|
_defineProperty(this, "filterConfig", function (item) {
|
|
144
|
-
|
|
145
|
-
return [
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
// 过滤组件名称
|
|
189
|
-
filterComponentType: "Input"
|
|
190
|
-
}];
|
|
148
|
+
return [];
|
|
149
|
+
// return [
|
|
150
|
+
// {
|
|
151
|
+
// searchDefaultConditions: SYMBOL.eq as "eq",
|
|
152
|
+
// type: item.type,
|
|
153
|
+
// id: `${item.id}_${typeMap[this.type]?.district}`, // 过滤组件id
|
|
154
|
+
// name: `${item.name}-省市区`, // 过滤组件名称
|
|
155
|
+
// filterComponentType: "Cascader" as const,
|
|
156
|
+
// props: {
|
|
157
|
+
// options: (this.addressDateInstance.addressOptions as any) || [],
|
|
158
|
+
// fieldNames: {
|
|
159
|
+
// label: "label",
|
|
160
|
+
// value: "value",
|
|
161
|
+
// children: "children",
|
|
162
|
+
// },
|
|
163
|
+
// },
|
|
164
|
+
// formatFilterValue: (val: Array<number>) => {
|
|
165
|
+
// if (val?.length > 2) {
|
|
166
|
+
// return val?.[2];
|
|
167
|
+
// }
|
|
168
|
+
// },
|
|
169
|
+
// },
|
|
170
|
+
// {
|
|
171
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
172
|
+
// type: item.type,
|
|
173
|
+
// id: `${item.id}_${typeMap[this.type]?.detail}`, // 过滤组件id
|
|
174
|
+
// name: `${item.name}-详细地址`, // 过滤组件名称
|
|
175
|
+
// filterComponentType: "Input" as const,
|
|
176
|
+
// },
|
|
177
|
+
// {
|
|
178
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
179
|
+
// type: item.type,
|
|
180
|
+
// id: `${item.id}_${typeMap[this.type]?.name}`, // 过滤组件id
|
|
181
|
+
// name: `${item.name}-姓名`, // 过滤组件名称
|
|
182
|
+
// filterComponentType: "Input" as const,
|
|
183
|
+
// },
|
|
184
|
+
// {
|
|
185
|
+
// searchDefaultConditions: SYMBOL.like as "like",
|
|
186
|
+
// type: item.type,
|
|
187
|
+
// id: `${item.id}_${typeMap[this.type]?.mobile}`, // 过滤组件id
|
|
188
|
+
// name: `${item.name}-电话`, // 过滤组件名称
|
|
189
|
+
// filterComponentType: "Input" as const,
|
|
190
|
+
// },
|
|
191
|
+
// ];
|
|
191
192
|
});
|
|
192
193
|
this.name = options.name;
|
|
193
194
|
this.id = options.id;
|
|
@@ -196,10 +197,10 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
196
197
|
this.type = options.type;
|
|
197
198
|
this.componentConfig = options.componentConfig;
|
|
198
199
|
this.isCombinationComponent = false;
|
|
199
|
-
this.canSort =
|
|
200
|
+
this.canSort = false;
|
|
200
201
|
this.children = [];
|
|
201
202
|
this.dataType = "string";
|
|
202
|
-
this.addressDateInstance = AddressData.getInstance();
|
|
203
|
+
this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
203
204
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
|
|
204
205
|
validator: function validator(_, value) {
|
|
205
206
|
var _value$postingAddress;
|
|
@@ -63,7 +63,11 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
63
63
|
}
|
|
64
64
|
if (Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_rate")])) {
|
|
65
65
|
var _record;
|
|
66
|
-
return /*#__PURE__*/React.createElement("div",
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
onClick: function onClick(e) {
|
|
68
|
+
return e.stopPropagation();
|
|
69
|
+
}
|
|
70
|
+
}, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_rate")]) === null || _record === void 0 ? void 0 : _record.map(function (item) {
|
|
67
71
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
68
72
|
style: {
|
|
69
73
|
marginRight: '8px'
|
|
@@ -52,9 +52,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
52
52
|
var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
|
|
53
53
|
return /*#__PURE__*/React.createElement("span", {
|
|
54
54
|
className: "pointer",
|
|
55
|
-
onClick: function onClick() {
|
|
55
|
+
onClick: function onClick(e) {
|
|
56
56
|
var _this$effects, _this$effects2;
|
|
57
57
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
58
|
+
e.stopPropagation();
|
|
58
59
|
}
|
|
59
60
|
}, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
60
61
|
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -40,9 +40,10 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
40
40
|
}
|
|
41
41
|
return /*#__PURE__*/React.createElement("span", {
|
|
42
42
|
className: "pointer",
|
|
43
|
-
onClick: function onClick() {
|
|
43
|
+
onClick: function onClick(e) {
|
|
44
44
|
var _this$effects, _this$effects2;
|
|
45
45
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
46
|
+
e.stopPropagation();
|
|
46
47
|
}
|
|
47
48
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")]);
|
|
48
49
|
});
|
|
@@ -40,9 +40,10 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
40
40
|
}
|
|
41
41
|
return /*#__PURE__*/React.createElement("span", {
|
|
42
42
|
className: "pointer",
|
|
43
|
-
onClick: function onClick() {
|
|
43
|
+
onClick: function onClick(e) {
|
|
44
44
|
var _this$effects, _this$effects2;
|
|
45
45
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
46
|
+
e.stopPropagation();
|
|
46
47
|
}
|
|
47
48
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")]);
|
|
48
49
|
});
|
|
@@ -45,10 +45,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
45
45
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
46
46
|
}
|
|
47
47
|
//兼容多个商品
|
|
48
|
-
return /*#__PURE__*/React.createElement(
|
|
48
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
onClick: function onClick(e) {
|
|
50
|
+
return e.stopPropagation();
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
49
53
|
list: itemList,
|
|
50
54
|
type: "itemThird"
|
|
51
|
-
});
|
|
55
|
+
}));
|
|
52
56
|
});
|
|
53
57
|
_defineProperty(this, "renderLog", function (r) {
|
|
54
58
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
declare class BasicDataTime implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -8,14 +8,14 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
10
|
showContains: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
formField: string;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataMap: Record;
|
|
17
|
-
dataType: ComponentInterface[
|
|
18
|
-
format: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
|
+
format: ComponentInterface['format'];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
render: (value: Value) => React.JSX.Element;
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -25,14 +25,6 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
25
25
|
renderExport: (value: unknown, record: Record) => any;
|
|
26
26
|
editRender: (p: any) => React.JSX.Element;
|
|
27
27
|
getKeyByComponentType: (type: string) => any;
|
|
28
|
-
filterConfig: (item: ColumnConfig) =>
|
|
29
|
-
searchDefaultConditions: "between";
|
|
30
|
-
type: string;
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
filterComponentType: "Date";
|
|
34
|
-
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
35
|
-
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
36
|
-
};
|
|
28
|
+
filterConfig: (item: ColumnConfig) => any;
|
|
37
29
|
}
|
|
38
30
|
export default BasicDataTime;
|
|
@@ -6,21 +6,21 @@ 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 moment from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import moment from 'moment';
|
|
11
11
|
import { DateTime } from "../DataTime";
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var typeMap = {
|
|
17
|
-
TRADE_CREATE_DATETIME:
|
|
18
|
-
TRADE_PAYMENT_DATETIME:
|
|
19
|
-
TRADE_DELIVERY_DATETIME:
|
|
20
|
-
TRADE_CLOSING_DATETIME:
|
|
21
|
-
BS_SIGNING_TIME:
|
|
22
|
-
BS_SEND_TIME:
|
|
23
|
-
BS_TRADE_PAYMENT_TIME:
|
|
17
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
18
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
19
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
20
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
|
|
21
|
+
BS_SIGNING_TIME: 'bsSigningTime',
|
|
22
|
+
BS_SEND_TIME: 'bsSendTime',
|
|
23
|
+
BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
|
|
24
24
|
};
|
|
25
25
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
26
26
|
var _this = this;
|
|
@@ -40,7 +40,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
40
40
|
_defineProperty(this, "dataType", void 0);
|
|
41
41
|
_defineProperty(this, "format", void 0);
|
|
42
42
|
_defineProperty(this, "render", function (value) {
|
|
43
|
-
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join(
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
44
44
|
});
|
|
45
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
46
46
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -52,7 +52,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
52
52
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
53
53
|
var _record;
|
|
54
54
|
var type = _this.type;
|
|
55
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record :
|
|
55
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : '--');
|
|
56
56
|
});
|
|
57
57
|
_defineProperty(this, "renderLog", function (r) {
|
|
58
58
|
var type = _this.type;
|
|
@@ -66,7 +66,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
66
66
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
67
67
|
var _record2;
|
|
68
68
|
var type = _this.type;
|
|
69
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 :
|
|
69
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
70
70
|
});
|
|
71
71
|
_defineProperty(this, "editRender", function (p) {
|
|
72
72
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -85,15 +85,16 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
85
85
|
return typeMap[type];
|
|
86
86
|
});
|
|
87
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
88
|
+
var _ref;
|
|
88
89
|
var key = _this.getKeyByComponentType(item.type);
|
|
89
|
-
|
|
90
|
+
var params = {
|
|
90
91
|
searchDefaultConditions: SYMBOL.between,
|
|
91
92
|
type: item.type,
|
|
92
93
|
id: "".concat(item.id, "_").concat(key),
|
|
93
94
|
// 过滤组件id
|
|
94
95
|
name: item.name,
|
|
95
96
|
// 过滤组件名称
|
|
96
|
-
filterComponentType:
|
|
97
|
+
filterComponentType: 'Date',
|
|
97
98
|
filterFn: function filterFn(value) {
|
|
98
99
|
return function (i) {
|
|
99
100
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
@@ -103,11 +104,15 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
103
104
|
formatFilterValue: function formatFilterValue(val) {
|
|
104
105
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
105
106
|
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
106
|
-
return moment(v).startOf(
|
|
107
|
+
return moment(v).startOf('second').valueOf();
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
};
|
|
112
|
+
if ((_ref = ['BS_SIGNING_TIME', 'BS_SEND_TIME', 'BS_TRADE_PAYMENT_TIME']) !== null && _ref !== void 0 && _ref.includes(item.type)) {
|
|
113
|
+
params.componentDataType = 'dateTime';
|
|
114
|
+
}
|
|
115
|
+
return params;
|
|
111
116
|
});
|
|
112
117
|
this.name = options.name;
|
|
113
118
|
this.id = options.id;
|
|
@@ -115,21 +120,21 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
115
120
|
this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
|
|
116
121
|
this.type = options.type;
|
|
117
122
|
this.showContains = false;
|
|
118
|
-
this.dataType =
|
|
119
|
-
this.format =
|
|
123
|
+
this.dataType = 'string';
|
|
124
|
+
this.format = 'dateTime';
|
|
120
125
|
this.componentConfig = options.componentConfig;
|
|
121
126
|
this.rules = [];
|
|
122
127
|
this.isCombinationComponent = false;
|
|
123
128
|
this.canSort = true;
|
|
124
129
|
this.children = [];
|
|
125
130
|
this.dataMap = {
|
|
126
|
-
TRADE_CREATE_DATETIME:
|
|
127
|
-
TRADE_PAYMENT_DATETIME:
|
|
128
|
-
TRADE_DELIVERY_DATETIME:
|
|
129
|
-
TRADE_CLOSING_DATETIME:
|
|
130
|
-
BS_SIGNING_TIME:
|
|
131
|
-
BS_SEND_TIME:
|
|
132
|
-
BS_TRADE_PAYMENT_TIME:
|
|
131
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
132
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
133
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
134
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
|
|
135
|
+
BS_SIGNING_TIME: 'bsSigningTime',
|
|
136
|
+
BS_SEND_TIME: 'bsSendTime',
|
|
137
|
+
BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
|
|
133
138
|
};
|
|
134
139
|
});
|
|
135
140
|
export default BasicDataTime;
|
|
@@ -17,6 +17,7 @@ declare class ETradeId implements ComponentInterface {
|
|
|
17
17
|
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
copyHandle: (text: string) => void;
|
|
20
21
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
23
|
getComponentValue: (r: Record) => any;
|
|
@@ -7,10 +7,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
9
|
import React from 'react';
|
|
10
|
+
import { message } from 'antd';
|
|
10
11
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
12
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
11
13
|
import GetFormItem from "../GetFormItem";
|
|
12
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import copy from 'copy-to-clipboard';
|
|
14
17
|
import { SYMBOL } from "../../constant";
|
|
15
18
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
16
19
|
var _this = this;
|
|
@@ -36,9 +39,29 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
36
39
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
37
40
|
}) : null;
|
|
38
41
|
});
|
|
42
|
+
_defineProperty(this, "copyHandle", function (text) {
|
|
43
|
+
copy(text);
|
|
44
|
+
message.success('复制成功');
|
|
45
|
+
});
|
|
39
46
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
48
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
51
|
+
onClick: function onClick(e) {
|
|
52
|
+
return e.stopPropagation();
|
|
53
|
+
}
|
|
54
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")], /*#__PURE__*/React.createElement("span", {
|
|
55
|
+
onClick: function onClick(e) {
|
|
56
|
+
_this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
57
|
+
e.stopPropagation();
|
|
58
|
+
}
|
|
59
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
60
|
+
style: {
|
|
61
|
+
paddingLeft: '4px',
|
|
62
|
+
cursor: 'pointer'
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
42
65
|
});
|
|
43
66
|
_defineProperty(this, "renderLog", function (r) {
|
|
44
67
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
@@ -48,8 +71,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
48
71
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
|
|
49
72
|
});
|
|
50
73
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
|
-
var
|
|
52
|
-
return (
|
|
74
|
+
var _record;
|
|
75
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
|
|
53
76
|
});
|
|
54
77
|
_defineProperty(this, "editRender", function (p) {
|
|
55
78
|
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
@@ -45,7 +45,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
45
45
|
width: '16px'
|
|
46
46
|
},
|
|
47
47
|
alt: "",
|
|
48
|
-
onClick: function onClick() {
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
49
|
var _this$effects, _this$effects2, _this$effects3, _this$effects4;
|
|
50
50
|
// TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
|
|
51
51
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
|
|
@@ -54,10 +54,12 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
54
54
|
workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
|
|
55
55
|
fieldList: record === null || record === void 0 ? void 0 : record.repeatValueList
|
|
56
56
|
}));
|
|
57
|
+
e.stopPropagation();
|
|
57
58
|
}
|
|
58
59
|
}), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
59
|
-
onClick: function onClick() {
|
|
60
|
-
|
|
60
|
+
onClick: function onClick(e) {
|
|
61
|
+
_this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
62
|
+
e.stopPropagation();
|
|
61
63
|
}
|
|
62
64
|
}, /*#__PURE__*/React.createElement("span", {
|
|
63
65
|
style: {
|
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,
|
|
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";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsReissue | BuyerNick | BasicCascader | BasicCheckbox | CommonDataTime | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
|
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,
|
|
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";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -62,8 +62,6 @@ export var factory = function factory(type, options) {
|
|
|
62
62
|
return new TradeDateTime(options);
|
|
63
63
|
case "EXPRESS_LOGISTICS_SELECT":
|
|
64
64
|
return new Logistics(options);
|
|
65
|
-
case "BS_LOGISTICS":
|
|
66
|
-
return new BsLogistics(options);
|
|
67
65
|
case "RETURN_LOGISTICS_SELECT":
|
|
68
66
|
return new ReturnLogistics(options);
|
|
69
67
|
case "ACTUAL_PAYMENT":
|
|
@@ -106,6 +104,7 @@ export var factory = function factory(type, options) {
|
|
|
106
104
|
case "TEMPLATE_ID_INPUT":
|
|
107
105
|
return new TemplateSelect(options);
|
|
108
106
|
case "JST_LOGISTICS":
|
|
107
|
+
case "BS_LOGISTICS":
|
|
109
108
|
return new JstLogistics(options);
|
|
110
109
|
case "JST_ITEM_SELECT_THIRD":
|
|
111
110
|
return new JstItemSelect(options);
|
|
@@ -122,6 +121,10 @@ export var factory = function factory(type, options) {
|
|
|
122
121
|
return new BsExchange(options);
|
|
123
122
|
case "BS_REISSUE_GOODS":
|
|
124
123
|
return new BsReissue(options);
|
|
124
|
+
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
125
|
+
return new FlowWorkOrderId(options);
|
|
126
|
+
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
127
|
+
return new FlowWorkOrderId(options);
|
|
125
128
|
default:
|
|
126
129
|
return new BasicInput(options);
|
|
127
130
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ 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 BsLogistics } from "./components/BS/BsLogistics";
|
|
41
40
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
42
41
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
43
42
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
@@ -51,6 +50,7 @@ export { default as ShopInput } from "./components/ShopInput";
|
|
|
51
50
|
export { default as Submitter } from "./components/Submitter";
|
|
52
51
|
export { default as Handler } from "./components/Handler";
|
|
53
52
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
53
|
+
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
54
54
|
export { factory } from "./factory";
|
|
55
55
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
56
56
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/index.js
CHANGED
|
@@ -37,7 +37,6 @@ 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 BsLogistics } from "./components/BS/BsLogistics";
|
|
41
40
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
42
41
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
43
42
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
@@ -51,6 +50,7 @@ export { default as ShopInput } from "./components/ShopInput";
|
|
|
51
50
|
export { default as Submitter } from "./components/Submitter";
|
|
52
51
|
export { default as Handler } from "./components/Handler";
|
|
53
52
|
export { default as CompletedUser } from "./components/CompletedUser";
|
|
53
|
+
export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
54
54
|
export { factory } from "./factory";
|
|
55
55
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
56
56
|
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" |
|
|
|
22
22
|
export interface ComponentInterface {
|
|
23
23
|
id: string;
|
|
24
24
|
sortField: string;
|
|
25
|
+
sortChildField?: {
|
|
26
|
+
name: string;
|
|
27
|
+
key: string;
|
|
28
|
+
dataType: string;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}[];
|
|
25
31
|
name: string;
|
|
26
32
|
columnHeader?: string | JSX.Element;
|
|
27
33
|
type: string;
|
|
@@ -33,7 +39,7 @@ export interface ComponentInterface {
|
|
|
33
39
|
width?: number;
|
|
34
40
|
align?: ALignType;
|
|
35
41
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
36
|
-
format?: "dateTime" | "date" | "time";
|
|
42
|
+
format?: "dateTime" | "date" | "time" | "cascader";
|
|
37
43
|
options?: Array<any>;
|
|
38
44
|
/**
|
|
39
45
|
* @description 组件下标
|
|
@@ -137,13 +143,14 @@ export interface ComponentInterface {
|
|
|
137
143
|
* @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
|
|
138
144
|
*/
|
|
139
145
|
erpFlag?: boolean;
|
|
146
|
+
showHeader?: string[];
|
|
140
147
|
reasonList?: any[];
|
|
148
|
+
disabled?: boolean;
|
|
141
149
|
};
|
|
142
150
|
effects?: {
|
|
143
151
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
144
152
|
handleOpenRepeatList?: (r: Record) => void;
|
|
145
153
|
handleOpenRepeatDetail?: (r: Record) => void;
|
|
146
|
-
handleChangeSingleWorkOrderStatus?: (t: string, r: Record) => void;
|
|
147
154
|
templateList?: any[];
|
|
148
155
|
isEditing?: boolean;
|
|
149
156
|
form?: FormInstance;
|
|
@@ -213,4 +220,5 @@ export declare type ColumnConfig = {
|
|
|
213
220
|
subKey?: string;
|
|
214
221
|
mode?: "multiple";
|
|
215
222
|
config?: ComponentInterface["componentConfig"];
|
|
223
|
+
templateConfig?: ComponentInterface["componentConfig"];
|
|
216
224
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.71",
|
|
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.7.15-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.71",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.71"
|
|
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": "ab3d66cffd03fd0bfe02dfc8bf60212faca21fd5"
|
|
44
44
|
}
|