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