@kmkf-fe-packages/services-components 2.9.0-rc.0 → 2.9.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +437 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -3
- package/dist/esm/commonComponents/GlobalContext/index.js +61 -23
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -4
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +2 -0
- package/dist/esm/components/BS/BsLogistics/index.js +50 -9
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +62 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +9 -8
- package/dist/esm/components/BS/common/BsHeaderChild.js +16 -12
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +17 -2
- package/dist/esm/components/BS/common/BsMemo.js +5 -1
- package/dist/esm/components/BS/common/BsType.js +5 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +5 -1
- package/dist/esm/components/BS/common/expressCode.js +6 -0
- package/dist/esm/components/BS/common/expressCompany.js +20 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +45 -24
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1417 -110
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +96 -36
- package/dist/esm/components/CommonSystemOrder/index.js +7 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.d.ts +10 -0
- package/dist/esm/components/JST/JstSendGood/index.js +66 -18
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +21 -0
- package/dist/esm/components/LogisticsInterception/index.js +30 -7
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +7 -0
- package/dist/esm/components/OrderSubForm/index.js +18 -1
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +43 -28
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/AsyncSelect/index.js +4 -7
- package/dist/esm/components/Public/Exchange/index.js +10 -23
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +46 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +82 -6
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/Public/SystemOrderType/index.js +2 -2
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +43 -30
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +18 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +22 -2
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +6 -5
- package/dist/esm/components/TradeId/index.js +31 -15
- package/dist/esm/components/WDT/WdtGoods/index.js +2 -1
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/constant.js +3 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +41 -12
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +42 -14
- package/dist/esm/service/request.js +1 -4
- package/dist/esm/type.d.ts +43 -3
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
|
@@ -0,0 +1,116 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
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); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
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; }
|
|
12
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
+
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); }
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Image } from "antd";
|
|
16
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
_classCallCheck(this, HeaderChildPic);
|
|
21
|
+
_defineProperty(this, "name", void 0);
|
|
22
|
+
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "type", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "align", void 0);
|
|
27
|
+
_defineProperty(this, "width", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
|
+
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "parentName", void 0);
|
|
34
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
35
|
+
return val;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "export", function (val) {
|
|
38
|
+
return val;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getParentId", function () {
|
|
41
|
+
var _this$id$split = _this.id.split("_"),
|
|
42
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
43
|
+
key = _this$id$split2[0],
|
|
44
|
+
name = _this$id$split2[1],
|
|
45
|
+
code = _this$id$split2[2];
|
|
46
|
+
return "".concat(key, "_").concat(name);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
49
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
|
+
id: _this.id,
|
|
51
|
+
label: _this.name,
|
|
52
|
+
value: _this.getComponentValue(record)
|
|
53
|
+
}) : null;
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
56
|
+
var picList = _this.getComponentValue(record);
|
|
57
|
+
if (!picList.length) {
|
|
58
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
59
|
+
}
|
|
60
|
+
return picList.map(function (t) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
62
|
+
width: 30,
|
|
63
|
+
src: t,
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
71
|
+
var id = _this.getParentId();
|
|
72
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
73
|
+
return _this.renderPc(undefined, r);
|
|
74
|
+
});
|
|
75
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
76
|
+
var picList = (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
|
|
77
|
+
return picList === null || picList === void 0 ? void 0 : picList.map(function (url) {
|
|
78
|
+
return url.startsWith("http") ? url : url.startsWith("/") ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "getComponentExport", function (r) {
|
|
82
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
85
|
+
var picList = _this.getComponentValue(record);
|
|
86
|
+
return picList.join(",");
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "editRender", function () {
|
|
89
|
+
return null;
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function () {
|
|
92
|
+
return [];
|
|
93
|
+
});
|
|
94
|
+
this.name = options.name;
|
|
95
|
+
this.id = options.id;
|
|
96
|
+
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
98
|
+
this.type = options.type;
|
|
99
|
+
if (options.parentName) {
|
|
100
|
+
this.parentName = options.parentName;
|
|
101
|
+
}
|
|
102
|
+
this.componentConfig = options.componentConfig;
|
|
103
|
+
this.align = "left";
|
|
104
|
+
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
105
|
+
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = false;
|
|
107
|
+
this.dataType = "string";
|
|
108
|
+
this.children = [];
|
|
109
|
+
if (options.transformValue) {
|
|
110
|
+
this.transformValue = options.transformValue;
|
|
111
|
+
}
|
|
112
|
+
if (options.renderExport) {
|
|
113
|
+
this.export = options.renderExport;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export default HeaderChildPic;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
var _excluded = ["component"];
|
|
1
2
|
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); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
5
|
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); }
|
|
3
6
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
7
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -16,13 +19,63 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
16
19
|
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); }
|
|
17
20
|
import React from "react";
|
|
18
21
|
import { Table } from "antd";
|
|
19
|
-
import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
20
|
-
import BsHeaderChild from "../BS/common
|
|
22
|
+
import { SubForm as SubFormComponent, renderMap, renderSplitMap } from "@kmkf-fe-packages/basic-components";
|
|
23
|
+
import { BsHeaderChild } from "../BS/common";
|
|
24
|
+
import HeaderChildFile from "./children/HeaderChildFile";
|
|
25
|
+
import HeaderChildPic from "./children/HeaderChildPic";
|
|
26
|
+
import Express from "../Express";
|
|
21
27
|
import GetFormItem from "../GetFormItem";
|
|
22
28
|
import ItemView from "../../commonComponents/ItemView";
|
|
23
29
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
-
import { difference } from
|
|
30
|
+
import { difference } from "lodash";
|
|
25
31
|
import { SYMBOL } from "../../constant";
|
|
32
|
+
var ChildrenMap = {
|
|
33
|
+
CHECKBOX: {
|
|
34
|
+
component: BsHeaderChild,
|
|
35
|
+
transformValue: function transformValue(value) {
|
|
36
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
37
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
38
|
+
},
|
|
39
|
+
renderExport: function renderExport(value) {
|
|
40
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
41
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
BASIC_MULT_SELECT: {
|
|
45
|
+
component: BsHeaderChild,
|
|
46
|
+
transformValue: function transformValue(value) {
|
|
47
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
48
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
49
|
+
},
|
|
50
|
+
renderExport: function renderExport(value) {
|
|
51
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
52
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
PICTURE: {
|
|
56
|
+
component: HeaderChildPic
|
|
57
|
+
},
|
|
58
|
+
FILE: {
|
|
59
|
+
component: HeaderChildFile
|
|
60
|
+
},
|
|
61
|
+
jbCFrJV4m7_trajectoryCompany: {
|
|
62
|
+
component: Express
|
|
63
|
+
},
|
|
64
|
+
"0qFEv9GEyd_returnLogisticsCompany": {
|
|
65
|
+
component: Express
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var getChildComponent = function getChildComponent(item) {
|
|
69
|
+
try {
|
|
70
|
+
return ChildrenMap[item.workOrderComponentType] || ChildrenMap[item.key] || {
|
|
71
|
+
component: BsHeaderChild
|
|
72
|
+
};
|
|
73
|
+
} catch (e) {
|
|
74
|
+
return {
|
|
75
|
+
component: BsHeaderChild
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
};
|
|
26
79
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
27
80
|
var _this = this;
|
|
28
81
|
_classCallCheck(this, SubForm);
|
|
@@ -80,7 +133,23 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
80
133
|
ellipsis: true,
|
|
81
134
|
width: item.width,
|
|
82
135
|
render: function render(val) {
|
|
83
|
-
|
|
136
|
+
if (renderMap[item.workOrderComponentType]) {
|
|
137
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
style: {
|
|
139
|
+
width: "100%",
|
|
140
|
+
overflow: "auto"
|
|
141
|
+
}
|
|
142
|
+
}, renderMap[item.workOrderComponentType](val));
|
|
143
|
+
} else if (renderSplitMap[item.key]) {
|
|
144
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
style: {
|
|
146
|
+
width: "100%",
|
|
147
|
+
overflow: "auto"
|
|
148
|
+
}
|
|
149
|
+
}, renderSplitMap[item.key](val));
|
|
150
|
+
} else {
|
|
151
|
+
return /*#__PURE__*/React.createElement("span", null, val);
|
|
152
|
+
}
|
|
84
153
|
}
|
|
85
154
|
};
|
|
86
155
|
})) || []));
|
|
@@ -191,10 +260,13 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
191
260
|
this.isCombinationComponent = true;
|
|
192
261
|
this.canSort = false;
|
|
193
262
|
this.children = (this.getNewTableHeader() || []).map(function (item) {
|
|
194
|
-
|
|
263
|
+
var _getChildComponent = getChildComponent(item),
|
|
264
|
+
component = _getChildComponent.component,
|
|
265
|
+
other = _objectWithoutProperties(_getChildComponent, _excluded);
|
|
266
|
+
return new component(_objectSpread(_objectSpread({}, options), {}, {
|
|
195
267
|
name: item.name,
|
|
196
268
|
id: "".concat(options.id, "_productList_").concat(item.key)
|
|
197
|
-
}));
|
|
269
|
+
}, other));
|
|
198
270
|
});
|
|
199
271
|
this.dataType = "object";
|
|
200
272
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -8,13 +8,14 @@ declare class ETradeId implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
showContains: boolean;
|
|
10
10
|
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
focusTradeIdValue: any;
|
|
18
19
|
constructor(options: PickOption);
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
21
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -6,11 +6,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { TradeId } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { TradeId } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL, batchInput } from "../../constant";
|
|
15
15
|
import CopyText from "../../commonComponents/CopyText";
|
|
16
16
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
@@ -30,6 +30,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "focusTradeIdValue", void 0);
|
|
33
34
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
35
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
36
|
id: _this.id,
|
|
@@ -50,7 +51,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
50
51
|
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
51
52
|
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")],
|
|
52
53
|
style: {
|
|
53
|
-
color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ?
|
|
54
|
+
color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
|
|
54
55
|
}
|
|
55
56
|
}));
|
|
56
57
|
});
|
|
@@ -63,13 +64,26 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
63
64
|
});
|
|
64
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
65
66
|
var _record;
|
|
66
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
67
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
|
|
67
68
|
});
|
|
68
69
|
_defineProperty(this, "editRender", function (p) {
|
|
69
|
-
var _this$
|
|
70
|
+
var _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects2, _this$effects3;
|
|
71
|
+
var onTradeIdFocus = function onTradeIdFocus(e) {
|
|
72
|
+
var _this$componentConfig;
|
|
73
|
+
_this.focusTradeIdValue = e.target.value;
|
|
74
|
+
if (typeof ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.onFocus) === "function") {
|
|
75
|
+
_this.componentConfig.onFocus(e);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
70
78
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
71
|
-
var _p$onBlur;
|
|
72
|
-
|
|
79
|
+
var _this$effects, _this$effects$form, _p$onBlur;
|
|
80
|
+
if (_this.focusTradeIdValue === e.target.value) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
(_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
|
|
84
|
+
skx_return_billNo_blur_from: _this.id
|
|
85
|
+
});
|
|
86
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, "tradeId");
|
|
73
87
|
};
|
|
74
88
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
75
89
|
title: _this.name,
|
|
@@ -77,12 +91,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
77
91
|
rules: _this.rules,
|
|
78
92
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
93
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
|
-
required: (_this$
|
|
81
|
-
tooltip: (_this$
|
|
94
|
+
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
95
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
|
|
82
96
|
component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
|
|
83
|
-
shopId: (_this$
|
|
84
|
-
shopList: (_this$
|
|
97
|
+
shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
|
|
98
|
+
shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
|
|
85
99
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
100
|
+
onFocus: onTradeIdFocus,
|
|
86
101
|
onBlur: onTradeIdBlur
|
|
87
102
|
}))
|
|
88
103
|
});
|
|
@@ -95,10 +110,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
95
110
|
// 过滤组件id
|
|
96
111
|
name: item.name,
|
|
97
112
|
// 过滤组件名称
|
|
98
|
-
filterComponentType:
|
|
113
|
+
filterComponentType: "TradeInput",
|
|
99
114
|
filterFn: function filterFn(value) {
|
|
100
115
|
return function (i) {
|
|
101
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
116
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
|
|
102
117
|
};
|
|
103
118
|
},
|
|
104
119
|
formatFilterValue: function formatFilterValue(value) {
|
|
@@ -119,6 +134,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
119
134
|
this.isCombinationComponent = false;
|
|
120
135
|
this.canSort = true;
|
|
121
136
|
this.children = [];
|
|
122
|
-
this.dataType =
|
|
137
|
+
this.dataType = "string";
|
|
138
|
+
this.focusTradeIdValue = undefined;
|
|
123
139
|
});
|
|
124
140
|
export default ETradeId;
|
|
@@ -71,7 +71,8 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
|
71
71
|
rules: _this.rules,
|
|
72
72
|
required: false,
|
|
73
73
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
|
-
|
|
74
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
|
+
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 : "",
|
|
75
76
|
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
76
77
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
77
78
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -12,7 +12,7 @@ import React from "react";
|
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
14
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
-
import { WdtReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
15
|
+
import { WdtReissue as Reissue, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
@@ -24,7 +24,15 @@ var typeMap = {
|
|
|
24
24
|
typeName: "wdtReissueType",
|
|
25
25
|
remark: "wdtReissueType_memo",
|
|
26
26
|
systemOrderNo: "wdtSystemOrderNo",
|
|
27
|
-
errMsg: "请选择旺店通补发商品"
|
|
27
|
+
errMsg: "请选择旺店通补发商品",
|
|
28
|
+
validator: function validator(_rule, value, type) {
|
|
29
|
+
if (!_rule.required) return Promise.resolve();
|
|
30
|
+
var validatorFlag = erpFormValidator(_rule, value, type);
|
|
31
|
+
if (validatorFlag) {
|
|
32
|
+
return validatorFlag;
|
|
33
|
+
}
|
|
34
|
+
return Promise.resolve();
|
|
35
|
+
}
|
|
28
36
|
}
|
|
29
37
|
};
|
|
30
38
|
var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
@@ -95,7 +103,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
95
103
|
required: false,
|
|
96
104
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
97
105
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
98
|
-
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 :
|
|
106
|
+
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 : "",
|
|
99
107
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
100
108
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
101
109
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -176,17 +184,29 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
176
184
|
}));
|
|
177
185
|
this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
|
|
178
186
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
179
|
-
|
|
180
|
-
|
|
187
|
+
var isRequired = this === null || this === void 0 ? void 0 : (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required;
|
|
188
|
+
this.rules = [{
|
|
189
|
+
required: isRequired,
|
|
181
190
|
validator: function validator(_, value) {
|
|
182
|
-
var _value, _typeMap$options$type6;
|
|
183
|
-
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
191
|
+
var _value, _typeMap$options$type6, _typeMap$options$type8;
|
|
192
|
+
if (isRequired && (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length))) {
|
|
184
193
|
var _typeMap$options$type7;
|
|
185
194
|
return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
|
|
186
195
|
}
|
|
196
|
+
if (isRequired && (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)]))) {
|
|
197
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
|
|
198
|
+
}
|
|
187
199
|
return Promise.resolve();
|
|
188
200
|
}
|
|
189
|
-
}
|
|
201
|
+
}, {
|
|
202
|
+
required: isRequired,
|
|
203
|
+
validator: function validator(_rule, value) {
|
|
204
|
+
var _typeMap$options$type9, _typeMap$options$type10;
|
|
205
|
+
return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) || function () {
|
|
206
|
+
return Promise.resolve();
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}];
|
|
190
210
|
this.dataType = "object";
|
|
191
211
|
});
|
|
192
212
|
export default WdtReissue;
|
package/dist/esm/constant.js
CHANGED
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => PublicExchange | PublicReissueGoods | WdtGoods | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
|
|
4
|
+
// WlnGoods,
|
|
5
|
+
BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
4
6
|
export var factory = function factory(type, options) {
|
|
5
7
|
var _options$componentCon;
|
|
6
8
|
switch (type) {
|
|
@@ -35,6 +37,7 @@ export var factory = function factory(type, options) {
|
|
|
35
37
|
case "REFUND_TYPE":
|
|
36
38
|
case "EXECUTE_ACTION_TYPE":
|
|
37
39
|
case "ERP_ORDER_STATUS":
|
|
40
|
+
case "JST_OUTBOUND_STATUS":
|
|
38
41
|
return new BasicSelect(options);
|
|
39
42
|
case "PICTURE":
|
|
40
43
|
return new BasicPicture(options);
|
|
@@ -122,10 +125,11 @@ export var factory = function factory(type, options) {
|
|
|
122
125
|
case "FLOW_TAG":
|
|
123
126
|
return new FlowTag(options);
|
|
124
127
|
case "COMPLETED_DATETIME":
|
|
125
|
-
return new CommonDataTime(options);
|
|
126
128
|
case "CREATED_DATETIME":
|
|
127
|
-
return new CommonDataTime(options);
|
|
128
129
|
case "UPDATE_DATETIME":
|
|
130
|
+
case "FLOW_CREATED_DATETIME":
|
|
131
|
+
case "FLOW_UPDATE_DATETIME":
|
|
132
|
+
case "FLOW_CREATE_TIME_DATETIME":
|
|
129
133
|
return new CommonDataTime(options);
|
|
130
134
|
case "TEMPLATE_ID_INPUT":
|
|
131
135
|
return new TemplateSelect(options);
|
|
@@ -142,6 +146,10 @@ export var factory = function factory(type, options) {
|
|
|
142
146
|
case "BS_E3_SYSTEM_ORDER":
|
|
143
147
|
case "GY_SYSTEM_ORDER":
|
|
144
148
|
case "JST_SYSTEM_ORDER":
|
|
149
|
+
case "JY_SYSTEM_ORDER":
|
|
150
|
+
case "JKY_SYSTEM_ORDER":
|
|
151
|
+
case "WDT_RETURN_BILL_NO":
|
|
152
|
+
case "PLATFORM_AFTER_SALES_ORDER":
|
|
145
153
|
return new BsSystemOrder(options);
|
|
146
154
|
case "JST_SEND_GOOD":
|
|
147
155
|
case "BS_SEND_GOOD":
|
|
@@ -150,7 +158,11 @@ export var factory = function factory(type, options) {
|
|
|
150
158
|
case "WDT_SEND_GOOD":
|
|
151
159
|
case "KM_SEND_GOOD":
|
|
152
160
|
case "GY_SEND_GOOD":
|
|
161
|
+
case "JY_SEND_GOOD":
|
|
162
|
+
case "JKY_SEND_GOOD":
|
|
153
163
|
return new JstSendGood(options);
|
|
164
|
+
case "KM_RETURN_WAREHOUSE":
|
|
165
|
+
return new ReturnWarehouse(options);
|
|
154
166
|
case "BS_POSTING":
|
|
155
167
|
return new BsPosting(options);
|
|
156
168
|
case "BS_GOODS":
|
|
@@ -159,11 +171,21 @@ export var factory = function factory(type, options) {
|
|
|
159
171
|
return new BsE3Goods(options);
|
|
160
172
|
case "GY_GOODS":
|
|
161
173
|
return new GyGoods(options);
|
|
174
|
+
case "JY_GOODS":
|
|
175
|
+
case "JKY_GOODS":
|
|
162
176
|
case "KM_GOODS":
|
|
163
177
|
case "JST_GOODS":
|
|
178
|
+
case "WLN_GOODS":
|
|
179
|
+
case "WDT_AFTERSALE_GOODS":
|
|
180
|
+
case "JST_AFTERSALE_GOODS":
|
|
164
181
|
return new PublicGoods(options);
|
|
182
|
+
case "WLN_REISSUE_GOODS":
|
|
165
183
|
case "JST_REISSUE_GOODS":
|
|
166
184
|
case "KM_REISSUE_GOODS":
|
|
185
|
+
case "KM_RETURN_GOODS":
|
|
186
|
+
case "JY_REISSUE_GOODS":
|
|
187
|
+
case "JKY_REISSUE_GOODS":
|
|
188
|
+
case "JST_RETURN_GOODS":
|
|
167
189
|
return new PublicReissueGoods(options);
|
|
168
190
|
case "BS_E3_REISSUE_GOODS":
|
|
169
191
|
return new BsE3Reissue(options);
|
|
@@ -171,6 +193,8 @@ export var factory = function factory(type, options) {
|
|
|
171
193
|
return new BsExchange(options);
|
|
172
194
|
case "WDT_EXCHANGE_GOODS":
|
|
173
195
|
return new WdtExchange(options);
|
|
196
|
+
case "KM_EXCHANGE_GOODS":
|
|
197
|
+
return new KmExchange(options);
|
|
174
198
|
case "JST_EXCHANGE_GOODS":
|
|
175
199
|
return new PublicExchange(options);
|
|
176
200
|
case "BS_REISSUE_GOODS":
|
|
@@ -185,9 +209,8 @@ export var factory = function factory(type, options) {
|
|
|
185
209
|
return new WdtReturn(options);
|
|
186
210
|
case "GY_RETURN_GOODS":
|
|
187
211
|
return new GyReturn(options);
|
|
188
|
-
case "JST_RETURN_GOODS":
|
|
189
|
-
return new PublicReissueGoods(options);
|
|
190
212
|
case "REISSUE_TRADE_ID":
|
|
213
|
+
case "SWAP_OUT_TRADE_ID":
|
|
191
214
|
case "ERP_AFTER_SALE_TRADE_ID":
|
|
192
215
|
case "BS_DELIVERY_NO":
|
|
193
216
|
case "RETURN_GOODS_TRADE_ID":
|
|
@@ -200,6 +223,8 @@ export var factory = function factory(type, options) {
|
|
|
200
223
|
case "JST_LOGISTICS":
|
|
201
224
|
case "KM_LOGISTICS":
|
|
202
225
|
case "GY_LOGISTICS":
|
|
226
|
+
case "JY_LOGISTICS":
|
|
227
|
+
case "JKY_LOGISTICS":
|
|
203
228
|
case "SKX_LOGISTICS":
|
|
204
229
|
case "SKX_RETURN_LOGISTICS":
|
|
205
230
|
return new BsLogistics(options);
|
|
@@ -207,6 +232,7 @@ export var factory = function factory(type, options) {
|
|
|
207
232
|
return new FlowWorkOrderId(options);
|
|
208
233
|
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
209
234
|
return new FlowWorkOrderId(options);
|
|
235
|
+
case "ERP_REMARK":
|
|
210
236
|
case "REISSUE_STATUS":
|
|
211
237
|
case "ADJUST_WORK_ORDER_STATUS":
|
|
212
238
|
case "CREATE_STATUS":
|
|
@@ -215,15 +241,19 @@ export var factory = function factory(type, options) {
|
|
|
215
241
|
case "AGREE_REFUND_STATUS":
|
|
216
242
|
case "REJECT_REFUND_STATUS":
|
|
217
243
|
case "ERP_AFTER_SALE_STATUS":
|
|
244
|
+
case "ERP_AFTER_SALES_ORDER_REVIEW_STATUS":
|
|
218
245
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
219
246
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
220
247
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
248
|
+
case "REPAIR_ORDER_STATUS":
|
|
221
249
|
return new StatusSelect(options);
|
|
222
250
|
case "RETURN_GOODS_STATUS":
|
|
223
251
|
case "EXCHANGE_STATUS":
|
|
224
252
|
case "WAREHOUSING_STATUS":
|
|
225
253
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
226
254
|
case "WDT_WAREHOUSING_STATUS":
|
|
255
|
+
case "WLN_WAREHOUSING_STATUS":
|
|
256
|
+
case "JKY_WAREHOUSING_STATUS":
|
|
227
257
|
return new CommonMultiStatus(options);
|
|
228
258
|
case "MSG_STATUS":
|
|
229
259
|
return new MsgStatus(options);
|
|
@@ -243,21 +273,18 @@ export var factory = function factory(type, options) {
|
|
|
243
273
|
case "NODE_STAY_DURATION_INPUT":
|
|
244
274
|
// 工单停留时长
|
|
245
275
|
return new NodeStayDuration(options);
|
|
246
|
-
case "WLN_GOODS":
|
|
247
|
-
|
|
248
|
-
return new WlnGoods(options);
|
|
276
|
+
// case "WLN_GOODS": // 万里牛商品
|
|
277
|
+
// return new WlnGoods(options);
|
|
249
278
|
case "NODE_INPUT":
|
|
250
279
|
return new NodeInput(options);
|
|
251
280
|
case "FLOW_WORK_STATUS_SELECT":
|
|
252
281
|
return new FlowWorkOrderStatus(options);
|
|
253
|
-
case "FLOW_CREATED_DATETIME":
|
|
254
|
-
return new CommonDataTime(options);
|
|
255
|
-
case "FLOW_UPDATE_DATETIME":
|
|
256
|
-
return new CommonDataTime(options);
|
|
257
282
|
case "WDT_GOODS":
|
|
258
283
|
// 万里牛商品
|
|
259
284
|
return new WdtGoods(options);
|
|
260
285
|
case "BUSINESS_ORDER_NO":
|
|
286
|
+
case "REPAIR_ORDER_SN":
|
|
287
|
+
case "REPAIR_ORDER_ID":
|
|
261
288
|
return new CommonInput(options);
|
|
262
289
|
case "PAYMENT_VOUCHER_CODE":
|
|
263
290
|
return new PaymentVoucherCode(options);
|
|
@@ -294,6 +321,8 @@ export var factory = function factory(type, options) {
|
|
|
294
321
|
return new SkxGoods(options);
|
|
295
322
|
case "ORDER_SUBFORM":
|
|
296
323
|
return new OrderSubForm(options);
|
|
324
|
+
case "FLOW_OVERALL_STATUS_SELECT":
|
|
325
|
+
return new FlowOverallStatusSelect(options);
|
|
297
326
|
default:
|
|
298
327
|
return new BasicInput(options);
|
|
299
328
|
}
|