@kmkf-fe-packages/services-components 0.6.2 → 0.6.3-alpha.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/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +8 -11
- package/dist/esm/components/ActualPayment/index.js +19 -22
- package/dist/esm/components/Address/index.d.ts +6 -14
- package/dist/esm/components/Address/index.js +9 -22
- package/dist/esm/components/Alipay/index.d.ts +9 -18
- package/dist/esm/components/Alipay/index.js +6 -17
- package/dist/esm/components/AlipayAccount/index.d.ts +9 -13
- package/dist/esm/components/AlipayAccount/index.js +19 -24
- package/dist/esm/components/AlipayName/index.d.ts +8 -12
- package/dist/esm/components/AlipayName/index.js +18 -23
- package/dist/esm/components/BuyerNick/index.d.ts +8 -11
- package/dist/esm/components/BuyerNick/index.js +30 -25
- package/dist/esm/components/Cascader/index.d.ts +9 -23
- package/dist/esm/components/Cascader/index.js +29 -27
- package/dist/esm/components/Checkbox/index.d.ts +9 -10
- package/dist/esm/components/Checkbox/index.js +24 -20
- package/dist/esm/components/CommonDataTime/index.d.ts +8 -10
- package/dist/esm/components/CommonDataTime/index.js +19 -20
- package/dist/esm/components/CompletedUser/index.d.ts +28 -0
- package/dist/esm/components/CompletedUser/index.js +60 -0
- package/dist/esm/components/DataTime/index.d.ts +9 -10
- package/dist/esm/components/DataTime/index.js +22 -23
- package/dist/esm/components/EItemEnCode/index.d.ts +8 -10
- package/dist/esm/components/EItemEnCode/index.js +22 -20
- package/dist/esm/components/EItemId/index.d.ts +8 -10
- package/dist/esm/components/EItemId/index.js +22 -20
- package/dist/esm/components/EItemSelect/index.d.ts +4 -11
- package/dist/esm/components/EItemSelect/index.js +6 -18
- package/dist/esm/components/ErpTradeId/index.d.ts +8 -11
- package/dist/esm/components/ErpTradeId/index.js +18 -21
- package/dist/esm/components/Express/index.d.ts +9 -13
- package/dist/esm/components/Express/index.js +18 -29
- package/dist/esm/components/ExpressCode/index.d.ts +8 -12
- package/dist/esm/components/ExpressCode/index.js +17 -22
- package/dist/esm/components/FlowStatusSelect/index.d.ts +13 -33
- package/dist/esm/components/FlowStatusSelect/index.js +27 -22
- package/dist/esm/components/Grade/index.d.ts +4 -11
- package/dist/esm/components/Grade/index.js +6 -19
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +64 -0
- package/dist/esm/components/Input/index.d.ts +8 -11
- package/dist/esm/components/Input/index.js +20 -24
- package/dist/esm/components/JstItemSelect/index.d.ts +9 -11
- package/dist/esm/components/JstItemSelect/index.js +35 -20
- package/dist/esm/components/JstLogistics/index.d.ts +16 -11
- package/dist/esm/components/JstLogistics/index.js +31 -20
- package/dist/esm/components/JstSendGood/index.d.ts +9 -11
- package/dist/esm/components/JstSendGood/index.js +35 -20
- package/dist/esm/components/JstSupply/index.d.ts +9 -11
- package/dist/esm/components/JstSupply/index.js +35 -20
- package/dist/esm/components/Logistics/index.d.ts +15 -25
- package/dist/esm/components/Logistics/index.js +10 -17
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +25 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +89 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +62 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +27 -0
- package/dist/esm/components/LogisticsInterception/index.js +90 -0
- package/dist/esm/components/MultSelect/index.d.ts +9 -10
- package/dist/esm/components/MultSelect/index.js +21 -20
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +14 -26
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +8 -21
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +14 -26
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +8 -16
- package/dist/esm/components/Ordinary/OrdinarySerial.js +14 -16
- package/dist/esm/components/Ordinary/index.d.ts +9 -22
- package/dist/esm/components/Ordinary/index.js +8 -7
- package/dist/esm/components/Payment/AlipayNick.d.ts +9 -22
- package/dist/esm/components/Payment/AlipayNick.js +16 -28
- package/dist/esm/components/Payment/AlipayNo.d.ts +8 -20
- package/dist/esm/components/Payment/AlipayNo.js +16 -27
- package/dist/esm/components/Payment/AlipayTime.d.ts +8 -22
- package/dist/esm/components/Payment/AlipayTime.js +15 -27
- package/dist/esm/components/Payment/BuyerNick.d.ts +8 -21
- package/dist/esm/components/Payment/BuyerNick.js +14 -26
- package/dist/esm/components/Payment/PaymentAmount.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentAmount.js +14 -26
- package/dist/esm/components/Payment/PaymentStatus.d.ts +13 -27
- package/dist/esm/components/Payment/PaymentStatus.js +37 -36
- package/dist/esm/components/Payment/PaymentTid.d.ts +8 -21
- package/dist/esm/components/Payment/PaymentTid.js +14 -26
- package/dist/esm/components/Payment/index.d.ts +23 -96
- package/dist/esm/components/Payment/index.js +8 -17
- package/dist/esm/components/Picture/index.d.ts +8 -10
- package/dist/esm/components/Picture/index.js +6 -18
- package/dist/esm/components/PlatForm/index.d.ts +29 -0
- package/dist/esm/components/PlatForm/index.js +62 -0
- package/dist/esm/components/Radio/index.d.ts +9 -10
- package/dist/esm/components/Radio/index.js +23 -20
- package/dist/esm/components/Rate/index.d.ts +4 -11
- package/dist/esm/components/Rate/index.js +6 -19
- package/dist/esm/components/ReceiverAddress/index.d.ts +4 -12
- package/dist/esm/components/ReceiverAddress/index.js +9 -26
- package/dist/esm/components/ReceiverMobile/index.d.ts +9 -12
- package/dist/esm/components/ReceiverMobile/index.js +20 -23
- package/dist/esm/components/ReceiverName/index.d.ts +8 -11
- package/dist/esm/components/ReceiverName/index.js +20 -23
- package/dist/esm/components/Remark/index.d.ts +8 -11
- package/dist/esm/components/Remark/index.js +18 -21
- package/dist/esm/components/ReturnLogistics/index.d.ts +15 -20
- package/dist/esm/components/ReturnLogistics/index.js +10 -7
- package/dist/esm/components/Select/index.d.ts +9 -10
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopInput/index.d.ts +26 -0
- package/dist/esm/components/ShopInput/index.js +71 -0
- package/dist/esm/components/ShopName/index.d.ts +8 -11
- package/dist/esm/components/ShopName/index.js +18 -20
- package/dist/esm/components/Submitter/index.d.ts +28 -0
- package/dist/esm/components/Submitter/index.js +60 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +8 -11
- package/dist/esm/components/SystemOrderNo/index.js +18 -21
- package/dist/esm/components/TemplateSelect/index.d.ts +9 -11
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +8 -10
- package/dist/esm/components/TextArea/index.js +18 -20
- package/dist/esm/components/ThirdItemSelect/index.d.ts +8 -10
- package/dist/esm/components/ThirdItemSelect/index.js +24 -20
- package/dist/esm/components/TradeDateTime/index.d.ts +9 -5
- package/dist/esm/components/TradeDateTime/index.js +34 -10
- package/dist/esm/components/TradeId/index.d.ts +8 -5
- package/dist/esm/components/TradeId/index.js +18 -10
- package/dist/esm/components/WorkOrderId/index.d.ts +8 -11
- package/dist/esm/components/WorkOrderId/index.js +20 -22
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/type.d.ts +38 -36
- package/package.json +4 -4
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ThirdItemSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
render: (value: any) => JSX.Element;
|
|
17
14
|
renderClient: (record: Record) => JSX.Element | null;
|
|
18
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
16
|
renderExport: (value: any, record: Record) => any;
|
|
20
17
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
25
23
|
};
|
|
26
24
|
}
|
|
27
25
|
export default ThirdItemSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -13,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
11
|
import ItemEncode from "./ItemEncode";
|
|
14
12
|
import { GoodImage } from "../Common";
|
|
15
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
15
|
var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
|
|
18
16
|
var _this = this,
|
|
19
17
|
_this$componentConfig2;
|
|
@@ -22,13 +20,10 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
22
20
|
_defineProperty(this, "id", void 0);
|
|
23
21
|
_defineProperty(this, "type", void 0);
|
|
24
22
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
24
|
_defineProperty(this, "effects", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "children", void 0);
|
|
32
27
|
_defineProperty(this, "render", function (value) {
|
|
33
28
|
//兼容多个商品
|
|
34
29
|
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
@@ -76,24 +71,33 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
76
71
|
}))
|
|
77
72
|
});
|
|
78
73
|
});
|
|
79
|
-
_defineProperty(this, "
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
75
|
+
return {
|
|
76
|
+
id: item.id,
|
|
77
|
+
// 过滤组件id
|
|
78
|
+
name: item.name,
|
|
79
|
+
// 过滤组件名称
|
|
80
|
+
filterComponentType: 'Input',
|
|
81
|
+
filterFn: function filterFn(value) {
|
|
82
|
+
return function (i) {
|
|
83
|
+
var _ref2;
|
|
84
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
85
|
+
var _String, _String2;
|
|
86
|
+
var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
87
|
+
var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
88
|
+
return id || name;
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
86
93
|
});
|
|
87
94
|
this.name = options.name || '供应商编码/名称';
|
|
88
95
|
this.id = options.id;
|
|
89
96
|
this.type = options.type;
|
|
90
|
-
this.canFilter = false;
|
|
91
|
-
this.canGroup = false;
|
|
92
|
-
this.canHidden = true;
|
|
93
|
-
this.showContains = false;
|
|
94
|
-
this.dataType = 'string';
|
|
95
97
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
96
98
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
99
|
+
this.isCombinationComponent = false;
|
|
100
|
+
this.children = [];
|
|
97
101
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
98
102
|
required: true,
|
|
99
103
|
validator: function validator(_, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
declare class BasicDataTime implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -12,16 +12,20 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
12
12
|
dataType: DataType;
|
|
13
13
|
showContains: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
|
+
isCombinationComponent: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
render: (value: Value) => JSX.Element;
|
|
17
19
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
19
21
|
renderExport: (value: unknown, record: Record) => any;
|
|
20
22
|
editRender: () => JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
24
|
+
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
filterComponentType: "Date";
|
|
28
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
25
29
|
};
|
|
26
30
|
}
|
|
27
31
|
export default BasicDataTime;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { DateTime } from "../DataTime";
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, BasicDataTime);
|
|
@@ -26,6 +24,8 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
26
24
|
_defineProperty(this, "dataType", void 0);
|
|
27
25
|
_defineProperty(this, "showContains", void 0);
|
|
28
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
29
|
_defineProperty(this, "render", function (value) {
|
|
30
30
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
31
31
|
});
|
|
@@ -70,13 +70,35 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
70
70
|
}))
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
_defineProperty(this, "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
74
|
+
if (type === 'TRADE_CLOSING_DATETIME') {
|
|
75
|
+
return 'tradeClosingDateTime';
|
|
76
|
+
}
|
|
77
|
+
if (type === 'TRADE_CREATE_DATETIME') {
|
|
78
|
+
return 'tradeCreateDateTime';
|
|
79
|
+
}
|
|
80
|
+
if (type === 'TRADE_PAYMENT_DATETIME') {
|
|
81
|
+
return 'tradePaymentDateTime';
|
|
82
|
+
}
|
|
83
|
+
if (type === 'TRADE_DELIVERY_DATETIME') {
|
|
84
|
+
return 'tradeDeliveryDateTime';
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
88
|
+
return {
|
|
89
|
+
id: item.id,
|
|
90
|
+
// 过滤组件id
|
|
91
|
+
name: item.name,
|
|
92
|
+
// 过滤组件名称
|
|
93
|
+
filterComponentType: 'Date',
|
|
94
|
+
filterFn: function filterFn(value) {
|
|
95
|
+
return function (i) {
|
|
96
|
+
var key = _this.getKeyByComponentType(item.type);
|
|
97
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
|
|
98
|
+
return _filterFn.filterDateFn(value, recordDateTime);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
80
102
|
});
|
|
81
103
|
this.name = options.name;
|
|
82
104
|
this.id = options.id;
|
|
@@ -88,5 +110,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
88
110
|
this.dataType = 'date';
|
|
89
111
|
this.componentConfig = options.componentConfig;
|
|
90
112
|
this.rules = [];
|
|
113
|
+
this.isCombinationComponent = false;
|
|
114
|
+
this.children = [];
|
|
91
115
|
});
|
|
92
116
|
export default BasicDataTime;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -13,16 +13,19 @@ declare class ETradeId implements ComponentInterface {
|
|
|
13
13
|
onlyContainsString: boolean;
|
|
14
14
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
15
|
effects: ComponentInterface["effects"];
|
|
16
|
+
isCombinationComponent: boolean;
|
|
17
|
+
children: ComponentInterface[];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
render: (value: string) => JSX.Element;
|
|
18
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
19
21
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
20
22
|
renderExport: (value: unknown, record: Record) => any;
|
|
21
23
|
editRender: (value: any) => JSX.Element;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
filterComponentType: "Input";
|
|
28
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
export default ETradeId;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -12,7 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
14
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
17
15
|
var _this = this;
|
|
18
16
|
_classCallCheck(this, ETradeId);
|
|
@@ -28,6 +26,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
28
26
|
_defineProperty(this, "onlyContainsString", void 0);
|
|
29
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
28
|
_defineProperty(this, "effects", void 0);
|
|
29
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "render", function (value) {
|
|
32
32
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
33
33
|
});
|
|
@@ -65,13 +65,19 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
65
65
|
}))
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
_defineProperty(this, "
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
69
|
+
return {
|
|
70
|
+
id: item.id,
|
|
71
|
+
// 过滤组件id
|
|
72
|
+
name: item.name,
|
|
73
|
+
// 过滤组件名称
|
|
74
|
+
filterComponentType: 'Input',
|
|
75
|
+
filterFn: function filterFn(value) {
|
|
76
|
+
return function (i) {
|
|
77
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
75
81
|
});
|
|
76
82
|
this.name = options.name;
|
|
77
83
|
this.id = options.id;
|
|
@@ -85,5 +91,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
85
91
|
this.componentConfig = options.componentConfig;
|
|
86
92
|
this.effects = options.effects;
|
|
87
93
|
this.rules = [];
|
|
94
|
+
this.isCombinationComponent = false;
|
|
95
|
+
this.children = [];
|
|
88
96
|
});
|
|
89
97
|
export default ETradeId;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class WorkOrderId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
13
|
copyHandle: (text: string) => void;
|
|
17
14
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
@@ -19,11 +16,11 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
19
16
|
render: () => null;
|
|
20
17
|
renderClient: () => null;
|
|
21
18
|
editRender: () => JSX.Element;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
filterComponentType: "Input";
|
|
23
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
27
24
|
};
|
|
28
25
|
}
|
|
29
26
|
export default WorkOrderId;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -12,6 +10,7 @@ import React from 'react';
|
|
|
12
10
|
import { message } from 'antd';
|
|
13
11
|
import { CopyOutlined } from '@ant-design/icons';
|
|
14
12
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
13
|
+
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
14
|
import GetFormItem from "../GetFormItem";
|
|
16
15
|
import repeatPng from "./img/repeat.png";
|
|
17
16
|
import copy from 'copy-to-clipboard';
|
|
@@ -22,13 +21,10 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
22
21
|
_defineProperty(this, "id", void 0);
|
|
23
22
|
_defineProperty(this, "type", void 0);
|
|
24
23
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "showContains", void 0);
|
|
30
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
25
|
_defineProperty(this, "effects", void 0);
|
|
26
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "children", void 0);
|
|
32
28
|
_defineProperty(this, "copyHandle", function (text) {
|
|
33
29
|
copy(text);
|
|
34
30
|
message.success('复制成功');
|
|
@@ -42,8 +38,8 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
42
38
|
},
|
|
43
39
|
alt: "",
|
|
44
40
|
onClick: function onClick() {
|
|
45
|
-
var _this$effects;
|
|
46
|
-
|
|
41
|
+
var _this$effects, _this$effects2;
|
|
42
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
|
|
47
43
|
}
|
|
48
44
|
}), (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--', (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) && /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
|
|
49
45
|
onClick: function onClick() {
|
|
@@ -78,24 +74,26 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
78
74
|
}))
|
|
79
75
|
});
|
|
80
76
|
});
|
|
81
|
-
_defineProperty(this, "
|
|
82
|
-
return
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
78
|
+
return {
|
|
79
|
+
id: item.id,
|
|
80
|
+
// 过滤组件id
|
|
81
|
+
name: item.name,
|
|
82
|
+
// 过滤组件名称
|
|
83
|
+
filterComponentType: 'Input',
|
|
84
|
+
filterFn: function filterFn(value) {
|
|
85
|
+
return function (i) {
|
|
86
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, '')).includes(value);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
};
|
|
89
90
|
});
|
|
90
91
|
this.name = options.name;
|
|
91
92
|
this.id = options.id;
|
|
92
93
|
this.type = options.type;
|
|
93
|
-
this.canFilter = true;
|
|
94
|
-
this.canGroup = true;
|
|
95
|
-
this.canHidden = true;
|
|
96
|
-
this.dataType = 'string';
|
|
97
|
-
this.showContains = true;
|
|
98
94
|
this.componentConfig = options.componentConfig;
|
|
99
95
|
this.rules = [];
|
|
96
|
+
this.isCombinationComponent = false;
|
|
97
|
+
this.children = [];
|
|
100
98
|
});
|
|
101
99
|
export default WorkOrderId;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception } from './index';
|
|
2
|
+
import { PickOption } from './type';
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BuyerNick | BasicCascader | BasicCheckbox | CommonDataTime | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | FlowStatusSelect | BasicGrade | Handler | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | BasicMultSelect | Ordinary | Payment | BasicPicture | PlatForm | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception } from "./index";
|
|
2
|
+
export var factory = function factory(type, options) {
|
|
3
|
+
var _options$componentCon;
|
|
4
|
+
switch (type) {
|
|
5
|
+
case 'PLATFORM_INPUT':
|
|
6
|
+
return new PlatForm();
|
|
7
|
+
case 'SHOP_INPUT':
|
|
8
|
+
return new ShopInput(options);
|
|
9
|
+
case 'OPERATOR_INPUT':
|
|
10
|
+
return new Submitter(options);
|
|
11
|
+
case 'HANDLER_INPUT':
|
|
12
|
+
return new Handler(options);
|
|
13
|
+
case 'COMPLETED_USER_INPUT':
|
|
14
|
+
return new CompletedUser(options);
|
|
15
|
+
case 'INPUT':
|
|
16
|
+
return new BasicInput(options);
|
|
17
|
+
case 'RADIO':
|
|
18
|
+
return new BasicRadio(options);
|
|
19
|
+
case 'TEXTAREA':
|
|
20
|
+
return new BasicTextArea(options);
|
|
21
|
+
case 'CHECKBOX':
|
|
22
|
+
return new BasicCheckbox(options);
|
|
23
|
+
case 'DATETIME':
|
|
24
|
+
return new BasicDataTime(options);
|
|
25
|
+
case 'SELECT':
|
|
26
|
+
return new BasicSelect(options);
|
|
27
|
+
case 'PICTURE':
|
|
28
|
+
return new BasicPicture(options);
|
|
29
|
+
case 'BASIC_MULT_SELECT':
|
|
30
|
+
return new BasicMultSelect(options);
|
|
31
|
+
case 'MULT_SELECT':
|
|
32
|
+
return new BasicCascader(options);
|
|
33
|
+
case 'BASIC_ADDRESS':
|
|
34
|
+
return new BasicAddress(options);
|
|
35
|
+
case 'BASIC_GRADE':
|
|
36
|
+
return new BasicGrade(options);
|
|
37
|
+
case 'RATE':
|
|
38
|
+
return new BasicRate(options);
|
|
39
|
+
case 'SHOP_NAME_INPUT':
|
|
40
|
+
return new ShopName(options);
|
|
41
|
+
case 'TRADE_ID_INPUT':
|
|
42
|
+
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
43
|
+
case 'BUYER_NICK_INPUT':
|
|
44
|
+
return new BuyerNick(options);
|
|
45
|
+
case 'RECEIVER_NAME_INPUT':
|
|
46
|
+
return new ReceiverName(options);
|
|
47
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
48
|
+
return new ReceiverMobile(options);
|
|
49
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
50
|
+
return new ReceiverAddress(options);
|
|
51
|
+
case 'TRADE_CREATE_DATETIME':
|
|
52
|
+
case 'TRADE_PAYMENT_DATETIME':
|
|
53
|
+
case 'TRADE_DELIVERY_DATETIME':
|
|
54
|
+
case 'TRADE_CLOSING_DATETIME':
|
|
55
|
+
return new TradeDateTime(options);
|
|
56
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
57
|
+
return new Logistics(options);
|
|
58
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
59
|
+
return new ReturnLogistics(options);
|
|
60
|
+
case 'ACTUAL_PAYMENT':
|
|
61
|
+
return new ActualPayment(options);
|
|
62
|
+
case 'REMARK_INPUT':
|
|
63
|
+
return new ERemark(options);
|
|
64
|
+
case 'ITEM_SELECT':
|
|
65
|
+
return new ItemSelect(options);
|
|
66
|
+
case 'ITEM_ID':
|
|
67
|
+
return new ItemId(options);
|
|
68
|
+
case 'ITEM_ENCODE':
|
|
69
|
+
return new ItemEnCode(options);
|
|
70
|
+
case 'ALI_PAY_INPUT':
|
|
71
|
+
return new AliPay(options);
|
|
72
|
+
case 'ORDINARY_INVOICE':
|
|
73
|
+
return new Ordinary(options);
|
|
74
|
+
case 'ITEM_SELECT_THIRD':
|
|
75
|
+
return new ThirdItemSelect(options);
|
|
76
|
+
case 'ENTERPRISE_PAYMENT':
|
|
77
|
+
return new Payment(options);
|
|
78
|
+
case 'SYSTEM_ORDER_NO':
|
|
79
|
+
return new SystemOrderNo(options);
|
|
80
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
81
|
+
return new LogisticsInterception(options);
|
|
82
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
83
|
+
return new WorkOrderId(options);
|
|
84
|
+
case 'FLOW_STATUS_SELECT':
|
|
85
|
+
return new FlowStatusSelect(options);
|
|
86
|
+
case 'COMPLETED_DATETIME':
|
|
87
|
+
return new CommonDataTime(options);
|
|
88
|
+
case 'CREATED_DATETIME':
|
|
89
|
+
return new CommonDataTime(options);
|
|
90
|
+
case 'UPDATE_DATETIME':
|
|
91
|
+
return new CommonDataTime(options);
|
|
92
|
+
case 'TEMPLATE_ID_INPUT':
|
|
93
|
+
return new TemplateSelect(options);
|
|
94
|
+
case 'JST_LOGISTICS':
|
|
95
|
+
return new JstLogistics(options);
|
|
96
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
97
|
+
return new JstItemSelect(options);
|
|
98
|
+
case 'JST_SUPPLY':
|
|
99
|
+
return new JstSupply(options);
|
|
100
|
+
case 'JST_SEND_GOOD':
|
|
101
|
+
return new JstSendGood(options);
|
|
102
|
+
default:
|
|
103
|
+
return new BasicInput(options);
|
|
104
|
+
}
|
|
105
|
+
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -38,3 +38,12 @@ export { default as JstSupply } from './components/JstSupply';
|
|
|
38
38
|
export { default as FlowStatusSelect } from './components/FlowStatusSelect';
|
|
39
39
|
export { default as TemplateSelect } from './components/TemplateSelect';
|
|
40
40
|
export { default as WorkOrderId } from './components/WorkOrderId';
|
|
41
|
+
export { default as LogisticsInterception } from './components/LogisticsInterception';
|
|
42
|
+
export { default as PlatForm } from './components/PlatForm';
|
|
43
|
+
export { default as ShopInput } from './components/ShopInput';
|
|
44
|
+
export { default as Submitter } from './components/Submitter';
|
|
45
|
+
export { default as Handler } from './components/Handler';
|
|
46
|
+
export { default as CompletedUser } from './components/CompletedUser';
|
|
47
|
+
export { factory } from './factory';
|
|
48
|
+
export { default as PlatformAvatar } from './commonComponents/PlatformAvatar';
|
|
49
|
+
export { default as ShopList } from './commonComponents/ShopList';
|
package/dist/esm/index.js
CHANGED
|
@@ -37,4 +37,13 @@ export { default as JstSendGood } from "./components/JstSendGood";
|
|
|
37
37
|
export { default as JstSupply } from "./components/JstSupply";
|
|
38
38
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
39
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
|
-
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
40
|
+
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
41
|
+
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
42
|
+
export { default as PlatForm } from "./components/PlatForm";
|
|
43
|
+
export { default as ShopInput } from "./components/ShopInput";
|
|
44
|
+
export { default as Submitter } from "./components/Submitter";
|
|
45
|
+
export { default as Handler } from "./components/Handler";
|
|
46
|
+
export { default as CompletedUser } from "./components/CompletedUser";
|
|
47
|
+
export { factory } from "./factory";
|
|
48
|
+
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
49
|
+
export { default as ShopList } from "./commonComponents/ShopList";
|