@kmkf-fe-packages/services-components 0.7.15-alpha.62 → 0.7.15-alpha.65

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.
@@ -32,6 +32,7 @@ declare class ActualPayment implements ComponentInterface {
32
32
  }[];
33
33
  props: {
34
34
  placeholder: string[];
35
+ prefix: string;
35
36
  };
36
37
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
38
  filterFn: (value: string) => (i: Record) => boolean;
@@ -132,7 +132,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
132
132
  }()
133
133
  }],
134
134
  props: {
135
- placeholder: ["\u59CB-".concat(item.name), "\u7EC8-".concat(item.name)]
135
+ placeholder: ["\u59CB-".concat(item.name), "\u7EC8-".concat(item.name)],
136
+ prefix: typeMap[_this.type] === 'bsPackageWeight' ? '' : '¥'
136
137
  },
137
138
  formatFilterValue: function formatFilterValue(val) {
138
139
  if (val !== null && val !== void 0 && val.some(function (v) {
@@ -1,5 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
2
  import React from 'react';
3
+ import { BsHeaderGood } from '../common/index';
3
4
  declare class BsGoods implements ComponentInterface {
4
5
  name: string;
5
6
  id: string;
@@ -13,6 +14,7 @@ declare class BsGoods implements ComponentInterface {
13
14
  canSort: boolean;
14
15
  children: ComponentInterface[];
15
16
  dataType: ComponentInterface['dataType'];
17
+ bsGoods: BsHeaderGood;
16
18
  constructor(options: PickOption);
17
19
  renderClient: (record: any) => React.JSX.Element | null;
18
20
  renderPc: () => null;
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from 'react';
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { BsGoodsTable } from "../../Common";
14
- import { BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
14
+ import { BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType, BsHeaderGood } from "../common/index";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
17
  import { BsGoods as Goods } from '@kmkf-fe-packages/basic-components';
@@ -60,7 +60,6 @@ var childHeaderMap = {
60
60
  };
61
61
  var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
62
62
  var _this = this,
63
- _options$componentCon,
64
63
  _this$componentConfig3;
65
64
  _classCallCheck(this, BsGoods);
66
65
  _defineProperty(this, "name", void 0);
@@ -75,6 +74,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
75
74
  _defineProperty(this, "canSort", void 0);
76
75
  _defineProperty(this, "children", void 0);
77
76
  _defineProperty(this, "dataType", void 0);
77
+ _defineProperty(this, "bsGoods", void 0);
78
78
  _defineProperty(this, "renderClient", function (record) {
79
79
  var _record, _this$componentConfig;
80
80
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -133,15 +133,26 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
133
133
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
134
134
  this.isCombinationComponent = true;
135
135
  this.canSort = false;
136
- this.children = ((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
137
- if (childHeaderMap[next]) {
138
- prv.push(new childHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
139
- name: childHeaderMap[next].name,
140
- id: "".concat(options.id, "_bsGoods_").concat(childHeaderMap[next].key)
141
- })));
142
- }
143
- return prv;
144
- }, []);
136
+ this.bsGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
137
+ id: "".concat(options.id, "_bsGoods"),
138
+ name: '商品信息'
139
+ }));
140
+ this.children = [this.bsGoods];
141
+ // this.children = (options?.componentConfig?.showHeader || []).reduce(
142
+ // (prv: any, next: string) => {
143
+ // if (childHeaderMap[next]) {
144
+ // prv.push(
145
+ // new childHeaderMap[next].component({
146
+ // ...options,
147
+ // name: childHeaderMap[next].name,
148
+ // id: `${options.id}_bsGoods_${childHeaderMap[next].key}`,
149
+ // }),
150
+ // );
151
+ // }
152
+ // return prv;
153
+ // },
154
+ // [],
155
+ // );
145
156
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
146
157
  this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
147
158
  required: true,
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
2
  import React from 'react';
3
- import { BsType, BsMemo } from '../common/index';
3
+ import { BsType, BsMemo, BsHeaderGood } from '../common/index';
4
4
  declare class BsReissue implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
@@ -16,6 +16,7 @@ declare class BsReissue implements ComponentInterface {
16
16
  dataType: ComponentInterface['dataType'];
17
17
  bsType: BsType;
18
18
  bsMemo: BsMemo;
19
+ reissueGoods: BsHeaderGood;
19
20
  constructor(options: PickOption);
20
21
  renderClient: (record: any) => React.JSX.Element | null;
21
22
  renderPc: () => null;
@@ -1,10 +1,4 @@
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
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; }
9
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; }
10
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); }
@@ -21,7 +15,7 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
21
15
  import { BsReissue as Reissue } from '@kmkf-fe-packages/basic-components';
22
16
  import { SYMBOL } from "../../../constant";
23
17
  import { BsGoodsTable } from "../../Common";
24
- import { BsType, BsMemo, BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
18
+ import { BsType, BsMemo, BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType, BsHeaderGood } from "../common/index";
25
19
  var childHeaderMap = {
26
20
  pic: {
27
21
  component: BsHeaderPic,
@@ -66,7 +60,6 @@ var childHeaderMap = {
66
60
  };
67
61
  var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
68
62
  var _this = this,
69
- _options$componentCon,
70
63
  _this$componentConfig3;
71
64
  _classCallCheck(this, BsReissue);
72
65
  _defineProperty(this, "name", void 0);
@@ -83,6 +76,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
83
76
  _defineProperty(this, "dataType", void 0);
84
77
  _defineProperty(this, "bsType", void 0);
85
78
  _defineProperty(this, "bsMemo", void 0);
79
+ _defineProperty(this, "reissueGoods", void 0);
86
80
  _defineProperty(this, "renderClient", function (record) {
87
81
  var _this$componentConfig;
88
82
  console.log('bsreissue', record);
@@ -173,15 +167,28 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
173
167
  id: "".concat(options.id, "_bsReissueType_memo"),
174
168
  name: '补发备注'
175
169
  }));
176
- this.children = [this.bsType, this.bsMemo].concat(_toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
177
- if (childHeaderMap[next]) {
178
- prv.push(new childHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
179
- name: childHeaderMap[next].name,
180
- id: "".concat(options.id, "_bsReissueGoods_").concat(childHeaderMap[next].key)
181
- })));
182
- }
183
- return prv;
184
- }, [])));
170
+ this.reissueGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
171
+ id: "".concat(options.id, "_bsReissueGoods"),
172
+ name: '商品信息'
173
+ }));
174
+ this.children = [this.bsType, this.bsMemo, this.reissueGoods
175
+ // ...(options?.componentConfig?.showHeader || []).reduce(
176
+ // (prv: any, next: string) => {
177
+ // if (childHeaderMap[next]) {
178
+ // prv.push(
179
+ // new childHeaderMap[next].component({
180
+ // ...options,
181
+ // name: childHeaderMap[next].name,
182
+ // id: `${options.id}_bsReissueGoods_${childHeaderMap[next].key}`,
183
+ // }),
184
+ // );
185
+ // }
186
+ // return prv;
187
+ // },
188
+ // [],
189
+ // ),
190
+ ];
191
+
185
192
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
186
193
  this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
187
194
  required: true,
@@ -54,6 +54,7 @@ var BsChildCode = /*#__PURE__*/_createClass(function BsChildCode(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['code'] && prv.push(next['code']);
@@ -54,6 +54,7 @@ var BsChildMoney = /*#__PURE__*/_createClass(function BsChildMoney(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['money'] && prv.push(next['money']);
@@ -54,6 +54,7 @@ var BsChildName = /*#__PURE__*/_createClass(function BsChildName(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['name'] && prv.push(next['name']);
@@ -54,6 +54,7 @@ var BsChildCode = /*#__PURE__*/_createClass(function BsChildCode(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['number'] && prv.push(next['number']);
@@ -16,8 +16,8 @@ declare class BsChildPic implements ComponentInterface {
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: Record) => React.JSX.Element[];
20
- renderLog: (r: Record) => React.JSX.Element[] | null;
19
+ renderPc: (value: unknown, record: Record) => React.JSX.Element | React.JSX.Element[];
20
+ renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
21
21
  getComponentValue: (r: Record) => any;
22
22
  renderExport: (value: string, record: Record) => any;
23
23
  editRender: () => null;
@@ -12,6 +12,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
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
14
  import React from 'react';
15
+ import { Image } from 'antd';
15
16
  import ItemView from "../../../commonComponents/ItemView";
16
17
  import { BsGoodPic } from "../../Common";
17
18
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
@@ -46,7 +47,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
46
47
  }) : null;
47
48
  });
48
49
  _defineProperty(this, "renderPc", function (value, record) {
49
- var _BsGoodPic;
50
+ var _Image, _BsGoodPic;
51
+ return (_Image = /*#__PURE__*/React.createElement(Image, {
52
+ width: 60,
53
+ src: _this.getComponentValue(record)
54
+ })) !== null && _Image !== void 0 ? _Image : '--';
50
55
  return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
51
56
  });
52
57
  _defineProperty(this, "renderLog", function (r) {
@@ -55,6 +60,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
55
60
  return _this.renderPc(undefined, r);
56
61
  });
57
62
  _defineProperty(this, "getComponentValue", function (r) {
63
+ return r === null || r === void 0 ? void 0 : r[_this.id];
58
64
  var id = _this.getParentId();
59
65
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
60
66
  next['pic'] && prv.push(next['pic']);
@@ -54,6 +54,7 @@ var BsChildShare = /*#__PURE__*/_createClass(function BsChildShare(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['share'] && prv.push(next['share']);
@@ -54,6 +54,7 @@ var BsChildSku = /*#__PURE__*/_createClass(function BsChildSku(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['sku'] && prv.push(next['sku']);
@@ -54,6 +54,7 @@ var BsChildType = /*#__PURE__*/_createClass(function BsChildType(options) {
54
54
  return _this.renderPc(undefined, r);
55
55
  });
56
56
  _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r[_this.id];
57
58
  var id = _this.getParentId();
58
59
  var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
59
60
  next['type'] && prv.push(next['type']);
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
+ import React from 'react';
3
3
  declare type Value = string | string[] | undefined;
4
4
  declare class BasicDataTime implements ComponentInterface {
5
5
  name: string;
@@ -8,14 +8,14 @@ declare class BasicDataTime implements ComponentInterface {
8
8
  type: string;
9
9
  rules: any[];
10
10
  showContains: boolean;
11
- componentConfig: ComponentInterface["componentConfig"];
11
+ componentConfig: ComponentInterface['componentConfig'];
12
12
  isCombinationComponent: boolean;
13
13
  formField: string;
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataMap: Record;
17
- dataType: ComponentInterface["dataType"];
18
- format: ComponentInterface["format"];
17
+ dataType: ComponentInterface['dataType'];
18
+ format: ComponentInterface['format'];
19
19
  constructor(options: PickOption);
20
20
  render: (value: Value) => React.JSX.Element;
21
21
  renderClient: (record: any) => React.JSX.Element | null;
@@ -6,21 +6,21 @@ 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 moment from "moment";
9
+ import React from 'react';
10
+ import moment from 'moment';
11
11
  import { DateTime } from "../DataTime";
12
12
  import GetFormItem from "../GetFormItem";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
15
  import { SYMBOL } from "../../constant";
16
16
  var typeMap = {
17
- TRADE_CREATE_DATETIME: "tradeCreateDateTime",
18
- TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
19
- TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
20
- TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
21
- BS_SIGNING_TIME: "bsSigningTime",
22
- BS_SEND_TIME: "bsSendTime",
23
- BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
17
+ TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
18
+ TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
19
+ TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
20
+ TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
21
+ BS_SIGNING_TIME: 'bsSigningTime',
22
+ BS_SEND_TIME: 'bsSendTime',
23
+ BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
24
24
  };
25
25
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
26
26
  var _this = this;
@@ -40,7 +40,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
40
40
  _defineProperty(this, "dataType", void 0);
41
41
  _defineProperty(this, "format", void 0);
42
42
  _defineProperty(this, "render", function (value) {
43
- return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join("~") : /*#__PURE__*/React.createElement("span", null, value));
43
+ return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
44
44
  });
45
45
  _defineProperty(this, "renderClient", function (record) {
46
46
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -52,7 +52,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
52
52
  _defineProperty(this, "renderPc", function (value, record) {
53
53
  var _record;
54
54
  var type = _this.type;
55
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : "--");
55
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.dataMap[type])]) !== null && _record !== void 0 ? _record : '--');
56
56
  });
57
57
  _defineProperty(this, "renderLog", function (r) {
58
58
  var type = _this.type;
@@ -66,7 +66,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
66
66
  _defineProperty(this, "renderExport", function (value, record) {
67
67
  var _record2;
68
68
  var type = _this.type;
69
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : "--";
69
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
70
70
  });
71
71
  _defineProperty(this, "editRender", function (p) {
72
72
  var _this$componentConfig, _this$componentConfig2;
@@ -94,7 +94,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
94
94
  // 过滤组件id
95
95
  name: item.name,
96
96
  // 过滤组件名称
97
- filterComponentType: "Date",
97
+ filterComponentType: 'Date',
98
98
  filterFn: function filterFn(value) {
99
99
  return function (i) {
100
100
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
@@ -104,13 +104,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
104
104
  formatFilterValue: function formatFilterValue(val) {
105
105
  if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
106
106
  return val === null || val === void 0 ? void 0 : val.map(function (v) {
107
- return moment(v).startOf("second").valueOf();
107
+ return moment(v).startOf('second').valueOf();
108
108
  });
109
109
  }
110
110
  }
111
111
  };
112
- if ((_ref = ["BS_SIGNING_TIME", "BS_SEND_TIME", "BS_TRADE_PAYMENT_TIME"]) !== null && _ref !== void 0 && _ref.includes(item.type)) {
113
- params.componentDataType = "dataTime";
112
+ if ((_ref = ['BS_SIGNING_TIME', 'BS_SEND_TIME', 'BS_TRADE_PAYMENT_TIME']) !== null && _ref !== void 0 && _ref.includes(item.type)) {
113
+ params.componentDataType = 'dateTime';
114
114
  }
115
115
  return params;
116
116
  });
@@ -120,21 +120,21 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
120
120
  this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
121
121
  this.type = options.type;
122
122
  this.showContains = false;
123
- this.dataType = "string";
124
- this.format = "dateTime";
123
+ this.dataType = 'string';
124
+ this.format = 'dateTime';
125
125
  this.componentConfig = options.componentConfig;
126
126
  this.rules = [];
127
127
  this.isCombinationComponent = false;
128
128
  this.canSort = true;
129
129
  this.children = [];
130
130
  this.dataMap = {
131
- TRADE_CREATE_DATETIME: "tradeCreateDateTime",
132
- TRADE_PAYMENT_DATETIME: "tradePaymentDateTime",
133
- TRADE_DELIVERY_DATETIME: "tradeDeliveryDateTime",
134
- TRADE_CLOSING_DATETIME: "tradeClosingDateTime",
135
- BS_SIGNING_TIME: "bsSigningTime",
136
- BS_SEND_TIME: "bsSendTime",
137
- BS_TRADE_PAYMENT_TIME: "bsTradePaymentTime"
131
+ TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
132
+ TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
133
+ TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
134
+ TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
135
+ BS_SIGNING_TIME: 'bsSigningTime',
136
+ BS_SEND_TIME: 'bsSendTime',
137
+ BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime'
138
138
  };
139
139
  });
140
140
  export default BasicDataTime;
@@ -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 } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsExchange | BasicFile | JstLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | 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 | BsGoods | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsReissue | BuyerNick | BasicCascader | BasicCheckbox | CommonDataTime | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.15-alpha.62",
3
+ "version": "0.7.15-alpha.65",
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.7.15-alpha.62",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.62"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.65",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.65"
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": "6b726e827ca34ded9025522623713130f0f77037"
43
+ "gitHead": "0f431208a98f7579499d0803badf695085888ec9"
44
44
  }