@kmkf-fe-packages/services-components 0.11.0-alpha.3 → 0.11.0-alpha.5

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.
@@ -8,31 +8,50 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- import React from "react";
12
- import some from "lodash/some";
11
+ import React from 'react';
12
+ import some from 'lodash/some';
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import { CommonOrderContent } from "../Common";
15
- import { CommonMultiStatus as Status } from "@kmkf-fe-packages/basic-components";
15
+ import { CommonMultiStatus as Status } from '@kmkf-fe-packages/basic-components';
16
16
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
18
18
  import { SYMBOL } from "../../constant";
19
19
  var typeMap = {
20
20
  RETURN_GOODS_STATUS: {
21
21
  options: [{
22
- value: "成功",
23
- label: "成功",
24
- color: "#52c41a"
22
+ value: '成功',
23
+ label: '成功',
24
+ color: '#52c41a'
25
25
  }, {
26
- value: "失败",
27
- label: "失败",
28
- color: "#ff4d4f"
26
+ value: '失败',
27
+ label: '失败',
28
+ color: '#ff4d4f'
29
29
  }],
30
- key: "returnGoodsStatusList",
31
- code: "returnGoodsStatusValue",
32
- name: "退货状态",
30
+ key: 'returnGoodsStatusList',
31
+ code: 'returnGoodsStatusValue',
32
+ name: '退货状态',
33
33
  type: 1,
34
- valueKey: "status",
35
- failValue: "失败"
34
+ valueKey: 'status',
35
+ idKey: 'systemOrderId',
36
+ failValue: '失败'
37
+ },
38
+ EXCHANGE_STATUS: {
39
+ options: [{
40
+ value: '成功',
41
+ label: '成功',
42
+ color: '#52c41a'
43
+ }, {
44
+ value: '失败',
45
+ label: '失败',
46
+ color: '#ff4d4f'
47
+ }],
48
+ key: 'bsExchangeReason',
49
+ code: 'bsExchangeStatusValue',
50
+ name: '退货状态',
51
+ type: 1,
52
+ valueKey: 'status',
53
+ idKey: 'systemOrderId',
54
+ failValue: '失败'
36
55
  }
37
56
  };
38
57
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -98,12 +117,12 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
98
117
  var _typeMap$_this$type10;
99
118
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
100
119
  return (list || []).map(function (item) {
101
- var _typeMap$_this$type11;
102
- return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.valueKey];
103
- }).join(",");
120
+ var _typeMap$_this$type11, _typeMap$_this$type12;
121
+ return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.idKey], ":").concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.valueKey]);
122
+ }).join(',');
104
123
  });
105
124
  _defineProperty(this, "editRender", function (p) {
106
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type12;
125
+ var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type13;
107
126
  return /*#__PURE__*/React.createElement(GetFormItem, {
108
127
  title: _this.name,
109
128
  name: _this.id,
@@ -111,23 +130,23 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
111
130
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
112
131
  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,
113
132
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
114
- type: (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.type,
133
+ type: (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.type,
115
134
  failValue: typeMap[_this.type].failValue
116
135
  }))
117
136
  });
118
137
  });
119
138
  _defineProperty(this, "filterConfig", function (item) {
120
- var _typeMap$_this$type13;
139
+ var _typeMap$_this$type14;
121
140
  return {
122
141
  searchDefaultConditions: SYMBOL.like,
123
142
  type: item.type,
124
- id: "".concat(item.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.code),
143
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code),
125
144
  name: "".concat(_this.name),
126
- filterComponentType: "Input",
145
+ filterComponentType: 'Input',
127
146
  filterFn: function filterFn(value) {
128
147
  return function (i) {
129
- var _typeMap$_this$type14;
130
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code), value);
148
+ var _typeMap$_this$type15;
149
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.code), value);
131
150
  };
132
151
  }
133
152
  };
@@ -143,21 +162,21 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
143
162
  this.isCombinationComponent = false;
144
163
  this.canSort = false;
145
164
  this.children = [];
146
- this.dataType = "object";
165
+ this.dataType = 'object';
147
166
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
148
167
  required: true,
149
168
  validator: function validator(_, value) {
150
169
  var hasNo = (value || []).some(function (item) {
151
- var _typeMap$_this$type15;
152
- return item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey];
170
+ var _typeMap$_this$type16;
171
+ return item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey];
153
172
  });
154
173
  if (!hasNo) {
155
- var _typeMap$_this$type16;
156
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.name)));
174
+ var _typeMap$_this$type17;
175
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.name)));
157
176
  }
158
177
  return Promise.resolve();
159
178
  }
160
179
  }] : [];
161
- this.align = "left";
180
+ this.align = 'left';
162
181
  });
163
182
  export default CommonMultiStatus;
@@ -1,5 +1,5 @@
1
- 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); }
2
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 _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
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); } }
4
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; }
5
5
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -65,7 +65,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
65
65
  _defineProperty(this, "renderClient", function (record) {
66
66
  var _typeMap$_this$type, _typeMap$_this$type2;
67
67
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
68
- console.log('renderClient', record, list, _typeof(list));
69
68
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
70
69
  return !isNull(item);
71
70
  }) : false;
@@ -81,7 +80,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
81
80
  _defineProperty(this, "renderPc", function (value, record) {
82
81
  var _typeMap$_this$type3, _typeMap$_this$type4, _typeMap$_this$type5;
83
82
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
84
- console.log('renderPc', record, list, _typeof(list));
85
83
  //兼容多个商品
86
84
  return /*#__PURE__*/React.createElement("span", {
87
85
  onClick: function onClick(e) {
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class StatusSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface["dataType"];
15
- options: ComponentInterface["options"];
14
+ dataType: ComponentInterface['dataType'];
15
+ options: ComponentInterface['options'];
16
16
  constructor(options: PickOption);
17
17
  editRender: (p: any) => React.JSX.Element;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -8,69 +8,55 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- import React from "react";
12
- import { CommonStatus } from "@kmkf-fe-packages/basic-components";
11
+ import React from 'react';
12
+ import { CommonStatus } from '@kmkf-fe-packages/basic-components';
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
16
  import { SYMBOL } from "../../constant";
17
17
  // const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
18
18
  var selectTypeMap = {
19
19
  REISSUE_STATUS: {
20
20
  options: [{
21
- value: "成功",
22
- label: "成功",
23
- color: "#52c41a"
24
- }, {
25
- value: "失败",
26
- label: "失败",
27
- color: "#ff4d4f"
28
- }],
29
- key: "reissueStatusValue",
30
- info: "reissueReason",
31
- failValue: "失败"
32
- },
33
- EXCHANGE_STATUS: {
34
- options: [{
35
- value: "成功",
36
- label: "成功",
37
- color: "#52c41a"
21
+ value: '成功',
22
+ label: '成功',
23
+ color: '#52c41a'
38
24
  }, {
39
- value: "失败",
40
- label: "失败",
41
- color: "#ff4d4f"
25
+ value: '失败',
26
+ label: '失败',
27
+ color: '#ff4d4f'
42
28
  }],
43
- key: "exchangeStatusValue",
44
- info: "exchangeReason",
45
- failValue: "失败"
29
+ key: 'reissueStatusValue',
30
+ info: 'reissueReason',
31
+ failValue: '失败'
46
32
  },
47
33
  ADJUST_WORK_ORDER_STATUS: {
48
34
  options: [{
49
- value: "成功",
50
- label: "成功",
51
- color: "#52c41a"
35
+ value: '成功',
36
+ label: '成功',
37
+ color: '#52c41a'
52
38
  }, {
53
- value: "失败",
54
- label: "失败",
55
- color: "#ff4d4f"
39
+ value: '失败',
40
+ label: '失败',
41
+ color: '#ff4d4f'
56
42
  }],
57
- key: "adjustWorkOrderStatusValue",
58
- info: "adjustWorkOrderReason",
59
- failValue: "失败"
43
+ key: 'adjustWorkOrderStatusValue',
44
+ info: 'adjustWorkOrderReason',
45
+ failValue: '失败'
60
46
  },
61
47
  CREATE_STATUS: {
62
48
  options: [{
63
- value: "成功",
64
- label: "成功",
65
- color: "#52c41a"
49
+ value: '成功',
50
+ label: '成功',
51
+ color: '#52c41a'
66
52
  }, {
67
- value: "失败",
68
- label: "失败",
69
- color: "#ff4d4f"
53
+ value: '失败',
54
+ label: '失败',
55
+ color: '#ff4d4f'
70
56
  }],
71
- key: "createStatusValue",
72
- info: "createReason",
73
- failValue: "失败"
57
+ key: 'createStatusValue',
58
+ info: 'createReason',
59
+ failValue: '失败'
74
60
  },
75
61
  INVOICE_STATUS: {
76
62
  options: [{
@@ -121,7 +107,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
121
107
  var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
122
108
  var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
123
109
  return item.value === status;
124
- })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
110
+ })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
125
111
  return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
126
112
  id: _this.id,
127
113
  label: _this.name,
@@ -129,7 +115,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
129
115
  style: {
130
116
  color: statusColor
131
117
  }
132
- }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
118
+ }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
133
119
  }) : null;
134
120
  });
135
121
  _defineProperty(this, "renderPc", function (value, record) {
@@ -137,12 +123,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
137
123
  var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
138
124
  var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
139
125
  return item.value === status;
140
- })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
126
+ })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
141
127
  return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
142
128
  style: {
143
129
  color: statusColor
144
130
  }
145
- }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
131
+ }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
146
132
  });
147
133
  _defineProperty(this, "renderLog", function (r) {
148
134
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
@@ -153,7 +139,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
153
139
  });
154
140
  _defineProperty(this, "renderExport", function (value, record) {
155
141
  var _record;
156
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
142
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
157
143
  });
158
144
  _defineProperty(this, "filterConfig", function (item) {
159
145
  return {
@@ -163,7 +149,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
163
149
  // 过滤组件id
164
150
  name: item.name,
165
151
  // 过滤组件名称
166
- filterComponentType: "MultipleSelect",
152
+ filterComponentType: 'MultipleSelect',
167
153
  props: {
168
154
  options: selectTypeMap[_this.type].options
169
155
  },
@@ -186,7 +172,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
186
172
  this.isCombinationComponent = false;
187
173
  this.canSort = true;
188
174
  this.children = [];
189
- this.dataType = "string";
175
+ this.dataType = 'string';
190
176
  this.options = selectTypeMap[options.type].options;
191
177
  });
192
178
  export default StatusSelect;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
2
- import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
2
+ import { PickOption } from './type';
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonMultiStatus | CommonSystemOrder | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -4,169 +4,169 @@ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
7
- case "PLATFORM_INPUT":
7
+ case 'PLATFORM_INPUT':
8
8
  return new PlatForm();
9
- case "SHOP_INPUT":
9
+ case 'SHOP_INPUT':
10
10
  return new ShopInput(options);
11
- case "OPERATOR_INPUT":
11
+ case 'OPERATOR_INPUT':
12
12
  return new Submitter(options);
13
- case "HANDLER_INPUT":
13
+ case 'HANDLER_INPUT':
14
14
  return new Handler(options);
15
- case "COMPLETED_USER_INPUT":
15
+ case 'COMPLETED_USER_INPUT':
16
16
  return new CompletedUser(options);
17
- case "INPUT":
17
+ case 'INPUT':
18
18
  return new BasicInput(options);
19
- case "RADIO":
19
+ case 'RADIO':
20
20
  return new BasicRadio(options);
21
- case "TEXTAREA":
21
+ case 'TEXTAREA':
22
22
  return new BasicTextArea(options);
23
- case "CHECKBOX":
23
+ case 'CHECKBOX':
24
24
  return new BasicCheckbox(options);
25
- case "DATETIME":
25
+ case 'DATETIME':
26
26
  return new BasicDataTime(options);
27
- case "SELECT":
28
- case "BUYER_MESSAGE_NOTICE":
27
+ case 'SELECT':
28
+ case 'BUYER_MESSAGE_NOTICE':
29
29
  return new BasicSelect(options);
30
- case "PICTURE":
30
+ case 'PICTURE':
31
31
  return new BasicPicture(options);
32
- case "BASIC_MULT_SELECT":
32
+ case 'BASIC_MULT_SELECT':
33
33
  return new BasicMultSelect(options);
34
- case "MULT_SELECT":
34
+ case 'MULT_SELECT':
35
35
  return new BasicCascader(options);
36
- case "BASIC_ADDRESS":
36
+ case 'BASIC_ADDRESS':
37
37
  return new BasicAddress(options);
38
- case "BASIC_GRADE":
38
+ case 'BASIC_GRADE':
39
39
  return new BasicGrade(options);
40
- case "RATE":
40
+ case 'RATE':
41
41
  return new BasicRate(options);
42
- case "FILE":
42
+ case 'FILE':
43
43
  return new BasicFile(options);
44
- case "POSTING":
44
+ case 'POSTING':
45
45
  return new BasicPosting(options);
46
- case "SHOP_NAME_INPUT":
46
+ case 'SHOP_NAME_INPUT':
47
47
  return new ShopName(options);
48
- case "TRADE_ID_INPUT":
48
+ case 'TRADE_ID_INPUT':
49
49
  return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
50
- case "BUYER_NICK_INPUT":
50
+ case 'BUYER_NICK_INPUT':
51
51
  return new BuyerNick(options);
52
- case "RECEIVER_NAME_INPUT":
52
+ case 'RECEIVER_NAME_INPUT':
53
53
  return new ReceiverName(options);
54
- case "RECEIVER_MOBILE_INPUT":
54
+ case 'RECEIVER_MOBILE_INPUT':
55
55
  return new ReceiverMobile(options);
56
- case "RECEIVER_ADDRESS_INPUT":
56
+ case 'RECEIVER_ADDRESS_INPUT':
57
57
  return new ReceiverAddress(options);
58
- case "TRADE_CREATE_DATETIME":
59
- case "TRADE_PAYMENT_DATETIME":
60
- case "TRADE_DELIVERY_DATETIME":
61
- case "TRADE_CLOSING_DATETIME":
62
- case "BS_SIGNING_TIME":
63
- case "BS_SEND_TIME":
64
- case "BS_TRADE_PAYMENT_TIME":
58
+ case 'TRADE_CREATE_DATETIME':
59
+ case 'TRADE_PAYMENT_DATETIME':
60
+ case 'TRADE_DELIVERY_DATETIME':
61
+ case 'TRADE_CLOSING_DATETIME':
62
+ case 'BS_SIGNING_TIME':
63
+ case 'BS_SEND_TIME':
64
+ case 'BS_TRADE_PAYMENT_TIME':
65
65
  return new TradeDateTime(options);
66
- case "EXPRESS_LOGISTICS_SELECT":
66
+ case 'EXPRESS_LOGISTICS_SELECT':
67
67
  return new Logistics(options);
68
- case "RETURN_LOGISTICS_SELECT":
68
+ case 'RETURN_LOGISTICS_SELECT':
69
69
  return new ReturnLogistics(options);
70
- case "ACTUAL_PAYMENT":
71
- case "BS_NET_RECEIPTS":
72
- case "BS_DEPOSIT":
73
- case "BS_PACKAGE_WEIGHT":
70
+ case 'ACTUAL_PAYMENT':
71
+ case 'BS_NET_RECEIPTS':
72
+ case 'BS_DEPOSIT':
73
+ case 'BS_PACKAGE_WEIGHT':
74
74
  return new ActualPayment(options);
75
- case "REMARK_INPUT":
75
+ case 'REMARK_INPUT':
76
76
  return new ERemark(options);
77
- case "ITEM_SELECT":
77
+ case 'ITEM_SELECT':
78
78
  return new ItemSelect(options);
79
- case "ITEM_ID":
79
+ case 'ITEM_ID':
80
80
  return new ItemId(options);
81
- case "ITEM_ENCODE":
81
+ case 'ITEM_ENCODE':
82
82
  return new ItemEnCode(options);
83
- case "ALI_PAY_INPUT":
83
+ case 'ALI_PAY_INPUT':
84
84
  return new AliPay(options);
85
- case "ORDINARY_INVOICE":
85
+ case 'ORDINARY_INVOICE':
86
86
  return new Ordinary(options);
87
- case "ITEM_SELECT_THIRD":
87
+ case 'ITEM_SELECT_THIRD':
88
88
  return new ThirdItemSelect(options);
89
- case "ENTERPRISE_PAYMENT":
89
+ case 'ENTERPRISE_PAYMENT':
90
90
  return new Payment(options);
91
- case "SYSTEM_ORDER_NO":
91
+ case 'SYSTEM_ORDER_NO':
92
92
  return new SystemOrderNo(options);
93
- case "LOGISTICS_INTERCEPTION":
93
+ case 'LOGISTICS_INTERCEPTION':
94
94
  return new LogisticsInterception(options);
95
- case "LOGISTICS_TRAJECTORY":
95
+ case 'LOGISTICS_TRAJECTORY':
96
96
  return new LogisticsTrajectory(options);
97
- case "WORK_ORDER_ID_INPUT":
97
+ case 'WORK_ORDER_ID_INPUT':
98
98
  return new WorkOrderId(options);
99
- case "FLOW_STATUS_SELECT":
99
+ case 'FLOW_STATUS_SELECT':
100
100
  return new FlowStatusSelect(options);
101
- case "FLOW_MARK_SELECT":
101
+ case 'FLOW_MARK_SELECT':
102
102
  return new FlowMarkSelect(options);
103
- case "COMPLETED_DATETIME":
103
+ case 'COMPLETED_DATETIME':
104
104
  return new CommonDataTime(options);
105
- case "CREATED_DATETIME":
105
+ case 'CREATED_DATETIME':
106
106
  return new CommonDataTime(options);
107
- case "UPDATE_DATETIME":
107
+ case 'UPDATE_DATETIME':
108
108
  return new CommonDataTime(options);
109
- case "TEMPLATE_ID_INPUT":
109
+ case 'TEMPLATE_ID_INPUT':
110
110
  return new TemplateSelect(options);
111
- case "JST_LOGISTICS":
112
- case "REISSUE_LOGISTICS":
111
+ case 'JST_LOGISTICS':
112
+ case 'REISSUE_LOGISTICS':
113
113
  return new JstLogistics(options);
114
- case "JST_ITEM_SELECT_THIRD":
114
+ case 'JST_ITEM_SELECT_THIRD':
115
115
  return new JstItemSelect(options);
116
- case "JST_SUPPLY":
116
+ case 'JST_SUPPLY':
117
117
  return new JstSupply(options);
118
- case "BS_SYSTEM_ORDER":
119
- case "WLN_SYSTEM_ORDER":
118
+ case 'BS_SYSTEM_ORDER':
119
+ case 'WLN_SYSTEM_ORDER':
120
120
  return new BsSystemOrder(options);
121
- case "JST_SEND_GOOD":
122
- case "BS_SEND_GOOD":
123
- case "WLN_SEND_GOOD":
121
+ case 'JST_SEND_GOOD':
122
+ case 'BS_SEND_GOOD':
123
+ case 'WLN_SEND_GOOD':
124
124
  return new JstSendGood(options);
125
- case "BS_POSTING":
125
+ case 'BS_POSTING':
126
126
  return new BasicPosting(options);
127
- case "BS_GOODS":
127
+ case 'BS_GOODS':
128
128
  return new BsGoods(options);
129
- case "BS_EXCHANGE_GOODS":
129
+ case 'BS_EXCHANGE_GOODS':
130
130
  return new BsExchange(options);
131
- case "BS_REISSUE_GOODS":
131
+ case 'BS_REISSUE_GOODS':
132
132
  return new BsReissue(options);
133
- case "BS_RETURN_GOODS":
133
+ case 'BS_RETURN_GOODS':
134
134
  return new BsReturn(options);
135
- case "BS_DELIVERY_NO":
136
- case "RETURN_GOODS_TRADE_ID":
137
- case "REISSUE_TRADE_ID":
138
- case "EXCHANGE_TRADE_ID":
135
+ case 'BS_DELIVERY_NO':
136
+ case 'RETURN_GOODS_TRADE_ID':
137
+ case 'REISSUE_TRADE_ID':
138
+ case 'EXCHANGE_TRADE_ID':
139
139
  return new CommonSystemOrder(options);
140
- case "BS_LOGISTICS":
141
- case "WLN_LOGISTICS":
140
+ case 'BS_LOGISTICS':
141
+ case 'WLN_LOGISTICS':
142
142
  return new BsLogistics(options);
143
- case "FLOW_WORK_ORDER_ID_INPUT":
143
+ case 'FLOW_WORK_ORDER_ID_INPUT':
144
144
  return new FlowWorkOrderId(options);
145
- case "OUTER_WORK_ORDER_ID_INPUT":
145
+ case 'OUTER_WORK_ORDER_ID_INPUT':
146
146
  return new FlowWorkOrderId(options);
147
- case "REISSUE_STATUS":
148
- case "EXCHANGE_STATUS":
149
- case "ADJUST_WORK_ORDER_STATUS":
150
- case "CREATE_STATUS":
151
- case "INVOICE_STATUS":
147
+ case 'REISSUE_STATUS':
148
+ case 'ADJUST_WORK_ORDER_STATUS':
149
+ case 'CREATE_STATUS':
150
+ case 'INVOICE_STATUS':
152
151
  return new StatusSelect(options);
153
- case "RETURN_GOODS_STATUS":
152
+ case 'RETURN_GOODS_STATUS':
153
+ case 'EXCHANGE_STATUS':
154
154
  return new CommonMultiStatus(options);
155
155
  // case 'REISSUE_TRADE_ID':
156
156
  // case 'EXCHANGE_TRADE_ID':
157
157
  // return new CommonTradeId(options)
158
- case "NUMERICAL_CALCULATION":
158
+ case 'NUMERICAL_CALCULATION':
159
159
  return new Calculation(options);
160
- case "NODE_DEAD_LINE_INPUT":
160
+ case 'NODE_DEAD_LINE_INPUT':
161
161
  // 工单时效
162
162
  return new NodeDeadLine(options);
163
- case "HANDLER_DEAD_LINE_INPUT":
163
+ case 'HANDLER_DEAD_LINE_INPUT':
164
164
  // 处理人时效
165
165
  return new HandlerDeadLine(options);
166
- case "NODE_STAY_DURATION_INPUT":
166
+ case 'NODE_STAY_DURATION_INPUT':
167
167
  // 工单停留时长
168
168
  return new NodeStayDuration(options);
169
- case "WLN_GOODS":
169
+ case 'WLN_GOODS':
170
170
  // 万里牛商品
171
171
  return new WlnGoods(options);
172
172
  default: