@kmkf-fe-packages/services-components 0.13.0-alpha.1 → 0.13.0-beta.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.
@@ -5,8 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  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; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
- import React from "react";
9
- import { Remark } from "@kmkf-fe-packages/basic-components";
8
+ import React from 'react';
9
+ import { Remark } from '@kmkf-fe-packages/basic-components';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import trade0 from "./flag/trade-icon-flag-0.png";
12
12
  import trade1 from "./flag/trade-icon-flag-1.png";
@@ -14,9 +14,9 @@ import trade2 from "./flag/trade-icon-flag-2.png";
14
14
  import trade3 from "./flag/trade-icon-flag-3.png";
15
15
  import trade4 from "./flag/trade-icon-flag-4.png";
16
16
  import trade5 from "./flag/trade-icon-flag-5.png";
17
- import get from "lodash/get";
17
+ import get from 'lodash/get';
18
18
  import ItemView from "../../commonComponents/ItemView";
19
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
19
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
20
20
  import { SYMBOL } from "../../constant";
21
21
  var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
22
22
  var _this = this,
@@ -36,14 +36,14 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
36
36
  _defineProperty(this, "children", void 0);
37
37
  _defineProperty(this, "dataType", void 0);
38
38
  _defineProperty(this, "render", function (value) {
39
- var index = get(value, "flag");
39
+ var index = get(value, 'flag');
40
40
  return /*#__PURE__*/React.createElement("div", {
41
41
  style: {
42
- display: "inline-block"
42
+ display: 'inline-block'
43
43
  }
44
44
  }, index !== undefined && /*#__PURE__*/React.createElement("img", {
45
45
  src: _this.imgList[Number(index)]
46
- }), /*#__PURE__*/React.createElement("span", null, get(value, "remark")));
46
+ }), /*#__PURE__*/React.createElement("span", null, get(value, 'remark')));
47
47
  });
48
48
  _defineProperty(this, "renderClient", function (record) {
49
49
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -56,20 +56,13 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
56
56
  if (get(record, "".concat(_this.id, "_flag")) === undefined && get(record, "".concat(_this.id, "_remark")) === undefined) {
57
57
  return /*#__PURE__*/React.createElement("span", null, "--");
58
58
  }
59
- var index = get(record, "".concat(_this.id, "_flag"));
60
59
  return /*#__PURE__*/React.createElement("div", {
61
60
  style: {
62
- display: "inline-block"
61
+ display: 'inline-block'
63
62
  }
64
- }, !isNull(get(record, "".concat(_this.id, "_flag"))) ? index !== undefined && /*#__PURE__*/React.createElement("img", {
65
- src: _this.imgList[Number(index)]
66
- }) :
67
- // <i
68
- // className={`dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ${
69
- // this.flagColors[Number(get(record, `${this.id}_flag`))]
70
- // }`}
71
- // />
72
- null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
63
+ }, !isNull(get(record, "".concat(_this.id, "_flag"))) ? /*#__PURE__*/React.createElement("i", {
64
+ className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[Number(get(record, "".concat(_this.id, "_flag")))])
65
+ }) : null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
73
66
  });
74
67
  _defineProperty(this, "renderLog", function (r) {
75
68
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")])) return null;
@@ -103,10 +96,10 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
103
96
  // 过滤组件id
104
97
  name: item.name,
105
98
  // 过滤组件名称
106
- filterComponentType: "Input",
99
+ filterComponentType: 'Input',
107
100
  filterFn: function filterFn(value) {
108
101
  return function (i) {
109
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "remark")).includes(value);
102
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'remark')).includes(value);
110
103
  };
111
104
  }
112
105
  };
@@ -117,21 +110,21 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
117
110
  this.formField = "".concat(options.id, "_remark");
118
111
  this.type = options.type;
119
112
  this.componentConfig = options.componentConfig;
120
- this.dataType = "object";
113
+ this.dataType = 'object';
121
114
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
122
115
  validator: function validator(_, value) {
123
116
  var _this$componentConfig4;
124
117
  if (!(value !== null && value !== void 0 && value.remark)) {
125
- return Promise.reject(new Error("请输入备注"));
118
+ return Promise.reject(new Error('请输入备注'));
126
119
  }
127
120
  if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isShowFlag && !(value !== null && value !== void 0 && value.flag) && (value === null || value === void 0 ? void 0 : value.flag) !== 0) {
128
- return Promise.reject(new Error("请选择旗帜"));
121
+ return Promise.reject(new Error('请选择旗帜'));
129
122
  }
130
123
  return Promise.resolve();
131
124
  }
132
125
  }] : [];
133
126
  this.imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
134
- this.flagColors = ["gray", "red", "yellow", "green", "blue", "purple"];
127
+ this.flagColors = ['gray', 'red', 'yellow', 'green', 'blue', 'purple'];
135
128
  this.isCombinationComponent = false;
136
129
  this.canSort = true;
137
130
  this.children = [];
@@ -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, CommonTradeId, 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, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
2
2
  import { PickOption } from './type';
3
- export declare const factory: (type: string, options: PickOption) => BsExchange | BsReissue | BsSystemOrder | BasicCascader | ERemark | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BsExchange | BsReissue | BsSystemOrder | CommonMultiStatus | ERemark | 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 | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -1,4 +1,6 @@
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";
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";
2
4
  export var factory = function factory(type, options) {
3
5
  var _options$componentCon;
4
6
  switch (type) {
@@ -130,9 +132,9 @@ export var factory = function factory(type, options) {
130
132
  return new BsReissue(options);
131
133
  case 'BS_RETURN_GOODS':
132
134
  return new BsReturn(options);
133
- // case 'REISSUE_TRADE_ID':
134
135
  case 'BS_DELIVERY_NO':
135
136
  case 'RETURN_GOODS_TRADE_ID':
137
+ case 'REISSUE_TRADE_ID':
136
138
  case 'EXCHANGE_TRADE_ID':
137
139
  return new CommonSystemOrder(options);
138
140
  case 'BS_LOGISTICS':
@@ -151,9 +153,9 @@ export var factory = function factory(type, options) {
151
153
  case 'EXCHANGE_STATUS':
152
154
  case 'WAREHOUSING_STATUS':
153
155
  return new CommonMultiStatus(options);
154
- case 'REISSUE_TRADE_ID':
155
- // case 'EXCHANGE_TRADE_ID':
156
- return new CommonTradeId(options);
156
+ // case 'REISSUE_TRADE_ID':
157
+ // case 'EXCHANGE_TRADE_ID':
158
+ // return new CommonTradeId(options)
157
159
  case 'NUMERICAL_CALCULATION':
158
160
  return new Calculation(options);
159
161
  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.13.0-alpha.1",
3
+ "version": "0.13.0-beta.1",
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.13.0-alpha.1",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.1"
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-beta.1",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-beta.1"
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": "15bbdc12398caadc4cbbf4d15377975be01ece29"
43
+ "gitHead": "7c987839411d1247558e6d245d82c8a38e0608db"
44
44
  }
@@ -1,38 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
3
- declare class FlowTag implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- sortField: string;
7
- type: string;
8
- rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- effects: ComponentInterface["effects"];
11
- isCombinationComponent: boolean;
12
- formField: string;
13
- canSort: boolean;
14
- children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
16
- constructor(options: PickOption);
17
- renderPc: (value: any, record: Record) => any;
18
- renderLog: (r: Record) => any;
19
- getComponentValue: (r: Record) => any;
20
- renderExport: (value: any, record: Record) => any;
21
- renderClient: (record: any) => React.JSX.Element | null;
22
- editRender: (p: any) => React.JSX.Element;
23
- filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "in";
25
- type: string;
26
- id: string;
27
- name: string;
28
- filterComponentType: "MultipleSelect";
29
- props: {
30
- options: {
31
- label: string;
32
- value: string;
33
- }[];
34
- };
35
- filterFn: (value: string[]) => (i: Record) => boolean;
36
- };
37
- }
38
- export default FlowTag;
@@ -1,126 +0,0 @@
1
- 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); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- 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); }
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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 ItemView from "../../commonComponents/ItemView";
13
- import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
14
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
- import GetFormItem from "../GetFormItem";
16
- import { SYMBOL } from "../../constant";
17
- var TAG_MAP = {
18
- REMINDER: "催单",
19
- REJECT: "驳回"
20
- };
21
- var TAG_ICON_MAP = {
22
- REMINDER: "催单",
23
- REJECT: "驳回"
24
- };
25
- var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
26
- var _this = this;
27
- _classCallCheck(this, FlowTag);
28
- _defineProperty(this, "name", void 0);
29
- _defineProperty(this, "id", void 0);
30
- _defineProperty(this, "sortField", void 0);
31
- _defineProperty(this, "type", void 0);
32
- _defineProperty(this, "rules", void 0);
33
- _defineProperty(this, "componentConfig", void 0);
34
- _defineProperty(this, "effects", void 0);
35
- _defineProperty(this, "isCombinationComponent", void 0);
36
- _defineProperty(this, "formField", void 0);
37
- _defineProperty(this, "canSort", void 0);
38
- _defineProperty(this, "children", void 0);
39
- _defineProperty(this, "dataType", void 0);
40
- _defineProperty(this, "renderPc", function (value, record) {
41
- var tag = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
42
- if (!tag) return null;
43
- return tag.map(function (t) {
44
- return TAG_ICON_MAP[t];
45
- });
46
- });
47
- _defineProperty(this, "renderLog", function (r) {
48
- var tag = r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
49
- if (!tag) return null;
50
- return tag.map(function (t) {
51
- return TAG_ICON_MAP[t];
52
- });
53
- });
54
- _defineProperty(this, "getComponentValue", function (r) {
55
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
56
- });
57
- _defineProperty(this, "renderExport", function (value, record) {
58
- var tag = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
59
- return tag ? tag.map(function (t) {
60
- return TAG_MAP[t];
61
- }).join(",") : "--";
62
- });
63
- _defineProperty(this, "renderClient", function (record) {
64
- var _record;
65
- if (!isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
66
- var tagValue = record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.map(function (t) {
67
- return TAG_ICON_MAP[t];
68
- });
69
- return /*#__PURE__*/React.createElement(ItemView, {
70
- id: _this.id,
71
- label: _this.name,
72
- value: tagValue
73
- });
74
- });
75
- _defineProperty(this, "editRender", function (p) {
76
- var _this$componentConfig, _this$componentConfig2;
77
- return /*#__PURE__*/React.createElement(GetFormItem, {
78
- title: _this.name,
79
- name: _this.id,
80
- rules: _this.rules,
81
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
82
- 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,
83
- component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
84
- placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
85
- }))
86
- });
87
- });
88
- _defineProperty(this, "filterConfig", function (item) {
89
- return {
90
- searchDefaultConditions: SYMBOL.in,
91
- type: item.type,
92
- id: item.id,
93
- // 过滤组件id
94
- name: item.name,
95
- // 过滤组件名称
96
- filterComponentType: "MultipleSelect",
97
- props: {
98
- options: [{
99
- label: "催单",
100
- value: "REMINDER"
101
- }, {
102
- label: "暂存",
103
- value: "REJECT"
104
- }]
105
- },
106
- filterFn: function filterFn(value) {
107
- return function (i) {
108
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
109
- };
110
- }
111
- };
112
- });
113
- this.name = "标签";
114
- this.id = (options === null || options === void 0 ? void 0 : options.id) || "markFlag";
115
- this.sortField = "markFlag";
116
- this.formField = "markFlag";
117
- this.type = "FLOW_TAG";
118
- this.effects = options.effects;
119
- this.rules = [];
120
- this.isCombinationComponent = false;
121
- this.canSort = false;
122
- this.children = [];
123
- this.componentConfig = _objectSpread({}, options.componentConfig);
124
- this.dataType = "string";
125
- });
126
- export default FlowTag;