@kmkf-fe-packages/services-components 0.8.17-alpha.9 → 0.8.17

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 (42) hide show
  1. package/README.md +3 -0
  2. package/dist/esm/components/BS/BsReturn/index.d.ts +54 -0
  3. package/dist/esm/components/BS/BsReturn/index.js +150 -0
  4. package/dist/esm/components/BS/DeliveryNo/index.d.ts +32 -0
  5. package/dist/esm/components/BS/DeliveryNo/index.js +137 -0
  6. package/dist/esm/components/BS/common/BsHeaderGood.d.ts +4 -4
  7. package/dist/esm/components/BS/common/BsHeaderGood.js +43 -36
  8. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  9. package/dist/esm/components/BS/common/BsMemo.js +15 -14
  10. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  11. package/dist/esm/components/BS/common/BsType.js +13 -12
  12. package/dist/esm/components/Calculation/index.d.ts +31 -0
  13. package/dist/esm/components/Calculation/index.js +97 -0
  14. package/dist/esm/components/Common/index.d.ts +1 -0
  15. package/dist/esm/components/Common/index.js +73 -29
  16. package/dist/esm/components/CommonMultiStatus/index.d.ts +32 -0
  17. package/dist/esm/components/CommonMultiStatus/index.js +163 -0
  18. package/dist/esm/components/CommonSystemOrder/index.d.ts +32 -0
  19. package/dist/esm/components/CommonSystemOrder/index.js +152 -0
  20. package/dist/esm/components/CommonTradeId/index.js +1 -4
  21. package/dist/esm/components/GetFormItem/index.d.ts +4 -2
  22. package/dist/esm/components/GetFormItem/index.js +10 -3
  23. package/dist/esm/components/HandlerDeadLine/index.d.ts +43 -0
  24. package/dist/esm/components/HandlerDeadLine/index.js +85 -0
  25. package/dist/esm/components/HandlerDeadLine/index.less +3 -0
  26. package/dist/esm/components/NodeDeadLine/index.d.ts +43 -0
  27. package/dist/esm/components/NodeDeadLine/index.js +85 -0
  28. package/dist/esm/components/NodeDeadLine/index.less +3 -0
  29. package/dist/esm/components/NodeStayDuration/index.d.ts +26 -0
  30. package/dist/esm/components/NodeStayDuration/index.js +61 -0
  31. package/dist/esm/components/NodeStayDuration/index.less +3 -0
  32. package/dist/esm/components/ShopInput/index.d.ts +1 -0
  33. package/dist/esm/components/ShopInput/index.js +2 -0
  34. package/dist/esm/components/StatusSelect/index.js +6 -6
  35. package/dist/esm/components/TextArea/index.d.ts +3 -3
  36. package/dist/esm/components/TextArea/index.js +9 -9
  37. package/dist/esm/factory.d.ts +2 -2
  38. package/dist/esm/factory.js +17 -3
  39. package/dist/esm/index.d.ts +7 -0
  40. package/dist/esm/index.js +7 -0
  41. package/dist/esm/type.d.ts +2 -1
  42. package/package.json +4 -4
@@ -0,0 +1,85 @@
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 { SYMBOL } from "../../constant";
10
+ import "./index.less";
11
+ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, NodeDeadLine);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "effects", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "options", void 0);
27
+ _defineProperty(this, "renderPc", function (value, record) {
28
+ var _record, _record2;
29
+ if (!(record !== null && record !== void 0 && record.hasNodeDeadLine)) return /*#__PURE__*/React.createElement("span", null, "\u672A\u8BBE\u7F6E");
30
+ return /*#__PURE__*/React.createElement("span", {
31
+ className: record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record.includes('已超时') ? 'timeout' : ''
32
+ }, (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--');
33
+ });
34
+ _defineProperty(this, "renderLog", function () {
35
+ return null;
36
+ });
37
+ _defineProperty(this, "getComponentValue", function (r) {
38
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
39
+ });
40
+ _defineProperty(this, "renderExport", function (value, record) {
41
+ var _record3;
42
+ return (_record3 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record3 !== void 0 ? _record3 : '--';
43
+ });
44
+ _defineProperty(this, "renderClient", function () {
45
+ return null;
46
+ });
47
+ _defineProperty(this, "editRender", function () {
48
+ return null;
49
+ });
50
+ _defineProperty(this, "filterConfig", function (item) {
51
+ return {
52
+ searchDefaultConditions: SYMBOL.eq,
53
+ type: item.type,
54
+ id: item.id,
55
+ // 过滤组件id
56
+ name: item.name,
57
+ // 过滤组件名称
58
+ filterComponentType: 'MultipleSelect',
59
+ props: {
60
+ mode: "",
61
+ options: _this.options
62
+ }
63
+ };
64
+ });
65
+ this.name = options.name;
66
+ this.id = options.id;
67
+ this.sortField = options.id;
68
+ this.formField = options.id;
69
+ this.type = options.type;
70
+ this.componentConfig = options.componentConfig;
71
+ this.effects = options.effects;
72
+ this.dataType = 'string';
73
+ this.rules = [];
74
+ this.isCombinationComponent = false;
75
+ this.canSort = false;
76
+ this.children = [];
77
+ this.options = [{
78
+ label: '已超时',
79
+ value: 'TIME_OUT'
80
+ }, {
81
+ label: '未超时',
82
+ value: 'NOT_TIME_OUT'
83
+ }];
84
+ });
85
+ export default NodeDeadLine;
@@ -0,0 +1,3 @@
1
+ .timeout {
2
+ color: #ff4d4f
3
+ }
@@ -0,0 +1,26 @@
1
+ import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
+ import './index.less';
4
+ declare class NodeStayDuration implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ effects: ComponentInterface["effects"];
12
+ isCombinationComponent: boolean;
13
+ formField: string;
14
+ canSort: boolean;
15
+ children: ComponentInterface[];
16
+ dataType: ComponentInterface['dataType'];
17
+ constructor(options: PickOption);
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: () => null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: any, record: any) => any;
22
+ renderClient: () => null;
23
+ editRender: () => null;
24
+ filterConfig: () => never[];
25
+ }
26
+ export default NodeStayDuration;
@@ -0,0 +1,61 @@
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 "./index.less";
10
+ var NodeStayDuration = /*#__PURE__*/_createClass(function NodeStayDuration(options) {
11
+ var _this = this;
12
+ _classCallCheck(this, NodeStayDuration);
13
+ _defineProperty(this, "name", void 0);
14
+ _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "sortField", 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, "isCombinationComponent", void 0);
21
+ _defineProperty(this, "formField", void 0);
22
+ _defineProperty(this, "canSort", void 0);
23
+ _defineProperty(this, "children", void 0);
24
+ _defineProperty(this, "dataType", void 0);
25
+ _defineProperty(this, "renderPc", function (value, record) {
26
+ var _record;
27
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
28
+ });
29
+ _defineProperty(this, "renderLog", function () {
30
+ return null;
31
+ });
32
+ _defineProperty(this, "getComponentValue", function (r) {
33
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
34
+ });
35
+ _defineProperty(this, "renderExport", function (value, record) {
36
+ var _record2;
37
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
38
+ });
39
+ _defineProperty(this, "renderClient", function () {
40
+ return null;
41
+ });
42
+ _defineProperty(this, "editRender", function () {
43
+ return null;
44
+ });
45
+ _defineProperty(this, "filterConfig", function () {
46
+ return [];
47
+ });
48
+ this.name = options.name;
49
+ this.id = options.id;
50
+ this.sortField = options.id;
51
+ this.formField = options.id;
52
+ this.type = options.type;
53
+ this.componentConfig = options.componentConfig;
54
+ this.effects = options.effects;
55
+ this.dataType = 'string';
56
+ this.rules = [];
57
+ this.isCombinationComponent = false;
58
+ this.canSort = false;
59
+ this.children = [];
60
+ });
61
+ export default NodeStayDuration;
@@ -0,0 +1,3 @@
1
+ .timeout {
2
+ color: #ff4d4f
3
+ }
@@ -13,6 +13,7 @@ declare class ShopInput implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface['dataType'];
15
15
  options: ComponentInterface['options'];
16
+ format: ComponentInterface['format'];
16
17
  constructor(options: PickOption);
17
18
  renderPc: (shopName: unknown, record: any) => React.JSX.Element;
18
19
  renderLog: (record: Record) => any;
@@ -25,6 +25,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
25
25
  _defineProperty(this, "children", void 0);
26
26
  _defineProperty(this, "dataType", void 0);
27
27
  _defineProperty(this, "options", void 0);
28
+ _defineProperty(this, "format", void 0);
28
29
  _defineProperty(this, "renderPc", function (shopName, record) {
29
30
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
30
31
  type: record === null || record === void 0 ? void 0 : record.platform,
@@ -96,5 +97,6 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
96
97
  this.children = [];
97
98
  this.dataType = 'string';
98
99
  this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
100
+ this.format = 'shopInput';
99
101
  });
100
102
  export default ShopInput;
@@ -44,7 +44,7 @@ var selectTypeMap = {
44
44
  info: "exchangeReason",
45
45
  failValue: "失败"
46
46
  },
47
- CREATE_STATUS: {
47
+ ADJUST_WORK_ORDER_STATUS: {
48
48
  options: [{
49
49
  value: "成功",
50
50
  label: "成功",
@@ -54,11 +54,11 @@ var selectTypeMap = {
54
54
  label: "失败",
55
55
  color: "#ff4d4f"
56
56
  }],
57
- key: "createStatusValue",
58
- info: "createReason",
57
+ key: "adjustWorkOrderStatusValue",
58
+ info: "adjustWorkOrderReason",
59
59
  failValue: "失败"
60
60
  },
61
- RETURN_GOODS_STATUS: {
61
+ CREATE_STATUS: {
62
62
  options: [{
63
63
  value: "成功",
64
64
  label: "成功",
@@ -68,8 +68,8 @@ var selectTypeMap = {
68
68
  label: "失败",
69
69
  color: "#ff4d4f"
70
70
  }],
71
- key: "returnGoodsStatusValue",
72
- info: "returnGoodsReason",
71
+ key: "createStatusValue",
72
+ info: "createReason",
73
73
  failValue: "失败"
74
74
  }
75
75
  };
@@ -1,5 +1,5 @@
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 BasicInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,7 +11,7 @@ declare class BasicInput implements ComponentInterface {
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
14
+ dataType: ComponentInterface["dataType"];
15
15
  constructor(options: PickOption);
16
16
  renderPc: (value: any, record: Record) => React.JSX.Element;
17
17
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -6,11 +6,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  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; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  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); }
9
- import React from 'react';
10
- import { ApaasTextArea } from '@kmkf-fe-packages/basic-components';
9
+ import React from "react";
10
+ import { ApaasTextArea } from "@kmkf-fe-packages/basic-components";
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
15
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
16
  var _this = this;
@@ -28,7 +28,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
28
28
  _defineProperty(this, "dataType", void 0);
29
29
  _defineProperty(this, "renderPc", function (value, record) {
30
30
  var _record;
31
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
31
+ return /*#__PURE__*/React.createElement("pre", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : "--");
32
32
  });
33
33
  _defineProperty(this, "renderLog", function (r) {
34
34
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_textarea")])) return null;
@@ -39,13 +39,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
39
39
  });
40
40
  _defineProperty(this, "renderExport", function (value, record) {
41
41
  var _record2;
42
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 : '--';
42
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record2 !== void 0 ? _record2 : "--";
43
43
  });
44
44
  _defineProperty(this, "renderClient", function (record) {
45
45
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
46
46
  id: _this.id,
47
47
  label: _this.name,
48
- value: record === null || record === void 0 ? void 0 : record[_this.id]
48
+ value: /*#__PURE__*/React.createElement("pre", null, record === null || record === void 0 ? void 0 : record[_this.id])
49
49
  }) : null;
50
50
  });
51
51
  _defineProperty(this, "editRender", function (p) {
@@ -69,10 +69,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
69
69
  // 过滤组件id
70
70
  name: item.name,
71
71
  // 过滤组件名称
72
- filterComponentType: 'Input',
72
+ filterComponentType: "Input",
73
73
  filterFn: function filterFn(value) {
74
74
  return function (i) {
75
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'textarea')).includes(value);
75
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "textarea")).includes(value);
76
76
  };
77
77
  }
78
78
  };
@@ -83,7 +83,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
83
83
  this.formField = "".concat(options.id, "_textarea");
84
84
  this.type = options.type;
85
85
  this.componentConfig = options.componentConfig;
86
- this.dataType = 'string';
86
+ this.dataType = "string";
87
87
  this.rules = [];
88
88
  this.isCombinationComponent = false;
89
89
  this.canSort = true;
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsExchange | BsGoods | BsReissue | BsSystemOrder | CommonTradeId | JstLogistics | BasicPosting | BasicRadio | BasicSelect | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsGoods | BsReissue | BsReturn | BsSystemOrder | Calculation | CommonMultiStatus | CommonSystemOrder | CommonTradeId | HandlerDeadLine | JstLogistics | NodeDeadLine | NodeStayDuration | BasicPosting | StatusSelect | BasicTextArea | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsExchange | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -125,19 +125,33 @@ export var factory = function factory(type, options) {
125
125
  return new BsExchange(options);
126
126
  case "BS_REISSUE_GOODS":
127
127
  return new BsReissue(options);
128
+ case "BS_RETURN_GOODS":
129
+ return new BsReturn(options);
130
+ case "BS_DELIVERY_NO":
131
+ case "RETURN_GOODS_TRADE_ID":
132
+ return new CommonSystemOrder(options);
128
133
  case "FLOW_WORK_ORDER_ID_INPUT":
129
134
  return new FlowWorkOrderId(options);
130
135
  case "OUTER_WORK_ORDER_ID_INPUT":
131
136
  return new FlowWorkOrderId(options);
132
137
  case "REISSUE_STATUS":
133
138
  case "EXCHANGE_STATUS":
139
+ case "ADJUST_WORK_ORDER_STATUS":
134
140
  case "CREATE_STATUS":
135
- case "RETURN_GOODS_STATUS":
136
141
  return new StatusSelect(options);
142
+ case "RETURN_GOODS_STATUS":
143
+ return new CommonMultiStatus(options);
137
144
  case "REISSUE_TRADE_ID":
138
145
  case "EXCHANGE_TRADE_ID":
139
- case "RETURN_GOODS_TRADE_ID":
140
146
  return new CommonTradeId(options);
147
+ case "NUMERICAL_CALCULATION":
148
+ return new Calculation(options);
149
+ case "NODE_DEAD_LINE_INPUT":
150
+ return new NodeDeadLine(options);
151
+ case "HANDLER_DEAD_LINE_INPUT":
152
+ return new HandlerDeadLine(options);
153
+ case "NODE_STAY_DURATION_INPUT":
154
+ return new NodeStayDuration(options);
141
155
  default:
142
156
  return new BasicInput(options);
143
157
  }
@@ -41,6 +41,7 @@ export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
41
41
  export { default as BsGoods } from "./components/BS/BsGoods";
42
42
  export { default as BsExchange } from "./components/BS/BsExchange";
43
43
  export { default as BsReissue } from "./components/BS/BsReissue";
44
+ export { default as BsReturn } from "./components/BS/BsReturn";
44
45
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
45
46
  export { default as TemplateSelect } from "./components/TemplateSelect";
46
47
  export { default as WorkOrderId } from "./components/WorkOrderId";
@@ -54,6 +55,12 @@ export { default as CompletedUser } from "./components/CompletedUser";
54
55
  export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
55
56
  export { default as StatusSelect } from "./components/StatusSelect";
56
57
  export { default as CommonTradeId } from "./components/CommonTradeId";
58
+ export { default as Calculation } from "./components/Calculation";
59
+ export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
60
+ export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
61
+ export { default as NodeDeadLine } from "./components/NodeDeadLine";
62
+ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
63
+ export { default as NodeStayDuration } from "./components/NodeStayDuration";
57
64
  export { factory } from "./factory";
58
65
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
59
66
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
package/dist/esm/index.js CHANGED
@@ -41,6 +41,7 @@ export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
41
41
  export { default as BsGoods } from "./components/BS/BsGoods";
42
42
  export { default as BsExchange } from "./components/BS/BsExchange";
43
43
  export { default as BsReissue } from "./components/BS/BsReissue";
44
+ export { default as BsReturn } from "./components/BS/BsReturn";
44
45
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
45
46
  export { default as TemplateSelect } from "./components/TemplateSelect";
46
47
  export { default as WorkOrderId } from "./components/WorkOrderId";
@@ -54,6 +55,12 @@ export { default as CompletedUser } from "./components/CompletedUser";
54
55
  export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
55
56
  export { default as StatusSelect } from "./components/StatusSelect";
56
57
  export { default as CommonTradeId } from "./components/CommonTradeId";
58
+ export { default as Calculation } from "./components/Calculation";
59
+ export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
60
+ export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
61
+ export { default as NodeDeadLine } from "./components/NodeDeadLine";
62
+ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
63
+ export { default as NodeStayDuration } from "./components/NodeStayDuration";
57
64
  export { factory } from "./factory";
58
65
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
59
66
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
@@ -39,7 +39,7 @@ export interface ComponentInterface {
39
39
  width?: number;
40
40
  align?: ALignType;
41
41
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
42
- format?: "dateTime" | "date" | "time" | "cascader";
42
+ format?: "dateTime" | "date" | "time" | "cascader" | 'shopInput';
43
43
  options?: Array<any>;
44
44
  /**
45
45
  * @description 组件下标
@@ -147,6 +147,7 @@ export interface ComponentInterface {
147
147
  showHeader?: string[];
148
148
  reasonList?: any[];
149
149
  disabled?: boolean;
150
+ config?: any;
150
151
  };
151
152
  effects?: {
152
153
  queryWorkOrderDetail?: (r: Record) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.17-alpha.9",
3
+ "version": "0.8.17",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.8.17-alpha.9",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.9"
29
+ "@kmkf-fe-packages/basic-components": "^0.8.17",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.17"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "53d97c7e58b0f9ee82fd6fc5de6e8d7890797d44"
43
+ "gitHead": "fbac5157adf5ac4b01dd6a57fd1a19bb0137ce18"
44
44
  }