@kmkf-fe-packages/services-components 2.0.12-beta.0 → 2.0.12-beta.11
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/constants/columnsBaseInfoMap.js +5 -2
- package/dist/esm/components/Common/index.js +6 -4
- package/dist/esm/components/CommonHeaderGood/index.js +74 -4
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/CommonTradeId/index.js +3 -0
- package/dist/esm/components/GY/GyReissue/index.js +1 -0
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +30 -1
- 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.d.ts +1 -1
- package/dist/esm/components/Select/index.js +9 -6
- 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;
|
|
@@ -9,16 +9,19 @@ import bs_e3 from "./bs_e3";
|
|
|
9
9
|
import bs from "./bs";
|
|
10
10
|
import wdt from "./wdt";
|
|
11
11
|
import gy from "./gy";
|
|
12
|
+
import { getJstColumns } from "@kmkf-fe-packages/basic-components";
|
|
12
13
|
import defaultColumns from "./defaultColumns";
|
|
13
14
|
export var getColumnsMap = function getColumnsMap(args) {
|
|
14
15
|
var _ref = args || {},
|
|
15
16
|
_ref$text = _ref.text,
|
|
16
17
|
text = _ref$text === void 0 ? "" : _ref$text;
|
|
17
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
18
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, system()), bs({
|
|
18
19
|
text: text
|
|
19
20
|
})), bs_e3()), wdt({
|
|
20
21
|
text: text
|
|
21
|
-
})), gy()), {
|
|
22
|
+
})), gy()), getJstColumns({
|
|
23
|
+
disabled: true
|
|
24
|
+
})), {}, {
|
|
22
25
|
default: defaultColumns({
|
|
23
26
|
text: text
|
|
24
27
|
})["default"]
|
|
@@ -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,60 @@ 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
|
+
name: "是否赠品",
|
|
787
|
+
transformValue: function transformValue(val) {
|
|
788
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
789
|
+
},
|
|
790
|
+
renderExport: function renderExport(val) {
|
|
791
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
outerOiId: "子订单号"
|
|
795
|
+
},
|
|
796
|
+
moneyKey: "salePrice"
|
|
797
|
+
},
|
|
798
|
+
JST_REISSUE_GOODS: {
|
|
799
|
+
headerMap: {
|
|
800
|
+
name: "商品名称",
|
|
801
|
+
skuId: "商品编码",
|
|
802
|
+
iId: "款式编码",
|
|
803
|
+
pic: {
|
|
804
|
+
component: BsHeaderPic,
|
|
805
|
+
name: '商品图片'
|
|
806
|
+
},
|
|
807
|
+
propertiesValue: "规格值",
|
|
808
|
+
saleBasePrice: "原价",
|
|
809
|
+
salePrice: "单价",
|
|
810
|
+
qty: "数量",
|
|
811
|
+
isGift: {
|
|
812
|
+
name: "是否赠品",
|
|
813
|
+
transformValue: function transformValue(val) {
|
|
814
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
815
|
+
},
|
|
816
|
+
renderExport: function renderExport(val) {
|
|
817
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
remark: "备注"
|
|
821
|
+
},
|
|
822
|
+
moneyKey: "salePrice"
|
|
769
823
|
}
|
|
770
824
|
};
|
|
771
825
|
GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
|
|
@@ -868,10 +922,26 @@ var CommonHeaderGoods = /*#__PURE__*/function () {
|
|
|
868
922
|
}).map(function (item) {
|
|
869
923
|
return item.dataIndex;
|
|
870
924
|
}).includes(key))) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
925
|
+
var _this2$itemKey;
|
|
926
|
+
var target = typeof GoodHeaderMap[_this2.type].headerMap[key] === 'string' ? {
|
|
927
|
+
component: BsHeaderChild,
|
|
928
|
+
name: GoodHeaderMap[_this2.type].headerMap[key],
|
|
929
|
+
key: key,
|
|
930
|
+
width: 80
|
|
931
|
+
} : {
|
|
932
|
+
component: GoodHeaderMap[_this2.type].headerMap[key].component || BsHeaderChild,
|
|
933
|
+
name: ((_this2$itemKey = _this2.itemKey) === null || _this2$itemKey === void 0 ? void 0 : _this2$itemKey[key]) || GoodHeaderMap[_this2.type].headerMap[key].name,
|
|
934
|
+
key: GoodHeaderMap[_this2.type].headerMap[key].key || key,
|
|
935
|
+
width: GoodHeaderMap[_this2.type].headerMap[key].width || 80,
|
|
936
|
+
transformValue: GoodHeaderMap[_this2.type].headerMap[key].transformValue,
|
|
937
|
+
renderExport: GoodHeaderMap[_this2.type].headerMap[key].renderExport
|
|
938
|
+
};
|
|
939
|
+
prv.push(new target.component(_objectSpread(_objectSpread({}, options), {}, {
|
|
940
|
+
name: target.name,
|
|
941
|
+
id: "".concat(options.id, "_").concat(target.key),
|
|
942
|
+
width: target.width,
|
|
943
|
+
transformValue: target.transformValue,
|
|
944
|
+
renderExport: target.renderExport
|
|
875
945
|
})));
|
|
876
946
|
}
|
|
877
947
|
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) {
|
|
@@ -95,6 +95,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
95
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
97
97
|
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 : "",
|
|
98
|
+
isGyReissue: true,
|
|
98
99
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
99
100
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
100
101
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -10,6 +10,7 @@ declare type GetFormItemProps = {
|
|
|
10
10
|
style?: CSSProperties | undefined;
|
|
11
11
|
[prop: string]: any;
|
|
12
12
|
tooltip?: string;
|
|
13
|
+
isGyReissue?: boolean;
|
|
13
14
|
};
|
|
14
|
-
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip, }: GetFormItemProps) => React.JSX.Element | null;
|
|
15
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip, isGyReissue, }: GetFormItemProps) => React.JSX.Element | null;
|
|
15
16
|
export default GetFormItem;
|
|
@@ -4,6 +4,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
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; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
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); }
|
|
7
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
10
|
import React from "react";
|
|
8
11
|
import { Form } from "antd";
|
|
9
12
|
var GetFormItem = function GetFormItem(_ref) {
|
|
@@ -19,7 +22,8 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
19
22
|
style = _ref.style,
|
|
20
23
|
validateTrigger = _ref.validateTrigger,
|
|
21
24
|
_ref$tooltip = _ref.tooltip,
|
|
22
|
-
tooltip = _ref$tooltip === void 0 ?
|
|
25
|
+
tooltip = _ref$tooltip === void 0 ? "" : _ref$tooltip,
|
|
26
|
+
isGyReissue = _ref.isGyReissue;
|
|
23
27
|
var newRules = rules;
|
|
24
28
|
if (required) {
|
|
25
29
|
newRules = rules.concat({
|
|
@@ -27,6 +31,31 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
27
31
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
28
32
|
});
|
|
29
33
|
}
|
|
34
|
+
if (isGyReissue) {
|
|
35
|
+
newRules.push({
|
|
36
|
+
validator: function () {
|
|
37
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
38
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
39
|
+
while (1) switch (_context.prev = _context.next) {
|
|
40
|
+
case 0:
|
|
41
|
+
if (!(!value || !value.vipCode)) {
|
|
42
|
+
_context.next = 2;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
return _context.abrupt("return", Promise.reject(new Error("vipCode 是必填项,请联系管理员")));
|
|
46
|
+
case 2:
|
|
47
|
+
case "end":
|
|
48
|
+
return _context.stop();
|
|
49
|
+
}
|
|
50
|
+
}, _callee);
|
|
51
|
+
}));
|
|
52
|
+
function validator(_x, _x2) {
|
|
53
|
+
return _validator.apply(this, arguments);
|
|
54
|
+
}
|
|
55
|
+
return validator;
|
|
56
|
+
}()
|
|
57
|
+
});
|
|
58
|
+
}
|
|
30
59
|
// 当隐藏时, 不在拥有该组件
|
|
31
60
|
if (hidden) return null;
|
|
32
61
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -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;
|
|
@@ -13,7 +13,7 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
options: ComponentInterface["options"];
|
|
16
|
-
optionsMap: ComponentInterface[
|
|
16
|
+
optionsMap: ComponentInterface["optionsMap"];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
getKeyByComponentType: (type: string) => any;
|
|
19
19
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -22,6 +22,9 @@ var typeMap = {
|
|
|
22
22
|
NEW_PAYMENT_STATUS: {
|
|
23
23
|
key: "newPaymentStatus",
|
|
24
24
|
placeholder: "自动获取无需填写"
|
|
25
|
+
},
|
|
26
|
+
ORDER_TYPE: {
|
|
27
|
+
key: "erpOrderType"
|
|
25
28
|
}
|
|
26
29
|
};
|
|
27
30
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
@@ -54,7 +57,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
54
57
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
58
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
56
59
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
57
|
-
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 :
|
|
60
|
+
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 : "",
|
|
58
61
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
59
62
|
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
60
63
|
showSearch: true,
|
|
@@ -65,7 +68,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
65
68
|
_defineProperty(this, "renderClient", function (record) {
|
|
66
69
|
var _this$componentConfig5, _this$optionsMap;
|
|
67
70
|
// 特殊自定义组件为平台状态时匹配出label
|
|
68
|
-
var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) ===
|
|
71
|
+
var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) === "PLATFORM_STATUS" ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
|
|
69
72
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
70
73
|
id: _this.id,
|
|
71
74
|
label: _this.name,
|
|
@@ -77,7 +80,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
77
80
|
var type = _this.type;
|
|
78
81
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
79
82
|
// 特殊自定义组件为平台状态时匹配出label
|
|
80
|
-
var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) ===
|
|
83
|
+
var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) === "PLATFORM_STATUS" ? ((_this$optionsMap2 = _this.optionsMap) === null || _this$optionsMap2 === void 0 ? void 0 : _this$optionsMap2[key]) || "" : key;
|
|
81
84
|
return /*#__PURE__*/React.createElement("span", null, label !== null && label !== void 0 ? label : "--");
|
|
82
85
|
});
|
|
83
86
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -94,11 +97,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
94
97
|
var type = _this.type;
|
|
95
98
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
96
99
|
// 特殊自定义组件为平台状态时匹配出label
|
|
97
|
-
var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) ===
|
|
100
|
+
var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) === "PLATFORM_STATUS" ? ((_this$optionsMap3 = _this.optionsMap) === null || _this$optionsMap3 === void 0 ? void 0 : _this$optionsMap3[key]) || "" : key;
|
|
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 |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicCheckbox | CommonSystemOrder | GyReissue | JstSendGood | Label | MsgStatus | PublicGoods | PublicReissueGoods | BasicSelect | StatusSelect | BasicInput | BasicAddress | BasicCascader | 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, 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.11",
|
|
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.11",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.11",
|
|
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": "9a8846f71fe6966eddfb8da43a387b8d275dcd7c",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|