@kmkf-fe-packages/services-components 0.23.1-alpha.0 → 0.23.1-beta.10

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.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/components/BS/BsLogistics/index.js +11 -4
  3. package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
  4. package/dist/esm/components/BS/BsReissue/index.js +64 -34
  5. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +7 -6
  6. package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
  7. package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
  8. package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
  9. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  10. package/dist/esm/components/BS/common/BsMemo.js +16 -15
  11. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  12. package/dist/esm/components/BS/common/BsType.js +14 -13
  13. package/dist/esm/components/BS/common/expressCode.js +3 -0
  14. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  15. package/dist/esm/components/Common/index.d.ts +2 -1
  16. package/dist/esm/components/Common/index.js +182 -68
  17. package/dist/esm/components/CommonHeaderGood/index.d.ts +27 -0
  18. package/dist/esm/components/CommonHeaderGood/index.js +187 -0
  19. package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
  20. package/dist/esm/components/CommonMultiStatus/index.js +58 -51
  21. package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
  22. package/dist/esm/components/CommonSystemOrder/index.js +29 -26
  23. package/dist/esm/components/FlowMarkSelect/index.js +3 -2
  24. package/dist/esm/components/FlowStatusSelect/index.js +1 -0
  25. package/dist/esm/components/FlowTag/index.js +1 -1
  26. package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +40 -0
  27. package/dist/esm/components/FlowWorkOrderStatus/index.js +143 -0
  28. package/dist/esm/components/Input/index.d.ts +7 -6
  29. package/dist/esm/components/Input/index.js +37 -26
  30. package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
  31. package/dist/esm/components/JST/JstLogistics/index.js +21 -7
  32. package/dist/esm/components/JST/JstSendGood/index.js +6 -0
  33. package/dist/esm/components/Logistics/index.d.ts +6 -6
  34. package/dist/esm/components/Logistics/index.js +16 -15
  35. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +48 -0
  36. package/dist/esm/components/LogisticsMoreTrajectory/index.js +119 -0
  37. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +34 -0
  38. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +98 -0
  39. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +40 -0
  40. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +95 -0
  41. package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +32 -0
  42. package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +74 -0
  43. package/dist/esm/components/NodeInput/index.d.ts +24 -0
  44. package/dist/esm/components/NodeInput/index.js +58 -0
  45. package/dist/esm/components/Payment/index.d.ts +12 -12
  46. package/dist/esm/components/Payment/index.js +11 -12
  47. package/dist/esm/components/TradeId/index.d.ts +1 -1
  48. package/dist/esm/components/TradeId/index.js +2 -2
  49. package/dist/esm/components/WDT/WdtGoods/index.d.ts +33 -0
  50. package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
  51. package/dist/esm/constant.d.ts +1 -0
  52. package/dist/esm/constant.js +8 -0
  53. package/dist/esm/factory.d.ts +2 -2
  54. package/dist/esm/factory.js +33 -4
  55. package/dist/esm/index.d.ts +4 -0
  56. package/dist/esm/index.js +4 -0
  57. package/dist/esm/type.d.ts +13 -13
  58. package/package.json +4 -4
@@ -0,0 +1,121 @@
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
+ 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
+ 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
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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 GetFormItem from "../../GetFormItem";
13
+ import { BsGoodsTable } from "../../Common";
14
+ import CommonHeaderGoods from "../../CommonHeaderGood";
15
+ import ItemView from "../../../commonComponents/ItemView";
16
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
+ import { SYMBOL } from "../../../constant";
19
+ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
20
+ var _this = this,
21
+ _this$componentConfig4;
22
+ _classCallCheck(this, WdtGoods);
23
+ _defineProperty(this, "name", void 0);
24
+ _defineProperty(this, "id", void 0);
25
+ _defineProperty(this, "sortField", void 0);
26
+ _defineProperty(this, "type", void 0);
27
+ _defineProperty(this, "rules", void 0);
28
+ _defineProperty(this, "componentConfig", void 0);
29
+ _defineProperty(this, "effects", void 0);
30
+ _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
32
+ _defineProperty(this, "canSort", void 0);
33
+ _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "wdtGoods", void 0);
36
+ _defineProperty(this, "renderClient", function (record) {
37
+ var _record, _this$componentConfig;
38
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
39
+ id: _this.id,
40
+ label: _this.name,
41
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
42
+ type: _this.type,
43
+ list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.wdtGoods) || [],
44
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
45
+ })
46
+ })) : null;
47
+ });
48
+ _defineProperty(this, "renderPc", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "renderLog", function (r) {
52
+ var _this$componentConfig2;
53
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")])) return null;
54
+ return /*#__PURE__*/React.createElement(BsGoodsTable, {
55
+ type: _this.type,
56
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")]) || [],
57
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
58
+ });
59
+ });
60
+ _defineProperty(this, "getComponentValue", function (r) {
61
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")];
62
+ });
63
+ _defineProperty(this, "renderExport", function () {
64
+ return null;
65
+ });
66
+ _defineProperty(this, "editRender", function (p) {
67
+ var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
68
+ return /*#__PURE__*/React.createElement(GetFormItem, {
69
+ title: _this.name,
70
+ name: _this.id,
71
+ rules: _this.rules,
72
+ required: false,
73
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
+ component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
75
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
76
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
77
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
78
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
79
+ type: _this.type,
80
+ width: "90%"
81
+ }))
82
+ });
83
+ });
84
+ _defineProperty(this, "filterConfig", function (item) {
85
+ return [{
86
+ searchDefaultConditions: SYMBOL.like,
87
+ type: item.type,
88
+ id: "".concat(item.id, "_wdtGoods"),
89
+ // 过滤组件id
90
+ name: item.name,
91
+ // 过滤组件名称
92
+ filterComponentType: "Input"
93
+ }];
94
+ });
95
+ this.name = options.name;
96
+ this.id = options.id;
97
+ this.sortField = "".concat(options.id, "_wdtGoods");
98
+ this.formField = "".concat(options.id, "_wdtGoods");
99
+ this.type = options.type;
100
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
101
+ this.isCombinationComponent = true;
102
+ this.canSort = false;
103
+ this.wdtGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
104
+ id: "".concat(options.id, "_wdtGoods"),
105
+ name: "商品信息"
106
+ }));
107
+ this.children = [this.wdtGoods];
108
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
109
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
110
+ required: true,
111
+ validator: function validator(_, value) {
112
+ var _value$wdtGoods;
113
+ if (!value || !(value !== null && value !== void 0 && (_value$wdtGoods = value.wdtGoods) !== null && _value$wdtGoods !== void 0 && _value$wdtGoods.length)) {
114
+ return Promise.reject(new Error("请选择旺店通商品"));
115
+ }
116
+ return Promise.resolve();
117
+ }
118
+ }] : [];
119
+ this.dataType = "object";
120
+ });
121
+ export default WdtGoods;
@@ -12,3 +12,4 @@ export declare const SYMBOL: {
12
12
  non: string;
13
13
  notnull: string;
14
14
  };
15
+ export declare const batchInput: (val: string) => string | string[];
@@ -11,4 +11,12 @@ export var SYMBOL = {
11
11
  nin: 'nin',
12
12
  non: 'non',
13
13
  notnull: 'notnull'
14
+ };
15
+ export var batchInput = function batchInput(val) {
16
+ console.log('batchInput', val);
17
+ return val ? val.split(/[,|,|\s|\n|\rn]/).filter(function (t) {
18
+ return !!t;
19
+ }).map(function (t) {
20
+ return t.trim();
21
+ }) : val;
14
22
  };
@@ -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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, NodeInput, FlowWorkOrderStatus } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsGoods | 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 | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsReissue | BsSystemOrder | ItemEnCode | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | JstSendGood | NodeInput | WdtGoods | 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 | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsExchange | BsReturn | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
@@ -1,6 +1,6 @@
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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, NodeInput, FlowWorkOrderStatus } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -98,6 +98,8 @@ export var factory = function factory(type, options) {
98
98
  return new LogisticsInterception(options);
99
99
  case "LOGISTICS_TRAJECTORY":
100
100
  return new LogisticsTrajectory(options);
101
+ case "LOGISTICS_TRAJECTORY_MORE":
102
+ return new LogisticsMoreTrajectory(options);
101
103
  case "WORK_ORDER_ID_INPUT":
102
104
  return new WorkOrderId(options);
103
105
  case "FLOW_STATUS_SELECT":
@@ -128,25 +130,27 @@ export var factory = function factory(type, options) {
128
130
  case "JST_SEND_GOOD":
129
131
  case "BS_SEND_GOOD":
130
132
  case "WLN_SEND_GOOD":
133
+ case "WDT_SEND_GOOD":
131
134
  return new JstSendGood(options);
132
135
  case "BS_POSTING":
133
136
  return new BsPosting(options);
134
137
  case "BS_GOODS":
135
- // case "WDT_GOODS":
136
138
  return new BsGoods(options);
137
139
  case "BS_EXCHANGE_GOODS":
138
140
  return new BsExchange(options);
139
141
  case "BS_REISSUE_GOODS":
142
+ case "WDT_REISSUE_GOODS":
140
143
  return new BsReissue(options);
141
144
  case "BS_RETURN_GOODS":
142
145
  return new BsReturn(options);
143
- case 'REISSUE_TRADE_ID':
146
+ case "REISSUE_TRADE_ID":
144
147
  case "BS_DELIVERY_NO":
145
148
  case "RETURN_GOODS_TRADE_ID":
146
149
  case "EXCHANGE_TRADE_ID":
147
150
  return new CommonSystemOrder(options);
148
151
  case "BS_LOGISTICS":
149
152
  case "WLN_LOGISTICS":
153
+ case "WDT_LOGISTICS":
150
154
  return new BsLogistics(options);
151
155
  case "FLOW_WORK_ORDER_ID_INPUT":
152
156
  return new FlowWorkOrderId(options);
@@ -167,6 +171,23 @@ export var factory = function factory(type, options) {
167
171
  // case "REISSUE_TRADE_ID":
168
172
  // case 'EXCHANGE_TRADE_ID':
169
173
  // return new CommonTradeId(options);
174
+ case 'NUMERICAL_CALCULATION':
175
+ return new Calculation(options);
176
+ case 'NODE_DEAD_LINE_INPUT':
177
+ // 工单时效
178
+ return new NodeDeadLine(options);
179
+ case 'HANDLER_DEAD_LINE_INPUT':
180
+ // 处理人时效
181
+ return new HandlerDeadLine(options);
182
+ case 'NODE_STAY_DURATION_INPUT':
183
+ // 工单停留时长
184
+ return new NodeStayDuration(options);
185
+ case 'WLN_GOODS':
186
+ // 万里牛商品
187
+ return new WlnGoods(options);
188
+ case 'WDT_GOODS':
189
+ // 万里牛商品
190
+ return new WdtGoods(options);
170
191
  case "NUMERICAL_CALCULATION":
171
192
  return new Calculation(options);
172
193
  case "NODE_DEAD_LINE_INPUT":
@@ -181,6 +202,14 @@ export var factory = function factory(type, options) {
181
202
  case "WLN_GOODS":
182
203
  // 万里牛商品
183
204
  return new WlnGoods(options);
205
+ case "NODE_INPUT":
206
+ return new NodeInput(options);
207
+ case "FLOW_WORK_STATUS_SELECT":
208
+ return new FlowWorkOrderStatus(options);
209
+ case "FLOW_CREATED_DATETIME":
210
+ return new CommonDataTime(options);
211
+ case "FLOW_UPDATE_DATETIME":
212
+ return new CommonDataTime(options);
184
213
  default:
185
214
  return new BasicInput(options);
186
215
  }
@@ -50,6 +50,7 @@ export { default as TemplateSelect } from "./components/TemplateSelect";
50
50
  export { default as WorkOrderId } from "./components/WorkOrderId";
51
51
  export { default as LogisticsInterception } from "./components/LogisticsInterception";
52
52
  export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
53
+ export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
53
54
  export { default as PlatForm } from "./components/PlatForm";
54
55
  export { default as ShopInput } from "./components/ShopInput";
55
56
  export { default as Submitter } from "./components/Submitter";
@@ -69,6 +70,9 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
69
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
70
71
  export { default as BsPosting } from "./components/BS/BsPosting";
71
72
  export { default as MsgStatus } from './components/MsgStatus';
73
+ export { default as WdtGoods } from "./components/WDT/WdtGoods";
74
+ export { default as NodeInput } from './components/NodeInput';
75
+ export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
72
76
  export { factory } from "./factory";
73
77
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
74
78
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -50,6 +50,7 @@ export { default as TemplateSelect } from "./components/TemplateSelect";
50
50
  export { default as WorkOrderId } from "./components/WorkOrderId";
51
51
  export { default as LogisticsInterception } from "./components/LogisticsInterception";
52
52
  export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
53
+ export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
53
54
  export { default as PlatForm } from "./components/PlatForm";
54
55
  export { default as ShopInput } from "./components/ShopInput";
55
56
  export { default as Submitter } from "./components/Submitter";
@@ -69,6 +70,9 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
69
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
70
71
  export { default as BsPosting } from "./components/BS/BsPosting";
71
72
  export { default as MsgStatus } from "./components/MsgStatus";
73
+ export { default as WdtGoods } from "./components/WDT/WdtGoods";
74
+ export { default as NodeInput } from "./components/NodeInput";
75
+ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
72
76
  export { factory } from "./factory";
73
77
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
74
78
  export { default as SelectMark } from "./commonComponents/SelectMark";
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { FormInstance } from 'antd';
3
- import { SYMBOL } from './constant';
4
- export declare type DataType = 'string' | 'number' | 'array' | 'dateArray' | 'date' | 'tradeId';
5
- export declare type ALignType = 'left' | 'right' | 'center';
2
+ import type { FormInstance } from "antd";
3
+ import { SYMBOL } from "./constant";
4
+ export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
5
+ export declare type ALignType = "left" | "right" | "center";
6
6
  export declare type QuerySymbol = keyof typeof SYMBOL;
7
7
  export declare type Record = {
8
8
  [props in string]: any;
@@ -27,7 +27,7 @@ export declare type FilterConfigType = {
27
27
  filterFn?: (p: any) => (r: Record) => unknown;
28
28
  formatFilterValue?: (p: any) => any;
29
29
  };
30
- export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList' | 'Rate';
30
+ export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
31
31
  export interface ComponentInterface {
32
32
  id: string;
33
33
  sortField: string;
@@ -77,7 +77,7 @@ export interface ComponentInterface {
77
77
  /**
78
78
  * @description 显示字段名称
79
79
  */
80
- showField?: 'EXPRESS_COMPANY' | 'EXPRESS_WAYBILL_CODE' | 'EXPRESS_SNAPSHOT' | 'all' | 'bs' | 'workOrder';
80
+ showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder";
81
81
  /**
82
82
  * @description 是否选择SKU
83
83
  */
@@ -97,7 +97,7 @@ export interface ComponentInterface {
97
97
  /**
98
98
  * @description 备注状态
99
99
  */
100
- associatedType?: 'APPEND';
100
+ associatedType?: "APPEND";
101
101
  isAssociated?: boolean;
102
102
  isShowFlag?: boolean;
103
103
  /**
@@ -138,7 +138,7 @@ export interface ComponentInterface {
138
138
  * @description 时间初始值
139
139
  */
140
140
  dateTime?: string;
141
- dateType?: 'DATE' | 'DATE_TIME' | 'DATE_RANGE' | 'DATE_TIME_RANGE';
141
+ dateType?: "DATE" | "DATE_TIME" | "DATE_RANGE" | "DATE_TIME_RANGE";
142
142
  maxSize?: number;
143
143
  basicGrade?: number;
144
144
  range?: number;
@@ -169,7 +169,7 @@ export interface ComponentInterface {
169
169
  effects?: {
170
170
  queryWorkOrderDetail?: (r: Record) => void;
171
171
  handleOpenRepeatList?: (r: Record) => void;
172
- handleChangeSingleWorkOrderMark?: (t: string, r: Record) => void;
172
+ handleChangeSingleWorkOrderMark?: (t: string, r: Record, id?: string) => void;
173
173
  templateList?: any[];
174
174
  isEditing?: boolean;
175
175
  form?: FormInstance;
@@ -233,13 +233,13 @@ export interface ComponentInterface {
233
233
  getComponentValue: (r: Record) => any;
234
234
  formDataTransform?: (r: any) => any;
235
235
  }
236
- export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects' | 'columnHeader' | 'templateId' | 'workOrderUniqueKey'>;
236
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey">;
237
237
  export declare type ColumnConfig = {
238
238
  id: string;
239
239
  name: string;
240
240
  type: string;
241
241
  subKey?: string;
242
- mode?: 'multiple';
243
- config?: ComponentInterface['componentConfig'];
244
- templateConfig?: ComponentInterface['componentConfig'];
242
+ mode?: "multiple";
243
+ config?: ComponentInterface["componentConfig"];
244
+ templateConfig?: ComponentInterface["componentConfig"];
245
245
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.23.1-alpha.0",
3
+ "version": "0.23.1-beta.10",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.23.1-alpha.0",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.23.1-alpha.0"
23
+ "@kmkf-fe-packages/basic-components": "^0.23.1-beta.10",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.8"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "39fd1618947535a2a9186aa7f29dcd366ae0694a",
40
+ "gitHead": "c83fe49bd95d79d489afcb8879e56702e3567850",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }