@kmkf-fe-packages/services-components 2.10.9-beta.2 → 2.10.9-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
- package/dist/esm/components/BS/BsExchange/index.js +6 -0
- package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BS/BsGoods/index.js +6 -0
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReissue/index.js +6 -0
- package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReturn/index.js +6 -0
- package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +14 -0
- package/dist/esm/components/Common/index.js +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +38 -34
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
- package/dist/esm/components/CommonMultiStatus/index.js +34 -6
- package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
- package/dist/esm/components/GY/GyGoods/index.js +6 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReissue/index.js +6 -0
- package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReturn/index.js +6 -0
- package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JST/JstSendGood/index.js +7 -1
- package/dist/esm/components/JST/JstSupply/index.d.ts +1 -1
- package/dist/esm/components/JST/JstSupply/index.js +3 -0
- package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
- package/dist/esm/components/KM/KmExchange/index.js +6 -0
- package/dist/esm/components/KmErpSendGood/index.d.ts +1 -1
- package/dist/esm/components/KmErpSendGood/index.js +3 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/index.js +14 -7
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +103 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +2 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +19 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.js +108 -0
- package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
- package/dist/esm/components/Public/Exchange/index.js +6 -0
- package/dist/esm/components/Public/Goods/index.js +2 -12
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
- package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
- package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
- package/dist/esm/components/Reissue/Logistics/index.js +3 -0
- package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +5 -1
- package/package.json +4 -4
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,7 +33,11 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "wdtGoods", void 0);
|
|
38
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
39
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
40
|
+
});
|
|
36
41
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
42
|
var _record, _this$componentConfig;
|
|
38
43
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -119,5 +124,6 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
|
119
124
|
}
|
|
120
125
|
}] : [];
|
|
121
126
|
this.dataType = "object";
|
|
127
|
+
this.sortChildField = this.getSortChildFields();
|
|
122
128
|
});
|
|
123
129
|
export default WdtGoods;
|
|
@@ -15,11 +15,18 @@ declare class WdtReissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
systemOrderNo: SystemOrderNo;
|
|
21
22
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
WDT_REISSUE_GOODS: {
|
|
22
23
|
key: "wdtReissueGoods",
|
|
@@ -56,10 +57,14 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
56
57
|
_defineProperty(this, "canSort", void 0);
|
|
57
58
|
_defineProperty(this, "children", void 0);
|
|
58
59
|
_defineProperty(this, "dataType", void 0);
|
|
60
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
59
61
|
_defineProperty(this, "bsType", void 0);
|
|
60
62
|
_defineProperty(this, "bsMemo", void 0);
|
|
61
63
|
_defineProperty(this, "systemOrderNo", void 0);
|
|
62
64
|
_defineProperty(this, "reissueGoods", void 0);
|
|
65
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
66
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
67
|
+
});
|
|
63
68
|
_defineProperty(this, "renderClient", function (record) {
|
|
64
69
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
65
70
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -208,5 +213,6 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
208
213
|
}
|
|
209
214
|
}];
|
|
210
215
|
this.dataType = "object";
|
|
216
|
+
this.sortChildField = this.getSortChildFields();
|
|
211
217
|
});
|
|
212
218
|
export default WdtReissue;
|
|
@@ -15,9 +15,16 @@ declare class WdtReturn implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
wdtType: BsType;
|
|
19
20
|
reissueGoods: CommonHeaderGoods;
|
|
20
21
|
constructor(options: PickOption);
|
|
22
|
+
getSortChildFields: () => {
|
|
23
|
+
name: any;
|
|
24
|
+
key: string;
|
|
25
|
+
dataType: string;
|
|
26
|
+
conditionOptionsSetting: any;
|
|
27
|
+
}[];
|
|
21
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
29
|
renderPc: () => null;
|
|
23
30
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
17
17
|
import { BsType } from "../../BS/common/index";
|
|
18
18
|
import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
21
22
|
var _this = this,
|
|
22
23
|
_this$componentConfig6;
|
|
@@ -33,8 +34,12 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
|
33
34
|
_defineProperty(this, "canSort", void 0);
|
|
34
35
|
_defineProperty(this, "children", void 0);
|
|
35
36
|
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
36
38
|
_defineProperty(this, "wdtType", void 0);
|
|
37
39
|
_defineProperty(this, "reissueGoods", void 0);
|
|
40
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
42
|
+
});
|
|
38
43
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
44
|
var _this$componentConfig;
|
|
40
45
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.wdtType.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].wdtReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -147,5 +152,6 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
|
147
152
|
}
|
|
148
153
|
}] : [];
|
|
149
154
|
this.dataType = "object";
|
|
155
|
+
this.sortChildField = this.getSortChildFields();
|
|
150
156
|
});
|
|
151
157
|
export default WdtReturn;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } 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 | BsGoods | BsReissue | BsReturn | BsE3Goods | BsE3Reissue | CommonMultiStatus | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | 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 | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | PublicGoods | PublicReissueGoods | PublicExchange | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect | ReturnWarehouse | KmExchange | GyGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -254,14 +254,18 @@ export var factory = function factory(type, options) {
|
|
|
254
254
|
return new StatusSelect(options);
|
|
255
255
|
case "RETURN_GOODS_STATUS":
|
|
256
256
|
case "EXCHANGE_STATUS":
|
|
257
|
+
return new CommonMultiStatus(options);
|
|
257
258
|
case "WAREHOUSING_STATUS":
|
|
258
259
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
259
260
|
case "WDT_WAREHOUSING_STATUS":
|
|
261
|
+
case "DXD_WAREHOUSING_STATUS":
|
|
260
262
|
case "WLN_WAREHOUSING_STATUS":
|
|
261
263
|
case "JKY_WAREHOUSING_STATUS":
|
|
262
264
|
case "JST_WAREHOUSING_STATUS":
|
|
263
265
|
case "KM_WAREHOUSING_STATUS":
|
|
264
|
-
return new CommonMultiStatus(options
|
|
266
|
+
return new CommonMultiStatus(options, {
|
|
267
|
+
isWarehousingStatus: true
|
|
268
|
+
});
|
|
265
269
|
case "MSG_STATUS":
|
|
266
270
|
return new MsgStatus(options);
|
|
267
271
|
case "GY_PAYMENT_METHOD":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.21",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.10.9-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.10.9-beta.21",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.20",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4dedd2a3b38f76b1511c4cc6e50830a0db126ae9",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|