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

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,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;
@@ -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) => BsGoods | BsLogistics | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicFile | FlowMarkSelect | Handler | HandlerDeadLine | BasicInput | JstSendGood | LogisticsInterception | NodeDeadLine | PlatForm | ShopInput | StatusSelect | Submitter | TradeId | WlnGoods | WorkOrderId | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsExchange | BsReissue | BsReturn | FlowStatusSelect | TemplateSelect | LogisticsTrajectory | FlowWorkOrderId | Calculation | NodeStayDuration;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | CommonMultiStatus | CommonSystemOrder | CompletedUser | FlowMarkSelect | Handler | BasicInput | PlatForm | ShopInput | Submitter | WlnGoods | 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 | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
@@ -1,6 +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, 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) {
@@ -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':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.11.0-alpha.10",
3
+ "version": "0.11.0-alpha.12",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "61b21be50cb56ff7de6cce7249c0e1543ba9f75c"
43
+ "gitHead": "a45a0ae1b7741617ec3639340e4086c837f47275"
44
44
  }