@kmkf-fe-packages/services-components 0.11.0-alpha.8 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
- import ExpressCompany from '../common/expressCompany';
5
- import ExpressCode from '../common/expressCode';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ import ExpressCompany from "../common/expressCompany";
5
+ import ExpressCode from "../common/expressCode";
6
6
  declare class BsLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
@@ -15,13 +15,13 @@ declare class BsLogistics implements ComponentInterface {
15
15
  }[];
16
16
  type: string;
17
17
  rules: any[];
18
- componentConfig: ComponentInterface['componentConfig'];
18
+ componentConfig: ComponentInterface["componentConfig"];
19
19
  expressDateInstance: InstanceType<typeof ExpressData>;
20
20
  isCombinationComponent: boolean;
21
21
  formField: string;
22
22
  canSort: boolean;
23
23
  children: ComponentInterface[];
24
- dataType: ComponentInterface['dataType'];
24
+ dataType: ComponentInterface["dataType"];
25
25
  expressCompany: ExpressCompany;
26
26
  expressCode: ExpressCode;
27
27
  constructor(options: PickOption);
@@ -8,28 +8,28 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
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
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
- import some from 'lodash/some';
11
+ import React from "react";
12
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
13
+ import some from "lodash/some";
14
14
  import GetFormItem from "../../GetFormItem";
15
15
  import { JstGoodImage } from "../../Common";
16
- import { JstGoods } from '@kmkf-fe-packages/basic-components';
16
+ import { JstGoods } from "@kmkf-fe-packages/basic-components";
17
17
  import ItemView from "../../../commonComponents/ItemView";
18
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
18
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import ExpressCompany from "../common/expressCompany";
20
20
  import ExpressCode from "../common/expressCode";
21
21
  var typeMap = {
22
22
  BS_LOGISTICS: {
23
- key: 'bsLogisticsList',
24
- name: 'bs',
25
- company: 'bsLogisticsCompany',
26
- code: 'bsLogisticsCode'
23
+ key: "bsLogisticsList",
24
+ name: "bs",
25
+ company: "bsLogisticsCompany",
26
+ code: "bsLogisticsCode"
27
27
  },
28
28
  WLN_LOGISTICS: {
29
- key: 'wlnLogisticsList',
30
- name: '万里牛',
31
- company: 'wlnLogisticsCompany',
32
- code: 'wlnLogisticsCode'
29
+ key: "wlnLogisticsList",
30
+ name: "万里牛",
31
+ company: "wlnLogisticsCompany",
32
+ code: "wlnLogisticsCode"
33
33
  }
34
34
  };
35
35
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
@@ -131,24 +131,31 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
131
131
  this.isCombinationComponent = true;
132
132
  this.canSort = false;
133
133
  this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, options), {}, {
134
- name: '物流公司',
134
+ name: "物流公司",
135
135
  parentName: (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.name,
136
136
  id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.company),
137
137
  width: 200
138
138
  }));
139
139
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
140
- name: '物流单号',
140
+ name: "物流单号",
141
141
  parentName: (_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.name,
142
142
  id: "".concat(options.id, "_").concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.key, "_").concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.code),
143
143
  width: 200
144
144
  }));
145
145
  this.children = [this.expressCompany, this.expressCode];
146
- this.dataType = 'object';
146
+ this.dataType = "object";
147
147
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
148
148
  required: true,
149
149
  validator: function validator(_, value) {
150
+ var showField = _this.componentConfig.showField;
150
151
  var hasNo = (value || []).some(function (item) {
151
- return item.logisticsCompany && item.logisticsCode;
152
+ if (showField === "logisticsCompany") {
153
+ return item.logisticsCompany;
154
+ } else if (showField === "logisticsCode") {
155
+ return item.logisticsCode;
156
+ } else {
157
+ return item.logisticsCompany && item.logisticsCode;
158
+ }
152
159
  });
153
160
  if (!hasNo) {
154
161
  return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u7269\u6D41\u4FE1\u606F"));
@@ -158,14 +165,14 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
158
165
  }] : [];
159
166
  this.expressDateInstance = ExpressData.getInstance();
160
167
  this.sortChildField = [{
161
- name: '物流公司',
168
+ name: "物流公司",
162
169
  key: "".concat(options.id, "_").concat((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : _typeMap$options$type9.company),
163
170
  options: this.expressDateInstance.getExpressData(),
164
- dataType: 'string'
171
+ dataType: "string"
165
172
  }, {
166
- name: '物流单号',
173
+ name: "物流单号",
167
174
  key: "".concat(options.id, "_").concat((_typeMap$options$type10 = typeMap[options.type]) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.code),
168
- dataType: 'string'
175
+ dataType: "string"
169
176
  }];
170
177
  });
171
178
  export default BsLogistics;
@@ -1,17 +1,17 @@
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 BsSystemOrder implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- effects: ComponentInterface["effects"];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ effects: ComponentInterface['effects'];
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
- dataType: ComponentInterface["dataType"];
14
+ dataType: ComponentInterface['dataType'];
15
15
  children: ComponentInterface[];
16
16
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -20,6 +20,12 @@ declare class BsSystemOrder implements ComponentInterface {
20
20
  getComponentValue: (r: Record) => any;
21
21
  renderExport: () => null;
22
22
  editRender: (p: any) => React.JSX.Element;
23
- filterConfig: (item: ColumnConfig) => never[];
23
+ filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "like";
25
+ type: string;
26
+ id: string;
27
+ name: string;
28
+ filterComponentType: "Input";
29
+ }[];
24
30
  }
25
31
  export default BsSystemOrder;
@@ -8,25 +8,26 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
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
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
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";
11
+ import React from 'react';
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
15
- import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
14
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
18
+ import { SYMBOL } from "../../../constant";
18
19
  var typeMap = {
19
20
  BS_SYSTEM_ORDER: {
20
- key: "bsSystemShowOrder",
21
- name: "bs",
22
- typeName: "单据类型",
23
- tagName: "标签"
21
+ key: 'bsSystemShowOrder',
22
+ name: 'bs',
23
+ typeName: '单据类型',
24
+ tagName: '标签'
24
25
  },
25
26
  WLN_SYSTEM_ORDER: {
26
- key: "wlnSystemShowOrder",
27
- name: "万里牛",
28
- typeName: "订单类型",
29
- tagName: "标记"
27
+ key: 'wlnSystemShowOrder',
28
+ name: '万里牛',
29
+ typeName: '订单类型',
30
+ tagName: '标记'
30
31
  }
31
32
  };
32
33
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
@@ -85,7 +86,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
85
86
  });
86
87
  });
87
88
  _defineProperty(this, "filterConfig", function (item) {
88
- return [];
89
+ return [{
90
+ searchDefaultConditions: SYMBOL.like,
91
+ type: item.type,
92
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
93
+ // 过滤组件id
94
+ name: item.name,
95
+ // 过滤组件名称
96
+ filterComponentType: 'Input'
97
+ }];
89
98
  });
90
99
  this.name = options.name;
91
100
  this.id = options.id;
@@ -100,7 +109,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
100
109
  id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
101
110
  width: 150
102
111
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
103
- name: "系统订单号",
112
+ name: '系统订单号',
104
113
  id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
105
114
  width: 150
106
115
  })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
@@ -119,6 +128,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
119
128
  return Promise.resolve();
120
129
  }
121
130
  }] : [];
122
- this.dataType = "object";
131
+ this.dataType = 'object';
123
132
  });
124
133
  export default BsSystemOrder;
@@ -65,7 +65,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
65
65
  };
66
66
  });
67
67
  this.name = "完成人";
68
- this.id = "completedUserName";
68
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "completedUserName";
69
69
  this.sortField = "completedUserName";
70
70
  this.formField = "completedUserName";
71
71
  this.type = "COMPLETED_USER_INPUT";
@@ -134,7 +134,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
134
134
  };
135
135
  });
136
136
  this.name = "标记";
137
- this.id = "markFlag";
137
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "markFlag";
138
138
  this.sortField = "markFlag";
139
139
  this.formField = "markFlag";
140
140
  this.type = "FLOW_MARK_SELECT";
@@ -75,7 +75,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
75
75
  };
76
76
  });
77
77
  this.name = "处理人";
78
- this.id = "handlerList";
78
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "handlerList";
79
79
  this.sortField = "handlerList";
80
80
  this.formField = "handlerList";
81
81
  this.type = "HANDLER_INPUT";
@@ -103,6 +103,24 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
103
103
  if (testList.length && !isTest) {
104
104
  return Promise.reject(new Error("请填写正确的格式"));
105
105
  }
106
+ // if (this.componentConfig?.rulesOptions?.length) {
107
+ // const rulesList = this.componentConfig?.rulesOptions.filter(
108
+ // (item: any) =>
109
+ // (this.componentConfig?.selectRules || []).includes(item.id)
110
+ // );
111
+
112
+ // const hasRule = rulesList.some((item) => {
113
+ // const reg = new RegExp(item.value);
114
+ // return reg.test(value);
115
+ // });
116
+ // if (rulesList.length && !hasRule) {
117
+ // const rulesItem = rulesList.find((item) => {
118
+ // const reg = new RegExp(item.value);
119
+ // return !reg.test(value);
120
+ // });
121
+ // return Promise.reject(new Error(rulesItem?.errorText));
122
+ // }
123
+ // }
106
124
  return Promise.resolve();
107
125
  }
108
126
  }];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ComponentInterface, ColumnConfig, Record } from '../../type';
2
+ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
3
3
  import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class PlatForm implements ComponentInterface {
5
5
  name: string;
@@ -14,7 +14,7 @@ declare class PlatForm implements ComponentInterface {
14
14
  platInstance: InstanceType<typeof PlatData>;
15
15
  dataType: ComponentInterface['dataType'];
16
16
  options: ComponentInterface['options'];
17
- constructor();
17
+ constructor(options: PickOption);
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
19
19
  renderExport: (value: any, record: Record) => string;
20
20
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from 'react';
9
9
  import { PlatData, filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import { SYMBOL } from "../../constant";
11
- var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
11
+ var PlatForm = /*#__PURE__*/_createClass(function PlatForm(options) {
12
12
  var _this = this;
13
13
  _classCallCheck(this, PlatForm);
14
14
  _defineProperty(this, "name", void 0);
@@ -65,7 +65,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
65
65
  };
66
66
  });
67
67
  this.name = "平台";
68
- this.id = "platform";
68
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "platform";
69
69
  this.type = "PLATFORM_INPUT";
70
70
  this.sortField = 'platform';
71
71
  this.formField = 'platform';
@@ -87,7 +87,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
87
87
  };
88
88
  });
89
89
  this.name = "店铺名称";
90
- this.id = "shopName";
90
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "shopName";
91
91
  this.type = "SHOP_INPUT";
92
92
  this.sortField = "shopName";
93
93
  this.formField = "shopName";
@@ -73,7 +73,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
73
73
  };
74
74
  });
75
75
  this.name = "提交人";
76
- this.id = "submitter";
76
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "submitter";
77
77
  this.type = "OPERATOR_INPUT";
78
78
  this.sortField = "submitter";
79
79
  this.formField = "submitter";
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
2
2
  import { PickOption } from './type';
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | CommonSystemOrder | StatusSelect | 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 | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BsExchange | BsLogistics | BsReissue | 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 | BsGoods | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -1,11 +1,9 @@
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
- // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } 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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
4
2
  export var factory = function factory(type, options) {
5
3
  var _options$componentCon;
6
4
  switch (type) {
7
5
  case 'PLATFORM_INPUT':
8
- return new PlatForm();
6
+ return new PlatForm(options);
9
7
  case 'SHOP_INPUT':
10
8
  return new ShopInput(options);
11
9
  case 'OPERATOR_INPUT':
@@ -132,9 +130,9 @@ export var factory = function factory(type, options) {
132
130
  return new BsReissue(options);
133
131
  case 'BS_RETURN_GOODS':
134
132
  return new BsReturn(options);
133
+ // case 'REISSUE_TRADE_ID':
135
134
  case 'BS_DELIVERY_NO':
136
135
  case 'RETURN_GOODS_TRADE_ID':
137
- case 'REISSUE_TRADE_ID':
138
136
  case 'EXCHANGE_TRADE_ID':
139
137
  return new CommonSystemOrder(options);
140
138
  case 'BS_LOGISTICS':
@@ -152,9 +150,9 @@ export var factory = function factory(type, options) {
152
150
  case 'RETURN_GOODS_STATUS':
153
151
  case 'EXCHANGE_STATUS':
154
152
  return new CommonMultiStatus(options);
155
- // case 'REISSUE_TRADE_ID':
156
- // case 'EXCHANGE_TRADE_ID':
157
- // return new CommonTradeId(options)
153
+ case 'REISSUE_TRADE_ID':
154
+ // case 'EXCHANGE_TRADE_ID':
155
+ return new CommonTradeId(options);
158
156
  case 'NUMERICAL_CALCULATION':
159
157
  return new Calculation(options);
160
158
  case 'NODE_DEAD_LINE_INPUT':
@@ -157,6 +157,8 @@ export interface ComponentInterface {
157
157
  reasonList?: any[];
158
158
  disabled?: boolean;
159
159
  config?: any;
160
+ rulesOptions?: Array<any>;
161
+ selectRules?: Array<string>;
160
162
  };
161
163
  effects?: {
162
164
  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.11.0-alpha.8",
3
+ "version": "0.11.0",
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.11.0-alpha.8",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.8"
29
+ "@kmkf-fe-packages/basic-components": "^0.11.0",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.11.0"
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": "5157803be30a86d0fe89ab8da2fe2ccb6bda63df"
43
+ "gitHead": "5c3b2a30e75b89666c21a62bd4553b4482d2a9e1"
44
44
  }