@kmkf-fe-packages/services-components 0.8.17-alpha.27 → 0.8.17-alpha.29

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.
@@ -7,23 +7,18 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
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
9
  import React from "react";
10
- import { ApaasInput } from "@kmkf-fe-packages/basic-components";
10
+ import { CalculationInput } from "@kmkf-fe-packages/basic-components";
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
- var CalculationInput = function CalculationInput(props) {
16
- return /*#__PURE__*/React.createElement("span", {
17
- style: {
18
- display: 'flex',
19
- alignItems: 'center'
20
- }
21
- }, /*#__PURE__*/React.createElement(ApaasInput, props), /*#__PURE__*/React.createElement("span", {
22
- style: {
23
- marginLeft: '4px'
24
- }
25
- }, props === null || props === void 0 ? void 0 : props.unit));
26
- };
15
+
16
+ // const CalculationInput = (props: any) => {
17
+ // return <span style={{
18
+ // display: 'flex',
19
+ // alignItems: 'center',
20
+ // }}><ApaasInput {...props} /><span style={{marginLeft: '4px', width: '88px'}}>{props?.unit}</span></span>
21
+ // }
27
22
  var Calculation = /*#__PURE__*/_createClass(function Calculation(options) {
28
23
  var _this = this;
29
24
  _classCallCheck(this, Calculation);
@@ -15,7 +15,7 @@ export declare const showImage: ({ item, type, index, }: {
15
15
  export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
16
16
  export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
17
17
  export declare const JstGoodImage: ({ list, type }: any) => any;
18
- export declare const CommonOrderContent: ({ list, type }: any) => any;
18
+ export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
19
19
  export declare const BsGoodImage: ({ item, index }: {
20
20
  item: any;
21
21
  index: number;
@@ -232,15 +232,22 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
232
232
  export var CommonOrderContent = function CommonOrderContent(_ref7) {
233
233
  var _ref7$list = _ref7.list,
234
234
  list = _ref7$list === void 0 ? [] : _ref7$list,
235
- type = _ref7.type;
235
+ valueKey = _ref7.valueKey,
236
+ failValue = _ref7.failValue,
237
+ _ref7$options = _ref7.options,
238
+ options = _ref7$options === void 0 ? [] : _ref7$options;
236
239
  var orderContent = function orderContent(item, index) {
237
240
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
238
241
  style: {
239
242
  textAlign: "center"
240
243
  }
241
- }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7\uFF1A", item.systemOrderId));
244
+ }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
242
245
  };
243
246
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
247
+ var _options$find;
248
+ var color = ((_options$find = options.find(function (item) {
249
+ return item[valueKey] === failValue;
250
+ })) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
244
251
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
245
252
  content: orderContent(item, index),
246
253
  overlayStyle: {
@@ -252,9 +259,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref7) {
252
259
  color: "#1890ff",
253
260
  cursor: "pointer"
254
261
  }
255
- }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
262
+ }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
263
+ style: {
264
+ color: color
265
+ }
266
+ }, (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
256
267
  }) : null;
257
268
  };
269
+
258
270
  //bs商品展示 todo
259
271
  export var BsGoodImage = function BsGoodImage(_ref8) {
260
272
  var item = _ref8.item,
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
2
  import React from "react";
3
- declare class CommonSystemOrder implements ComponentInterface {
3
+ declare class CommonMultiStatus implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
@@ -29,4 +29,4 @@ declare class CommonSystemOrder implements ComponentInterface {
29
29
  filterFn: (value: string) => (i: Record) => boolean;
30
30
  }[];
31
31
  }
32
- export default CommonSystemOrder;
32
+ export default CommonMultiStatus;
@@ -35,12 +35,12 @@ var typeMap = {
35
35
  failValue: "失败"
36
36
  }
37
37
  };
38
- var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
38
+ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
39
39
  var _this = this,
40
40
  _typeMap$options$type,
41
41
  _typeMap$options$type2,
42
42
  _this$componentConfig3;
43
- _classCallCheck(this, CommonSystemOrder);
43
+ _classCallCheck(this, CommonMultiStatus);
44
44
  _defineProperty(this, "name", void 0);
45
45
  _defineProperty(this, "id", void 0);
46
46
  _defineProperty(this, "sortField", void 0);
@@ -54,7 +54,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
54
54
  _defineProperty(this, "children", void 0);
55
55
  _defineProperty(this, "dataType", void 0);
56
56
  _defineProperty(this, "renderClient", function (record) {
57
- var _typeMap$_this$type;
57
+ var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
58
58
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
59
59
  return !isNull(item);
60
60
  }) : false;
@@ -63,13 +63,15 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
63
63
  label: _this.name,
64
64
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
65
65
  list: record === null || record === void 0 ? void 0 : record[_this.id],
66
- type: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.type
66
+ valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
67
+ failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
68
+ options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
67
69
  })
68
70
  }) : null;
69
71
  });
70
72
  _defineProperty(this, "renderPc", function (value, record) {
71
- var _typeMap$_this$type2, _typeMap$_this$type3;
72
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
73
+ var _typeMap$_this$type4, _typeMap$_this$type5;
74
+ 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)];
73
75
  //兼容多个商品
74
76
  return /*#__PURE__*/React.createElement("span", {
75
77
  onClick: function onClick(e) {
@@ -77,29 +79,29 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
77
79
  }
78
80
  }, /*#__PURE__*/React.createElement(CommonOrderContent, {
79
81
  list: list,
80
- type: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.type
82
+ type: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.type
81
83
  }));
82
84
  });
83
85
  _defineProperty(this, "renderLog", function (r) {
84
- var _typeMap$_this$type4;
85
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
86
+ var _typeMap$_this$type6;
87
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
86
88
  if (isNull(list)) return null;
87
89
  return _this.renderPc(undefined, r);
88
90
  });
89
91
  _defineProperty(this, "getComponentValue", function (r) {
90
- var _typeMap$_this$type5;
91
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
92
+ var _typeMap$_this$type7;
93
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.key)];
92
94
  });
93
95
  _defineProperty(this, "renderExport", function (value, record) {
94
- var _typeMap$_this$type6;
95
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
96
+ var _typeMap$_this$type8;
97
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
96
98
  return (list || []).map(function (item) {
97
- var _typeMap$_this$type7;
98
- return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.valueKey];
99
+ var _typeMap$_this$type9;
100
+ return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.valueKey];
99
101
  }).join(",");
100
102
  });
101
103
  _defineProperty(this, "editRender", function (p) {
102
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type8;
104
+ var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type10;
103
105
  return /*#__PURE__*/React.createElement(GetFormItem, {
104
106
  title: _this.name,
105
107
  name: _this.id,
@@ -107,23 +109,23 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
107
109
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
108
110
  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,
109
111
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
110
- type: (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.type,
112
+ type: (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.type,
111
113
  failValue: typeMap[_this.type].failValue
112
114
  }))
113
115
  });
114
116
  });
115
117
  _defineProperty(this, "filterConfig", function (item) {
116
- var _typeMap$_this$type9;
118
+ var _typeMap$_this$type11;
117
119
  return [{
118
120
  searchDefaultConditions: SYMBOL.like,
119
121
  type: item.type,
120
- id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.code),
122
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code),
121
123
  name: "".concat(_this.name),
122
124
  filterComponentType: "Input",
123
125
  filterFn: function filterFn(value) {
124
126
  return function (i) {
125
- var _typeMap$_this$type10;
126
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code), value);
127
+ var _typeMap$_this$type12;
128
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.code), value);
127
129
  };
128
130
  }
129
131
  }];
@@ -131,7 +133,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
131
133
  this.name = options.name;
132
134
  this.id = options.id;
133
135
  this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
134
- this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
136
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
135
137
  this.type = options.type;
136
138
  this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
137
139
  options: typeMap[options.type].options
@@ -144,16 +146,16 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
144
146
  required: true,
145
147
  validator: function validator(_, value) {
146
148
  var hasNo = (value || []).some(function (item) {
147
- var _typeMap$_this$type11;
148
- return item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.valueKey];
149
+ var _typeMap$_this$type13;
150
+ return item[(_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.valueKey];
149
151
  });
150
152
  if (!hasNo) {
151
- var _typeMap$_this$type12;
152
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.name)));
153
+ var _typeMap$_this$type14;
154
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.name)));
153
155
  }
154
156
  return Promise.resolve();
155
157
  }
156
158
  }] : [];
157
159
  this.align = "left";
158
160
  });
159
- export default CommonSystemOrder;
161
+ export default CommonMultiStatus;
@@ -58,7 +58,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
58
58
  label: _this.name,
59
59
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
60
60
  list: record === null || record === void 0 ? void 0 : record[_this.id],
61
- type: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.type
61
+ valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey
62
62
  })
63
63
  }) : null;
64
64
  });
@@ -125,7 +125,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
125
125
  this.name = options.name;
126
126
  this.id = options.id;
127
127
  this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
128
- this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
128
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
129
129
  this.type = options.type;
130
130
  this.componentConfig = options.componentConfig;
131
131
  this.isCombinationComponent = false;
@@ -20,9 +20,6 @@ var TRADE_ID_MAP = {
20
20
  },
21
21
  EXCHANGE_TRADE_ID: {
22
22
  key: "exchangeTradeId"
23
- },
24
- RETURN_GOODS_TRADE_ID: {
25
- key: "returnGoodsTradeId"
26
23
  }
27
24
  };
28
25
  var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
@@ -1,18 +1,18 @@
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 StatusSelect 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'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
15
- options: ComponentInterface['options'];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
16
  constructor(options: PickOption);
17
17
  editRender: (p: any) => React.JSX.Element;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -8,69 +8,55 @@ 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';
12
- import { CommonStatus } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { CommonStatus } from "@kmkf-fe-packages/basic-components";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../constant";
17
17
  // const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
18
18
  var selectTypeMap = {
19
19
  REISSUE_STATUS: {
20
20
  options: [{
21
- value: '成功',
22
- label: '成功',
23
- color: '#52c41a'
21
+ value: "成功",
22
+ label: "成功",
23
+ color: "#52c41a"
24
24
  }, {
25
- value: '失败',
26
- label: '失败',
27
- color: '#ff4d4f'
25
+ value: "失败",
26
+ label: "失败",
27
+ color: "#ff4d4f"
28
28
  }],
29
- key: 'reissueStatusValue',
30
- info: 'reissueReason',
31
- failValue: '失败'
29
+ key: "reissueStatusValue",
30
+ info: "reissueReason",
31
+ failValue: "失败"
32
32
  },
33
33
  EXCHANGE_STATUS: {
34
34
  options: [{
35
- value: '成功',
36
- label: '成功',
37
- color: '#52c41a'
35
+ value: "成功",
36
+ label: "成功",
37
+ color: "#52c41a"
38
38
  }, {
39
- value: '失败',
40
- label: '失败',
41
- color: '#ff4d4f'
39
+ value: "失败",
40
+ label: "失败",
41
+ color: "#ff4d4f"
42
42
  }],
43
- key: 'exchangeStatusValue',
44
- info: 'exchangeReason',
45
- failValue: '失败'
43
+ key: "exchangeStatusValue",
44
+ info: "exchangeReason",
45
+ failValue: "失败"
46
46
  },
47
47
  ADJUST_WORK_ORDER_STATUS: {
48
48
  options: [{
49
- value: '成功',
50
- label: '成功',
51
- color: '#52c41a'
49
+ value: "成功",
50
+ label: "成功",
51
+ color: "#52c41a"
52
52
  }, {
53
- value: '失败',
54
- label: '失败',
55
- color: '#ff4d4f'
53
+ value: "失败",
54
+ label: "失败",
55
+ color: "#ff4d4f"
56
56
  }],
57
- key: 'adjustWorkOrderStatusValue',
58
- info: 'adjustWorkOrderReason',
59
- failValue: '失败'
60
- },
61
- RETURN_GOODS_STATUS: {
62
- options: [{
63
- value: '成功',
64
- label: '成功',
65
- color: '#52c41a'
66
- }, {
67
- value: '失败',
68
- label: '失败',
69
- color: '#ff4d4f'
70
- }],
71
- key: 'returnGoodsStatusValue',
72
- info: 'returnGoodsReason',
73
- failValue: '失败'
57
+ key: "adjustWorkOrderStatusValue",
58
+ info: "adjustWorkOrderReason",
59
+ failValue: "失败"
74
60
  }
75
61
  };
76
62
  var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
@@ -107,7 +93,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
107
93
  var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
108
94
  var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
109
95
  return item.value === status;
110
- })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
96
+ })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
111
97
  return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
112
98
  id: _this.id,
113
99
  label: _this.name,
@@ -115,7 +101,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
115
101
  style: {
116
102
  color: statusColor
117
103
  }
118
- }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
104
+ }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
119
105
  }) : null;
120
106
  });
121
107
  _defineProperty(this, "renderPc", function (value, record) {
@@ -123,12 +109,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
123
109
  var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
124
110
  var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
125
111
  return item.value === status;
126
- })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
112
+ })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
127
113
  return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
128
114
  style: {
129
115
  color: statusColor
130
116
  }
131
- }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
117
+ }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
132
118
  });
133
119
  _defineProperty(this, "renderLog", function (r) {
134
120
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
@@ -139,7 +125,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
139
125
  });
140
126
  _defineProperty(this, "renderExport", function (value, record) {
141
127
  var _record;
142
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
128
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
143
129
  });
144
130
  _defineProperty(this, "filterConfig", function (item) {
145
131
  return {
@@ -149,7 +135,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
149
135
  // 过滤组件id
150
136
  name: item.name,
151
137
  // 过滤组件名称
152
- filterComponentType: 'MultipleSelect',
138
+ filterComponentType: "MultipleSelect",
153
139
  props: {
154
140
  options: selectTypeMap[_this.type].options
155
141
  },
@@ -172,7 +158,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
172
158
  this.isCombinationComponent = false;
173
159
  this.canSort = true;
174
160
  this.children = [];
175
- this.dataType = 'string';
161
+ this.dataType = "string";
176
162
  this.options = selectTypeMap[options.type].options;
177
163
  });
178
164
  export default StatusSelect;
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, 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) => HandlerDeadLine | NodeDeadLine | NodeStayDuration | 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 | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus;
3
+ export declare const factory: (type: string, options: PickOption) => Calculation | CommonMultiStatus | CommonSystemOrder | CommonTradeId | 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 | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.17-alpha.27",
3
+ "version": "0.8.17-alpha.29",
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.17-alpha.27",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.27"
29
+ "@kmkf-fe-packages/basic-components": "^0.8.17-alpha.29",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.29"
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": "bfa540a247701811987ae018c84eb7b83d919673"
43
+ "gitHead": "01f01467ce0a333277f19096d36e1fa386c9bcda"
44
44
  }