@kmkf-fe-packages/services-components 2.0.12-beta.0 → 2.0.12-beta.2
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 +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 +6 -4
- package/dist/esm/components/CommonHeaderGood/index.js +54 -4
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/CommonTradeId/index.js +3 -0
- package/dist/esm/components/JST/JstSendGood/index.js +2 -2
- package/dist/esm/components/MsgStatus/index.js +7 -2
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Public/Goods/index.d.ts +38 -0
- package/dist/esm/components/Public/Goods/index.js +132 -0
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +58 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +236 -0
- package/dist/esm/components/Select/index.js +5 -2
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +9 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/service/api.d.ts +1 -1
- package/package.json +6 -6
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, promises;
|
|
26
|
+
var hasWdt, hasGy, hasJst, promises;
|
|
27
27
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28
28
|
while (1) switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
@@ -31,27 +31,28 @@ 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, hasJst = hasErpData.hasJst;
|
|
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
|
+
_context.next = 9;
|
|
39
40
|
return Promise.all(promises.map(function (promise) {
|
|
40
41
|
return promise();
|
|
41
42
|
}));
|
|
42
|
-
case
|
|
43
|
+
case 9:
|
|
43
44
|
setGlobalState("success");
|
|
44
|
-
_context.next =
|
|
45
|
+
_context.next = 15;
|
|
45
46
|
break;
|
|
46
|
-
case
|
|
47
|
-
_context.prev =
|
|
47
|
+
case 12:
|
|
48
|
+
_context.prev = 12;
|
|
48
49
|
_context.t0 = _context["catch"](1);
|
|
49
50
|
setGlobalState("failed");
|
|
50
|
-
case
|
|
51
|
+
case 15:
|
|
51
52
|
case "end":
|
|
52
53
|
return _context.stop();
|
|
53
54
|
}
|
|
54
|
-
}, _callee, null, [[1,
|
|
55
|
+
}, _callee, null, [[1, 12]]);
|
|
55
56
|
}));
|
|
56
57
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
57
58
|
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 } from "@kmkf-fe-packages/kmkf-utils";
|
|
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, JST_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,7 +22,8 @@ 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
|
|
25
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
|
|
26
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG
|
|
26
27
|
};
|
|
27
28
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
28
29
|
var _this = this,
|
|
@@ -21,7 +21,8 @@ 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"
|
|
24
|
+
GY_REISSUE_GOODS: "gyReissueType",
|
|
25
|
+
JST_REISSUE_GOODS: "jstReissueType"
|
|
25
26
|
};
|
|
26
27
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
27
28
|
var _this = this;
|
|
@@ -22,7 +22,8 @@ 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"
|
|
25
|
+
GY_REISSUE_GOODS: "gyReissueType",
|
|
26
|
+
JST_REISSUE_GOODS: "jstReissueType"
|
|
26
27
|
};
|
|
27
28
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
28
29
|
var _this = this;
|
|
@@ -17,7 +17,8 @@ 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"
|
|
20
|
+
GY_REISSUE_GOODS: "gySystemOrderNo",
|
|
21
|
+
JST_REISSUE_GOODS: "jstSystemOrderNo"
|
|
21
22
|
};
|
|
22
23
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
23
24
|
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, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
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, JST_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,7 +640,8 @@ 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
|
|
643
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
644
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
|
|
644
645
|
};
|
|
645
646
|
var rowKeyMap = {
|
|
646
647
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -648,7 +649,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
648
649
|
WLN_SYSTEM_ORDER: "billNo",
|
|
649
650
|
WDT_SYSTEM_ORDER: "billNo",
|
|
650
651
|
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
651
|
-
GY_SYSTEM_ORDER: "billNo"
|
|
652
|
+
GY_SYSTEM_ORDER: "billNo",
|
|
653
|
+
JST_SYSTEM_ORDER: "oId"
|
|
652
654
|
};
|
|
653
655
|
var rowSelection = {
|
|
654
656
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
@@ -731,7 +733,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
731
733
|
var key = item.msgType || "ding";
|
|
732
734
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
733
735
|
key: index
|
|
734
|
-
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
736
|
+
}, msgTypeCh[key] || key, "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
735
737
|
return /*#__PURE__*/React.createElement("div", {
|
|
736
738
|
key: "wrap_".concat(index),
|
|
737
739
|
style: {
|
|
@@ -766,6 +766,44 @@ 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"
|
|
769
807
|
}
|
|
770
808
|
};
|
|
771
809
|
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
@@ -868,10 +906,22 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
|
|
|
868
906
|
}).map(function (item) {
|
|
869
907
|
return item.dataIndex;
|
|
870
908
|
}).includes(key))) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
909
|
+
var _this2$itemKey;
|
|
910
|
+
var target = typeof GoodHeaderMap[_this2.type].headerMap[key] === 'string' ? {
|
|
911
|
+
component: BsHeaderChild,
|
|
912
|
+
name: GoodHeaderMap[_this2.type].headerMap[key],
|
|
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
|
|
875
925
|
})));
|
|
876
926
|
}
|
|
877
927
|
return prv;
|
|
@@ -42,6 +42,13 @@ 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"
|
|
45
52
|
}
|
|
46
53
|
};
|
|
47
54
|
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: "jst",
|
|
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", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_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,10 +39,15 @@ 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"
|
|
46
51
|
}],
|
|
47
52
|
key: "msgStatusValues",
|
|
48
53
|
code: "msgStatus4Search",
|
|
@@ -125,7 +130,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
125
130
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
126
131
|
});
|
|
127
132
|
var key = item.msgType || "ding";
|
|
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]) || "");
|
|
133
|
+
return "".concat(msgTypeCh[key] || 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]) || "");
|
|
129
134
|
}).join(",");
|
|
130
135
|
});
|
|
131
136
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -36,6 +36,5 @@ 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;
|
|
40
39
|
}
|
|
41
40
|
export default PaymentAmount;
|
|
@@ -132,10 +132,6 @@ 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
|
-
});
|
|
139
135
|
this.name = '打款金额';
|
|
140
136
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
141
137
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
declare const CONFIG_MAP: {
|
|
5
|
+
JST_GOODS: {
|
|
6
|
+
key: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare class PublicGoods implements ComponentInterface {
|
|
10
|
+
name: string;
|
|
11
|
+
id: string;
|
|
12
|
+
sortField: string;
|
|
13
|
+
type: keyof typeof CONFIG_MAP;
|
|
14
|
+
rules: any[];
|
|
15
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
16
|
+
effects: ComponentInterface["effects"];
|
|
17
|
+
isCombinationComponent: boolean;
|
|
18
|
+
formField: string;
|
|
19
|
+
canSort: boolean;
|
|
20
|
+
children: ComponentInterface[];
|
|
21
|
+
dataType: ComponentInterface["dataType"];
|
|
22
|
+
headers: CommonHeaderGoods;
|
|
23
|
+
constructor(options: PickOption);
|
|
24
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
25
|
+
renderPc: () => null;
|
|
26
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
27
|
+
getComponentValue: (r: Record) => any;
|
|
28
|
+
renderExport: () => null;
|
|
29
|
+
editRender: (p: any) => React.JSX.Element;
|
|
30
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
|
+
searchDefaultConditions: "like";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "Input";
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
export default PublicGoods;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import { BsGoodsTable } from "../../Common";
|
|
14
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
15
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
+
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
|
+
import { SYMBOL } from "../../../constant";
|
|
19
|
+
var CONFIG_MAP = {
|
|
20
|
+
JST_GOODS: {
|
|
21
|
+
key: 'jstGoods'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
25
|
+
var _this = this,
|
|
26
|
+
_CONFIG_MAP$this$type,
|
|
27
|
+
_this$componentConfig6;
|
|
28
|
+
_classCallCheck(this, PublicGoods);
|
|
29
|
+
_defineProperty(this, "name", void 0);
|
|
30
|
+
_defineProperty(this, "id", void 0);
|
|
31
|
+
_defineProperty(this, "sortField", void 0);
|
|
32
|
+
_defineProperty(this, "type", void 0);
|
|
33
|
+
_defineProperty(this, "rules", void 0);
|
|
34
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
35
|
+
_defineProperty(this, "effects", void 0);
|
|
36
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
37
|
+
_defineProperty(this, "formField", void 0);
|
|
38
|
+
_defineProperty(this, "canSort", void 0);
|
|
39
|
+
_defineProperty(this, "children", void 0);
|
|
40
|
+
_defineProperty(this, "dataType", void 0);
|
|
41
|
+
_defineProperty(this, "headers", void 0);
|
|
42
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
43
|
+
var _record, _CONFIG_MAP$_this$typ, _this$componentConfig;
|
|
44
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
45
|
+
id: _this.id,
|
|
46
|
+
label: _this.name,
|
|
47
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
48
|
+
type: _this.type,
|
|
49
|
+
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record[(_CONFIG_MAP$_this$typ = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ === void 0 ? void 0 : _CONFIG_MAP$_this$typ.key]) || [],
|
|
50
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
51
|
+
})
|
|
52
|
+
})) : null;
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "renderPc", function () {
|
|
55
|
+
return null;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
58
|
+
var _CONFIG_MAP$_this$typ2, _CONFIG_MAP$_this$typ3, _this$componentConfig2;
|
|
59
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_CONFIG_MAP$_this$typ2 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ2 === void 0 ? void 0 : _CONFIG_MAP$_this$typ2.key)])) return null;
|
|
60
|
+
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
61
|
+
type: _this.type,
|
|
62
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_CONFIG_MAP$_this$typ3 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ3 === void 0 ? void 0 : _CONFIG_MAP$_this$typ3.key)]) || [],
|
|
63
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
67
|
+
var _CONFIG_MAP$_this$typ4;
|
|
68
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_CONFIG_MAP$_this$typ4 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ4 === void 0 ? void 0 : _CONFIG_MAP$_this$typ4.key)];
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderExport", function () {
|
|
71
|
+
return null;
|
|
72
|
+
});
|
|
73
|
+
_defineProperty(this, "editRender", function (p) {
|
|
74
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
75
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
76
|
+
title: _this.name,
|
|
77
|
+
name: _this.id,
|
|
78
|
+
rules: _this.rules,
|
|
79
|
+
required: false,
|
|
80
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
81
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
82
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
83
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
84
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
85
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
86
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
87
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
88
|
+
type: _this.type,
|
|
89
|
+
width: "90%"
|
|
90
|
+
}))
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
94
|
+
var _CONFIG_MAP$_this$typ5;
|
|
95
|
+
return [{
|
|
96
|
+
searchDefaultConditions: SYMBOL.like,
|
|
97
|
+
type: item.type,
|
|
98
|
+
id: "".concat(item.id, "_").concat((_CONFIG_MAP$_this$typ5 = CONFIG_MAP[_this.type]) === null || _CONFIG_MAP$_this$typ5 === void 0 ? void 0 : _CONFIG_MAP$_this$typ5.key),
|
|
99
|
+
// 过滤组件id
|
|
100
|
+
name: item.name,
|
|
101
|
+
// 过滤组件名称
|
|
102
|
+
filterComponentType: "Input"
|
|
103
|
+
}];
|
|
104
|
+
});
|
|
105
|
+
this.type = options.type;
|
|
106
|
+
var key = (_CONFIG_MAP$this$type = CONFIG_MAP[this.type]) === null || _CONFIG_MAP$this$type === void 0 ? void 0 : _CONFIG_MAP$this$type.key;
|
|
107
|
+
this.name = options.name;
|
|
108
|
+
this.id = options.id;
|
|
109
|
+
this.sortField = "".concat(options.id, "_").concat(key);
|
|
110
|
+
this.formField = "".concat(options.id, "_").concat(key);
|
|
111
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
112
|
+
this.isCombinationComponent = true;
|
|
113
|
+
this.canSort = false;
|
|
114
|
+
this.headers = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
115
|
+
id: "".concat(options.id, "_").concat(key),
|
|
116
|
+
name: "商品信息"
|
|
117
|
+
}));
|
|
118
|
+
this.children = [this.headers];
|
|
119
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
120
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
121
|
+
required: true,
|
|
122
|
+
validator: function validator(_, value) {
|
|
123
|
+
var _value$key;
|
|
124
|
+
if (!value || !(value !== null && value !== void 0 && (_value$key = value[key]) !== null && _value$key !== void 0 && _value$key.length)) {
|
|
125
|
+
return Promise.reject(new Error("请选择聚水潭商品"));
|
|
126
|
+
}
|
|
127
|
+
return Promise.resolve();
|
|
128
|
+
}
|
|
129
|
+
}] : [];
|
|
130
|
+
this.dataType = "object";
|
|
131
|
+
});
|
|
132
|
+
export default PublicGoods;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
4
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
5
|
+
declare class PublicReissue implements ComponentInterface {
|
|
6
|
+
name: string;
|
|
7
|
+
id: string;
|
|
8
|
+
sortField: string;
|
|
9
|
+
type: string;
|
|
10
|
+
rules: any[];
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
bsType: BsType;
|
|
19
|
+
bsMemo: BsMemo;
|
|
20
|
+
systemOrderNo: SystemOrderNo;
|
|
21
|
+
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
|
+
constructor(options: PickOption);
|
|
23
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
|
+
renderPc: () => null;
|
|
25
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
26
|
+
getComponentValue: (r: Record) => {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
renderExport: () => null;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
31
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
32
|
+
searchDefaultConditions: "in";
|
|
33
|
+
type: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
filterComponentType: "Cascader";
|
|
37
|
+
props: {
|
|
38
|
+
options: any[] | undefined;
|
|
39
|
+
fieldNames: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
children: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
46
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
47
|
+
} | {
|
|
48
|
+
searchDefaultConditions: "like";
|
|
49
|
+
type: string;
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
filterComponentType: "Input";
|
|
53
|
+
props?: undefined;
|
|
54
|
+
formatFilterValue?: undefined;
|
|
55
|
+
filterFn?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
}
|
|
58
|
+
export default PublicReissue;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { PublicReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import { SYMBOL } from "../../../constant";
|
|
17
|
+
import { BsGoodsTable } from "../../Common/index";
|
|
18
|
+
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
function toNum(value) {
|
|
21
|
+
if (typeof value === "string") {
|
|
22
|
+
return value ? +value : void 0;
|
|
23
|
+
}
|
|
24
|
+
if (typeof value === "number") {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
return void 0;
|
|
28
|
+
}
|
|
29
|
+
var typeMap = {
|
|
30
|
+
JST_REISSUE_GOODS: {
|
|
31
|
+
key: "jstReissueGoods",
|
|
32
|
+
typeName: "jstReissueType",
|
|
33
|
+
remark: "jstReissueType_memo",
|
|
34
|
+
systemOrderNo: "jstSystemOrderNo",
|
|
35
|
+
errMsg: "请选择聚水潭补发商品",
|
|
36
|
+
name: "聚水潭",
|
|
37
|
+
validator: function validator(_rule, value) {
|
|
38
|
+
if (!_rule.required) return Promise.resolve();
|
|
39
|
+
var goodsName = "";
|
|
40
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
41
|
+
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
42
|
+
var res = typeof qty === "number" ? qty < 1 : true;
|
|
43
|
+
if (res) {
|
|
44
|
+
goodsName = goods !== null && goods !== void 0 && goods.name ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
45
|
+
}
|
|
46
|
+
return res;
|
|
47
|
+
})) {
|
|
48
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
49
|
+
}
|
|
50
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
51
|
+
var v = toNum(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
52
|
+
var res = typeof v === "number" ? v < 0 : true;
|
|
53
|
+
if (res) {
|
|
54
|
+
goodsName = goods !== null && goods !== void 0 && goods.name ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
55
|
+
}
|
|
56
|
+
return res;
|
|
57
|
+
})) {
|
|
58
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
59
|
+
}
|
|
60
|
+
return Promise.resolve();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var PublicReissue = /*#__PURE__*/_createClass(function PublicReissue(options) {
|
|
65
|
+
var _this = this,
|
|
66
|
+
_typeMap$options$type,
|
|
67
|
+
_typeMap$options$type2,
|
|
68
|
+
_typeMap$options$type3,
|
|
69
|
+
_typeMap$options$type4,
|
|
70
|
+
_typeMap$options$type5,
|
|
71
|
+
_typeMap$options$type6,
|
|
72
|
+
_typeMap$options$type7,
|
|
73
|
+
_typeMap$options$type8,
|
|
74
|
+
_this$componentConfig6,
|
|
75
|
+
_typeMap$options$type11;
|
|
76
|
+
_classCallCheck(this, PublicReissue);
|
|
77
|
+
_defineProperty(this, "name", void 0);
|
|
78
|
+
_defineProperty(this, "id", void 0);
|
|
79
|
+
_defineProperty(this, "sortField", void 0);
|
|
80
|
+
_defineProperty(this, "type", void 0);
|
|
81
|
+
_defineProperty(this, "rules", void 0);
|
|
82
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
83
|
+
_defineProperty(this, "effects", void 0);
|
|
84
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
85
|
+
_defineProperty(this, "formField", void 0);
|
|
86
|
+
_defineProperty(this, "canSort", void 0);
|
|
87
|
+
_defineProperty(this, "children", void 0);
|
|
88
|
+
_defineProperty(this, "dataType", void 0);
|
|
89
|
+
_defineProperty(this, "bsType", void 0);
|
|
90
|
+
_defineProperty(this, "bsMemo", void 0);
|
|
91
|
+
_defineProperty(this, "systemOrderNo", void 0);
|
|
92
|
+
_defineProperty(this, "reissueGoods", void 0);
|
|
93
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
94
|
+
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
95
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
96
|
+
id: _this.id,
|
|
97
|
+
label: _this.name,
|
|
98
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
99
|
+
list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
|
|
100
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
|
|
101
|
+
type: _this.type
|
|
102
|
+
})
|
|
103
|
+
}) : null) : null;
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "renderPc", function () {
|
|
106
|
+
return null;
|
|
107
|
+
});
|
|
108
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
109
|
+
var _r, _typeMap$_this$type3, _typeMap$_this$type4, _r2, _typeMap$_this$type5, _typeMap$_this$type6, _this$componentConfig2;
|
|
110
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.typeName)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r))) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.systemOrderNo)] ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7:", _this.systemOrderNo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
111
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)]) || [],
|
|
112
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
|
|
113
|
+
type: _this.type
|
|
114
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
115
|
+
});
|
|
116
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
117
|
+
var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
|
|
118
|
+
var obj = {};
|
|
119
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.typeName)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.typeName)];
|
|
120
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
121
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.systemOrderNo)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.systemOrderNo)];
|
|
122
|
+
return obj;
|
|
123
|
+
});
|
|
124
|
+
_defineProperty(this, "renderExport", function () {
|
|
125
|
+
return null;
|
|
126
|
+
});
|
|
127
|
+
_defineProperty(this, "editRender", function (p) {
|
|
128
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
129
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
130
|
+
title: _this.name,
|
|
131
|
+
name: _this.id,
|
|
132
|
+
rules: _this.rules,
|
|
133
|
+
required: false,
|
|
134
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
135
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
136
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
137
|
+
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
138
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
139
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
140
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
141
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
142
|
+
width: "90%",
|
|
143
|
+
type: _this.type
|
|
144
|
+
}))
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
148
|
+
var _item$templateConfig;
|
|
149
|
+
return [{
|
|
150
|
+
searchDefaultConditions: SYMBOL.in,
|
|
151
|
+
type: item.type,
|
|
152
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
|
|
153
|
+
name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
|
|
154
|
+
filterComponentType: "Cascader",
|
|
155
|
+
props: {
|
|
156
|
+
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
157
|
+
fieldNames: {
|
|
158
|
+
label: "label",
|
|
159
|
+
value: "value",
|
|
160
|
+
children: "children"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
164
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
165
|
+
return [val[val.length - 1]];
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
filterFn: function filterFn(value) {
|
|
169
|
+
return function (i) {
|
|
170
|
+
var _typeMap$_this$type13;
|
|
171
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.typeName)), value);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
searchDefaultConditions: SYMBOL.like,
|
|
176
|
+
type: item.type,
|
|
177
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].systemOrderNo),
|
|
178
|
+
name: "".concat(item.name, "-\u8865\u53D1\u7CFB\u7EDF\u8BA2\u5355\u53F7"),
|
|
179
|
+
filterComponentType: "Input"
|
|
180
|
+
}, {
|
|
181
|
+
searchDefaultConditions: SYMBOL.like,
|
|
182
|
+
type: item.type,
|
|
183
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
184
|
+
name: "".concat(_this.name),
|
|
185
|
+
filterComponentType: "Input"
|
|
186
|
+
}];
|
|
187
|
+
});
|
|
188
|
+
this.name = options.name;
|
|
189
|
+
this.id = options.id;
|
|
190
|
+
this.sortField = "".concat(options.id);
|
|
191
|
+
this.formField = "".concat(options.id);
|
|
192
|
+
this.type = options.type;
|
|
193
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
194
|
+
this.isCombinationComponent = true;
|
|
195
|
+
this.canSort = false;
|
|
196
|
+
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
197
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
|
|
198
|
+
name: "".concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.name, "\u8865\u53D1\u7C7B\u578B")
|
|
199
|
+
}));
|
|
200
|
+
this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
|
|
201
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.systemOrderNo),
|
|
202
|
+
name: "".concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.name, "\u8865\u53D1\u7CFB\u7EDF\u8BA2\u5355\u53F7")
|
|
203
|
+
}));
|
|
204
|
+
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
205
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.remark),
|
|
206
|
+
name: "".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.name, "\u8865\u53D1\u5907\u6CE8")
|
|
207
|
+
}));
|
|
208
|
+
this.reissueGoods = this.type === "BS_REISSUE_GOODS" ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
209
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.key),
|
|
210
|
+
name: "商品信息"
|
|
211
|
+
})) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
212
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.key),
|
|
213
|
+
name: "商品信息"
|
|
214
|
+
}));
|
|
215
|
+
this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
|
|
216
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
217
|
+
var isRequired = this === null || this === void 0 ? void 0 : (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required;
|
|
218
|
+
this.rules = [{
|
|
219
|
+
required: isRequired,
|
|
220
|
+
validator: function validator(_, value) {
|
|
221
|
+
var _value, _typeMap$options$type9;
|
|
222
|
+
if (isRequired && (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : _typeMap$options$type9.key)]) !== null && _value !== void 0 && _value.length))) {
|
|
223
|
+
var _typeMap$options$type10;
|
|
224
|
+
return Promise.reject(new Error("".concat((_typeMap$options$type10 = typeMap[options.type]) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.errMsg)));
|
|
225
|
+
}
|
|
226
|
+
return Promise.resolve();
|
|
227
|
+
}
|
|
228
|
+
}, {
|
|
229
|
+
required: isRequired,
|
|
230
|
+
validator: ((_typeMap$options$type11 = typeMap[options.type]) === null || _typeMap$options$type11 === void 0 ? void 0 : _typeMap$options$type11.validator) || function () {
|
|
231
|
+
return Promise.resolve();
|
|
232
|
+
}
|
|
233
|
+
}];
|
|
234
|
+
this.dataType = "object";
|
|
235
|
+
});
|
|
236
|
+
export default PublicReissue;
|
|
@@ -22,6 +22,9 @@ var typeMap = {
|
|
|
22
22
|
NEW_PAYMENT_STATUS: {
|
|
23
23
|
key: "newPaymentStatus",
|
|
24
24
|
placeholder: "自动获取无需填写"
|
|
25
|
+
},
|
|
26
|
+
ORDER_TYPE: {
|
|
27
|
+
key: "orderType"
|
|
25
28
|
}
|
|
26
29
|
};
|
|
27
30
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
@@ -98,7 +101,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
98
101
|
return label !== null && label !== void 0 ? label : "--";
|
|
99
102
|
});
|
|
100
103
|
_defineProperty(this, "filterConfig", function (item) {
|
|
101
|
-
var _item$config;
|
|
104
|
+
var _item$config, _item$templateConfig;
|
|
102
105
|
var key = _this.getKeyByComponentType(item.type);
|
|
103
106
|
return {
|
|
104
107
|
searchDefaultConditions: SYMBOL.in,
|
|
@@ -109,7 +112,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
109
112
|
// 过滤组件名称
|
|
110
113
|
filterComponentType: "MultipleSelect",
|
|
111
114
|
props: {
|
|
112
|
-
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
115
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || (item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.options) || []
|
|
113
116
|
},
|
|
114
117
|
filterFn: function filterFn(value) {
|
|
115
118
|
return function (i) {
|
|
@@ -40,6 +40,10 @@ 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
|
+
}),
|
|
43
47
|
INVOICING_STATUS: getSelectTypeAttribute({
|
|
44
48
|
key: "invoicingStatusValue",
|
|
45
49
|
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, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
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, PublicGoods, PublicReissueGoods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => JstSendGood | MsgStatus | BasicSelect | 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 | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => JstSendGood | Label | MsgStatus | BasicSelect | 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 | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
|
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, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -31,6 +31,7 @@ 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":
|
|
34
35
|
return new BasicSelect(options);
|
|
35
36
|
case "PICTURE":
|
|
36
37
|
return new BasicPicture(options);
|
|
@@ -134,6 +135,7 @@ export var factory = function factory(type, options) {
|
|
|
134
135
|
case "WDT_SYSTEM_ORDER":
|
|
135
136
|
case "BS_E3_SYSTEM_ORDER":
|
|
136
137
|
case "GY_SYSTEM_ORDER":
|
|
138
|
+
case "JST_SYSTEM_ORDER":
|
|
137
139
|
return new BsSystemOrder(options);
|
|
138
140
|
case "JST_SEND_GOOD":
|
|
139
141
|
case "BS_SEND_GOOD":
|
|
@@ -151,6 +153,10 @@ export var factory = function factory(type, options) {
|
|
|
151
153
|
return new BsE3Goods(options);
|
|
152
154
|
case "GY_GOODS":
|
|
153
155
|
return new GyGoods(options);
|
|
156
|
+
case "JST_GOODS":
|
|
157
|
+
return new PublicGoods(options);
|
|
158
|
+
case "JST_REISSUE_GOODS":
|
|
159
|
+
return new PublicReissueGoods(options);
|
|
154
160
|
case "BS_E3_REISSUE_GOODS":
|
|
155
161
|
return new BsE3Reissue(options);
|
|
156
162
|
case "BS_EXCHANGE_GOODS":
|
|
@@ -168,6 +174,7 @@ export var factory = function factory(type, options) {
|
|
|
168
174
|
case "WDT_RETURN_GOODS":
|
|
169
175
|
return new WdtReturn(options);
|
|
170
176
|
case "REISSUE_TRADE_ID":
|
|
177
|
+
case "AFTER_SALE_TRADE_ID":
|
|
171
178
|
case "BS_DELIVERY_NO":
|
|
172
179
|
case "RETURN_GOODS_TRADE_ID":
|
|
173
180
|
case "EXCHANGE_TRADE_ID":
|
|
@@ -190,6 +197,7 @@ export var factory = function factory(type, options) {
|
|
|
190
197
|
case "INVOICING_STATUS":
|
|
191
198
|
case "AGREE_REFUND_STATUS":
|
|
192
199
|
case "REJECT_REFUND_STATUS":
|
|
200
|
+
case "ERP_AFTER_SALE_STATUS":
|
|
193
201
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
194
202
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
195
203
|
return new StatusSelect(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ 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";
|
|
44
46
|
export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
|
|
45
47
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
46
48
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
package/dist/esm/index.js
CHANGED
|
@@ -41,6 +41,8 @@ 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";
|
|
44
46
|
export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
|
|
45
47
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
46
48
|
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: () => Promise<void>;
|
|
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.12-beta.
|
|
3
|
+
"version": "2.0.12-beta.2",
|
|
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",
|
|
11
10
|
"build": "yarn run lint && father build",
|
|
12
11
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
13
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
12
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'",
|
|
13
|
+
"sync": "yarn build && yalc push"
|
|
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.12-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.12-beta.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.2",
|
|
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": "633250aff84497bea16c4fe0ccddfbf99fe835ef",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|