@kmkf-fe-packages/services-components 2.7.2-rc.0 → 2.7.3-beta.0
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/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/index.js +8 -3
- package/dist/esm/components/CommonHeaderGood/index.js +171 -0
- package/dist/esm/components/CommonMultiStatus/index.js +27 -4
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/index.js +17 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -1
- package/dist/esm/components/Public/Goods/index.js +4 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +18 -0
- package/dist/esm/components/StatusSelect/index.js +18 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +11 -4
- 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/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | 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/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/SubForm").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/BS/BsLogistics").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default |
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsSystemOrder").default | import("../components/Cascader").default | import("../components/CommonSystemOrder").default | import("../components/JST/JstSendGood").default | import("../components/KM/KmExchange").default | import("../components/Logistics").default | LogisticsInterception | 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/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/SubForm").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/BS/BsLogistics").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsMoreInterception | 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/CommonMultiStatus").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;
|
|
@@ -23,7 +23,7 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
23
23
|
}, [hasErpData, notJudgedErp]);
|
|
24
24
|
var asyncQueryData = /*#__PURE__*/function () {
|
|
25
25
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
|
|
26
|
-
var hasWdt, hasGy, hasJst, hasJy, hasJky, promises;
|
|
26
|
+
var hasWdt, hasGy, hasJst, hasJy, hasJky, hasWln, promises;
|
|
27
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
@@ -31,30 +31,31 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
31
31
|
setGlobalState("loading");
|
|
32
32
|
}
|
|
33
33
|
_context.prev = 1;
|
|
34
|
-
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky;
|
|
34
|
+
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy, hasJst = hasErpData.hasJst, hasJy = hasErpData.hasJy, hasJky = hasErpData.hasJky, hasWln = hasErpData.hasWln;
|
|
35
35
|
promises = [];
|
|
36
36
|
if (hasWdt || notJudgedErp) promises.push(SendDataCenter.getInstance("wdt").fetchData);
|
|
37
37
|
if (hasGy || notJudgedErp) promises.push(SendDataCenter.getInstance("gy").fetchData);
|
|
38
38
|
if (hasJst || notJudgedErp) promises.push(SendDataCenter.getInstance("jst").fetchData);
|
|
39
39
|
if (hasJy || notJudgedErp) promises.push(SendDataCenter.getInstance("jy").fetchData);
|
|
40
40
|
if (hasJky || notJudgedErp) promises.push(SendDataCenter.getInstance("jky").fetchData);
|
|
41
|
-
|
|
41
|
+
if (hasWln || notJudgedErp) promises.push(SendDataCenter.getInstance("wln").fetchData);
|
|
42
|
+
_context.next = 12;
|
|
42
43
|
return Promise.all(promises.map(function (promise) {
|
|
43
44
|
return promise();
|
|
44
45
|
}));
|
|
45
|
-
case
|
|
46
|
+
case 12:
|
|
46
47
|
setGlobalState("success");
|
|
47
|
-
_context.next =
|
|
48
|
+
_context.next = 18;
|
|
48
49
|
break;
|
|
49
|
-
case
|
|
50
|
-
_context.prev =
|
|
50
|
+
case 15:
|
|
51
|
+
_context.prev = 15;
|
|
51
52
|
_context.t0 = _context["catch"](1);
|
|
52
53
|
setGlobalState("failed");
|
|
53
|
-
case
|
|
54
|
+
case 18:
|
|
54
55
|
case "end":
|
|
55
56
|
return _context.stop();
|
|
56
57
|
}
|
|
57
|
-
}, _callee, null, [[1,
|
|
58
|
+
}, _callee, null, [[1, 15]]);
|
|
58
59
|
}));
|
|
59
60
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
60
61
|
return _ref.apply(this, arguments);
|
|
@@ -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,
|
|
@@ -28,7 +28,8 @@ var componentType = {
|
|
|
28
28
|
KM_REISSUE_GOODS: "kmReissueType",
|
|
29
29
|
KM_RETURN_GOODS: "kmReturnType",
|
|
30
30
|
JY_REISSUE_GOODS: "jyReissueType",
|
|
31
|
-
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
31
|
+
JKY_REISSUE_GOODS: "jkyReissueType",
|
|
32
|
+
WLN_REISSUE_GOODS: "wlnReissueType"
|
|
32
33
|
};
|
|
33
34
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
34
35
|
var _this = this;
|
|
@@ -29,7 +29,8 @@ var componentType = {
|
|
|
29
29
|
KM_REISSUE_GOODS: "kmReissueType",
|
|
30
30
|
KM_RETURN_GOODS: "kmReturnType",
|
|
31
31
|
JY_REISSUE_GOODS: "jyReissueType",
|
|
32
|
-
JKY_REISSUE_GOODS: "jkyReissueType"
|
|
32
|
+
JKY_REISSUE_GOODS: "jkyReissueType",
|
|
33
|
+
WLN_REISSUE_GOODS: "wlnReissueType"
|
|
33
34
|
};
|
|
34
35
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
35
36
|
var _this = this;
|
|
@@ -24,7 +24,8 @@ var componentType = {
|
|
|
24
24
|
KM_REISSUE_GOODS: "kmSystemOrderNo",
|
|
25
25
|
KM_RETURN_GOODS: "kmSystemOrderNo",
|
|
26
26
|
JY_REISSUE_GOODS: "jySystemOrderNo",
|
|
27
|
-
JKY_REISSUE_GOODS: "jkySystemOrderNo"
|
|
27
|
+
JKY_REISSUE_GOODS: "jkySystemOrderNo",
|
|
28
|
+
WLN_REISSUE_GOODS: "wlnSystemOrderNo"
|
|
28
29
|
};
|
|
29
30
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
30
31
|
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");
|
|
@@ -1411,6 +1411,133 @@ var GoodHeaderMap = {
|
|
|
1411
1411
|
name: "商品编码",
|
|
1412
1412
|
width: 250
|
|
1413
1413
|
},
|
|
1414
|
+
wlnSkuName: {
|
|
1415
|
+
name: "sku名称",
|
|
1416
|
+
width: 250
|
|
1417
|
+
},
|
|
1418
|
+
skuCode: {
|
|
1419
|
+
name: "sku编码",
|
|
1420
|
+
width: 250
|
|
1421
|
+
},
|
|
1422
|
+
skuName: {
|
|
1423
|
+
name: "线上sku名称",
|
|
1424
|
+
width: 250
|
|
1425
|
+
},
|
|
1426
|
+
olnSkuCode: {
|
|
1427
|
+
name: "线上sku编码",
|
|
1428
|
+
width: 150
|
|
1429
|
+
},
|
|
1430
|
+
sku: {
|
|
1431
|
+
name: "线上sku id",
|
|
1432
|
+
width: 150
|
|
1433
|
+
},
|
|
1434
|
+
name: {
|
|
1435
|
+
name: "线上商品名称",
|
|
1436
|
+
width: 250
|
|
1437
|
+
},
|
|
1438
|
+
pic: {
|
|
1439
|
+
name: "线上图片",
|
|
1440
|
+
width: 100,
|
|
1441
|
+
component: BsHeaderPic
|
|
1442
|
+
},
|
|
1443
|
+
olnItemCOde: {
|
|
1444
|
+
name: "线上商品编码",
|
|
1445
|
+
width: 150
|
|
1446
|
+
},
|
|
1447
|
+
code: {
|
|
1448
|
+
name: "线上商品id",
|
|
1449
|
+
width: 150
|
|
1450
|
+
},
|
|
1451
|
+
barCode: {
|
|
1452
|
+
name: "商品条码",
|
|
1453
|
+
width: 150
|
|
1454
|
+
},
|
|
1455
|
+
money: {
|
|
1456
|
+
name: "实付金额",
|
|
1457
|
+
width: 100
|
|
1458
|
+
},
|
|
1459
|
+
number: {
|
|
1460
|
+
name: "数量",
|
|
1461
|
+
width: 100
|
|
1462
|
+
},
|
|
1463
|
+
share: "应收款",
|
|
1464
|
+
discountedUnitPrice: {
|
|
1465
|
+
name: "折后单价",
|
|
1466
|
+
width: 250
|
|
1467
|
+
},
|
|
1468
|
+
originPrice: {
|
|
1469
|
+
name: "原价",
|
|
1470
|
+
width: 250
|
|
1471
|
+
},
|
|
1472
|
+
price: {
|
|
1473
|
+
name: "单价",
|
|
1474
|
+
width: 250
|
|
1475
|
+
},
|
|
1476
|
+
receivable: {
|
|
1477
|
+
name: "销售金额",
|
|
1478
|
+
width: 250
|
|
1479
|
+
},
|
|
1480
|
+
type: {
|
|
1481
|
+
name: "赠品类型",
|
|
1482
|
+
width: 100
|
|
1483
|
+
},
|
|
1484
|
+
isPackage: {
|
|
1485
|
+
width: 100,
|
|
1486
|
+
name: "是否组合商品",
|
|
1487
|
+
transformValue: function transformValue(val) {
|
|
1488
|
+
if (isNull(val)) return "--";
|
|
1489
|
+
return val ? "是" : "否";
|
|
1490
|
+
},
|
|
1491
|
+
renderExport: function renderExport(val) {
|
|
1492
|
+
if (isNull(val)) return "--";
|
|
1493
|
+
return val ? "是" : "否";
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
hasRefund: {
|
|
1497
|
+
width: 100,
|
|
1498
|
+
name: "是否退款",
|
|
1499
|
+
transformValue: function transformValue(val) {
|
|
1500
|
+
if (isNull(val)) return "--";
|
|
1501
|
+
return val ? "是" : "否";
|
|
1502
|
+
},
|
|
1503
|
+
renderExport: function renderExport(val) {
|
|
1504
|
+
if (isNull(val)) return "--";
|
|
1505
|
+
return val ? "是" : "否";
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
unit: {
|
|
1509
|
+
name: "单位",
|
|
1510
|
+
width: 100
|
|
1511
|
+
},
|
|
1512
|
+
pkgGoodsName: {
|
|
1513
|
+
name: "原组合商品名称",
|
|
1514
|
+
width: 200
|
|
1515
|
+
},
|
|
1516
|
+
pkgGoodsCode: {
|
|
1517
|
+
name: "原组合商品编码",
|
|
1518
|
+
width: 200
|
|
1519
|
+
},
|
|
1520
|
+
pkgGoodsId: {
|
|
1521
|
+
name: "原组合商品id",
|
|
1522
|
+
width: 200
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
moneyKey: "money"
|
|
1526
|
+
},
|
|
1527
|
+
WLN_REISSUE_GOODS: {
|
|
1528
|
+
headerMap: {
|
|
1529
|
+
wlnItemName: {
|
|
1530
|
+
name: "商品名称",
|
|
1531
|
+
width: 250
|
|
1532
|
+
},
|
|
1533
|
+
goodsCode: {
|
|
1534
|
+
name: "商品编码",
|
|
1535
|
+
width: 250
|
|
1536
|
+
},
|
|
1537
|
+
wlnSkuName: {
|
|
1538
|
+
name: "sku名称",
|
|
1539
|
+
width: 250
|
|
1540
|
+
},
|
|
1414
1541
|
skuCode: {
|
|
1415
1542
|
name: "sku编码",
|
|
1416
1543
|
width: 250
|
|
@@ -1457,6 +1584,22 @@ var GoodHeaderMap = {
|
|
|
1457
1584
|
width: 100
|
|
1458
1585
|
},
|
|
1459
1586
|
share: "应收款",
|
|
1587
|
+
discountedUnitPrice: {
|
|
1588
|
+
name: "折后单价",
|
|
1589
|
+
width: 250
|
|
1590
|
+
},
|
|
1591
|
+
originPrice: {
|
|
1592
|
+
name: "原价",
|
|
1593
|
+
width: 250
|
|
1594
|
+
},
|
|
1595
|
+
price: {
|
|
1596
|
+
name: "单价",
|
|
1597
|
+
width: 250
|
|
1598
|
+
},
|
|
1599
|
+
receivable: {
|
|
1600
|
+
name: "销售金额",
|
|
1601
|
+
width: 250
|
|
1602
|
+
},
|
|
1460
1603
|
type: {
|
|
1461
1604
|
name: "赠品类型",
|
|
1462
1605
|
width: 100
|
|
@@ -1472,6 +1615,34 @@ var GoodHeaderMap = {
|
|
|
1472
1615
|
if (isNull(val)) return "--";
|
|
1473
1616
|
return val ? "是" : "否";
|
|
1474
1617
|
}
|
|
1618
|
+
},
|
|
1619
|
+
hasRefund: {
|
|
1620
|
+
width: 100,
|
|
1621
|
+
name: "是否退款",
|
|
1622
|
+
transformValue: function transformValue(val) {
|
|
1623
|
+
if (isNull(val)) return "--";
|
|
1624
|
+
return val ? "是" : "否";
|
|
1625
|
+
},
|
|
1626
|
+
renderExport: function renderExport(val) {
|
|
1627
|
+
if (isNull(val)) return "--";
|
|
1628
|
+
return val ? "是" : "否";
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
unit: {
|
|
1632
|
+
name: "单位",
|
|
1633
|
+
width: 100
|
|
1634
|
+
},
|
|
1635
|
+
pkgGoodsName: {
|
|
1636
|
+
name: "原组合商品名称",
|
|
1637
|
+
width: 200
|
|
1638
|
+
},
|
|
1639
|
+
pkgGoodsCode: {
|
|
1640
|
+
name: "原组合商品编码",
|
|
1641
|
+
width: 200
|
|
1642
|
+
},
|
|
1643
|
+
pkgGoodsId: {
|
|
1644
|
+
name: "原组合商品id",
|
|
1645
|
+
width: 200
|
|
1475
1646
|
}
|
|
1476
1647
|
},
|
|
1477
1648
|
moneyKey: "money"
|
|
@@ -134,6 +134,29 @@ var typeMap = {
|
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
136
|
},
|
|
137
|
+
WLN_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "1",
|
|
140
|
+
label: "未入库",
|
|
141
|
+
color: "#ff4d4f"
|
|
142
|
+
}, {
|
|
143
|
+
value: "2",
|
|
144
|
+
label: "部分入库",
|
|
145
|
+
color: "#e7780f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "3",
|
|
148
|
+
label: "已入库",
|
|
149
|
+
color: "#52c41a"
|
|
150
|
+
}],
|
|
151
|
+
key: "wlnInStockStatusItemList",
|
|
152
|
+
code: "wlnInStockStatusList",
|
|
153
|
+
name: "商品入库状态",
|
|
154
|
+
type: 2,
|
|
155
|
+
valueKey: "status",
|
|
156
|
+
idKey: "systemOrderId",
|
|
157
|
+
failValue: "失败",
|
|
158
|
+
dataType: "array_object"
|
|
159
|
+
},
|
|
137
160
|
JKY_WAREHOUSING_STATUS: {
|
|
138
161
|
options: [{
|
|
139
162
|
value: "0",
|
|
@@ -272,11 +295,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
272
295
|
_defineProperty(this, "filterConfig", function (item) {
|
|
273
296
|
var _typeMap$_this$type21, _item$templateConfig;
|
|
274
297
|
return {
|
|
275
|
-
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
298
|
+
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
276
299
|
type: item.type,
|
|
277
300
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
278
301
|
name: "".concat(_this.name),
|
|
279
|
-
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
302
|
+
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
280
303
|
props: {
|
|
281
304
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
282
305
|
fieldNames: {
|
|
@@ -291,7 +314,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
291
314
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
292
315
|
};
|
|
293
316
|
},
|
|
294
|
-
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
317
|
+
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
295
318
|
if (value.type === "in") {
|
|
296
319
|
return value.keywords;
|
|
297
320
|
} else {
|
|
@@ -327,6 +350,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
327
350
|
}
|
|
328
351
|
}] : [];
|
|
329
352
|
this.align = "left";
|
|
330
|
-
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
353
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
331
354
|
});
|
|
332
355
|
export default CommonMultiStatus;
|
|
@@ -38,6 +38,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
38
38
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
39
39
|
effects: ComponentInterface["effects"];
|
|
40
40
|
dataType: ComponentInterface["dataType"];
|
|
41
|
+
isChange: boolean;
|
|
41
42
|
constructor(options: PickOption);
|
|
42
43
|
renderClient: (record: any) => React.JSX.Element;
|
|
43
44
|
renderLog: (record: any) => React.JSX.Element;
|
|
@@ -59,6 +59,7 @@ function Logistics(options) {
|
|
|
59
59
|
_defineProperty(this, "logisticsAddressData", void 0);
|
|
60
60
|
_defineProperty(this, "effects", void 0);
|
|
61
61
|
_defineProperty(this, "dataType", void 0);
|
|
62
|
+
_defineProperty(this, "isChange", void 0);
|
|
62
63
|
_defineProperty(this, "renderClient", function (record) {
|
|
63
64
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
64
65
|
});
|
|
@@ -91,6 +92,19 @@ function Logistics(options) {
|
|
|
91
92
|
});
|
|
92
93
|
_defineProperty(this, "editRender", function (p) {
|
|
93
94
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
|
|
95
|
+
var onInterceptCodeBlur = function onInterceptCodeBlur(val) {
|
|
96
|
+
if (_this.isChange) {
|
|
97
|
+
var _p$onBlur;
|
|
98
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "interceptCode");
|
|
99
|
+
_this.isChange = false;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var onInterceptChange = function onInterceptChange(value, type) {
|
|
103
|
+
if (type === "interceptCode") {
|
|
104
|
+
_this.isChange = true;
|
|
105
|
+
}
|
|
106
|
+
p === null || p === void 0 ? void 0 : p.onChange(value);
|
|
107
|
+
};
|
|
94
108
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
95
109
|
title: _this.name,
|
|
96
110
|
name: _this.id,
|
|
@@ -104,6 +118,8 @@ function Logistics(options) {
|
|
|
104
118
|
onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
|
|
105
119
|
}, _this.componentConfig, {
|
|
106
120
|
showReason: true,
|
|
121
|
+
onBlur: onInterceptCodeBlur,
|
|
122
|
+
onChange: onInterceptChange,
|
|
107
123
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
108
124
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
109
125
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
@@ -157,6 +173,7 @@ function Logistics(options) {
|
|
|
157
173
|
this.isCombinationComponent = true;
|
|
158
174
|
this.canSort = false;
|
|
159
175
|
this.dataType = "object";
|
|
176
|
+
this.isChange = false;
|
|
160
177
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
|
|
161
178
|
// this.interceptLogisticsUserKCode,
|
|
162
179
|
// this.interceptLogisticsUserSecretKey,
|
|
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
31
31
|
sortColumns: SortColumnsField;
|
|
32
32
|
headerProvince: boolean;
|
|
33
33
|
constructor(options: PickOption);
|
|
34
|
-
getChildren: () => (
|
|
34
|
+
getChildren: () => (Province | City | District | Detail | ReceiverName | ReceiverMobile | undefined)[];
|
|
35
35
|
getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
|
|
36
36
|
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
37
37
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -128,6 +128,24 @@ var typeMap = {
|
|
|
128
128
|
}
|
|
129
129
|
return Promise.resolve();
|
|
130
130
|
}
|
|
131
|
+
},
|
|
132
|
+
WLN_REISSUE_GOODS: {
|
|
133
|
+
key: "wlnReissueGoods",
|
|
134
|
+
typeName: "wlnReissueType",
|
|
135
|
+
remark: "wlnReissueType_memo",
|
|
136
|
+
systemOrderNo: "wlnSystemOrderNo",
|
|
137
|
+
systemOrderBillType: "wlnSystemOrderBillType",
|
|
138
|
+
errMsg: "请选择万里牛补发商品",
|
|
139
|
+
name: "万里牛",
|
|
140
|
+
compType: "补发",
|
|
141
|
+
validator: function validator(_rule, value, type) {
|
|
142
|
+
if (!_rule.required) return Promise.resolve();
|
|
143
|
+
var validatorFlag = erpFormValidator(_rule, value, type);
|
|
144
|
+
if (validatorFlag) {
|
|
145
|
+
return validatorFlag;
|
|
146
|
+
}
|
|
147
|
+
return Promise.resolve();
|
|
148
|
+
}
|
|
131
149
|
}
|
|
132
150
|
};
|
|
133
151
|
var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
|
|
@@ -48,6 +48,10 @@ var selectTypeMap = {
|
|
|
48
48
|
key: "erpAfterSaleStatusValue",
|
|
49
49
|
info: "erpAfterSaleStatusReason"
|
|
50
50
|
}),
|
|
51
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: getSelectTypeAttribute({
|
|
52
|
+
key: "erpAfterSalesOrderReviewStatusValue",
|
|
53
|
+
info: "erpAfterSalesOrderReviewStatusReason"
|
|
54
|
+
}),
|
|
51
55
|
INVOICING_STATUS: getSelectTypeAttribute({
|
|
52
56
|
key: "invoicingStatusValue",
|
|
53
57
|
info: "invoicingReason",
|
|
@@ -64,10 +68,15 @@ var selectTypeMap = {
|
|
|
64
68
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: getSelectTypeAttribute({
|
|
65
69
|
key: "returnExchangeGoodsReviewStatusValue",
|
|
66
70
|
info: "returnExchangeGoodsReviewStatusReason"
|
|
71
|
+
}),
|
|
72
|
+
ERP_REMARK: getSelectTypeAttribute({
|
|
73
|
+
key: "erpRemarkStatusValue",
|
|
74
|
+
info: "erpRemarkStatusReason"
|
|
67
75
|
})
|
|
68
76
|
};
|
|
69
77
|
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
70
|
-
var _this = this
|
|
78
|
+
var _this = this,
|
|
79
|
+
_this$componentConfig5;
|
|
71
80
|
_classCallCheck(this, StatusSelect);
|
|
72
81
|
_defineProperty(this, "name", void 0);
|
|
73
82
|
_defineProperty(this, "id", void 0);
|
|
@@ -169,7 +178,14 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
169
178
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
170
179
|
options: selectTypeMap[options.type].options
|
|
171
180
|
});
|
|
172
|
-
this.rules = [
|
|
181
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
182
|
+
validator: function validator(_, value) {
|
|
183
|
+
if (!value || !value.status && value.status !== 0) {
|
|
184
|
+
return Promise.reject(new Error("".concat(_this.name, "\u4E0D\u80FD\u4E3A\u7A7A")));
|
|
185
|
+
}
|
|
186
|
+
return Promise.resolve();
|
|
187
|
+
}
|
|
188
|
+
}] : [];
|
|
173
189
|
this.isCombinationComponent = false;
|
|
174
190
|
this.canSort = true;
|
|
175
191
|
this.children = [];
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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,
|
|
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, 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) => CommonMultiStatus | JstSendGood | LogisticsInterception | PublicGoods | PublicReissueGoods | StatusSelect | 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 | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | 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
|
@@ -1,6 +1,8 @@
|
|
|
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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
4
|
+
// WlnGoods,
|
|
5
|
+
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";
|
|
4
6
|
export var factory = function factory(type, options) {
|
|
5
7
|
var _options$componentCon;
|
|
6
8
|
switch (type) {
|
|
@@ -147,6 +149,7 @@ export var factory = function factory(type, options) {
|
|
|
147
149
|
case "JY_SYSTEM_ORDER":
|
|
148
150
|
case "JKY_SYSTEM_ORDER":
|
|
149
151
|
case "WDT_RETURN_BILL_NO":
|
|
152
|
+
case "PLATFORM_AFTER_SALES_ORDER":
|
|
150
153
|
return new BsSystemOrder(options);
|
|
151
154
|
case "JST_SEND_GOOD":
|
|
152
155
|
case "BS_SEND_GOOD":
|
|
@@ -172,9 +175,11 @@ export var factory = function factory(type, options) {
|
|
|
172
175
|
case "JKY_GOODS":
|
|
173
176
|
case "KM_GOODS":
|
|
174
177
|
case "JST_GOODS":
|
|
178
|
+
case "WLN_GOODS":
|
|
175
179
|
case "WDT_AFTERSALE_GOODS":
|
|
176
180
|
case "JST_AFTERSALE_GOODS":
|
|
177
181
|
return new PublicGoods(options);
|
|
182
|
+
case "WLN_REISSUE_GOODS":
|
|
178
183
|
case "JST_REISSUE_GOODS":
|
|
179
184
|
case "KM_REISSUE_GOODS":
|
|
180
185
|
case "KM_RETURN_GOODS":
|
|
@@ -228,6 +233,7 @@ export var factory = function factory(type, options) {
|
|
|
228
233
|
return new FlowWorkOrderId(options);
|
|
229
234
|
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
230
235
|
return new FlowWorkOrderId(options);
|
|
236
|
+
case "ERP_REMARK":
|
|
231
237
|
case "REISSUE_STATUS":
|
|
232
238
|
case "ADJUST_WORK_ORDER_STATUS":
|
|
233
239
|
case "CREATE_STATUS":
|
|
@@ -236,6 +242,7 @@ export var factory = function factory(type, options) {
|
|
|
236
242
|
case "AGREE_REFUND_STATUS":
|
|
237
243
|
case "REJECT_REFUND_STATUS":
|
|
238
244
|
case "ERP_AFTER_SALE_STATUS":
|
|
245
|
+
case "ERP_AFTER_SALES_ORDER_REVIEW_STATUS":
|
|
239
246
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
240
247
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
241
248
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
@@ -246,6 +253,7 @@ export var factory = function factory(type, options) {
|
|
|
246
253
|
case "WAREHOUSING_STATUS":
|
|
247
254
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
248
255
|
case "WDT_WAREHOUSING_STATUS":
|
|
256
|
+
case "WLN_WAREHOUSING_STATUS":
|
|
249
257
|
case "JKY_WAREHOUSING_STATUS":
|
|
250
258
|
return new CommonMultiStatus(options);
|
|
251
259
|
case "MSG_STATUS":
|
|
@@ -266,9 +274,8 @@ export var factory = function factory(type, options) {
|
|
|
266
274
|
case "NODE_STAY_DURATION_INPUT":
|
|
267
275
|
// 工单停留时长
|
|
268
276
|
return new NodeStayDuration(options);
|
|
269
|
-
case "WLN_GOODS":
|
|
270
|
-
|
|
271
|
-
return new WlnGoods(options);
|
|
277
|
+
// case "WLN_GOODS": // 万里牛商品
|
|
278
|
+
// return new WlnGoods(options);
|
|
272
279
|
case "NODE_INPUT":
|
|
273
280
|
return new NodeInput(options);
|
|
274
281
|
case "FLOW_WORK_STATUS_SELECT":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3-beta.0",
|
|
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.7.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.7.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.7.3-beta.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.7.3-beta.0",
|
|
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": "8c80641421cc67b5f77f17fbe4db443014610338",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|