@kmkf-fe-packages/services-components 0.23.1-beta.3 → 0.23.1-beta.4

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,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
3
  declare class BsMemo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface["componentConfig"];
8
+ componentConfig: ComponentInterface['componentConfig'];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
15
+ dataType: ComponentInterface['dataType'];
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (r: any) => React.JSX.Element | null;
@@ -11,13 +11,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
- import React from "react";
14
+ import React from 'react';
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
17
  var componentType = {
18
- BS_EXCHANGE_GOODS: "bsExchangeType",
19
- BS_REISSUE_GOODS: "bsReissueType",
20
- BS_RETURN_GOODS: "bsReturnType"
18
+ BS_EXCHANGE_GOODS: 'bsExchangeType',
19
+ BS_REISSUE_GOODS: 'bsReissueType',
20
+ BS_RETURN_GOODS: 'bsReturnType',
21
+ WDT_REISSUE_GOODS: 'wdtReissueType'
21
22
  };
22
23
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
23
24
  var _this = this;
@@ -35,7 +36,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
35
36
  _defineProperty(this, "children", void 0);
36
37
  _defineProperty(this, "dataType", void 0);
37
38
  _defineProperty(this, "getParentId", function () {
38
- var _this$id$split = _this.id.split("_"),
39
+ var _this$id$split = _this.id.split('_'),
39
40
  _this$id$split2 = _slicedToArray(_this$id$split, 2),
40
41
  key = _this$id$split2[0],
41
42
  name = _this$id$split2[1];
@@ -43,14 +44,14 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
43
44
  });
44
45
  _defineProperty(this, "renderClient", function (r) {
45
46
  var _r$key$componentType$, _r$key, _r$key$componentType$2, _r$key2, _r$key2$componentType, _find, _this$componentConfig, _find2;
46
- var _this$getParentId$spl = _this.getParentId().split("_"),
47
+ var _this$getParentId$spl = _this.getParentId().split('_'),
47
48
  _this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
48
49
  key = _this$getParentId$spl2[0];
49
50
  if (!(r !== null && r !== void 0 && (_r$key$componentType$ = r[key][componentType[_this.type]]) !== null && _r$key$componentType$ !== void 0 && _r$key$componentType$.length)) {
50
51
  return null;
51
52
  }
52
- var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : "";
53
- var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : "";
53
+ var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : '';
54
+ var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : '';
54
55
  var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
55
56
  return item.value === type;
56
57
  })) === null || _find === void 0 ? void 0 : _find.children;
@@ -65,7 +66,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
65
66
  });
66
67
  _defineProperty(this, "renderPc", function (value, record) {
67
68
  var _this$getComponentVal;
68
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
69
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
69
70
  });
70
71
  _defineProperty(this, "renderLog", function (r) {
71
72
  var id = _this.getParentId();
@@ -75,8 +76,8 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
75
76
  _defineProperty(this, "getComponentValue", function (r) {
76
77
  var _r$id, _r$id2, _find3, _this$componentConfig2, _find4;
77
78
  var id = _this.getParentId();
78
- var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
79
- var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : "";
79
+ var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : '';
80
+ var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : '';
80
81
  var children = (_find3 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
81
82
  return item.value === type;
82
83
  })) === null || _find3 === void 0 ? void 0 : _find3.children;
@@ -87,7 +88,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
87
88
  });
88
89
  _defineProperty(this, "renderExport", function (value, record) {
89
90
  var _this$getComponentVal2;
90
- return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
91
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
91
92
  });
92
93
  _defineProperty(this, "editRender", function () {
93
94
  return null;
@@ -101,11 +102,11 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
101
102
  this.formField = options.id;
102
103
  this.type = options.type;
103
104
  this.componentConfig = options.componentConfig;
104
- this.align = "left";
105
+ this.align = 'left';
105
106
  this.width = 140;
106
107
  this.isCombinationComponent = false;
107
108
  this.canSort = false;
108
- this.dataType = "string";
109
+ this.dataType = 'string';
109
110
  this.children = [];
110
111
  });
111
112
  export default BsMemo;
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
- import React from "react";
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
3
  declare class BsType implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
- componentConfig: ComponentInterface["componentConfig"];
8
+ componentConfig: ComponentInterface['componentConfig'];
9
9
  align: ALignType;
10
10
  width: number;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface["dataType"];
15
+ dataType: ComponentInterface['dataType'];
16
16
  constructor(options: PickOption);
17
17
  getParentId: () => string;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -11,14 +11,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
- import React from "react";
14
+ import React from 'react';
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 componentType = {
19
- BS_EXCHANGE_GOODS: "bsExchangeType",
20
- BS_REISSUE_GOODS: "bsReissueType",
21
- BS_RETURN_GOODS: "bsReturnType"
19
+ BS_EXCHANGE_GOODS: 'bsExchangeType',
20
+ BS_REISSUE_GOODS: 'bsReissueType',
21
+ BS_RETURN_GOODS: 'bsReturnType',
22
+ WDT_REISSUE_GOODS: 'wdtReissueType'
22
23
  };
23
24
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
24
25
  var _this = this;
@@ -36,7 +37,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
36
37
  _defineProperty(this, "children", void 0);
37
38
  _defineProperty(this, "dataType", void 0);
38
39
  _defineProperty(this, "getParentId", function () {
39
- var _this$id$split = _this.id.split("_"),
40
+ var _this$id$split = _this.id.split('_'),
40
41
  _this$id$split2 = _slicedToArray(_this$id$split, 2),
41
42
  key = _this$id$split2[0],
42
43
  name = _this$id$split2[1];
@@ -44,7 +45,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
44
45
  });
45
46
  _defineProperty(this, "renderClient", function (record) {
46
47
  var _record$key$component, _find, _this$componentConfig;
47
- var _this$getParentId$spl = _this.getParentId().split("_"),
48
+ var _this$getParentId$spl = _this.getParentId().split('_'),
48
49
  _this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
49
50
  key = _this$getParentId$spl2[0];
50
51
  if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
@@ -62,7 +63,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
62
63
  });
63
64
  _defineProperty(this, "renderPc", function (value, record) {
64
65
  var _this$getComponentVal;
65
- return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
66
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
66
67
  });
67
68
  _defineProperty(this, "renderLog", function (r) {
68
69
  var id = _this.getParentId();
@@ -72,7 +73,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
72
73
  _defineProperty(this, "getComponentValue", function (r) {
73
74
  var _r$id, _find2, _this$componentConfig2;
74
75
  var id = _this.getParentId();
75
- var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
76
+ var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : '';
76
77
  var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
77
78
  return item.value === type;
78
79
  })) === null || _find2 === void 0 ? void 0 : _find2.label;
@@ -80,7 +81,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
80
81
  });
81
82
  _defineProperty(this, "renderExport", function (value, record) {
82
83
  var _this$getComponentVal2;
83
- return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
84
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
84
85
  });
85
86
  _defineProperty(this, "editRender", function () {
86
87
  return null;
@@ -94,7 +95,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
94
95
  type: item.type,
95
96
  id: _this.id,
96
97
  name: "".concat(item.name, "-\u7C7B\u578B"),
97
- filterComponentType: "Cascader",
98
+ filterComponentType: 'Cascader',
98
99
  props: {
99
100
  options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
100
101
  },
@@ -116,11 +117,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
116
117
  this.formField = options.id;
117
118
  this.type = options.type;
118
119
  this.componentConfig = options.componentConfig;
119
- this.align = "left";
120
+ this.align = 'left';
120
121
  this.width = 140;
121
122
  this.isCombinationComponent = false;
122
123
  this.canSort = false;
123
- this.dataType = "string";
124
+ this.dataType = 'string';
124
125
  this.children = [];
125
126
  });
126
127
  export default BsType;
@@ -23,10 +23,11 @@ export declare const BsGoodImage: ({ item, index }: {
23
23
  }) => React.JSX.Element;
24
24
  export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
25
25
  export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
26
- export declare const BsGoodsTable: ({ list, showHeader, text, }: {
26
+ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
27
27
  list: any[];
28
28
  showHeader: string[];
29
29
  text?: string | undefined;
30
+ type?: string | undefined;
30
31
  }) => React.JSX.Element;
31
32
  export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
32
33
  export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
@@ -358,78 +358,178 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
358
358
  var list = _ref11.list,
359
359
  showHeader = _ref11.showHeader,
360
360
  _ref11$text = _ref11.text,
361
- text = _ref11$text === void 0 ? '' : _ref11$text;
361
+ text = _ref11$text === void 0 ? '' : _ref11$text,
362
+ type = _ref11.type;
362
363
  //商品信息
363
- var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
364
+
365
+ var COLUMNS_MAP = function COLUMNS_MAP() {
364
366
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
365
- return [{
366
- dataIndex: 'mark',
367
- title: "\u5546\u54C1\u6807\u8BB0",
368
- align: 'center',
369
- ellipsis: true,
370
- width: 100
371
- }, {
372
- dataIndex: 'skuName',
373
- title: "".concat(text, "sku\u540D\u79F0"),
374
- align: 'center',
375
- ellipsis: true,
376
- width: 200
377
- }, {
378
- dataIndex: 'sku',
379
- title: "".concat(text, "sku\u7F16\u7801"),
380
- align: 'center',
381
- ellipsis: true,
382
- width: 100
383
- }, {
384
- dataIndex: 'name',
385
- title: "".concat(text, "\u540D\u79F0"),
386
- align: 'center',
387
- ellipsis: true,
388
- width: 200
389
- }, {
390
- dataIndex: 'pic',
391
- title: "\u56FE\u7247",
392
- align: 'center',
393
- ellipsis: true,
394
- width: 100,
395
- render: function render(val) {
396
- return /*#__PURE__*/React.createElement(Image, {
397
- width: 60,
398
- src: val
399
- });
367
+ return function (type) {
368
+ var columns = [];
369
+ switch (type) {
370
+ case 'WDT_REISSUE_GOODS':
371
+ case 'WDT_GOODS':
372
+ columns = [{
373
+ dataIndex: 'goodId',
374
+ title: "SPUID",
375
+ align: 'center',
376
+ ellipsis: true,
377
+ width: 70
378
+ }, {
379
+ dataIndex: 'goodNo',
380
+ title: "SPU\u5546\u54C1\u7F16\u7801",
381
+ align: 'center',
382
+ ellipsis: true,
383
+ width: 100
384
+ }, {
385
+ dataIndex: 'specId',
386
+ title: "".concat(text, "SKUID"),
387
+ align: 'center',
388
+ ellipsis: true,
389
+ width: 100
390
+ }, {
391
+ dataIndex: 'goodName',
392
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
393
+ align: 'center',
394
+ ellipsis: true,
395
+ width: 250
396
+ }, {
397
+ dataIndex: 'specNo',
398
+ title: "".concat(text, "sku\u7F16\u7801"),
399
+ align: 'center',
400
+ ellipsis: true,
401
+ width: 100
402
+ }, {
403
+ dataIndex: 'specName',
404
+ title: "".concat(text, "sku\u540D\u79F0"),
405
+ align: 'center',
406
+ ellipsis: true,
407
+ width: 250
408
+ }, {
409
+ dataIndex: 'imgUrl',
410
+ title: "\u56FE\u7247",
411
+ align: 'center',
412
+ ellipsis: true,
413
+ width: 100,
414
+ render: function render(val) {
415
+ return /*#__PURE__*/React.createElement(Image, {
416
+ width: 60,
417
+ src: val
418
+ });
419
+ }
420
+ }, {
421
+ dataIndex: 'orderPrice',
422
+ title: "\u5B9E\u4ED8\u91D1\u989D",
423
+ align: 'center',
424
+ ellipsis: true,
425
+ width: 100
426
+ }, {
427
+ dataIndex: 'num',
428
+ title: "".concat(text, "\u4E0B\u5355\u6570\u91CF"),
429
+ align: 'center',
430
+ ellipsis: true,
431
+ width: 100
432
+ }, {
433
+ dataIndex: 'actualNum',
434
+ title: "".concat(text, "\u5B9E\u53D1\u6570\u91CF"),
435
+ align: 'center',
436
+ ellipsis: true,
437
+ width: 100
438
+ }, {
439
+ dataIndex: 'sharePrice',
440
+ title: "\u5206\u644A\u4EF7",
441
+ align: 'center',
442
+ ellipsis: true,
443
+ width: 70
444
+ }, {
445
+ dataIndex: 'giftType',
446
+ title: "\u8D60\u54C1\u7C7B\u578B",
447
+ align: 'center',
448
+ ellipsis: true,
449
+ width: 100
450
+ }];
451
+ break;
452
+ default:
453
+ columns = [{
454
+ dataIndex: 'mark',
455
+ title: "\u5546\u54C1\u6807\u8BB0",
456
+ align: 'center',
457
+ ellipsis: true,
458
+ width: 100
459
+ }, {
460
+ dataIndex: 'skuName',
461
+ title: "".concat(text, "sku\u540D\u79F0"),
462
+ align: 'center',
463
+ ellipsis: true,
464
+ width: 200
465
+ }, {
466
+ dataIndex: 'sku',
467
+ title: "".concat(text, "sku\u7F16\u7801"),
468
+ align: 'center',
469
+ ellipsis: true,
470
+ width: 100
471
+ }, {
472
+ dataIndex: 'name',
473
+ title: "".concat(text, "\u540D\u79F0"),
474
+ align: 'center',
475
+ ellipsis: true,
476
+ width: 200
477
+ }, {
478
+ dataIndex: 'pic',
479
+ title: "\u56FE\u7247",
480
+ align: 'center',
481
+ ellipsis: true,
482
+ width: 100,
483
+ render: function render(val) {
484
+ return /*#__PURE__*/React.createElement(Image, {
485
+ width: 60,
486
+ src: val
487
+ });
488
+ }
489
+ }, {
490
+ dataIndex: 'code',
491
+ title: "".concat(text, "\u7F16\u7801"),
492
+ align: 'center',
493
+ ellipsis: true,
494
+ width: 100
495
+ }, {
496
+ dataIndex: 'money',
497
+ title: "\u5B9E\u4ED8\u91D1\u989D",
498
+ align: 'center',
499
+ ellipsis: true,
500
+ width: 100
501
+ }, {
502
+ dataIndex: 'number',
503
+ title: "".concat(text, "\u6570\u91CF"),
504
+ align: 'center',
505
+ ellipsis: true,
506
+ width: 100
507
+ }, {
508
+ dataIndex: 'share',
509
+ title: "\u5206\u644A\u4EF7",
510
+ align: 'center',
511
+ ellipsis: true,
512
+ width: 70
513
+ }, {
514
+ dataIndex: 'type',
515
+ title: "\u8D60\u54C1\u7C7B\u578B",
516
+ align: 'center',
517
+ ellipsis: true,
518
+ width: 100
519
+ }];
400
520
  }
401
- }, {
402
- dataIndex: 'code',
403
- title: "".concat(text, "\u7F16\u7801"),
404
- align: 'center',
405
- ellipsis: true,
406
- width: 100
407
- }, {
408
- dataIndex: 'money',
409
- title: "\u5B9E\u4ED8\u91D1\u989D",
410
- align: 'center',
411
- ellipsis: true,
412
- width: 100
413
- }, {
414
- dataIndex: 'number',
415
- title: "".concat(text, "\u6570\u91CF"),
416
- align: 'center',
417
- ellipsis: true,
418
- width: 100
419
- }, {
420
- dataIndex: 'share',
421
- title: "\u5206\u644A\u4EF7",
422
- align: 'center',
423
- ellipsis: true,
424
- width: 70
425
- }, {
426
- dataIndex: 'type',
427
- title: "\u8D60\u54C1\u7C7B\u578B",
428
- align: 'center',
429
- ellipsis: true,
430
- width: 100
431
- }];
521
+ return columns;
522
+ };
523
+ };
524
+ //商品信息
525
+ var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
526
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
527
+ var COLUMNS_INFO = COLUMNS_MAP(text);
528
+ return COLUMNS_INFO(type);
432
529
  };
530
+ // const GOODS_INFO_COLUMNS = (text = '') => {
531
+ // return
532
+ // }
433
533
  var newColumns = useMemo(function () {
434
534
  var columnList = [{
435
535
  dataIndex: '',
@@ -0,0 +1,33 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import { BsHeaderGood } from "../../BS/common/index";
4
+ declare class WdtGoods implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ effects: ComponentInterface["effects"];
12
+ isCombinationComponent: boolean;
13
+ formField: string;
14
+ canSort: boolean;
15
+ children: ComponentInterface[];
16
+ dataType: ComponentInterface["dataType"];
17
+ wdtGoods: BsHeaderGood;
18
+ constructor(options: PickOption);
19
+ renderClient: (record: any) => React.JSX.Element | null;
20
+ renderPc: () => null;
21
+ renderLog: (r: Record) => React.JSX.Element | null;
22
+ getComponentValue: (r: Record) => any;
23
+ renderExport: () => null;
24
+ editRender: (p: any) => React.JSX.Element;
25
+ filterConfig: (item: ColumnConfig) => {
26
+ searchDefaultConditions: "like";
27
+ type: string;
28
+ id: string;
29
+ name: string;
30
+ filterComponentType: "Input";
31
+ }[];
32
+ }
33
+ export default WdtGoods;
@@ -0,0 +1,121 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
+ import React from "react";
12
+ import GetFormItem from "../../GetFormItem";
13
+ import { BsGoodsTable } from "../../Common";
14
+ import { BsHeaderGood } from "../../BS/common/index";
15
+ import ItemView from "../../../commonComponents/ItemView";
16
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
+ import { SYMBOL } from "../../../constant";
19
+ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
20
+ var _this = this,
21
+ _this$componentConfig4;
22
+ _classCallCheck(this, WdtGoods);
23
+ _defineProperty(this, "name", void 0);
24
+ _defineProperty(this, "id", void 0);
25
+ _defineProperty(this, "sortField", void 0);
26
+ _defineProperty(this, "type", void 0);
27
+ _defineProperty(this, "rules", void 0);
28
+ _defineProperty(this, "componentConfig", void 0);
29
+ _defineProperty(this, "effects", void 0);
30
+ _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
32
+ _defineProperty(this, "canSort", void 0);
33
+ _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "wdtGoods", void 0);
36
+ _defineProperty(this, "renderClient", function (record) {
37
+ var _record, _this$componentConfig;
38
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
39
+ id: _this.id,
40
+ label: _this.name,
41
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
42
+ type: _this.type,
43
+ list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.wdtGoods) || [],
44
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
45
+ })
46
+ })) : null;
47
+ });
48
+ _defineProperty(this, "renderPc", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "renderLog", function (r) {
52
+ var _this$componentConfig2;
53
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")])) return null;
54
+ return /*#__PURE__*/React.createElement(BsGoodsTable, {
55
+ type: _this.type,
56
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")]) || [],
57
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
58
+ });
59
+ });
60
+ _defineProperty(this, "getComponentValue", function (r) {
61
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtGoods")];
62
+ });
63
+ _defineProperty(this, "renderExport", function () {
64
+ return null;
65
+ });
66
+ _defineProperty(this, "editRender", function (p) {
67
+ var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
68
+ return /*#__PURE__*/React.createElement(GetFormItem, {
69
+ title: _this.name,
70
+ name: _this.id,
71
+ rules: _this.rules,
72
+ required: false,
73
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
+ component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
75
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
76
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
77
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
78
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
79
+ type: _this.type,
80
+ width: "90%"
81
+ }))
82
+ });
83
+ });
84
+ _defineProperty(this, "filterConfig", function (item) {
85
+ return [{
86
+ searchDefaultConditions: SYMBOL.like,
87
+ type: item.type,
88
+ id: "".concat(item.id, "_wdtGoods"),
89
+ // 过滤组件id
90
+ name: item.name,
91
+ // 过滤组件名称
92
+ filterComponentType: "Input"
93
+ }];
94
+ });
95
+ this.name = options.name;
96
+ this.id = options.id;
97
+ this.sortField = "".concat(options.id, "_wdtGoods");
98
+ this.formField = "".concat(options.id, "_wdtGoods");
99
+ this.type = options.type;
100
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
101
+ this.isCombinationComponent = true;
102
+ this.canSort = false;
103
+ this.wdtGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
104
+ id: "".concat(options.id, "_wdtGoods"),
105
+ name: "商品信息"
106
+ }));
107
+ this.children = [this.wdtGoods];
108
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
109
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
110
+ required: true,
111
+ validator: function validator(_, value) {
112
+ var _value$wdtGoods;
113
+ if (!value || !(value !== null && value !== void 0 && (_value$wdtGoods = value.wdtGoods) !== null && _value$wdtGoods !== void 0 && _value$wdtGoods.length)) {
114
+ return Promise.reject(new Error("请选择旺店通商品"));
115
+ }
116
+ return Promise.resolve();
117
+ }
118
+ }] : [];
119
+ this.dataType = "object";
120
+ });
121
+ export default WdtGoods;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } 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, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsReissue | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | BasicInput | JstLogistics | JstSendGood | Logistics | LogisticsMoreTrajectory | Payment | TradeId | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSupply | BsGoods | BsExchange | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | BasicInput | JstLogistics | Logistics | LogisticsMoreTrajectory | Payment | TradeId | WdtGoods | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | MsgStatus;
@@ -1,6 +1,6 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -125,6 +125,7 @@ export var factory = function factory(type, options) {
125
125
  return new JstSupply(options);
126
126
  case "BS_SYSTEM_ORDER":
127
127
  case "WLN_SYSTEM_ORDER":
128
+ case "WDT_SYSTEM_ORDER":
128
129
  return new BsSystemOrder(options);
129
130
  case "JST_SEND_GOOD":
130
131
  case "BS_SEND_GOOD":
@@ -134,7 +135,6 @@ export var factory = function factory(type, options) {
134
135
  case "BS_POSTING":
135
136
  return new BsPosting(options);
136
137
  case "BS_GOODS":
137
- // case "WDT_GOODS":
138
138
  return new BsGoods(options);
139
139
  case "BS_EXCHANGE_GOODS":
140
140
  return new BsExchange(options);
@@ -171,20 +171,23 @@ export var factory = function factory(type, options) {
171
171
  // case "REISSUE_TRADE_ID":
172
172
  // case 'EXCHANGE_TRADE_ID':
173
173
  // return new CommonTradeId(options);
174
- case "NUMERICAL_CALCULATION":
174
+ case 'NUMERICAL_CALCULATION':
175
175
  return new Calculation(options);
176
- case "NODE_DEAD_LINE_INPUT":
176
+ case 'NODE_DEAD_LINE_INPUT':
177
177
  // 工单时效
178
178
  return new NodeDeadLine(options);
179
- case "HANDLER_DEAD_LINE_INPUT":
179
+ case 'HANDLER_DEAD_LINE_INPUT':
180
180
  // 处理人时效
181
181
  return new HandlerDeadLine(options);
182
- case "NODE_STAY_DURATION_INPUT":
182
+ case 'NODE_STAY_DURATION_INPUT':
183
183
  // 工单停留时长
184
184
  return new NodeStayDuration(options);
185
- case "WLN_GOODS":
185
+ case 'WLN_GOODS':
186
186
  // 万里牛商品
187
187
  return new WlnGoods(options);
188
+ case 'WDT_GOODS':
189
+ // 万里牛商品
190
+ return new WdtGoods(options);
188
191
  default:
189
192
  return new BasicInput(options);
190
193
  }
@@ -69,7 +69,8 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
69
69
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
70
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
71
71
  export { default as BsPosting } from "./components/BS/BsPosting";
72
- export { default as MsgStatus } from "./components/MsgStatus";
72
+ export { default as MsgStatus } from './components/MsgStatus';
73
+ export { default as WdtGoods } from "./components/WDT/WdtGoods";
73
74
  export { factory } from "./factory";
74
75
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
75
76
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -70,6 +70,7 @@ export { default as NodeStayDuration } from "./components/NodeStayDuration";
70
70
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
71
71
  export { default as BsPosting } from "./components/BS/BsPosting";
72
72
  export { default as MsgStatus } from "./components/MsgStatus";
73
+ export { default as WdtGoods } from "./components/WDT/WdtGoods";
73
74
  export { factory } from "./factory";
74
75
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
75
76
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.23.1-beta.3",
3
+ "version": "0.23.1-beta.4",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.23.1-beta.3",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.3"
23
+ "@kmkf-fe-packages/basic-components": "^0.23.1-beta.4",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "0402084934b9b8e089b5d0f6b0679059653bf189",
40
+ "gitHead": "56b3acff5ed4c12ca1c75551c33ada7769547a18",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }