@kmkf-fe-packages/services-components 2.6.1-beta.0 → 2.6.1-beta.10
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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/Common/index.js +8 -3
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +3 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LogisticsInterception from "../components/LogisticsInterception";
|
|
2
2
|
import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
|
|
3
|
-
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | LogisticsMoreInterception | import("../components/Payment").default | import("../components/PicturePro").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/ReturnWarehouse").default | import("../components/ReceiverAddress").default | import("../components/StatusSelect").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/TradeDateTime").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/Calculation").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
|
|
4
4
|
export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
|
|
5
5
|
queryWorkOrderDetail?: ((p: any) => void) | undefined;
|
|
6
6
|
flatTemplateList?: any;
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import GetFormItem from "../../GetFormItem";
|
|
19
19
|
import ItemView from "../../../commonComponents/ItemView";
|
|
20
|
-
import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
20
|
+
import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
21
21
|
import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
22
22
|
import { BsSystemOrderTable } from "../../Common";
|
|
23
23
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -33,7 +33,8 @@ var typeMap = {
|
|
|
33
33
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
|
|
34
34
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
|
|
35
35
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG,
|
|
36
|
-
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
|
|
36
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG,
|
|
37
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG
|
|
37
38
|
};
|
|
38
39
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
39
40
|
var _this = this,
|
|
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
|
21
21
|
import styles from "./index.module.less";
|
|
22
22
|
import defaultImg from "./img/default-img.png";
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
|
-
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
25
25
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
26
26
|
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
27
27
|
import { ApaasImage } from "@kmkf-fe-packages/basic-components";
|
|
@@ -769,11 +769,13 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
|
|
|
769
769
|
src: fileUrl
|
|
770
770
|
})));
|
|
771
771
|
};
|
|
772
|
+
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
772
773
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
773
774
|
var value = _ref14.value,
|
|
774
775
|
type = _ref14.type,
|
|
775
776
|
_ref14$showHeader = _ref14.showHeader,
|
|
776
777
|
showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
|
|
778
|
+
var isRadio = RADIO_TABLE_KEYS.includes(type);
|
|
777
779
|
var columnMap = {
|
|
778
780
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
779
781
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -784,7 +786,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
784
786
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
785
787
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
786
788
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
787
|
-
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
789
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
790
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
788
791
|
};
|
|
789
792
|
var rowKeyMap = {
|
|
790
793
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -796,9 +799,11 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
796
799
|
JST_SYSTEM_ORDER: "oId",
|
|
797
800
|
JY_SYSTEM_ORDER: "tradeNo",
|
|
798
801
|
JKY_SYSTEM_ORDER: "tradeNo",
|
|
799
|
-
WDT_RETURN_BILL_NO: "refundNo"
|
|
802
|
+
WDT_RETURN_BILL_NO: "refundNo",
|
|
803
|
+
PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
|
|
800
804
|
};
|
|
801
805
|
var rowSelection = {
|
|
806
|
+
type: isRadio ? 'radio' : 'checkbox',
|
|
802
807
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
803
808
|
if (next.select) {
|
|
804
809
|
prv.push(next[rowKeyMap[type]] || "billNo");
|
|
@@ -36,6 +36,13 @@ var typeMap = {
|
|
|
36
36
|
type: 3,
|
|
37
37
|
valueKey: "billNo"
|
|
38
38
|
},
|
|
39
|
+
SWAP_OUT_TRADE_ID: {
|
|
40
|
+
key: "tradeItemList",
|
|
41
|
+
code: "tradeIdList",
|
|
42
|
+
name: "换出系统订单号",
|
|
43
|
+
type: 3,
|
|
44
|
+
valueKey: "billNo"
|
|
45
|
+
},
|
|
39
46
|
EXCHANGE_TRADE_ID: {
|
|
40
47
|
key: "tradeItemList",
|
|
41
48
|
code: "tradeIdList",
|
|
@@ -64,6 +64,10 @@ var selectTypeMap = {
|
|
|
64
64
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: getSelectTypeAttribute({
|
|
65
65
|
key: "returnExchangeGoodsReviewStatusValue",
|
|
66
66
|
info: "returnExchangeGoodsReviewStatusReason"
|
|
67
|
+
}),
|
|
68
|
+
ERP_REMARK: getSelectTypeAttribute({
|
|
69
|
+
key: "erpRemarkStatusValue",
|
|
70
|
+
info: "erpRemarkStatusReason"
|
|
67
71
|
})
|
|
68
72
|
};
|
|
69
73
|
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
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, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, 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) => CommonSystemOrder | StatusSelect | TradeId | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -147,6 +147,7 @@ export var factory = function factory(type, options) {
|
|
|
147
147
|
case "JY_SYSTEM_ORDER":
|
|
148
148
|
case "JKY_SYSTEM_ORDER":
|
|
149
149
|
case "WDT_RETURN_BILL_NO":
|
|
150
|
+
case "PLATFORM_AFTER_SALES_ORDER":
|
|
150
151
|
return new BsSystemOrder(options);
|
|
151
152
|
case "JST_SEND_GOOD":
|
|
152
153
|
case "BS_SEND_GOOD":
|
|
@@ -206,6 +207,7 @@ export var factory = function factory(type, options) {
|
|
|
206
207
|
case "JST_RETURN_GOODS":
|
|
207
208
|
return new PublicReissueGoods(options);
|
|
208
209
|
case "REISSUE_TRADE_ID":
|
|
210
|
+
case "SWAP_OUT_TRADE_ID":
|
|
209
211
|
case "ERP_AFTER_SALE_TRADE_ID":
|
|
210
212
|
case "BS_DELIVERY_NO":
|
|
211
213
|
case "RETURN_GOODS_TRADE_ID":
|
|
@@ -227,6 +229,7 @@ export var factory = function factory(type, options) {
|
|
|
227
229
|
return new FlowWorkOrderId(options);
|
|
228
230
|
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
229
231
|
return new FlowWorkOrderId(options);
|
|
232
|
+
case "ERP_REMARK":
|
|
230
233
|
case "REISSUE_STATUS":
|
|
231
234
|
case "ADJUST_WORK_ORDER_STATUS":
|
|
232
235
|
case "CREATE_STATUS":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.6.1-beta.
|
|
3
|
+
"version": "2.6.1-beta.10",
|
|
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.6.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.6.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.6.1-beta.10",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.6.1-beta.10",
|
|
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": "aa1a82517582f1260e843c4b6160bb4f3fb6ddcf",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|