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

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
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';
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) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WlnGoods | WorkOrderId;
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.11",
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": "d4c93798ef79e3a4de75817cb0bedf0eb4104e1a"
44
44
  }