@kmkf-fe-packages/services-components 0.7.15-alpha.7 → 0.7.15-alpha.70
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 +7 -2
- package/dist/esm/components/Common/index.js +176 -78
- 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 +10 -4
- package/dist/esm/components/JST/JstSendGood/index.js +33 -19
- 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
|
@@ -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) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsExchange | BasicFile | JstLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | 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,
|
|
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.70",
|
|
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.70",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.70"
|
|
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": "acde6f0a59a6e1516cea8fc29870bbc58d74d0a7"
|
|
44
44
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
import Express from "../../Express";
|
|
5
|
-
import ExpressCode from "../../ExpressCode";
|
|
6
|
-
declare class BsLogistics implements ComponentInterface {
|
|
7
|
-
name: string;
|
|
8
|
-
id: string;
|
|
9
|
-
sortField: string;
|
|
10
|
-
type: string;
|
|
11
|
-
rules: any[];
|
|
12
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
14
|
-
express: Express;
|
|
15
|
-
expressCode: ExpressCode;
|
|
16
|
-
isCombinationComponent: boolean;
|
|
17
|
-
formField: string;
|
|
18
|
-
canSort: boolean;
|
|
19
|
-
children: ComponentInterface[];
|
|
20
|
-
dataType: ComponentInterface["dataType"];
|
|
21
|
-
constructor(options: PickOption);
|
|
22
|
-
editRender: (p: any) => React.JSX.Element;
|
|
23
|
-
renderClient: (record: Record) => React.JSX.Element;
|
|
24
|
-
renderPc: () => null;
|
|
25
|
-
renderLog: (r: Record) => React.JSX.Element;
|
|
26
|
-
getComponentValue: (r: Record) => {
|
|
27
|
-
company: any;
|
|
28
|
-
order: any;
|
|
29
|
-
};
|
|
30
|
-
renderExport: () => null;
|
|
31
|
-
filterConfig: (item: ColumnConfig) => ({
|
|
32
|
-
searchDefaultConditions: "in";
|
|
33
|
-
type: string;
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
filterComponentType: "MultipleSelect";
|
|
37
|
-
props: {
|
|
38
|
-
options: any[];
|
|
39
|
-
};
|
|
40
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
41
|
-
} | {
|
|
42
|
-
searchDefaultConditions: "like";
|
|
43
|
-
type: string;
|
|
44
|
-
id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
filterComponentType: "Input";
|
|
47
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
48
|
-
})[];
|
|
49
|
-
}
|
|
50
|
-
export default BsLogistics;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function 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 { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
-
import { ExpressLogistics } from "@kmkf-fe-packages/basic-components";
|
|
14
|
-
import Express from "../../Express";
|
|
15
|
-
import ExpressCode from "../../ExpressCode";
|
|
16
|
-
import GetFormItem from "../../GetFormItem";
|
|
17
|
-
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
18
|
-
var _this = this,
|
|
19
|
-
_this$componentConfig3;
|
|
20
|
-
_classCallCheck(this, BsLogistics);
|
|
21
|
-
_defineProperty(this, "name", void 0);
|
|
22
|
-
_defineProperty(this, "id", void 0);
|
|
23
|
-
_defineProperty(this, "sortField", void 0);
|
|
24
|
-
_defineProperty(this, "type", void 0);
|
|
25
|
-
_defineProperty(this, "rules", void 0);
|
|
26
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
-
_defineProperty(this, "expressDateInstance", void 0);
|
|
28
|
-
_defineProperty(this, "express", void 0);
|
|
29
|
-
_defineProperty(this, "expressCode", void 0);
|
|
30
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
-
_defineProperty(this, "formField", void 0);
|
|
32
|
-
_defineProperty(this, "canSort", void 0);
|
|
33
|
-
_defineProperty(this, "children", void 0);
|
|
34
|
-
_defineProperty(this, "dataType", void 0);
|
|
35
|
-
_defineProperty(this, "editRender", function (p) {
|
|
36
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
37
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
38
|
-
title: _this.name,
|
|
39
|
-
name: _this.id,
|
|
40
|
-
rules: _this.rules,
|
|
41
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
42
|
-
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,
|
|
43
|
-
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
44
|
-
options: _this.expressDateInstance.getExpressData(),
|
|
45
|
-
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
46
|
-
}))
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
50
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(this, "renderPc", function () {
|
|
53
|
-
return null;
|
|
54
|
-
});
|
|
55
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
56
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.express.name, ": ", _this.express.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.expressCode.name, ": ", _this.expressCode.renderLog(r)));
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
59
|
-
return {
|
|
60
|
-
company: _this.express.getComponentValue(r),
|
|
61
|
-
order: _this.expressCode.getComponentValue(r)
|
|
62
|
-
};
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(this, "renderExport", function () {
|
|
65
|
-
return null;
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
68
|
-
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
69
|
-
subKey: "bsLogisticsCompany"
|
|
70
|
-
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
71
|
-
subKey: "bsLogisticsCode"
|
|
72
|
-
}))];
|
|
73
|
-
});
|
|
74
|
-
this.name = options.name;
|
|
75
|
-
this.id = options.id;
|
|
76
|
-
this.sortField = options.id;
|
|
77
|
-
this.formField = options.id;
|
|
78
|
-
this.type = options.type;
|
|
79
|
-
this.componentConfig = options.componentConfig;
|
|
80
|
-
this.expressDateInstance = ExpressData.getInstance();
|
|
81
|
-
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
82
|
-
name: "快递物流公司",
|
|
83
|
-
id: "".concat(this.id, "_bsLogisticsCompany")
|
|
84
|
-
}));
|
|
85
|
-
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
|
-
name: "快递物流单号",
|
|
87
|
-
id: "".concat(this.id, "_bsLogisticsCode")
|
|
88
|
-
}));
|
|
89
|
-
this.isCombinationComponent = true;
|
|
90
|
-
this.canSort = false;
|
|
91
|
-
this.dataType = "object";
|
|
92
|
-
this.children = [this.express, this.expressCode];
|
|
93
|
-
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
94
|
-
validator: function validator(_, value) {
|
|
95
|
-
var _this$componentConfig4;
|
|
96
|
-
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
|
|
97
|
-
var _this$componentConfig5, _this$componentConfig6;
|
|
98
|
-
if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
|
|
99
|
-
return Promise.reject(new Error("请选择物流公司"));
|
|
100
|
-
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
|
|
101
|
-
return Promise.reject(new Error("请输入物流单号"));
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
if (!(value !== null && value !== void 0 && value.company)) {
|
|
105
|
-
return Promise.reject(new Error("请选择物流公司"));
|
|
106
|
-
}
|
|
107
|
-
if (!(value !== null && value !== void 0 && value.order)) {
|
|
108
|
-
return Promise.reject(new Error("请输入物流单号"));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return Promise.resolve();
|
|
112
|
-
}
|
|
113
|
-
}] : [];
|
|
114
|
-
});
|
|
115
|
-
export default BsLogistics;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class BsExchangeGoodImage implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface["dataType"];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
getComponentValue: () => null;
|
|
18
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
-
renderExport: (value: string, record: Record) => null;
|
|
22
|
-
editRender: () => null;
|
|
23
|
-
filterConfig: (item: ColumnConfig) => {
|
|
24
|
-
searchDefaultConditions: "like";
|
|
25
|
-
type: string;
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
filterComponentType: "Input";
|
|
29
|
-
}[];
|
|
30
|
-
}
|
|
31
|
-
export default BsExchangeGoodImage;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from "react";
|
|
9
|
-
import { maxBy } from "lodash";
|
|
10
|
-
import ItemView from "../../../commonComponents/ItemView";
|
|
11
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
-
import { SYMBOL } from "../../../constant";
|
|
13
|
-
import { BsGoodImage as BsGood, BsExchangeList } from "../../Common";
|
|
14
|
-
var BsExchangeGoodImage = /*#__PURE__*/_createClass(function BsExchangeGoodImage(options) {
|
|
15
|
-
var _this = this;
|
|
16
|
-
_classCallCheck(this, BsExchangeGoodImage);
|
|
17
|
-
_defineProperty(this, "name", void 0);
|
|
18
|
-
_defineProperty(this, "id", void 0);
|
|
19
|
-
_defineProperty(this, "sortField", void 0);
|
|
20
|
-
_defineProperty(this, "type", void 0);
|
|
21
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
22
|
-
_defineProperty(this, "align", void 0);
|
|
23
|
-
_defineProperty(this, "width", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "formField", void 0);
|
|
26
|
-
_defineProperty(this, "canSort", void 0);
|
|
27
|
-
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "getComponentValue", function () {
|
|
30
|
-
return null;
|
|
31
|
-
});
|
|
32
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
33
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
|
-
id: _this.id,
|
|
35
|
-
label: _this.name,
|
|
36
|
-
value: _this.renderPc(undefined, record)
|
|
37
|
-
}) : null;
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
41
|
-
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
|
-
}
|
|
43
|
-
var type = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeType")];
|
|
44
|
-
var returnGoods = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeReturnGoods")];
|
|
45
|
-
var swapOutGoods = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeSwapOutGoods")];
|
|
46
|
-
var giftGoods = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeGiftGoods")];
|
|
47
|
-
var newReturnGoods = [];
|
|
48
|
-
if (["1", "3"].includes(type === null || type === void 0 ? void 0 : type[0])) {
|
|
49
|
-
newReturnGoods = returnGoods.reduce(function (prv, next) {
|
|
50
|
-
prv.push({
|
|
51
|
-
returnGood: next,
|
|
52
|
-
swapGood: next
|
|
53
|
-
});
|
|
54
|
-
return prv;
|
|
55
|
-
}, []);
|
|
56
|
-
} else if (["2", "4"].includes(type === null || type === void 0 ? void 0 : type[0])) {
|
|
57
|
-
var maxLen = maxBy(returnGoods, function (t) {
|
|
58
|
-
return t.index;
|
|
59
|
-
});
|
|
60
|
-
var newGoods = Array(maxLen.index).fill({
|
|
61
|
-
returnGood: [],
|
|
62
|
-
swapGood: []
|
|
63
|
-
});
|
|
64
|
-
returnGoods.forEach(function (item) {
|
|
65
|
-
newGoods[item.index].returnGood.push(item);
|
|
66
|
-
});
|
|
67
|
-
swapOutGoods.forEach(function (item) {
|
|
68
|
-
newGoods[item.index].swapGood.push(item);
|
|
69
|
-
});
|
|
70
|
-
newReturnGoods = newGoods;
|
|
71
|
-
}
|
|
72
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BsExchangeList, {
|
|
73
|
-
list: newReturnGoods
|
|
74
|
-
}), (giftGoods || []).map(function (item, index) {
|
|
75
|
-
return /*#__PURE__*/React.createElement(BsGood, {
|
|
76
|
-
item: item,
|
|
77
|
-
index: index
|
|
78
|
-
});
|
|
79
|
-
}));
|
|
80
|
-
});
|
|
81
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
82
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
83
|
-
return _this.renderPc(undefined, r);
|
|
84
|
-
});
|
|
85
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
86
|
-
return null;
|
|
87
|
-
});
|
|
88
|
-
_defineProperty(this, "editRender", function () {
|
|
89
|
-
return null;
|
|
90
|
-
});
|
|
91
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
92
|
-
var subKey = item.subKey;
|
|
93
|
-
return [{
|
|
94
|
-
searchDefaultConditions: SYMBOL.like,
|
|
95
|
-
type: item.type,
|
|
96
|
-
id: "".concat(item.id, "_bsExchangeReturnGoods"),
|
|
97
|
-
name: "".concat(_this.name, "-\u9000\u56DE\u5546\u54C1"),
|
|
98
|
-
filterComponentType: "Input"
|
|
99
|
-
}, {
|
|
100
|
-
searchDefaultConditions: SYMBOL.like,
|
|
101
|
-
type: item.type,
|
|
102
|
-
id: "".concat(item.id, "_bsExchangeSwapOutGoods"),
|
|
103
|
-
name: "".concat(_this.name, "-\u6362\u8D27\u5546\u54C1"),
|
|
104
|
-
filterComponentType: "Input"
|
|
105
|
-
}, {
|
|
106
|
-
searchDefaultConditions: SYMBOL.like,
|
|
107
|
-
type: item.type,
|
|
108
|
-
id: "".concat(item.id, "_bsExchangeGiftGoods"),
|
|
109
|
-
name: "".concat(_this.name, "-\u8D60\u54C1\u5546\u54C1"),
|
|
110
|
-
filterComponentType: "Input"
|
|
111
|
-
}];
|
|
112
|
-
});
|
|
113
|
-
this.name = options.name;
|
|
114
|
-
this.id = options.id;
|
|
115
|
-
this.sortField = options.id;
|
|
116
|
-
this.formField = options.id;
|
|
117
|
-
this.type = options.type;
|
|
118
|
-
this.componentConfig = options.componentConfig;
|
|
119
|
-
this.align = "left";
|
|
120
|
-
this.width = 300;
|
|
121
|
-
this.isCombinationComponent = false;
|
|
122
|
-
this.canSort = true;
|
|
123
|
-
this.dataType = "string";
|
|
124
|
-
this.children = [];
|
|
125
|
-
});
|
|
126
|
-
export default BsExchangeGoodImage;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class BsGoodImage implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface["dataType"];
|
|
16
|
-
constructor(options: PickOption);
|
|
17
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
19
|
-
renderLog: (r: Record) => any;
|
|
20
|
-
getComponentValue: (r: Record) => any;
|
|
21
|
-
renderExport: (value: string, record: Record) => any;
|
|
22
|
-
editRender: () => null;
|
|
23
|
-
filterConfig: (item: ColumnConfig) => {
|
|
24
|
-
searchDefaultConditions: "like";
|
|
25
|
-
type: string;
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
filterComponentType: "Input";
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export default BsGoodImage;
|