@kmkf-fe-packages/services-components 2.0.77 → 2.0.79-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -93,7 +93,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
93
93
  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,
94
94
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
95
95
  display: p === null || p === void 0 ? void 0 : p.display,
96
- 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 : '',
96
+ 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 : "",
97
97
  component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
98
98
  shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
99
99
  shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
@@ -903,11 +903,11 @@ var GoodHeaderMap = {
903
903
  name: "总金额",
904
904
  transformValue: function transformValue(val, record, parentName) {
905
905
  if (!record) return "--";
906
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
906
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
907
907
  },
908
908
  renderExport: function renderExport(val, record, parentName) {
909
909
  if (!record) return "--";
910
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
910
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
911
911
  }
912
912
  },
913
913
  batchId: "批次号",
@@ -999,11 +999,11 @@ var GoodHeaderMap = {
999
999
  name: "总金额",
1000
1000
  transformValue: function transformValue(val, record, parentName) {
1001
1001
  if (!record) return "--";
1002
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1002
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1003
1003
  },
1004
1004
  renderExport: function renderExport(val, record, parentName) {
1005
1005
  if (!record) return "--";
1006
- return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
1006
+ return ((record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0)).toFixed(2);
1007
1007
  }
1008
1008
  },
1009
1009
  batchId: "批次号",
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
176
176
  });
177
177
  _defineProperty(this, "filterConfig", function (item) {
178
178
  var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
179
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
179
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
180
180
  searchDefaultConditions: SYMBOL.in,
181
181
  type: item.type,
182
182
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -14,6 +14,8 @@ declare class MsgStatus implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
16
  options: ComponentInterface["options"];
17
+ exampleValue?: string;
18
+ standardDateType: ComponentInterface["standardDateType"];
17
19
  constructor(options: PickOption);
18
20
  renderClient: (record: any) => React.JSX.Element | null;
19
21
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -39,10 +39,15 @@ var typeMap = {
39
39
  label: "等待执行",
40
40
  color: "#e7780f"
41
41
  }, {
42
- oldValue: "等待发送",
42
+ oldValue: "不满足条件,无需执行",
43
43
  value: "不满足条件,无需执行",
44
44
  label: "不满足条件,无需执行",
45
45
  color: "#8A8A8A"
46
+ }, {
47
+ oldValue: "暂不满足条件,等待执行",
48
+ value: "暂不满足条件,等待执行",
49
+ label: "暂不满足条件,等待执行",
50
+ color: "#4D90F7"
46
51
  }],
47
52
  key: "msgStatusValues",
48
53
  code: "msgStatus4Search",
@@ -74,6 +79,8 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
74
79
  _defineProperty(this, "children", void 0);
75
80
  _defineProperty(this, "dataType", void 0);
76
81
  _defineProperty(this, "options", void 0);
82
+ _defineProperty(this, "exampleValue", void 0);
83
+ _defineProperty(this, "standardDateType", void 0);
77
84
  _defineProperty(this, "renderClient", function (record) {
78
85
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
79
86
  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) {
@@ -125,7 +132,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
125
132
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
126
133
  });
127
134
  var key = item.msgType || "ding";
128
- return "".concat(msgTypeCh[key]).concat(item.ruleName ? "-".concat(item.ruleName) : "", ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
135
+ return "".concat(msgTypeCh[key] || key).concat(item.ruleName ? "-".concat(item.ruleName) : "", ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
129
136
  }).join(",");
130
137
  });
131
138
  _defineProperty(this, "editRender", function (p) {
@@ -195,5 +202,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
195
202
  }] : [];
196
203
  this.align = "left";
197
204
  this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
205
+ this.exampleValue = '{"msgStatus4Search":"["1"]","msgStatusValues":"[{"jobUuid":"1","msgType":"1","msgRuleId":"1","statusKey":"1","ruleName":"1","failReason":"","msgReceivers":[],"status":"1"}]"}';
206
+ this.standardDateType = "Object";
198
207
  });
199
208
  export default MsgStatus;
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
- formDataTransform: (value: string) => string | number;
40
39
  }
41
40
  export default PaymentAmount;
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
132
132
  }
133
133
  };
134
134
  });
135
- _defineProperty(this, "formDataTransform", function (value) {
136
- var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
137
- return isNumber.test(value) ? Number(value) : value;
138
- });
139
135
  this.name = '打款金额';
140
136
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
141
137
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -14,8 +14,11 @@ declare class AsyncSelect implements ComponentInterface {
14
14
  children: ComponentInterface[];
15
15
  dataType: ComponentInterface["dataType"];
16
16
  asyncOptions?: any[];
17
+ mode: string;
18
+ maxSelectCount: number | undefined;
17
19
  constructor(options: PickOption);
18
20
  getOptionsAsync(): Promise<any[]>;
21
+ getValueString: (value: any) => any;
19
22
  renderClient: (record: any) => React.JSX.Element | null;
20
23
  renderPc: (_value: any, record: Record) => React.JSX.Element;
21
24
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -14,7 +14,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
14
14
  import React from "react";
15
15
  import GetFormItem from "../../GetFormItem";
16
16
  import { AsyncSelect as BasicAsyncSelect } from "@kmkf-fe-packages/basic-components";
17
- import { servers } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { isNull, servers } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import ItemView from "../../../commonComponents/ItemView";
19
19
  import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
20
20
  import { SYMBOL } from "../../../constant";
@@ -24,6 +24,43 @@ var typeMap = {
24
24
  key: "gyPaymentMethod",
25
25
  name: "管易支付方式",
26
26
  api: servers.GY.getTradePaymentDataAsync
27
+ },
28
+ WDT_TAGS: {
29
+ key: "wdtTags",
30
+ name: "旺店通标签",
31
+ mode: "multiple",
32
+ api: servers.WDT.getTagsDataAsync,
33
+ //旗舰版暂时限制最多选择一个
34
+ maxSelectCount: function maxSelectCount() {
35
+ var version = "flagship";
36
+ try {
37
+ var userInfo = JSON.parse(localStorage.getItem("reduxData_userInfo") || "{}");
38
+ if (isNull(userInfo)) {
39
+ version = "flagship";
40
+ } else {
41
+ var _userInfo$companyUser, _companyUserConfig, _companyUserConfig$pl, _companyUserConfig$pl2;
42
+ var companyUserConfig = (_userInfo$companyUser = userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 ? _userInfo$companyUser : {};
43
+ if (typeof companyUserConfig === "string") {
44
+ companyUserConfig = JSON.parse(companyUserConfig);
45
+ }
46
+ version = ((_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl = _companyUserConfig.plugins) === null || _companyUserConfig$pl === void 0 ? void 0 : (_companyUserConfig$pl2 = _companyUserConfig$pl.wdt) === null || _companyUserConfig$pl2 === void 0 ? void 0 : _companyUserConfig$pl2.version) || "flagship";
47
+ }
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ if (version === "flagship") return 1;
52
+ },
53
+ handleOptions: function handleOptions(options) {
54
+ var ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
55
+ var _ext$componentConfig = ext.componentConfig,
56
+ _ext$componentConfig2 = _ext$componentConfig === void 0 ? {} : _ext$componentConfig,
57
+ tagsRange = _ext$componentConfig2.tagsRange;
58
+ if (!tagsRange || tagsRange === "all") return options;
59
+ return options.filter(function (option) {
60
+ if (tagsRange === "builtInTags") return !!option.isBuiltIn;
61
+ return !option.isBuiltIn;
62
+ });
63
+ }
27
64
  }
28
65
  };
29
66
  var AsyncSelect = /*#__PURE__*/function () {
@@ -32,7 +69,10 @@ var AsyncSelect = /*#__PURE__*/function () {
32
69
  function AsyncSelect(options) {
33
70
  var _this = this,
34
71
  _typeMap$options$type,
35
- _typeMap$options$type2;
72
+ _typeMap$options$type2,
73
+ _typeMap$options$type3,
74
+ _typeMap$options$type4,
75
+ _typeMap$options$type5;
36
76
  _classCallCheck(this, AsyncSelect);
37
77
  _defineProperty(this, "name", void 0);
38
78
  _defineProperty(this, "id", void 0);
@@ -47,6 +87,24 @@ var AsyncSelect = /*#__PURE__*/function () {
47
87
  _defineProperty(this, "children", void 0);
48
88
  _defineProperty(this, "dataType", void 0);
49
89
  _defineProperty(this, "asyncOptions", void 0);
90
+ _defineProperty(this, "mode", void 0);
91
+ _defineProperty(this, "maxSelectCount", void 0);
92
+ _defineProperty(this, "getValueString", function (value) {
93
+ var list = _this.asyncOptions || [];
94
+ if (!_this.mode) {
95
+ var selectedItem = list.find(function (item) {
96
+ return item.value === value;
97
+ });
98
+ return selectedItem ? selectedItem.label : value !== null && value !== void 0 ? value : "--";
99
+ } else if (_this.mode === "multiple" && Array.isArray(value)) {
100
+ var _list$filter$map$join;
101
+ return (_list$filter$map$join = list.filter(function (item) {
102
+ return value.includes(item.value);
103
+ }).map(function (item) {
104
+ return item.label;
105
+ }).join(",")) !== null && _list$filter$map$join !== void 0 ? _list$filter$map$join : "--";
106
+ }
107
+ });
50
108
  _defineProperty(this, "renderClient", function (record) {
51
109
  var value = record === null || record === void 0 ? void 0 : record[_this.id];
52
110
  return !isNil(value) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -54,6 +112,7 @@ var AsyncSelect = /*#__PURE__*/function () {
54
112
  label: _this.name,
55
113
  value: /*#__PURE__*/React.createElement(BasicAsyncSelect, {
56
114
  value: value,
115
+ mode: _this.mode,
57
116
  getOptionsAsync: _this.getOptionsAsync.bind(_this),
58
117
  showOnly: true
59
118
  })
@@ -63,6 +122,7 @@ var AsyncSelect = /*#__PURE__*/function () {
63
122
  var value = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[_this.type].key)];
64
123
  return /*#__PURE__*/React.createElement("span", null, isNil(value) ? "--" : /*#__PURE__*/React.createElement(BasicAsyncSelect, {
65
124
  value: value,
125
+ mode: _this.mode,
66
126
  getOptionsAsync: _this.getOptionsAsync.bind(_this),
67
127
  showOnly: true
68
128
  }));
@@ -79,11 +139,7 @@ var AsyncSelect = /*#__PURE__*/function () {
79
139
  });
80
140
  _defineProperty(this, "renderExport", function (value, record) {
81
141
  var val = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[_this.type].key)];
82
- var list = _this.asyncOptions || [];
83
- var seletedItem = list.find(function (item) {
84
- return item.value === val;
85
- });
86
- return seletedItem ? seletedItem.label : val !== null && val !== void 0 ? val : "--";
142
+ return _this.getValueString(val);
87
143
  });
88
144
  _defineProperty(this, "editRender", function (p) {
89
145
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
@@ -96,9 +152,11 @@ var AsyncSelect = /*#__PURE__*/function () {
96
152
  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,
97
153
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
98
154
  component: /*#__PURE__*/React.createElement(BasicAsyncSelect, _extends({}, _this.componentConfig, {
155
+ mode: _this.mode,
99
156
  placeholder: "\u8BF7\u9009\u62E9".concat(_this.name),
100
157
  getOptionsAsync: _this.getOptionsAsync.bind(_this),
101
- onChange: p === null || p === void 0 ? void 0 : p.onChange
158
+ onChange: p === null || p === void 0 ? void 0 : p.onChange,
159
+ maxSelectCount: _this.maxSelectCount
102
160
  }))
103
161
  });
104
162
  });
@@ -139,6 +197,8 @@ var AsyncSelect = /*#__PURE__*/function () {
139
197
  this.dataType = "weakenArray";
140
198
  this.rules = [];
141
199
  this.align = "left";
200
+ this.mode = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.mode;
201
+ this.maxSelectCount = typeof ((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.maxSelectCount) === "function" ? typeMap[options.type].maxSelectCount() : (_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.maxSelectCount;
142
202
  this.getOptionsAsync().then(function (list) {
143
203
  _this.asyncOptions = list;
144
204
  });
@@ -147,7 +207,7 @@ var AsyncSelect = /*#__PURE__*/function () {
147
207
  key: "getOptionsAsync",
148
208
  value: function () {
149
209
  var _getOptionsAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
150
- var options, _typeMap$this$type, _typeMap$this$type$ap;
210
+ var options, _typeMap$this$type, _typeMap$this$type$ap, _typeMap$this$type2, _typeMap$this$type3;
151
211
  return _regeneratorRuntime().wrap(function _callee$(_context) {
152
212
  while (1) switch (_context.prev = _context.next) {
153
213
  case 0:
@@ -164,19 +224,24 @@ var AsyncSelect = /*#__PURE__*/function () {
164
224
  _context.t0 = [];
165
225
  case 7:
166
226
  options = _context.t0;
167
- _context.next = 13;
227
+ if ((_typeMap$this$type2 = typeMap[this.type]) !== null && _typeMap$this$type2 !== void 0 && _typeMap$this$type2.handleOptions) {
228
+ options = (_typeMap$this$type3 = typeMap[this.type]) === null || _typeMap$this$type3 === void 0 ? void 0 : _typeMap$this$type3.handleOptions(options, {
229
+ componentConfig: this.componentConfig
230
+ });
231
+ }
232
+ _context.next = 14;
168
233
  break;
169
- case 10:
170
- _context.prev = 10;
234
+ case 11:
235
+ _context.prev = 11;
171
236
  _context.t1 = _context["catch"](1);
172
237
  console.debug("api error", _context.t1);
173
- case 13:
174
- return _context.abrupt("return", options);
175
238
  case 14:
239
+ return _context.abrupt("return", options);
240
+ case 15:
176
241
  case "end":
177
242
  return _context.stop();
178
243
  }
179
- }, _callee, this, [[1, 10]]);
244
+ }, _callee, this, [[1, 11]]);
180
245
  }));
181
246
  function getOptionsAsync() {
182
247
  return _getOptionsAsync.apply(this, arguments);
@@ -28,6 +28,9 @@ var typeMap = {
28
28
  },
29
29
  REFUND_TYPE: {
30
30
  key: "orderRefundType"
31
+ },
32
+ EXECUTE_ACTION_TYPE: {
33
+ key: "executeActionType"
31
34
  }
32
35
  };
33
36
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
@@ -1,3 +1,3 @@
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, 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 } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsGoods | BuyerNick | CommonSystemOrder | ItemEnCode | JstSendGood | KmVideo | LogisticsMoreInterception | MsgStatus | BasicPosting | AsyncSelect | PublicReissueGoods | ThirdItemSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsE3Goods | PublicGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn;
3
+ export declare const factory: (type: string, options: PickOption) => BuyerNick | JstSendGood | MsgStatus | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect;
@@ -33,6 +33,7 @@ export var factory = function factory(type, options) {
33
33
  case "NEW_PAYMENT_STATUS":
34
34
  case "ORDER_TYPE":
35
35
  case "REFUND_TYPE":
36
+ case "EXECUTE_ACTION_TYPE":
36
37
  return new BasicSelect(options);
37
38
  case "PICTURE":
38
39
  return new BasicPicture(options);
@@ -269,6 +270,8 @@ export var factory = function factory(type, options) {
269
270
  return new WdtShopSelect(options);
270
271
  case "KM_VIDEO":
271
272
  return new KmVideo(options);
273
+ case "WDT_TAGS":
274
+ return new AsyncSelect(options);
272
275
  default:
273
276
  return new BasicInput(options);
274
277
  }
@@ -54,6 +54,7 @@ export interface ComponentInterface {
54
54
  width?: number;
55
55
  align?: ALignType;
56
56
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
57
+ standardDateType: "String" | "Number" | "Boolean" | "Array" | "Object";
57
58
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
58
59
  options?: Array<any>;
59
60
  optionsMap?: Record;
@@ -62,6 +63,7 @@ export interface ComponentInterface {
62
63
  workOrderUniqueKey?: string;
63
64
  platform?: PlatForm;
64
65
  parentName?: string;
66
+ exampleValue?: any;
65
67
  /**
66
68
  * @description 组件下标
67
69
  * @deprecated 已弃用字段,后续版本不在使用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.77",
3
+ "version": "2.0.79-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.77",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.77",
24
+ "@kmkf-fe-packages/basic-components": "2.0.79-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.79-beta.0",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "c99b48b7dfbcfd3d5a4dffb31df0e5b0050e9281",
44
+ "gitHead": "2d6e46a13fb42f6e686d1453c0dc1dce33a8e8fc",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }