@kmkf-fe-packages/services-components 2.0.12-beta.4 → 2.0.14
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/README.md +1 -1
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +9 -10
- package/dist/esm/components/BS/BsSystemOrder/index.js +2 -3
- package/dist/esm/components/BS/common/BsMemo.js +1 -2
- package/dist/esm/components/BS/common/BsType.js +1 -2
- package/dist/esm/components/BS/common/SystemOrderNo.js +1 -2
- package/dist/esm/components/Common/index.js +4 -6
- package/dist/esm/components/CommonHeaderGood/index.js +4 -54
- package/dist/esm/components/CommonSystemOrder/index.js +0 -7
- package/dist/esm/components/CommonTradeId/index.js +0 -3
- package/dist/esm/components/JST/JstSendGood/index.js +2 -2
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Select/index.js +2 -5
- package/dist/esm/components/StatusSelect/index.js +0 -4
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -9
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/service/api.d.ts +1 -1
- package/package.json +6 -6
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
- package/dist/esm/components/Public/Goods/index.d.ts +0 -38
- package/dist/esm/components/Public/Goods/index.js +0 -132
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +0 -58
- package/dist/esm/components/Public/ReissueGoods/index.js +0 -236
package/README.md
CHANGED
|
@@ -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,
|
|
26
|
+
var hasWdt, hasGy, promises;
|
|
27
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
@@ -31,28 +31,27 @@ function useGetErpSendData(reduxData, notJudgedErp) {
|
|
|
31
31
|
setGlobalState("loading");
|
|
32
32
|
}
|
|
33
33
|
_context.prev = 1;
|
|
34
|
-
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy
|
|
34
|
+
hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy;
|
|
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
|
-
|
|
39
|
-
_context.next = 9;
|
|
38
|
+
_context.next = 8;
|
|
40
39
|
return Promise.all(promises.map(function (promise) {
|
|
41
40
|
return promise();
|
|
42
41
|
}));
|
|
43
|
-
case
|
|
42
|
+
case 8:
|
|
44
43
|
setGlobalState("success");
|
|
45
|
-
_context.next =
|
|
44
|
+
_context.next = 14;
|
|
46
45
|
break;
|
|
47
|
-
case
|
|
48
|
-
_context.prev =
|
|
46
|
+
case 11:
|
|
47
|
+
_context.prev = 11;
|
|
49
48
|
_context.t0 = _context["catch"](1);
|
|
50
49
|
setGlobalState("failed");
|
|
51
|
-
case
|
|
50
|
+
case 14:
|
|
52
51
|
case "end":
|
|
53
52
|
return _context.stop();
|
|
54
53
|
}
|
|
55
|
-
}, _callee, null, [[1,
|
|
54
|
+
}, _callee, null, [[1, 11]]);
|
|
56
55
|
}));
|
|
57
56
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
58
57
|
return _ref.apply(this, arguments);
|
|
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from "react";
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
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
|
|
14
|
+
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 } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -22,8 +22,7 @@ var typeMap = {
|
|
|
22
22
|
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG,
|
|
23
23
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG,
|
|
24
24
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
|
|
25
|
-
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG
|
|
26
|
-
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG
|
|
25
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG
|
|
27
26
|
};
|
|
28
27
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
29
28
|
var _this = this,
|
|
@@ -21,8 +21,7 @@ var componentType = {
|
|
|
21
21
|
WDT_REISSUE_GOODS: "wdtReissueType",
|
|
22
22
|
WDT_RETURN_GOODS: "wdtReturnType",
|
|
23
23
|
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
24
|
-
GY_REISSUE_GOODS: "gyReissueType"
|
|
25
|
-
JST_REISSUE_GOODS: "jstReissueType"
|
|
24
|
+
GY_REISSUE_GOODS: "gyReissueType"
|
|
26
25
|
};
|
|
27
26
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
28
27
|
var _this = this;
|
|
@@ -22,8 +22,7 @@ var componentType = {
|
|
|
22
22
|
WDT_REISSUE_GOODS: "wdtReissueType",
|
|
23
23
|
WDT_RETURN_GOODS: "wdtReturnType",
|
|
24
24
|
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
25
|
-
GY_REISSUE_GOODS: "gyReissueType"
|
|
26
|
-
JST_REISSUE_GOODS: "jstReissueType"
|
|
25
|
+
GY_REISSUE_GOODS: "gyReissueType"
|
|
27
26
|
};
|
|
28
27
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
29
28
|
var _this = this;
|
|
@@ -17,8 +17,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
17
17
|
var componentType = {
|
|
18
18
|
WDT_REISSUE_GOODS: "wdtSystemOrderNo",
|
|
19
19
|
BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo",
|
|
20
|
-
GY_REISSUE_GOODS: "gySystemOrderNo"
|
|
21
|
-
JST_REISSUE_GOODS: "jstSystemOrderNo"
|
|
20
|
+
GY_REISSUE_GOODS: "gySystemOrderNo"
|
|
22
21
|
};
|
|
23
22
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
24
23
|
var _this = this;
|
|
@@ -20,7 +20,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
-
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,
|
|
23
|
+
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, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
24
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
25
25
|
var Paragraph = Typography.Paragraph;
|
|
26
26
|
export var getFormItem = function getFormItem(_ref) {
|
|
@@ -640,8 +640,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
640
640
|
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
641
641
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
642
642
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
643
|
-
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns
|
|
644
|
-
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
|
|
643
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns
|
|
645
644
|
};
|
|
646
645
|
var rowKeyMap = {
|
|
647
646
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -649,8 +648,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
649
648
|
WLN_SYSTEM_ORDER: "billNo",
|
|
650
649
|
WDT_SYSTEM_ORDER: "billNo",
|
|
651
650
|
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
652
|
-
GY_SYSTEM_ORDER: "billNo"
|
|
653
|
-
JST_SYSTEM_ORDER: "oId"
|
|
651
|
+
GY_SYSTEM_ORDER: "billNo"
|
|
654
652
|
};
|
|
655
653
|
var rowSelection = {
|
|
656
654
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
@@ -733,7 +731,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
733
731
|
var key = item.msgType || "ding";
|
|
734
732
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
735
733
|
key: index
|
|
736
|
-
}, msgTypeCh[key]
|
|
734
|
+
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
737
735
|
return /*#__PURE__*/React.createElement("div", {
|
|
738
736
|
key: "wrap_".concat(index),
|
|
739
737
|
style: {
|
|
@@ -766,44 +766,6 @@ var GoodHeaderMap = {
|
|
|
766
766
|
isGift: "是否赠品"
|
|
767
767
|
},
|
|
768
768
|
moneyKey: "goodPrice"
|
|
769
|
-
},
|
|
770
|
-
JST_GOODS: {
|
|
771
|
-
headerMap: {
|
|
772
|
-
name: "商品名称",
|
|
773
|
-
skuId: "商品编码",
|
|
774
|
-
iId: "款式编码",
|
|
775
|
-
pic: {
|
|
776
|
-
component: BsHeaderPic,
|
|
777
|
-
name: '商品图片'
|
|
778
|
-
},
|
|
779
|
-
propertiesValue: "规格值",
|
|
780
|
-
saleBasePrice: "原价",
|
|
781
|
-
salePrice: "单价",
|
|
782
|
-
qty: "数量",
|
|
783
|
-
saleAmount: "总金额",
|
|
784
|
-
batchId: "批次号",
|
|
785
|
-
isGift: "是否赠品",
|
|
786
|
-
outerOiId: "子订单号"
|
|
787
|
-
},
|
|
788
|
-
moneyKey: "salePrice"
|
|
789
|
-
},
|
|
790
|
-
JST_REISSUE_GOODS: {
|
|
791
|
-
headerMap: {
|
|
792
|
-
name: "商品名称",
|
|
793
|
-
skuId: "商品编码",
|
|
794
|
-
iId: "款式编码",
|
|
795
|
-
pic: {
|
|
796
|
-
component: BsHeaderPic,
|
|
797
|
-
name: '商品图片'
|
|
798
|
-
},
|
|
799
|
-
propertiesValue: "规格值",
|
|
800
|
-
saleBasePrice: "原价",
|
|
801
|
-
salePrice: "单价",
|
|
802
|
-
qty: "数量",
|
|
803
|
-
isGift: "是否赠品",
|
|
804
|
-
remark: "备注"
|
|
805
|
-
},
|
|
806
|
-
moneyKey: "salePrice"
|
|
807
769
|
}
|
|
808
770
|
};
|
|
809
771
|
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
@@ -906,22 +868,10 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
|
|
|
906
868
|
}).map(function (item) {
|
|
907
869
|
return item.dataIndex;
|
|
908
870
|
}).includes(key))) {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
key: key,
|
|
914
|
-
width: 80
|
|
915
|
-
} : {
|
|
916
|
-
component: GoodHeaderMap[_this2.type].headerMap[key].component || BsHeaderChild,
|
|
917
|
-
name: ((_this2$itemKey = _this2.itemKey) === null || _this2$itemKey === void 0 ? void 0 : _this2$itemKey[key]) || GoodHeaderMap[_this2.type].headerMap[key].name,
|
|
918
|
-
key: GoodHeaderMap[_this2.type].headerMap[key].key || key,
|
|
919
|
-
width: GoodHeaderMap[_this2.type].headerMap[key].width || 80
|
|
920
|
-
};
|
|
921
|
-
prv.push(new target.component(_objectSpread(_objectSpread({}, options), {}, {
|
|
922
|
-
name: target.name,
|
|
923
|
-
id: "".concat(options.id, "_").concat(target.key),
|
|
924
|
-
width: target.width
|
|
871
|
+
prv.push(new GoodHeaderMap[_this2.type].headerMap[key].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
872
|
+
name: _this2.itemKey[key],
|
|
873
|
+
id: "".concat(options.id, "_").concat(GoodHeaderMap[_this2.type].headerMap[key].key),
|
|
874
|
+
width: GoodHeaderMap[_this2.type].headerMap[key].width
|
|
925
875
|
})));
|
|
926
876
|
}
|
|
927
877
|
return prv;
|
|
@@ -42,13 +42,6 @@ var typeMap = {
|
|
|
42
42
|
name: "换货单id",
|
|
43
43
|
type: 4,
|
|
44
44
|
valueKey: "billNo"
|
|
45
|
-
},
|
|
46
|
-
AFTER_SALE_TRADE_ID: {
|
|
47
|
-
key: "tradeItemList",
|
|
48
|
-
code: "tradeIdList",
|
|
49
|
-
name: "售后单id",
|
|
50
|
-
type: 5,
|
|
51
|
-
valueKey: "billNo"
|
|
52
45
|
}
|
|
53
46
|
};
|
|
54
47
|
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
@@ -20,7 +20,7 @@ var typeMap = {
|
|
|
20
20
|
name: "jst",
|
|
21
21
|
sendId: "sendId",
|
|
22
22
|
sendName: "sendName",
|
|
23
|
-
platformType: "
|
|
23
|
+
platformType: "default",
|
|
24
24
|
dataType: "arrayObject"
|
|
25
25
|
},
|
|
26
26
|
BS_SEND_GOOD: {
|
|
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
176
|
});
|
|
177
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -39,15 +39,10 @@ var typeMap = {
|
|
|
39
39
|
label: "等待执行",
|
|
40
40
|
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: "
|
|
42
|
+
oldValue: "等待发送",
|
|
43
43
|
value: "不满足条件,无需执行",
|
|
44
44
|
label: "不满足条件,无需执行",
|
|
45
45
|
color: "#8A8A8A"
|
|
46
|
-
}, {
|
|
47
|
-
oldValue: "暂不满足条件,等待执行",
|
|
48
|
-
value: "暂不满足条件,等待执行",
|
|
49
|
-
label: "暂不满足条件,等待执行",
|
|
50
|
-
color: "#4D90F7"
|
|
51
46
|
}],
|
|
52
47
|
key: "msgStatusValues",
|
|
53
48
|
code: "msgStatus4Search",
|
|
@@ -130,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
130
125
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
131
126
|
});
|
|
132
127
|
var key = item.msgType || "ding";
|
|
133
|
-
return "".concat(msgTypeCh[key]
|
|
128
|
+
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
|
|
134
129
|
}).join(",");
|
|
135
130
|
});
|
|
136
131
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
+
formDataTransform: (value: string) => string | number;
|
|
39
40
|
}
|
|
40
41
|
export default PaymentAmount;
|
|
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
+
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
+
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
+
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
+
});
|
|
135
139
|
this.name = '打款金额';
|
|
136
140
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
137
141
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -22,9 +22,6 @@ var typeMap = {
|
|
|
22
22
|
NEW_PAYMENT_STATUS: {
|
|
23
23
|
key: "newPaymentStatus",
|
|
24
24
|
placeholder: "自动获取无需填写"
|
|
25
|
-
},
|
|
26
|
-
ORDER_TYPE: {
|
|
27
|
-
key: "orderType"
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
27
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
@@ -101,7 +98,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
101
98
|
return label !== null && label !== void 0 ? label : "--";
|
|
102
99
|
});
|
|
103
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
104
|
-
var _item$config
|
|
101
|
+
var _item$config;
|
|
105
102
|
var key = _this.getKeyByComponentType(item.type);
|
|
106
103
|
return {
|
|
107
104
|
searchDefaultConditions: SYMBOL.in,
|
|
@@ -112,7 +109,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
112
109
|
// 过滤组件名称
|
|
113
110
|
filterComponentType: "MultipleSelect",
|
|
114
111
|
props: {
|
|
115
|
-
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) ||
|
|
112
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
116
113
|
},
|
|
117
114
|
filterFn: function filterFn(value) {
|
|
118
115
|
return function (i) {
|
|
@@ -40,10 +40,6 @@ var selectTypeMap = {
|
|
|
40
40
|
key: "rejectRefundStatusValue",
|
|
41
41
|
info: "rejectRefundStatusReason"
|
|
42
42
|
}),
|
|
43
|
-
ERP_AFTER_SALE_STATUS: getSelectTypeAttribute({
|
|
44
|
-
key: "erpAfterSaleStatusValue",
|
|
45
|
-
info: "erpAfterSaleStatusReason"
|
|
46
|
-
}),
|
|
47
43
|
INVOICING_STATUS: getSelectTypeAttribute({
|
|
48
44
|
key: "invoicingStatusValue",
|
|
49
45
|
info: "invoicingReason",
|
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, 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,
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonSystemOrder | GyReissue | JstSendGood | Label | MsgStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonSystemOrder | GyReissue | JstSendGood | Label | MsgStatus | BasicSelect | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | 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 | BsGoods | BsE3Goods | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | MemberLevel | AfterSalesOrderId | GyGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -31,7 +31,6 @@ export var factory = function factory(type, options) {
|
|
|
31
31
|
case "SELECT":
|
|
32
32
|
case "BUYER_MESSAGE_NOTICE":
|
|
33
33
|
case "NEW_PAYMENT_STATUS":
|
|
34
|
-
case "ORDER_TYPE":
|
|
35
34
|
return new BasicSelect(options);
|
|
36
35
|
case "PICTURE":
|
|
37
36
|
return new BasicPicture(options);
|
|
@@ -135,7 +134,6 @@ export var factory = function factory(type, options) {
|
|
|
135
134
|
case "WDT_SYSTEM_ORDER":
|
|
136
135
|
case "BS_E3_SYSTEM_ORDER":
|
|
137
136
|
case "GY_SYSTEM_ORDER":
|
|
138
|
-
case "JST_SYSTEM_ORDER":
|
|
139
137
|
return new BsSystemOrder(options);
|
|
140
138
|
case "JST_SEND_GOOD":
|
|
141
139
|
case "BS_SEND_GOOD":
|
|
@@ -153,10 +151,6 @@ export var factory = function factory(type, options) {
|
|
|
153
151
|
return new BsE3Goods(options);
|
|
154
152
|
case "GY_GOODS":
|
|
155
153
|
return new GyGoods(options);
|
|
156
|
-
case "JST_GOODS":
|
|
157
|
-
return new PublicGoods(options);
|
|
158
|
-
case "JST_REISSUE_GOODS":
|
|
159
|
-
return new PublicReissueGoods(options);
|
|
160
154
|
case "BS_E3_REISSUE_GOODS":
|
|
161
155
|
return new BsE3Reissue(options);
|
|
162
156
|
case "BS_EXCHANGE_GOODS":
|
|
@@ -174,7 +168,6 @@ export var factory = function factory(type, options) {
|
|
|
174
168
|
case "WDT_RETURN_GOODS":
|
|
175
169
|
return new WdtReturn(options);
|
|
176
170
|
case "REISSUE_TRADE_ID":
|
|
177
|
-
case "AFTER_SALE_TRADE_ID":
|
|
178
171
|
case "BS_DELIVERY_NO":
|
|
179
172
|
case "RETURN_GOODS_TRADE_ID":
|
|
180
173
|
case "EXCHANGE_TRADE_ID":
|
|
@@ -197,7 +190,6 @@ export var factory = function factory(type, options) {
|
|
|
197
190
|
case "INVOICING_STATUS":
|
|
198
191
|
case "AGREE_REFUND_STATUS":
|
|
199
192
|
case "REJECT_REFUND_STATUS":
|
|
200
|
-
case "ERP_AFTER_SALE_STATUS":
|
|
201
193
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
202
194
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
203
195
|
return new StatusSelect(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -41,8 +41,6 @@ export { default as JstSupply } from "./components/JST/JstSupply";
|
|
|
41
41
|
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
42
42
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
43
43
|
export { default as BsE3Goods } from "./components/BsE3/BsGoods";
|
|
44
|
-
export { default as PublicGoods } from "./components/Public/Goods";
|
|
45
|
-
export { default as PublicReissueGoods } from "./components/Public/ReissueGoods";
|
|
46
44
|
export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
|
|
47
45
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
48
46
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
package/dist/esm/index.js
CHANGED
|
@@ -41,8 +41,6 @@ export { default as JstSupply } from "./components/JST/JstSupply";
|
|
|
41
41
|
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
42
42
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
43
43
|
export { default as BsE3Goods } from "./components/BsE3/BsGoods";
|
|
44
|
-
export { default as PublicGoods } from "./components/Public/Goods";
|
|
45
|
-
export { default as PublicReissueGoods } from "./components/Public/ReissueGoods";
|
|
46
44
|
export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
|
|
47
45
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
48
46
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
@@ -10,7 +10,7 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
|
10
10
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
11
|
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
12
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
13
|
-
export declare const queryKMLogisticsCompany: () =>
|
|
13
|
+
export declare const queryKMLogisticsCompany: () => any;
|
|
14
14
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
15
15
|
export declare const queryLabel: () => Promise<any>;
|
|
16
16
|
export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
+
"sync": "yarn build && yalc push",
|
|
10
11
|
"build": "yarn run lint && father build",
|
|
11
12
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
12
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
13
|
-
"sync": "yarn build && yalc push"
|
|
13
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.14",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.14",
|
|
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": "c4ee9161a08d5443c9eb7f5701e8d43ca074b280",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var react_1 = require("react");
|
|
5
|
-
var react_redux_1 = require("react-redux");
|
|
6
|
-
var toolkit_1 = require("@reduxjs/toolkit");
|
|
7
|
-
var getTemplate = function getTemplate(companyUserConfig) {
|
|
8
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
9
|
-
return JSON.stringify({
|
|
10
|
-
hasWln: (_c = (_b = (_a = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _a === void 0 ? void 0 : _a.wln) === null || _b === void 0 ? void 0 : _b.show) !== null && _c !== void 0 ? _c : false,
|
|
11
|
-
hasWdt: (_f = (_e = (_d = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _d === void 0 ? void 0 : _d.wdt) === null || _e === void 0 ? void 0 : _e.show) !== null && _f !== void 0 ? _f : false,
|
|
12
|
-
hasBs: (_j = (_h = (_g = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _g === void 0 ? void 0 : _g.bs) === null || _h === void 0 ? void 0 : _h.show) !== null && _j !== void 0 ? _j : false,
|
|
13
|
-
hasE3: (_m = (_l = (_k = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _k === void 0 ? void 0 : _k.bse3) === null || _l === void 0 ? void 0 : _l.show) !== null && _m !== void 0 ? _m : false,
|
|
14
|
-
hasJst: (_q = (_p = (_o = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _o === void 0 ? void 0 : _o.jst) === null || _p === void 0 ? void 0 : _p.show) !== null && _q !== void 0 ? _q : false,
|
|
15
|
-
hasGy: (_t = (_s = (_r = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : companyUserConfig.plugins) === null || _r === void 0 ? void 0 : _r.gy) === null || _s === void 0 ? void 0 : _s.show) !== null && _t !== void 0 ? _t : false
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
function useGetHasErpData() {
|
|
19
|
-
var companyUserConfig = react_redux_1.useSelector(toolkit_1.createSelector([function (state) {
|
|
20
|
-
var _a, _b, _c, _d;
|
|
21
|
-
console.log("state--useSelector", state);
|
|
22
|
-
/**
|
|
23
|
-
* pc main
|
|
24
|
-
* 端 workOrder
|
|
25
|
-
* **/
|
|
26
|
-
return (_d = (_b = (_a = state === null || state === void 0 ? void 0 : state.main) === null || _a === void 0 ? void 0 : _a.userInfo) !== null && _b !== void 0 ? _b : (_c = state === null || state === void 0 ? void 0 : state.workOrder) === null || _c === void 0 ? void 0 : _c.userInfo) !== null && _d !== void 0 ? _d : {};
|
|
27
|
-
}], function (state) {
|
|
28
|
-
var _a;
|
|
29
|
-
var companyUserConfig = (_a = state === null || state === void 0 ? void 0 : state.companyUserConfig) !== null && _a !== void 0 ? _a : {};
|
|
30
|
-
if (typeof companyUserConfig === "string") {
|
|
31
|
-
try {
|
|
32
|
-
companyUserConfig = JSON.parse(companyUserConfig);
|
|
33
|
-
} catch (e) {
|
|
34
|
-
console.error("companyUserConfig转换异常", companyUserConfig);
|
|
35
|
-
companyUserConfig = {};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return companyUserConfig;
|
|
39
|
-
}));
|
|
40
|
-
var _a = react_1.useState(getTemplate({})),
|
|
41
|
-
hasErpDataJson = _a[0],
|
|
42
|
-
setHasErpDataJson = _a[1];
|
|
43
|
-
react_1.useEffect(function () {
|
|
44
|
-
setHasErpDataJson(getTemplate(companyUserConfig));
|
|
45
|
-
console.log("companyUserConfig---", companyUserConfig);
|
|
46
|
-
}, [companyUserConfig]);
|
|
47
|
-
var hasErpData = react_1.useMemo(function () {
|
|
48
|
-
return JSON.parse(hasErpDataJson);
|
|
49
|
-
}, [hasErpDataJson]);
|
|
50
|
-
return hasErpData;
|
|
51
|
-
}
|
|
52
|
-
exports["default"] = useGetHasErpData;
|