@kmkf-fe-packages/services-components 2.4.0-rc.0 → 2.4.1
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 +441 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +10 -3
- 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 +11 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- 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/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +61 -8
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- 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 +20 -10
- package/dist/esm/components/BS/common/BsMemo.js +4 -1
- package/dist/esm/components/BS/common/BsType.js +4 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +16 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +31 -5
- 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 +3 -3
- package/dist/esm/components/Common/index.js +49 -28
- 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 +1165 -18
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- 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.js +17 -1
- 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 +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- 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 +56 -0
- package/dist/esm/components/OrderSubForm/index.js +285 -0
- 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/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +42 -25
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +42 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
- 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/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- 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/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +22 -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 +4 -0
- 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 +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +37 -7
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +34 -1
- package/dist/esm/type.d.ts +38 -0
- 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
|
@@ -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,13 @@ 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
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
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) {
|
|
@@ -50,7 +50,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
50
50
|
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
51
51
|
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")],
|
|
52
52
|
style: {
|
|
53
|
-
color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ?
|
|
53
|
+
color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
|
|
54
54
|
}
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
@@ -63,13 +63,16 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
63
63
|
});
|
|
64
64
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
65
65
|
var _record;
|
|
66
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
66
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
|
|
67
67
|
});
|
|
68
68
|
_defineProperty(this, "editRender", function (p) {
|
|
69
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$
|
|
69
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects2, _this$effects3;
|
|
70
70
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
71
|
-
var _p$onBlur;
|
|
72
|
-
|
|
71
|
+
var _this$effects, _this$effects$form, _p$onBlur;
|
|
72
|
+
(_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({
|
|
73
|
+
skx_return_billNo_blur_from: _this.id
|
|
74
|
+
});
|
|
75
|
+
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
76
|
};
|
|
74
77
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
75
78
|
title: _this.name,
|
|
@@ -78,10 +81,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
78
81
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
82
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
83
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
81
|
-
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 :
|
|
84
|
+
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 : "",
|
|
82
85
|
component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
|
|
83
|
-
shopId: (_this$
|
|
84
|
-
shopList: (_this$
|
|
86
|
+
shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
|
|
87
|
+
shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
|
|
85
88
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
86
89
|
onBlur: onTradeIdBlur
|
|
87
90
|
}))
|
|
@@ -95,10 +98,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
95
98
|
// 过滤组件id
|
|
96
99
|
name: item.name,
|
|
97
100
|
// 过滤组件名称
|
|
98
|
-
filterComponentType:
|
|
101
|
+
filterComponentType: "TradeInput",
|
|
99
102
|
filterFn: function filterFn(value) {
|
|
100
103
|
return function (i) {
|
|
101
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
104
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
|
|
102
105
|
};
|
|
103
106
|
},
|
|
104
107
|
formatFilterValue: function formatFilterValue(value) {
|
|
@@ -119,6 +122,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
119
122
|
this.isCombinationComponent = false;
|
|
120
123
|
this.canSort = true;
|
|
121
124
|
this.children = [];
|
|
122
|
-
this.dataType =
|
|
125
|
+
this.dataType = "string";
|
|
123
126
|
});
|
|
124
127
|
export default ETradeId;
|
|
@@ -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/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, WlnGoods, 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 } from "./index";
|
|
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, WlnGoods, 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) => BsLogistics | BsSystemOrder | BasicCascader | CommonInput | CommonMultiStatus | BasicInput | JstSendGood | KmExchange | Logistics | LogisticsMoreInterception | MsgStatus | OrderSubForm | Payment | BasicPicturePro | PublicGoods | PublicReissueGoods | ReturnWarehouse | ReceiverAddress | StatusSelect | SubForm | BasicTypeInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | FlowOverallStatusSelect;
|
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, 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, WlnGoods, 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 } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -34,6 +34,8 @@ export var factory = function factory(type, options) {
|
|
|
34
34
|
case "ORDER_TYPE":
|
|
35
35
|
case "REFUND_TYPE":
|
|
36
36
|
case "EXECUTE_ACTION_TYPE":
|
|
37
|
+
case "ERP_ORDER_STATUS":
|
|
38
|
+
case "JST_OUTBOUND_STATUS":
|
|
37
39
|
return new BasicSelect(options);
|
|
38
40
|
case "PICTURE":
|
|
39
41
|
return new BasicPicture(options);
|
|
@@ -121,10 +123,11 @@ export var factory = function factory(type, options) {
|
|
|
121
123
|
case "FLOW_TAG":
|
|
122
124
|
return new FlowTag(options);
|
|
123
125
|
case "COMPLETED_DATETIME":
|
|
124
|
-
return new CommonDataTime(options);
|
|
125
126
|
case "CREATED_DATETIME":
|
|
126
|
-
return new CommonDataTime(options);
|
|
127
127
|
case "UPDATE_DATETIME":
|
|
128
|
+
case "FLOW_CREATED_DATETIME":
|
|
129
|
+
case "FLOW_UPDATE_DATETIME":
|
|
130
|
+
case "FLOW_CREATE_TIME_DATETIME":
|
|
128
131
|
return new CommonDataTime(options);
|
|
129
132
|
case "TEMPLATE_ID_INPUT":
|
|
130
133
|
return new TemplateSelect(options);
|
|
@@ -141,6 +144,9 @@ export var factory = function factory(type, options) {
|
|
|
141
144
|
case "BS_E3_SYSTEM_ORDER":
|
|
142
145
|
case "GY_SYSTEM_ORDER":
|
|
143
146
|
case "JST_SYSTEM_ORDER":
|
|
147
|
+
case "JY_SYSTEM_ORDER":
|
|
148
|
+
case "JKY_SYSTEM_ORDER":
|
|
149
|
+
case "WDT_RETURN_BILL_NO":
|
|
144
150
|
return new BsSystemOrder(options);
|
|
145
151
|
case "JST_SEND_GOOD":
|
|
146
152
|
case "BS_SEND_GOOD":
|
|
@@ -149,7 +155,11 @@ export var factory = function factory(type, options) {
|
|
|
149
155
|
case "WDT_SEND_GOOD":
|
|
150
156
|
case "KM_SEND_GOOD":
|
|
151
157
|
case "GY_SEND_GOOD":
|
|
158
|
+
case "JY_SEND_GOOD":
|
|
159
|
+
case "JKY_SEND_GOOD":
|
|
152
160
|
return new JstSendGood(options);
|
|
161
|
+
case "KM_RETURN_WAREHOUSE":
|
|
162
|
+
return new ReturnWarehouse(options);
|
|
153
163
|
case "BS_POSTING":
|
|
154
164
|
return new BsPosting(options);
|
|
155
165
|
case "BS_GOODS":
|
|
@@ -158,11 +168,18 @@ export var factory = function factory(type, options) {
|
|
|
158
168
|
return new BsE3Goods(options);
|
|
159
169
|
case "GY_GOODS":
|
|
160
170
|
return new GyGoods(options);
|
|
171
|
+
case "JY_GOODS":
|
|
172
|
+
case "JKY_GOODS":
|
|
161
173
|
case "KM_GOODS":
|
|
162
174
|
case "JST_GOODS":
|
|
175
|
+
case "WDT_AFTERSALE_GOODS":
|
|
176
|
+
case "JST_AFTERSALE_GOODS":
|
|
163
177
|
return new PublicGoods(options);
|
|
164
178
|
case "JST_REISSUE_GOODS":
|
|
165
179
|
case "KM_REISSUE_GOODS":
|
|
180
|
+
case "KM_RETURN_GOODS":
|
|
181
|
+
case "JY_REISSUE_GOODS":
|
|
182
|
+
case "JKY_REISSUE_GOODS":
|
|
166
183
|
return new PublicReissueGoods(options);
|
|
167
184
|
case "BS_E3_REISSUE_GOODS":
|
|
168
185
|
return new BsE3Reissue(options);
|
|
@@ -170,6 +187,8 @@ export var factory = function factory(type, options) {
|
|
|
170
187
|
return new BsExchange(options);
|
|
171
188
|
case "WDT_EXCHANGE_GOODS":
|
|
172
189
|
return new WdtExchange(options);
|
|
190
|
+
case "KM_EXCHANGE_GOODS":
|
|
191
|
+
return new KmExchange(options);
|
|
173
192
|
case "JST_EXCHANGE_GOODS":
|
|
174
193
|
return new PublicExchange(options);
|
|
175
194
|
case "BS_REISSUE_GOODS":
|
|
@@ -199,7 +218,10 @@ export var factory = function factory(type, options) {
|
|
|
199
218
|
case "JST_LOGISTICS":
|
|
200
219
|
case "KM_LOGISTICS":
|
|
201
220
|
case "GY_LOGISTICS":
|
|
221
|
+
case "JY_LOGISTICS":
|
|
222
|
+
case "JKY_LOGISTICS":
|
|
202
223
|
case "SKX_LOGISTICS":
|
|
224
|
+
case "SKX_RETURN_LOGISTICS":
|
|
203
225
|
return new BsLogistics(options);
|
|
204
226
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
205
227
|
return new FlowWorkOrderId(options);
|
|
@@ -216,12 +238,14 @@ export var factory = function factory(type, options) {
|
|
|
216
238
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
217
239
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
218
240
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
241
|
+
case "REPAIR_ORDER_STATUS":
|
|
219
242
|
return new StatusSelect(options);
|
|
220
243
|
case "RETURN_GOODS_STATUS":
|
|
221
244
|
case "EXCHANGE_STATUS":
|
|
222
245
|
case "WAREHOUSING_STATUS":
|
|
223
246
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
224
247
|
case "WDT_WAREHOUSING_STATUS":
|
|
248
|
+
case "JKY_WAREHOUSING_STATUS":
|
|
225
249
|
return new CommonMultiStatus(options);
|
|
226
250
|
case "MSG_STATUS":
|
|
227
251
|
return new MsgStatus(options);
|
|
@@ -248,14 +272,12 @@ export var factory = function factory(type, options) {
|
|
|
248
272
|
return new NodeInput(options);
|
|
249
273
|
case "FLOW_WORK_STATUS_SELECT":
|
|
250
274
|
return new FlowWorkOrderStatus(options);
|
|
251
|
-
case "FLOW_CREATED_DATETIME":
|
|
252
|
-
return new CommonDataTime(options);
|
|
253
|
-
case "FLOW_UPDATE_DATETIME":
|
|
254
|
-
return new CommonDataTime(options);
|
|
255
275
|
case "WDT_GOODS":
|
|
256
276
|
// 万里牛商品
|
|
257
277
|
return new WdtGoods(options);
|
|
258
278
|
case "BUSINESS_ORDER_NO":
|
|
279
|
+
case "REPAIR_ORDER_SN":
|
|
280
|
+
case "REPAIR_ORDER_ID":
|
|
259
281
|
return new CommonInput(options);
|
|
260
282
|
case "PAYMENT_VOUCHER_CODE":
|
|
261
283
|
return new PaymentVoucherCode(options);
|
|
@@ -275,6 +297,7 @@ export var factory = function factory(type, options) {
|
|
|
275
297
|
case "WDT_TAGS":
|
|
276
298
|
return new AsyncSelect(options);
|
|
277
299
|
case "SKX_OUTBOUND_NOTICE_NO":
|
|
300
|
+
case "SKX_RETURN_BILL_NO":
|
|
278
301
|
return new SkxIdInputSelect(options);
|
|
279
302
|
case "SKX_ORDER_TYPE":
|
|
280
303
|
return new BasicSelectOption(options);
|
|
@@ -283,9 +306,16 @@ export var factory = function factory(type, options) {
|
|
|
283
306
|
case "SKX_SHOP_NAME":
|
|
284
307
|
case "SKX_WAREHOUSE":
|
|
285
308
|
case "SKX_ORDER_STATUS":
|
|
309
|
+
case "SKX_REFUND_BILL_NO":
|
|
310
|
+
case "SKX_RETURN_ORDER_STATUS":
|
|
286
311
|
return new BasicTypeInput(options);
|
|
287
312
|
case "SKX_GOODS":
|
|
313
|
+
case "SKX_RETURN_GOODS":
|
|
288
314
|
return new SkxGoods(options);
|
|
315
|
+
case "ORDER_SUBFORM":
|
|
316
|
+
return new OrderSubForm(options);
|
|
317
|
+
case "FLOW_OVERALL_STATUS_SELECT":
|
|
318
|
+
return new FlowOverallStatusSelect(options);
|
|
289
319
|
default:
|
|
290
320
|
return new BasicInput(options);
|
|
291
321
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -100,6 +100,10 @@ export { default as GyReturn } from "./components/GY/GyReturn";
|
|
|
100
100
|
export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
|
+
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
|
|
106
|
+
export { default as KmExchange } from "./components/KM/KmExchange";
|
|
103
107
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
104
108
|
export { factory } from "./factory";
|
|
105
109
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
@@ -112,3 +116,4 @@ export { default as Global } from "./commonComponents/GlobalContext";
|
|
|
112
116
|
export * as ErpScenes from "./commonComponents/ErpContext";
|
|
113
117
|
export * as servers from "./service/api";
|
|
114
118
|
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
119
|
+
export * from "./Hooks";
|
package/dist/esm/index.js
CHANGED
|
@@ -100,6 +100,11 @@ export { default as GyReturn } from "./components/GY/GyReturn";
|
|
|
100
100
|
export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
|
+
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
|
+
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
|
|
106
|
+
export { default as KmExchange } from "./components/KM/KmExchange";
|
|
107
|
+
|
|
103
108
|
// TODO: ERP 打款工单使用
|
|
104
109
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
105
110
|
export { factory } from "./factory";
|
|
@@ -114,4 +119,5 @@ import * as _ErpScenes from "./commonComponents/ErpContext";
|
|
|
114
119
|
export { _ErpScenes as ErpScenes };
|
|
115
120
|
import * as _servers from "./service/api";
|
|
116
121
|
export { _servers as servers };
|
|
117
|
-
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
122
|
+
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
123
|
+
export * from "./Hooks";
|
|
@@ -2,6 +2,7 @@ export declare const replaceCheck: (data: any) => Promise<any>;
|
|
|
2
2
|
export declare const queryAddressData: () => Promise<void>;
|
|
3
3
|
export declare const queryBsAddressData: () => Promise<void>;
|
|
4
4
|
export declare const queryWdtAddressData: () => Promise<void>;
|
|
5
|
+
export declare const queryJstAddressData: () => Promise<void>;
|
|
5
6
|
export declare const queryPlatData: () => Promise<void>;
|
|
6
7
|
export declare const queryExpressInterceptData: () => Promise<void>;
|
|
7
8
|
export declare const queryLogisticsAddressData: () => Promise<void>;
|
|
@@ -10,6 +11,8 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
|
10
11
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
12
|
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
13
|
export declare const queryGYLogisticsCompany: () => Promise<void>;
|
|
14
|
+
export declare const queryJYLogisticsCompany: () => Promise<void>;
|
|
15
|
+
export declare const queryJKYLogisticsCompany: () => Promise<void>;
|
|
13
16
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
14
17
|
export declare const queryKMLogisticsCompany: () => Promise<void>;
|
|
15
18
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
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; }
|
|
13
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers, JstAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import get from "lodash/get";
|
|
15
15
|
import request from "./request";
|
|
16
16
|
// 重复校验
|
|
@@ -80,6 +80,26 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
80
80
|
instance.addressOptions = toTree(list, 1);
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
+
export var queryJstAddressData = function queryJstAddressData() {
|
|
84
|
+
return request({
|
|
85
|
+
url: "/qy/gdfw/template/queryJstAreas/noLogin",
|
|
86
|
+
method: "get",
|
|
87
|
+
data: {}
|
|
88
|
+
}).then(function (resp) {
|
|
89
|
+
var map = {};
|
|
90
|
+
var res = {};
|
|
91
|
+
var _resp$data3 = resp.data,
|
|
92
|
+
list = _resp$data3 === void 0 ? [] : _resp$data3;
|
|
93
|
+
for (var i = 0; i < list.length; i++) {
|
|
94
|
+
res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
|
|
95
|
+
map[list[i]["name"]] = list[i]["id"];
|
|
96
|
+
}
|
|
97
|
+
var instance = JstAddressData.getInstance();
|
|
98
|
+
instance.addrData = res;
|
|
99
|
+
instance.addrNameMap = map;
|
|
100
|
+
instance.addressOptions = toTree(list, 1);
|
|
101
|
+
});
|
|
102
|
+
};
|
|
83
103
|
export var queryPlatData = function queryPlatData() {
|
|
84
104
|
return request({
|
|
85
105
|
url: "/qy/platform/listPlatform/noLogin",
|
|
@@ -275,6 +295,19 @@ export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
|
|
|
275
295
|
instance.expressData = data;
|
|
276
296
|
}).catch(console.log);
|
|
277
297
|
};
|
|
298
|
+
export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
299
|
+
var instance = ExpressData.getInstance("jy");
|
|
300
|
+
return servers.JY.getLogisticsDataAsync().then(function (data) {
|
|
301
|
+
instance.expressData = data;
|
|
302
|
+
}).catch(console.log);
|
|
303
|
+
};
|
|
304
|
+
export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
|
|
305
|
+
var instance = ExpressData.getInstance("jky");
|
|
306
|
+
console.log("queryJKYLogisticsCompany");
|
|
307
|
+
return servers.JKY.getLogisticsDataAsync().then(function (data) {
|
|
308
|
+
instance.expressData = data;
|
|
309
|
+
}).catch(console.log);
|
|
310
|
+
};
|
|
278
311
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
279
312
|
var instance = ExpressData.getInstance("wln");
|
|
280
313
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -77,6 +77,34 @@ export interface ComponentInterface {
|
|
|
77
77
|
*/
|
|
78
78
|
formItemIndex?: number;
|
|
79
79
|
componentConfig?: {
|
|
80
|
+
/**
|
|
81
|
+
* @description 商品类组件选择商品来源配置
|
|
82
|
+
*/
|
|
83
|
+
goodsSource?: {
|
|
84
|
+
source?: "workOrder" | "erp";
|
|
85
|
+
sourceSettings?: {
|
|
86
|
+
filterMode?: "some" | "every";
|
|
87
|
+
filterRules?: {
|
|
88
|
+
leftValue: string;
|
|
89
|
+
compareSymbol: any;
|
|
90
|
+
rightValue?: any;
|
|
91
|
+
}[];
|
|
92
|
+
dataFilterConfig: {
|
|
93
|
+
[cpId: string]: {
|
|
94
|
+
isFilter?: boolean;
|
|
95
|
+
isShow?: boolean;
|
|
96
|
+
index?: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
keyMap: {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
};
|
|
102
|
+
workOrder: {
|
|
103
|
+
flowTemplateKey: string;
|
|
104
|
+
nodeId: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
80
108
|
/**
|
|
81
109
|
* @description 特殊自定义组件有的值
|
|
82
110
|
*/
|
|
@@ -212,6 +240,7 @@ export interface ComponentInterface {
|
|
|
212
240
|
repeatRange: string;
|
|
213
241
|
repeatComponents: any[];
|
|
214
242
|
};
|
|
243
|
+
sortColumns?: string;
|
|
215
244
|
};
|
|
216
245
|
effects?: {
|
|
217
246
|
queryWorkOrderDetail?: (r: Record) => void;
|
|
@@ -303,3 +332,12 @@ export declare type ColumnConfig = {
|
|
|
303
332
|
config?: ComponentInterface["componentConfig"];
|
|
304
333
|
templateConfig?: ComponentInterface["componentConfig"];
|
|
305
334
|
};
|
|
335
|
+
export interface ColumnsConfigI {
|
|
336
|
+
show: boolean;
|
|
337
|
+
delete: boolean;
|
|
338
|
+
width: number;
|
|
339
|
+
name: string;
|
|
340
|
+
id: string;
|
|
341
|
+
type: string;
|
|
342
|
+
config?: any;
|
|
343
|
+
}
|