@kmkf-fe-packages/services-components 2.3.0-rc.0 → 2.3.0-rc.1

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 (43) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
  7. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
  8. package/dist/esm/components/BS/BsLogistics/index.js +34 -1
  9. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
  10. package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
  11. package/dist/esm/components/BS/common/BsHeaderPic.js +4 -9
  12. package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
  13. package/dist/esm/components/BS/common/expressCode.js +10 -4
  14. package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
  15. package/dist/esm/components/BS/common/expressCompany.js +11 -4
  16. package/dist/esm/components/Common/index.d.ts +1 -1
  17. package/dist/esm/components/Common/index.js +10 -5
  18. package/dist/esm/components/CommonHeaderGood/index.js +17 -1
  19. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  20. package/dist/esm/components/ErpTradeId/index.js +7 -4
  21. package/dist/esm/components/File/index.d.ts +6 -6
  22. package/dist/esm/components/File/index.js +9 -9
  23. package/dist/esm/components/GY/GyGoods/index.js +2 -0
  24. package/dist/esm/components/GY/GyReissue/index.js +2 -0
  25. package/dist/esm/components/GY/GyReturn/index.js +2 -0
  26. package/dist/esm/components/OrderSubForm/index.d.ts +49 -0
  27. package/dist/esm/components/OrderSubForm/index.js +271 -0
  28. package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
  29. package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
  30. package/dist/esm/components/Select/index.js +3 -0
  31. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  32. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  33. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  34. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  35. package/dist/esm/components/SubForm/index.js +86 -6
  36. package/dist/esm/components/TradeId/index.d.ts +5 -5
  37. package/dist/esm/components/TradeId/index.js +17 -14
  38. package/dist/esm/factory.d.ts +2 -2
  39. package/dist/esm/factory.js +9 -1
  40. package/dist/esm/index.d.ts +3 -0
  41. package/dist/esm/index.js +4 -1
  42. package/dist/esm/type.d.ts +37 -0
  43. package/package.json +4 -4
@@ -1,4 +1,7 @@
1
+ var _excluded = ["component"];
1
2
  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); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
6
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
7
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -16,13 +19,82 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
16
19
  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); }
17
20
  import React from "react";
18
21
  import { Table } from "antd";
19
- import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
20
- import BsHeaderChild from "../BS/common/BsHeaderChild";
22
+ import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
23
+ import { BsHeaderChild } from "../BS/common";
24
+ import HeaderChildFile from "./children/HeaderChildFile";
25
+ import HeaderChildPic from "./children/HeaderChildPic";
21
26
  import GetFormItem from "../GetFormItem";
22
27
  import ItemView from "../../commonComponents/ItemView";
23
28
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
24
- import { difference } from 'lodash';
29
+ import { difference } from "lodash";
25
30
  import { SYMBOL } from "../../constant";
31
+ var ChildrenMap = {
32
+ INPUT: {
33
+ component: BsHeaderChild
34
+ },
35
+ TEXTAREA: {
36
+ component: BsHeaderChild
37
+ },
38
+ SELECT: {
39
+ component: BsHeaderChild
40
+ },
41
+ RADIO: {
42
+ component: BsHeaderChild
43
+ // transformValue: (value: any) => {
44
+ // if (!value?.value) return null;
45
+ // return `${value?.value}
46
+ // ${
47
+ // value?.value &&
48
+ // typeof value.value === "string" &&
49
+ // value?.value?.indexOf("其他") > -1 &&
50
+ // value?.other
51
+ // ? `(${value?.other})`
52
+ // : ""
53
+ // }`;
54
+ // },
55
+ // renderExport: (value: any) => {
56
+ // if (!value?.value) return null;
57
+ // return `${value?.value}
58
+ // ${
59
+ // value?.value &&
60
+ // typeof value.value === "string" &&
61
+ // value?.value?.indexOf("其他") > -1 &&
62
+ // value?.other
63
+ // ? `(${value?.other})`
64
+ // : ""
65
+ // }`;
66
+ // },
67
+ },
68
+
69
+ CHECKBOX: {
70
+ component: BsHeaderChild,
71
+ transformValue: function transformValue(value) {
72
+ if (!(value !== null && value !== void 0 && value.length)) return null;
73
+ return value === null || value === void 0 ? void 0 : value.join(",");
74
+ },
75
+ renderExport: function renderExport(value) {
76
+ if (!(value !== null && value !== void 0 && value.length)) return null;
77
+ return value === null || value === void 0 ? void 0 : value.join(",");
78
+ }
79
+ },
80
+ BASIC_MULT_SELECT: {
81
+ component: BsHeaderChild,
82
+ transformValue: function transformValue(value) {
83
+ if (!(value !== null && value !== void 0 && value.length)) return null;
84
+ return value === null || value === void 0 ? void 0 : value.join(",");
85
+ },
86
+ renderExport: function renderExport(value) {
87
+ if (!(value !== null && value !== void 0 && value.length)) return null;
88
+ return value === null || value === void 0 ? void 0 : value.join(",");
89
+ }
90
+ },
91
+ PICTURE: {
92
+ component: HeaderChildPic
93
+ },
94
+ FILE: {
95
+ component: HeaderChildFile
96
+ }
97
+ };
26
98
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
27
99
  var _this = this;
28
100
  _classCallCheck(this, SubForm);
@@ -80,7 +152,12 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
80
152
  ellipsis: true,
81
153
  width: item.width,
82
154
  render: function render(val) {
83
- return /*#__PURE__*/React.createElement("span", null, val);
155
+ return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
156
+ style: {
157
+ width: "100%",
158
+ overflow: "auto"
159
+ }
160
+ }, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
84
161
  }
85
162
  };
86
163
  })) || []));
@@ -191,10 +268,13 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
191
268
  this.isCombinationComponent = true;
192
269
  this.canSort = false;
193
270
  this.children = (this.getNewTableHeader() || []).map(function (item) {
194
- return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
271
+ var _ChildrenMap$item$wor = ChildrenMap[item.workOrderComponentType],
272
+ component = _ChildrenMap$item$wor.component,
273
+ other = _objectWithoutProperties(_ChildrenMap$item$wor, _excluded);
274
+ return new component(_objectSpread(_objectSpread({}, options), {}, {
195
275
  name: item.name,
196
276
  id: "".concat(options.id, "_productList_").concat(item.key)
197
- }));
277
+ }, other));
198
278
  });
199
279
  this.dataType = "object";
200
280
  });
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
3
  declare class ETradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -8,13 +8,13 @@ declare class ETradeId implements ComponentInterface {
8
8
  rules: any[];
9
9
  showContains: boolean;
10
10
  onlyContainsString: boolean;
11
- componentConfig: ComponentInterface['componentConfig'];
12
- effects: ComponentInterface['effects'];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ effects: ComponentInterface["effects"];
13
13
  isCombinationComponent: boolean;
14
14
  formField: string;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
18
  constructor(options: PickOption);
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
20
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -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 { TradeId } from '@kmkf-fe-packages/basic-components';
9
+ import React from "react";
10
+ import { TradeId } 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, batchInput } from "../../constant";
15
15
  import CopyText from "../../commonComponents/CopyText";
16
16
  var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
@@ -50,7 +50,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
50
50
  }, /*#__PURE__*/React.createElement(CopyText, {
51
51
  text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")],
52
52
  style: {
53
- color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? 'red' : 'inherit'
53
+ color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
54
54
  }
55
55
  }));
56
56
  });
@@ -63,13 +63,16 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
63
63
  });
64
64
  _defineProperty(this, "renderExport", function (value, record) {
65
65
  var _record;
66
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
66
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : "--";
67
67
  });
68
68
  _defineProperty(this, "editRender", function (p) {
69
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2;
69
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects2, _this$effects3;
70
70
  var onTradeIdBlur = function onTradeIdBlur(e) {
71
- var _p$onBlur;
72
- p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
71
+ var _this$effects, _this$effects$form, _p$onBlur;
72
+ (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue({
73
+ skx_return_billNo_blur_from: _this.id
74
+ });
75
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, "tradeId");
73
76
  };
74
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
75
78
  title: _this.name,
@@ -78,10 +81,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
78
81
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
79
82
  display: p === null || p === void 0 ? void 0 : p.display,
80
83
  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,
81
- 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 : '',
84
+ 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 : "",
82
85
  component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
83
- shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
84
- shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
86
+ shopId: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopId,
87
+ shopList: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList,
85
88
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
86
89
  onBlur: onTradeIdBlur
87
90
  }))
@@ -95,10 +98,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
95
98
  // 过滤组件id
96
99
  name: item.name,
97
100
  // 过滤组件名称
98
- filterComponentType: 'TradeInput',
101
+ filterComponentType: "TradeInput",
99
102
  filterFn: function filterFn(value) {
100
103
  return function (i) {
101
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
104
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
102
105
  };
103
106
  },
104
107
  formatFilterValue: function formatFilterValue(value) {
@@ -119,6 +122,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
119
122
  this.isCombinationComponent = false;
120
123
  this.canSort = true;
121
124
  this.children = [];
122
- this.dataType = 'string';
125
+ this.dataType = "string";
123
126
  });
124
127
  export default ETradeId;
@@ -1,3 +1,3 @@
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, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption } from "./index";
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, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | AfterSalesOrderId | BsGoods | BsLogistics | BsSystemOrder | BsE3Goods | BsE3Reissue | BuyerNick | BasicCascader | BasicCheckbox | CommonMultiStatus | CommonSystemOrder | ItemEnCode | BasicFile | FlowStatusSelect | FlowTag | FlowWorkOrderId | FlowWorkOrderStatus | GyGoods | GyReissue | GyReturn | BasicInput | JstItemSelect | JstSendGood | JstSupply | KmVideo | Label | Logistics | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | MemberLevel | MsgStatus | BasicMultSelect | BasicPicture | BasicPicturePro | BasicPosting | AsyncSelect | PublicExchange | PublicGoods | PublicReissueGoods | BasicRadio | ReceiverAddress | ReceiverName | ReissueLogistics | ERemark | BasicSelect | BasicSelectOption | ShopName | SkxGoods | SkxIdInputSelect | StatusSelect | SubForm | BasicTextArea | ThirdItemSelect | BasicDataTime | TradeDateTime | TradeId | BasicTypeInput | WdtShopSelect | WlnGoods | BasicAddress | BasicGrade | BasicRate | CommonDataTime | ReceiverMobile | ReturnLogistics | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | BsExchange | BsReissue | BsReturn | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | TradeId | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
@@ -1,6 +1,6 @@
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, 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
- 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, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption } from "./index";
3
+ 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, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -34,6 +34,7 @@ export var factory = function factory(type, options) {
34
34
  case "ORDER_TYPE":
35
35
  case "REFUND_TYPE":
36
36
  case "EXECUTE_ACTION_TYPE":
37
+ case "ERP_ORDER_STATUS":
37
38
  return new BasicSelect(options);
38
39
  case "PICTURE":
39
40
  return new BasicPicture(options);
@@ -200,6 +201,7 @@ export var factory = function factory(type, options) {
200
201
  case "KM_LOGISTICS":
201
202
  case "GY_LOGISTICS":
202
203
  case "SKX_LOGISTICS":
204
+ case "SKX_RETURN_LOGISTICS":
203
205
  return new BsLogistics(options);
204
206
  case "FLOW_WORK_ORDER_ID_INPUT":
205
207
  return new FlowWorkOrderId(options);
@@ -275,6 +277,7 @@ export var factory = function factory(type, options) {
275
277
  case "WDT_TAGS":
276
278
  return new AsyncSelect(options);
277
279
  case "SKX_OUTBOUND_NOTICE_NO":
280
+ case "SKX_RETURN_BILL_NO":
278
281
  return new SkxIdInputSelect(options);
279
282
  case "SKX_ORDER_TYPE":
280
283
  return new BasicSelectOption(options);
@@ -283,9 +286,14 @@ export var factory = function factory(type, options) {
283
286
  case "SKX_SHOP_NAME":
284
287
  case "SKX_WAREHOUSE":
285
288
  case "SKX_ORDER_STATUS":
289
+ case "SKX_REFUND_BILL_NO":
290
+ case "SKX_RETURN_ORDER_STATUS":
286
291
  return new BasicTypeInput(options);
287
292
  case "SKX_GOODS":
293
+ case "SKX_RETURN_GOODS":
288
294
  return new SkxGoods(options);
295
+ case "ORDER_SUBFORM":
296
+ return new OrderSubForm(options);
289
297
  default:
290
298
  return new BasicInput(options);
291
299
  }
@@ -100,6 +100,7 @@ export { default as GyReturn } from "./components/GY/GyReturn";
100
100
  export { default as AsyncSelect } from "./components/Public/AsyncSelect";
101
101
  export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
102
102
  export { default as SkxGoods } from "./components/SKX/SkxGoods";
103
+ export { default as OrderSubForm } from "./components/OrderSubForm";
103
104
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
104
105
  export { factory } from "./factory";
105
106
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
@@ -111,3 +112,5 @@ export { default as GetFormItem } from "./components/GetFormItem";
111
112
  export { default as Global } from "./commonComponents/GlobalContext";
112
113
  export * as ErpScenes from "./commonComponents/ErpContext";
113
114
  export * as servers from "./service/api";
115
+ export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
116
+ export * from "./Hooks";
package/dist/esm/index.js CHANGED
@@ -100,6 +100,7 @@ export { default as GyReturn } from "./components/GY/GyReturn";
100
100
  export { default as AsyncSelect } from "./components/Public/AsyncSelect";
101
101
  export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
102
102
  export { default as SkxGoods } from "./components/SKX/SkxGoods";
103
+ export { default as OrderSubForm } from "./components/OrderSubForm";
103
104
  // TODO: ERP 打款工单使用
104
105
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
105
106
  export { factory } from "./factory";
@@ -113,4 +114,6 @@ export { default as Global } from "./commonComponents/GlobalContext";
113
114
  import * as _ErpScenes from "./commonComponents/ErpContext";
114
115
  export { _ErpScenes as ErpScenes };
115
116
  import * as _servers from "./service/api";
116
- export { _servers as servers };
117
+ export { _servers as servers };
118
+ export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
119
+ export * from "./Hooks";
@@ -77,6 +77,34 @@ export interface ComponentInterface {
77
77
  */
78
78
  formItemIndex?: number;
79
79
  componentConfig?: {
80
+ /**
81
+ * @description 商品类组件选择商品来源配置
82
+ */
83
+ goodsSource?: {
84
+ source?: "workOrder" | "erp";
85
+ sourceSettings?: {
86
+ filterMode?: "some" | "every";
87
+ filterRules?: {
88
+ leftValue: string;
89
+ compareSymbol: any;
90
+ rightValue?: any;
91
+ }[];
92
+ dataFilterConfig: {
93
+ [cpId: string]: {
94
+ isFilter?: boolean;
95
+ isShow?: boolean;
96
+ index?: number;
97
+ };
98
+ };
99
+ keyMap: {
100
+ [key: string]: string;
101
+ };
102
+ workOrder: {
103
+ flowTemplateKey: string;
104
+ nodeId: string;
105
+ };
106
+ };
107
+ };
80
108
  /**
81
109
  * @description 特殊自定义组件有的值
82
110
  */
@@ -303,3 +331,12 @@ export declare type ColumnConfig = {
303
331
  config?: ComponentInterface["componentConfig"];
304
332
  templateConfig?: ComponentInterface["componentConfig"];
305
333
  };
334
+ export interface ColumnsConfigI {
335
+ show: boolean;
336
+ delete: boolean;
337
+ width: number;
338
+ name: string;
339
+ id: string;
340
+ type: string;
341
+ config?: any;
342
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.3.0-rc.0",
3
+ "version": "2.3.0-rc.1",
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.3.0-rc.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.3.0-rc.0",
24
+ "@kmkf-fe-packages/basic-components": "2.3.0-rc.1",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.3.0-rc.1",
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": "b9e1cb4129ec1a4874fbd5db7bc9f6d026badd2c",
44
+ "gitHead": "cefb61a2220d807338d9e0741f6e4470dc775ddf",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }