@kmkf-fe-packages/services-components 0.8.18-alpha.7 → 0.8.19-alpha.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,5 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
2
  import React from "react";
3
+ import "./icon/iconfont.css";
3
4
  declare class FlowMarkSelect implements ComponentInterface {
4
5
  name: string;
5
6
  id: string;
@@ -8,19 +9,19 @@ declare class FlowMarkSelect implements ComponentInterface {
8
9
  rules: any[];
9
10
  componentConfig: ComponentInterface["componentConfig"];
10
11
  effects: ComponentInterface["effects"];
11
- workOrderStatus: any;
12
+ workOrderMark: any[];
12
13
  isCombinationComponent: boolean;
13
14
  formField: string;
14
15
  canSort: boolean;
15
16
  children: ComponentInterface[];
16
17
  dataType: ComponentInterface["dataType"];
17
- options: ComponentInterface["options"];
18
18
  constructor(options: PickOption);
19
+ renderMenu: (record: Record) => React.JSX.Element;
19
20
  renderPc: (value: any, record: Record) => React.JSX.Element;
20
21
  renderLog: (r: Record) => React.JSX.Element | null;
21
22
  getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: any, record: Record) => any;
23
- renderClient: () => null;
24
+ renderClient: (record: any) => React.JSX.Element | null;
24
25
  editRender: (p: any) => React.JSX.Element;
25
26
  filterConfig: (item: ColumnConfig) => {
26
27
  searchDefaultConditions: "in";
@@ -30,7 +31,7 @@ declare class FlowMarkSelect implements ComponentInterface {
30
31
  filterComponentType: "MultipleSelect";
31
32
  props: {
32
33
  options: {
33
- label: any;
34
+ label: string;
34
35
  value: string;
35
36
  }[];
36
37
  };
@@ -1,4 +1,6 @@
1
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; }
2
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); }
3
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); } }
4
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,14 +9,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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); }
9
11
  import React from "react";
12
+ import { Dropdown, Menu } from "antd";
13
+ import ItemView from "../../commonComponents/ItemView";
10
14
  import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
11
- import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
12
16
  import GetFormItem from "../GetFormItem";
13
- import get from "lodash/get";
14
17
  import { SYMBOL } from "../../constant";
18
+ import "./icon/iconfont.css";
15
19
  var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options) {
16
- var _this = this,
17
- _Object$keys2;
20
+ var _this = this;
18
21
  _classCallCheck(this, FlowMarkSelect);
19
22
  _defineProperty(this, "name", void 0);
20
23
  _defineProperty(this, "id", void 0);
@@ -23,42 +26,73 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
23
26
  _defineProperty(this, "rules", void 0);
24
27
  _defineProperty(this, "componentConfig", void 0);
25
28
  _defineProperty(this, "effects", void 0);
26
- _defineProperty(this, "workOrderStatus", void 0);
29
+ _defineProperty(this, "workOrderMark", void 0);
27
30
  _defineProperty(this, "isCombinationComponent", void 0);
28
31
  _defineProperty(this, "formField", void 0);
29
32
  _defineProperty(this, "canSort", void 0);
30
33
  _defineProperty(this, "children", void 0);
31
34
  _defineProperty(this, "dataType", void 0);
32
- _defineProperty(this, "options", void 0);
35
+ _defineProperty(this, "renderMenu", function (record) {
36
+ var menu = /*#__PURE__*/React.createElement(Menu, {
37
+ onClick: function onClick(_ref) {
38
+ var _this$effects, _this$effects2;
39
+ var key = _ref.key,
40
+ domEvent = _ref.domEvent;
41
+ domEvent.stopPropagation();
42
+ typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleChangeSingleWorkOrderMark) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleChangeSingleWorkOrderMark(key, record));
43
+ }
44
+ }, _this.workOrderMark.map(function (item) {
45
+ return /*#__PURE__*/React.createElement(Menu.Item, {
46
+ key: item.value
47
+ }, item.label);
48
+ }));
49
+ return menu;
50
+ });
33
51
  _defineProperty(this, "renderPc", function (value, record) {
34
- var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
35
- return status ?
36
- /*#__PURE__*/
37
- // <Dropdown overlay={this.renderMenu(record)}>
38
- React.createElement("span", {
39
- style: {
40
- color: status.color
52
+ var mark = _this.workOrderMark.find(function (item) {
53
+ return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
54
+ });
55
+ return /*#__PURE__*/React.createElement(Dropdown, {
56
+ overlay: _this.renderMenu(record)
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ onClick: function onClick(e) {
59
+ return e.stopPropagation();
41
60
  }
42
- }, status === null || status === void 0 ? void 0 : status.label) :
43
- /*#__PURE__*/
44
- // </Dropdown>
45
- React.createElement("span", null, "--");
61
+ }, (mark === null || mark === void 0 ? void 0 : mark.label) || "--"));
46
62
  });
47
63
  _defineProperty(this, "renderLog", function (r) {
48
- var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
49
- if (!status) return null;
64
+ var mark = _this.workOrderMark.find(function (item) {
65
+ return item.value === (r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
66
+ });
67
+ if (!mark) return null;
50
68
  return _this.renderPc(undefined, r);
51
69
  });
52
70
  _defineProperty(this, "getComponentValue", function (r) {
53
- var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
54
- return status;
71
+ var mark = _this.workOrderMark.find(function (item) {
72
+ return item.value === (r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
73
+ });
74
+ return mark;
55
75
  });
56
76
  _defineProperty(this, "renderExport", function (value, record) {
57
- var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
58
- return status ? status === null || status === void 0 ? void 0 : status.label : "--";
77
+ var MARK_MAP = {
78
+ 1: "白色",
79
+ 2: "红色",
80
+ 3: "黄色",
81
+ 4: "蓝色",
82
+ 5: "绿色",
83
+ 6: "紫色"
84
+ };
85
+ var mark = _this.workOrderMark.find(function (item) {
86
+ return item.value === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
87
+ });
88
+ return mark ? MARK_MAP[mark === null || mark === void 0 ? void 0 : mark.value] : "--";
59
89
  });
60
- _defineProperty(this, "renderClient", function () {
61
- return null;
90
+ _defineProperty(this, "renderClient", function (record) {
91
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
92
+ id: _this.id,
93
+ label: _this.name,
94
+ value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
95
+ }) : null;
62
96
  });
63
97
  _defineProperty(this, "editRender", function (p) {
64
98
  var _this$componentConfig, _this$componentConfig2;
@@ -69,13 +103,11 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
69
103
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
104
  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,
71
105
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
72
- placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
73
- showSearch: true
106
+ placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
74
107
  }))
75
108
  });
76
109
  });
77
110
  _defineProperty(this, "filterConfig", function (item) {
78
- var _Object$keys;
79
111
  return {
80
112
  searchDefaultConditions: SYMBOL.in,
81
113
  type: item.type,
@@ -85,12 +117,26 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
85
117
  // 过滤组件名称
86
118
  filterComponentType: "MultipleSelect",
87
119
  props: {
88
- options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
89
- return {
90
- label: _this.workOrderStatus[item].label,
91
- value: item
92
- };
93
- })
120
+ //不使用workOrderMark的数据,筛选会深拷贝
121
+ options: [{
122
+ label: "空白",
123
+ value: "1"
124
+ }, {
125
+ label: "红色",
126
+ value: "2"
127
+ }, {
128
+ label: "黄色",
129
+ value: "3"
130
+ }, {
131
+ label: "蓝色",
132
+ value: "4"
133
+ }, {
134
+ label: "绿色",
135
+ value: "5"
136
+ }, {
137
+ label: "紫色",
138
+ value: "6"
139
+ }]
94
140
  },
95
141
  filterFn: function filterFn(value) {
96
142
  return function (i) {
@@ -99,67 +145,65 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
99
145
  }
100
146
  };
101
147
  });
102
- this.name = options.name;
103
- this.id = options.id;
104
- this.sortField = options.id;
105
- this.formField = options.id;
106
- this.type = options.type;
107
- this.componentConfig = options.componentConfig;
148
+ this.name = "标记";
149
+ this.id = "markFlag";
150
+ this.sortField = "markFlag";
151
+ this.formField = "markFlag";
152
+ this.type = "FLOW_MARK_SELECT";
108
153
  this.effects = options.effects;
109
154
  this.rules = [];
110
155
  this.isCombinationComponent = false;
111
- this.canSort = true;
156
+ this.canSort = false;
112
157
  this.children = [];
113
- this.workOrderStatus = {
114
- WAITING: {
115
- label: "待处理",
116
- color: "#faad14",
117
- bgColor: "#faad14"
118
- },
119
- HANDLING: {
120
- label: "处理中",
121
- color: "#1890ff",
122
- bgColor: "#1890ff"
123
- },
124
- STOPPING: {
125
- label: "暂停中",
126
- color: "#ff4d4f",
127
- bgColor: "#ff4d4f"
128
- },
129
- COMPLETED: {
130
- label: "已完成",
131
- color: "#73d13d",
132
- bgColor: "#73d13d"
133
- },
134
- CLOSED: {
135
- label: "已关闭",
136
- color: "rgba(0, 0, 0, 0.65)",
137
- bgColor: "rgba(0, 0, 0, 0.04);"
138
- }
139
- };
140
- this.dataType = "string";
141
- this.options = (_Object$keys2 = Object.keys(this.workOrderStatus)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.map(function (item) {
142
- return {
143
- label: _this.workOrderStatus[item].label,
144
- value: item
145
- };
158
+ this.workOrderMark = [{
159
+ label: /*#__PURE__*/React.createElement("span", {
160
+ className: "iconfont icon-xingxing"
161
+ }),
162
+ value: "1"
163
+ }, {
164
+ label: /*#__PURE__*/React.createElement("span", {
165
+ className: "iconfont icon-xingxing1",
166
+ style: {
167
+ color: "#ff0000"
168
+ }
169
+ }),
170
+ value: "2"
171
+ }, {
172
+ label: /*#__PURE__*/React.createElement("span", {
173
+ className: "iconfont icon-xingxing1",
174
+ style: {
175
+ color: "#f6b343"
176
+ }
177
+ }),
178
+ value: "3"
179
+ }, {
180
+ label: /*#__PURE__*/React.createElement("span", {
181
+ className: "iconfont icon-xingxing1",
182
+ style: {
183
+ color: "#4d90f7"
184
+ }
185
+ }),
186
+ value: "4"
187
+ }, {
188
+ label: /*#__PURE__*/React.createElement("span", {
189
+ className: "iconfont icon-xingxing1",
190
+ style: {
191
+ color: "#6ed86c"
192
+ }
193
+ }),
194
+ value: "5"
195
+ }, {
196
+ label: /*#__PURE__*/React.createElement("span", {
197
+ className: "iconfont icon-xingxing1",
198
+ style: {
199
+ color: "#be4ed1"
200
+ }
201
+ }),
202
+ value: "6"
203
+ }];
204
+ this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
205
+ options: this.workOrderMark
146
206
  });
147
- }
148
- // renderMenu = (record: Record) => {
149
- // const menu = (
150
- // <Menu
151
- // onClick={({ key }) => {
152
- // typeof this?.effects?.handleChangeSingleWorkOrderStatus === 'function' && this?.effects?.handleChangeSingleWorkOrderStatus(key, record)
153
- // }}
154
- // >
155
- // <Menu.Item key="HANDLING">处理中</Menu.Item>
156
- // <Menu.Item key="STOPPING">暂停中</Menu.Item>
157
- // <Menu.Item key="COMPLETED">已完成</Menu.Item>
158
- // <Menu.Item key="WAITING">待处理</Menu.Item>
159
- // </Menu>
160
- // );
161
- // return menu;
162
- // };
163
- );
164
-
207
+ this.dataType = "string";
208
+ });
165
209
  export default FlowMarkSelect;
@@ -1,6 +1,6 @@
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 JstLogistics implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
@@ -13,14 +13,14 @@ declare class JstLogistics implements ComponentInterface {
13
13
  }[];
14
14
  type: string;
15
15
  rules: any[];
16
- componentConfig: ComponentInterface['componentConfig'];
16
+ componentConfig: ComponentInterface["componentConfig"];
17
17
  align: ALignType;
18
18
  expressDateInstance: InstanceType<typeof ExpressData>;
19
19
  isCombinationComponent: boolean;
20
20
  formField: string;
21
21
  canSort: boolean;
22
22
  children: ComponentInterface[];
23
- dataType: ComponentInterface['dataType'];
23
+ dataType: ComponentInterface["dataType"];
24
24
  constructor(options: PickOption);
25
25
  renderClient: (record: any) => React.JSX.Element | null;
26
26
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -6,33 +6,27 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  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; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  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); }
9
- import React from 'react';
10
- import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
11
- import some from 'lodash/some';
9
+ import React from "react";
10
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
11
+ import some from "lodash/some";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { JstGoodImage } from "../../Common";
14
- import { JstGoods } from '@kmkf-fe-packages/basic-components';
14
+ import { JstGoods } from "@kmkf-fe-packages/basic-components";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL } from "../../../constant";
18
18
  var typeMap = {
19
19
  JST_LOGISTICS: {
20
- key: 'jstItemList',
21
- name: 'jst',
22
- company: 'logisticsCompany',
23
- code: 'logisticsCode'
24
- },
25
- BS_LOGISTICS: {
26
- key: 'bsLogisticsList',
27
- name: 'bs',
28
- company: 'bsLogisticsCompany',
29
- code: 'bsLogisticsCode'
20
+ key: "jstItemList",
21
+ name: "jst",
22
+ company: "logisticsCompany",
23
+ code: "logisticsCode"
30
24
  },
31
25
  REISSUE_LOGISTICS: {
32
- key: 'reissueLogisticsList',
33
- name: 'reissue',
34
- company: 'reissueLogisticsCompany',
35
- code: 'reissueLogisticsCode'
26
+ key: "reissueLogisticsList",
27
+ name: "reissue",
28
+ company: "reissueLogisticsCompany",
29
+ code: "reissueLogisticsCode"
36
30
  }
37
31
  };
38
32
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
@@ -97,8 +91,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
97
91
  var _typeMap$_this$type4;
98
92
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
99
93
  return (list || []).map(function (item) {
100
- return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join('/');
101
- }).join(',');
94
+ return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
95
+ }).join(",");
102
96
  });
103
97
  _defineProperty(this, "editRender", function (p) {
104
98
  var _this$componentConfig, _this$componentConfig2;
@@ -121,14 +115,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
121
115
  type: item.type,
122
116
  id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.company),
123
117
  name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
124
- filterComponentType: 'MultipleSelect',
118
+ filterComponentType: "MultipleSelect",
125
119
  props: {
126
120
  options: _this.expressDateInstance.getExpressData() || []
127
121
  },
128
122
  filterFn: function filterFn(value) {
129
123
  return function (i) {
130
124
  var _ref;
131
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
125
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCompany").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
132
126
  var _String;
133
127
  var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
134
128
  return logisticsCompany;
@@ -140,10 +134,10 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
140
134
  type: item.type,
141
135
  id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.code),
142
136
  name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
143
- filterComponentType: 'Input',
137
+ filterComponentType: "Input",
144
138
  filterFn: function filterFn(value) {
145
139
  return function (i) {
146
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
140
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
147
141
  };
148
142
  }
149
143
  }];
@@ -157,7 +151,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
157
151
  this.isCombinationComponent = false;
158
152
  this.canSort = false;
159
153
  this.children = [];
160
- this.dataType = 'object';
154
+ this.dataType = "object";
161
155
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
162
156
  required: true,
163
157
  validator: function validator(_, value) {
@@ -170,17 +164,17 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
170
164
  return Promise.resolve();
171
165
  }
172
166
  }] : [];
173
- this.align = 'left';
167
+ this.align = "left";
174
168
  this.expressDateInstance = ExpressData.getInstance();
175
169
  this.sortChildField = [{
176
- name: '物流公司',
170
+ name: "物流公司",
177
171
  key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
178
172
  options: this.expressDateInstance.getExpressData(),
179
- dataType: 'string'
173
+ dataType: "string"
180
174
  }, {
181
- name: '物流单号',
175
+ name: "物流单号",
182
176
  key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
183
- dataType: 'string'
177
+ dataType: "string"
184
178
  }];
185
179
  });
186
180
  export default JstLogistics;
@@ -133,7 +133,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
133
133
  }) : null;
134
134
  });
135
135
  _defineProperty(this, "editRender", function (p) {
136
- var _this$componentConfig, _this$componentConfig2;
136
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
137
137
  return /*#__PURE__*/React.createElement(GetFormItem, {
138
138
  title: _this.name,
139
139
  name: _this.id,
@@ -141,7 +141,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
141
141
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
142
142
  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,
143
143
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
144
- type: _this.type === "POSTING" ? "workOrder" : "bs"
144
+ type: _this.type === "POSTING" || ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) === "workOrder" ? "workOrder" : "bs"
145
145
  }))
146
146
  });
147
147
  });
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } 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 } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsGoods | BsReissue | BsReturn | BsSystemOrder | Calculation | CommonMultiStatus | CommonSystemOrder | CommonTradeId | HandlerDeadLine | JstLogistics | NodeDeadLine | NodeStayDuration | BasicPosting | StatusSelect | BasicTextArea | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsExchange | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | JstLogistics | 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 | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
@@ -1,4 +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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } 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 } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -96,6 +96,8 @@ export var factory = function factory(type, options) {
96
96
  return new WorkOrderId(options);
97
97
  case "FLOW_STATUS_SELECT":
98
98
  return new FlowStatusSelect(options);
99
+ case "FLOW_MARK_SELECT":
100
+ return new FlowMarkSelect(options);
99
101
  case "COMPLETED_DATETIME":
100
102
  return new CommonDataTime(options);
101
103
  case "CREATED_DATETIME":
@@ -105,7 +107,6 @@ export var factory = function factory(type, options) {
105
107
  case "TEMPLATE_ID_INPUT":
106
108
  return new TemplateSelect(options);
107
109
  case "JST_LOGISTICS":
108
- case "BS_LOGISTICS":
109
110
  case "REISSUE_LOGISTICS":
110
111
  return new JstLogistics(options);
111
112
  case "JST_ITEM_SELECT_THIRD":
@@ -130,6 +131,8 @@ export var factory = function factory(type, options) {
130
131
  case "BS_DELIVERY_NO":
131
132
  case "RETURN_GOODS_TRADE_ID":
132
133
  return new CommonSystemOrder(options);
134
+ case "BS_LOGISTICS":
135
+ return new BsLogistics(options);
133
136
  case "FLOW_WORK_ORDER_ID_INPUT":
134
137
  return new FlowWorkOrderId(options);
135
138
  case "OUTER_WORK_ORDER_ID_INPUT":
@@ -42,7 +42,9 @@ export { default as BsGoods } from "./components/BS/BsGoods";
42
42
  export { default as BsExchange } from "./components/BS/BsExchange";
43
43
  export { default as BsReissue } from "./components/BS/BsReissue";
44
44
  export { default as BsReturn } from "./components/BS/BsReturn";
45
+ export { default as BsLogistics } from "./components/BS/BsLogistics";
45
46
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
47
+ export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
46
48
  export { default as TemplateSelect } from "./components/TemplateSelect";
47
49
  export { default as WorkOrderId } from "./components/WorkOrderId";
48
50
  export { default as LogisticsInterception } from "./components/LogisticsInterception";
package/dist/esm/index.js CHANGED
@@ -42,7 +42,9 @@ export { default as BsGoods } from "./components/BS/BsGoods";
42
42
  export { default as BsExchange } from "./components/BS/BsExchange";
43
43
  export { default as BsReissue } from "./components/BS/BsReissue";
44
44
  export { default as BsReturn } from "./components/BS/BsReturn";
45
+ export { default as BsLogistics } from "./components/BS/BsLogistics";
45
46
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
47
+ export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
46
48
  export { default as TemplateSelect } from "./components/TemplateSelect";
47
49
  export { default as WorkOrderId } from "./components/WorkOrderId";
48
50
  export { default as LogisticsInterception } from "./components/LogisticsInterception";
@@ -39,7 +39,7 @@ export interface ComponentInterface {
39
39
  width?: number;
40
40
  align?: ALignType;
41
41
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
42
- format?: "dateTime" | "date" | "time" | "cascader" | 'shopInput';
42
+ format?: "dateTime" | "date" | "time" | "cascader" | "shopInput";
43
43
  options?: Array<any>;
44
44
  /**
45
45
  * @description 组件下标
@@ -62,7 +62,7 @@ export interface ComponentInterface {
62
62
  /**
63
63
  * @description 显示字段名称
64
64
  */
65
- showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs";
65
+ showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder";
66
66
  /**
67
67
  * @description 是否选择SKU
68
68
  */
@@ -153,6 +153,7 @@ export interface ComponentInterface {
153
153
  queryWorkOrderDetail?: (r: Record) => void;
154
154
  handleOpenRepeatList?: (r: Record) => void;
155
155
  handleOpenRepeatDetail?: (r: Record) => void;
156
+ handleChangeSingleWorkOrderMark?: (t: string, r: Record) => void;
156
157
  templateList?: any[];
157
158
  isEditing?: boolean;
158
159
  form?: FormInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.18-alpha.7",
3
+ "version": "0.8.19-alpha.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.8.18-alpha.7",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.18-alpha.7"
29
+ "@kmkf-fe-packages/basic-components": "^0.8.19-alpha.0",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.19-alpha.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": "a3981606de274459f48e42e52e2fdee35fce1f2c"
43
+ "gitHead": "2ef041e1cfd8a5515a6a82d47b31b4bd5b110efe"
44
44
  }