@kmkf-fe-packages/services-components 0.24.2-beta.5 → 0.24.2-beta.6

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 (27) hide show
  1. package/dist/esm/components/BS/BsLogistics/index.d.ts +3 -2
  2. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
  3. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
  4. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +31 -0
  5. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +87 -0
  6. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +46 -0
  7. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +109 -0
  8. package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +44 -0
  9. package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +96 -0
  10. package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +5 -0
  11. package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +55 -0
  12. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +69 -0
  13. package/dist/esm/components/LogisticsMoreInterception/index.js +184 -0
  14. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +39 -0
  15. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +88 -0
  16. package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +34 -0
  17. package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +81 -0
  18. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +35 -0
  19. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +82 -0
  20. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +34 -0
  21. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +81 -0
  22. package/dist/esm/constant.js +12 -13
  23. package/dist/esm/factory.d.ts +2 -2
  24. package/dist/esm/factory.js +3 -1
  25. package/dist/esm/index.d.ts +1 -0
  26. package/dist/esm/index.js +1 -0
  27. package/package.json +4 -4
@@ -0,0 +1,81 @@
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 _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); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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); }
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { SYMBOL } from "../../constant";
11
+ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, InterceptSnapshot);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "type", void 0);
17
+ _defineProperty(this, "rules", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "effects", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "sortField", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "renderSnapshot", function (record) {
29
+ var snapshotList = record[_this.id] || [];
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
31
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
32
+ }));
33
+ });
34
+ _defineProperty(this, "getComponentValue", function (r) {
35
+ var _r$_this$id;
36
+ return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(",");
37
+ });
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "renderPc", function (value, record) {
42
+ return !isNull(record[_this.id]) ? _this.renderSnapshot(record) : "--";
43
+ });
44
+ _defineProperty(this, "renderLog", function () {
45
+ return null;
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _this$getComponentVal;
49
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ return {
56
+ searchDefaultConditions: SYMBOL.like,
57
+ type: item.type,
58
+ id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
59
+ name: "".concat(item.name, "-\u5FEB\u7167"),
60
+ filterComponentType: "Input"
61
+ // formatFilterValue: (input: string) => {
62
+ // return batchInput(input);
63
+ // },
64
+ };
65
+ });
66
+ this.name = "快照";
67
+ this.id = "".concat(options.id, "_logisticsInterceptSnapshotList");
68
+ this.formField = "".concat(options.id, "_logisticsInterceptSnapshotList");
69
+ this.sortField = "".concat(options.id, "_logisticsInterceptSnapshotList");
70
+ this.dataType = "object";
71
+ this.type = options.type;
72
+ this.componentConfig = options.componentConfig;
73
+ this.rules = [];
74
+ this.align = "left";
75
+ this.width = 200;
76
+ this.isCombinationComponent = false;
77
+ this.canSort = false;
78
+ this.children = [];
79
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
80
+ });
81
+ export default InterceptSnapshot;
@@ -1,19 +1,18 @@
1
1
  export var SYMBOL = {
2
- between: 'between',
3
- eq: 'eq',
4
- like: 'like',
5
- gt: 'gt',
6
- gte: 'gte',
7
- lt: 'lt',
8
- lte: 'lte',
9
- ne: 'ne',
10
- in: 'in',
11
- nin: 'nin',
12
- non: 'non',
13
- notnull: 'notnull'
2
+ between: "between",
3
+ eq: "eq",
4
+ like: "like",
5
+ gt: "gt",
6
+ gte: "gte",
7
+ lt: "lt",
8
+ lte: "lte",
9
+ ne: "ne",
10
+ in: "in",
11
+ nin: "nin",
12
+ non: "non",
13
+ notnull: "notnull"
14
14
  };
15
15
  export var batchInput = function batchInput(val) {
16
- console.log('batchInput', val);
17
16
  return val ? val.split(/[,|,|\s|\n|\rn]/).filter(function (t) {
18
17
  return !!t;
19
18
  }).map(function (t) {
@@ -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, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, NodeInput, FlowWorkOrderStatus } 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, LogisticsMoreInterception, 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) => CompletedUser | ItemEnCode | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | NodeInput | PlatForm | ShopInput | 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 | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsReissue | BsSystemOrder | CompletedUser | ItemEnCode | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | JstSendGood | LogisticsMoreInterception | NodeInput | PlatForm | BasicPosting | ShopInput | WdtGoods | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | 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 | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
@@ -1,4 +1,4 @@
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,
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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
3
  CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, NodeInput, FlowWorkOrderStatus } from "./index";
4
4
  export var factory = function factory(type, options) {
@@ -96,6 +96,8 @@ export var factory = function factory(type, options) {
96
96
  return new SystemOrderNo(options);
97
97
  case "LOGISTICS_INTERCEPTION":
98
98
  return new LogisticsInterception(options);
99
+ case "LOGISTICS_INTERCEPTION_MORE":
100
+ return new LogisticsMoreInterception(options);
99
101
  case "LOGISTICS_TRAJECTORY":
100
102
  return new LogisticsTrajectory(options);
101
103
  case "LOGISTICS_TRAJECTORY_MORE":
@@ -49,6 +49,7 @@ export { default as FlowTag } from "./components/FlowTag";
49
49
  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
+ export { default as LogisticsMoreInterception } from "./components/LogisticsMoreInterception";
52
53
  export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
53
54
  export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
54
55
  export { default as PlatForm } from "./components/PlatForm";
package/dist/esm/index.js CHANGED
@@ -49,6 +49,7 @@ export { default as FlowTag } from "./components/FlowTag";
49
49
  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
+ export { default as LogisticsMoreInterception } from "./components/LogisticsMoreInterception";
52
53
  export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
53
54
  export { default as LogisticsMoreTrajectory } from "./components/LogisticsMoreTrajectory";
54
55
  export { default as PlatForm } from "./components/PlatForm";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.24.2-beta.5",
3
+ "version": "0.24.2-beta.6",
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.24.2-beta.5",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.24.2-beta.2"
23
+ "@kmkf-fe-packages/basic-components": "^0.24.2-beta.6",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.24.2-beta.6"
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": "93d1f53448bce918fe2c3b859a641f95274be673",
40
+ "gitHead": "4b415661234a5be4f908e20478b4ba076d4c11f3",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }