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

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,13 +1,13 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
- import React from 'react';
3
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
4
  declare class Express implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- componentConfig: ComponentInterface['componentConfig'];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
11
  align: ALignType;
12
12
  expressDateInstance: InstanceType<typeof ExpressData>;
13
13
  width: number;
@@ -15,8 +15,9 @@ declare class Express implements ComponentInterface {
15
15
  formField: string;
16
16
  canSort: boolean;
17
17
  children: ComponentInterface[];
18
- dataType: ComponentInterface['dataType'];
19
- options: ComponentInterface['options'];
18
+ dataType: ComponentInterface["dataType"];
19
+ options: ComponentInterface["options"];
20
+ parentName: string;
20
21
  constructor(options: PickOption);
21
22
  renderClient: () => null;
22
23
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -11,17 +11,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  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; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
- import React from 'react';
15
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
14
+ import React from "react";
15
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { BsExpressRender } from "../../Common";
17
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  var typeMap = {
20
20
  BS_LOGISTICS: {
21
- key: 'bsLogisticsItem'
21
+ key: "bsLogisticsItem"
22
22
  },
23
23
  WLN_LOGISTICS: {
24
- key: 'wlnLogisticsItem'
24
+ key: "wlnLogisticsItem"
25
25
  }
26
26
  };
27
27
  var Express = /*#__PURE__*/_createClass(function Express(options) {
@@ -42,13 +42,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
42
42
  _defineProperty(this, "children", void 0);
43
43
  _defineProperty(this, "dataType", void 0);
44
44
  _defineProperty(this, "options", void 0);
45
+ _defineProperty(this, "parentName", void 0);
45
46
  _defineProperty(this, "renderClient", function () {
46
47
  return null;
47
48
  });
48
49
  _defineProperty(this, "renderPc", function (value, record) {
49
50
  var _typeMap$_this$type, _typeMap$_this$type2;
50
51
  console.log(_this.type);
51
- var _this$id$split = _this.id.split('_'),
52
+ var _this$id$split = _this.id.split("_"),
52
53
  _this$id$split2 = _slicedToArray(_this$id$split, 3),
53
54
  key = _this$id$split2[0],
54
55
  parentKey = _this$id$split2[1],
@@ -58,7 +59,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
58
59
  }
59
60
  return /*#__PURE__*/React.createElement(BsExpressRender, {
60
61
  list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)],
61
- showField: 'company'
62
+ showField: "company"
62
63
  });
63
64
  });
64
65
  _defineProperty(this, "renderLog", function (r) {
@@ -69,7 +70,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
69
70
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
70
71
  });
71
72
  _defineProperty(this, "renderExport", function (value, record) {
72
- return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || '--';
73
+ return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
73
74
  });
74
75
  _defineProperty(this, "editRender", function () {
75
76
  return null;
@@ -80,15 +81,15 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
80
81
  searchDefaultConditions: SYMBOL.in,
81
82
  type: item.type,
82
83
  id: "".concat(item.id, "_").concat(subKey),
83
- name: "".concat(_this.name),
84
- filterComponentType: 'MultipleSelect',
84
+ name: "".concat(_this.parentName, "\u7269\u6D41\u516C\u53F8"),
85
+ filterComponentType: "MultipleSelect",
85
86
  props: {
86
87
  options: _this.expressDateInstance.getExpressData() || []
87
88
  },
88
89
  filterFn: function filterFn(value) {
89
90
  return function (i) {
90
91
  var _ref;
91
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
92
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCompany").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
92
93
  var _String;
93
94
  var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
94
95
  return logisticsCompany;
@@ -104,13 +105,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
104
105
  this.type = options.type;
105
106
  this.componentConfig = options.componentConfig;
106
107
  this.rules = [];
107
- this.align = 'left';
108
+ this.align = "left";
108
109
  this.expressDateInstance = ExpressData.getInstance();
109
110
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
110
111
  this.isCombinationComponent = false;
111
112
  this.canSort = false;
112
113
  this.children = [];
113
- this.dataType = 'string';
114
+ this.dataType = "string";
114
115
  this.options = this.expressDateInstance.getExpressData() || [];
116
+ this.parentName = options === null || options === void 0 ? void 0 : options.parentName;
115
117
  });
116
118
  export default Express;
@@ -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) => BsLogistics | 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 | 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) => 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.11.0-alpha.5",
3
+ "version": "0.11.0-alpha.6",
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.5",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.5"
29
+ "@kmkf-fe-packages/basic-components": "^0.11.0-alpha.6",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.6"
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": "6ab786729a215ecae2bbb8bbfa0887b832addda3"
43
+ "gitHead": "0adcbcc7315425a79695d2d2af0ca3d884c9776e"
44
44
  }