@kmkf-fe-packages/services-components 0.23.1-beta.6 → 0.23.1-beta.8

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,6 +1,7 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
2
  import React from 'react';
3
3
  import { BsType, BsMemo, BsHeaderGood } from '../common/index';
4
+ import CommonHeaderGoods from '../../CommonHeaderGood';
4
5
  declare class BsReissue implements ComponentInterface {
5
6
  name: string;
6
7
  id: string;
@@ -16,7 +17,7 @@ declare class BsReissue implements ComponentInterface {
16
17
  dataType: ComponentInterface['dataType'];
17
18
  bsType: BsType;
18
19
  bsMemo: BsMemo;
19
- reissueGoods: BsHeaderGood;
20
+ reissueGoods: BsHeaderGood | CommonHeaderGoods;
20
21
  constructor(options: PickOption);
21
22
  renderClient: (record: any) => React.JSX.Element | null;
22
23
  renderPc: () => null;
@@ -16,6 +16,7 @@ import { BsReissue as Reissue } from '@kmkf-fe-packages/basic-components';
16
16
  import { SYMBOL } from "../../../constant";
17
17
  import { BsGoodsTable } from "../../Common";
18
18
  import { BsType, BsMemo, BsHeaderGood } from "../common/index";
19
+ import CommonHeaderGoods from "../../CommonHeaderGood";
19
20
  var typeMap = {
20
21
  BS_REISSUE_GOODS: {
21
22
  key: 'bsReissueGoods',
@@ -37,6 +38,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
37
38
  _typeMap$options$type,
38
39
  _typeMap$options$type2,
39
40
  _typeMap$options$type3,
41
+ _typeMap$options$type4,
40
42
  _this$componentConfig4;
41
43
  _classCallCheck(this, BsReissue);
42
44
  _defineProperty(this, "name", void 0);
@@ -61,7 +63,8 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
61
63
  label: _this.name,
62
64
  value: /*#__PURE__*/React.createElement(BsGoodsTable, {
63
65
  list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
64
- showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
66
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
67
+ type: _this.type
65
68
  })
66
69
  }) : null) : null;
67
70
  });
@@ -72,7 +75,8 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
72
75
  var _r, _typeMap$_this$type3, _r2, _typeMap$_this$type4, _typeMap$_this$type5, _this$componentConfig2;
73
76
  return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.typeName)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
74
77
  list: (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)]) || [],
75
- showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
78
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
79
+ type: _this.type
76
80
  })) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
77
81
  });
78
82
  _defineProperty(this, "getComponentValue", function (r) {
@@ -154,19 +158,22 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
154
158
  id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.remark),
155
159
  name: '补发备注'
156
160
  }));
157
- this.reissueGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
161
+ this.reissueGoods = this.type === 'BS_REISSUE_GOODS' ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
158
162
  id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.key),
159
163
  name: '商品信息'
164
+ })) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
165
+ id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key),
166
+ name: "商品信息"
160
167
  }));
161
168
  this.children = [this.bsType, this.bsMemo, this.reissueGoods];
162
169
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
163
170
  this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
164
171
  required: true,
165
172
  validator: function validator(_, value) {
166
- var _value, _typeMap$options$type4;
167
- if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key)]) !== null && _value !== void 0 && _value.length)) {
168
- var _typeMap$options$type5;
169
- return Promise.reject(new Error("".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.errMsg)));
173
+ var _value, _typeMap$options$type5;
174
+ if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.key)]) !== null && _value !== void 0 && _value.length)) {
175
+ var _typeMap$options$type6;
176
+ return Promise.reject(new Error("".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.errMsg)));
170
177
  }
171
178
  return Promise.resolve();
172
179
  }
@@ -425,17 +425,19 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
425
425
  width: 100
426
426
  }, {
427
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"),
428
+ title: "".concat(text, "\u6570\u91CF"),
435
429
  align: 'center',
436
430
  ellipsis: true,
437
431
  width: 100
438
- }, {
432
+ },
433
+ // {
434
+ // dataIndex: 'actualNum',
435
+ // title: `${text}实发数量`,
436
+ // align: 'center',
437
+ // ellipsis: true,
438
+ // width: 100,
439
+ // },
440
+ {
439
441
  dataIndex: 'sharePrice',
440
442
  title: "\u5206\u644A\u4EF7",
441
443
  align: 'center',
@@ -0,0 +1,27 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class CommonHeaderGoods implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ itemKey: any;
17
+ constructor(options: PickOption);
18
+ getParentId: () => string;
19
+ renderClient: (record: any) => React.JSX.Element | null;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
21
+ renderLog: (r: Record) => React.JSX.Element | null;
22
+ getComponentValue: (r: Record) => any;
23
+ renderExport: (value: string, record: Record) => any;
24
+ editRender: () => null;
25
+ filterConfig: () => never[];
26
+ }
27
+ export default CommonHeaderGoods;
@@ -0,0 +1,189 @@
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ 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."); }
6
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ 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); }
11
+ 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; }
12
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ 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); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ 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; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ 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); }
20
+ import React from "react";
21
+ import ItemView from "../../commonComponents/ItemView";
22
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
23
+ import { BsHeaderPic, BsHeaderChild } from "../BS/common";
24
+ var GoodHeaderMap = {
25
+ "WDT_GOODS": {
26
+ headerMap: {
27
+ goodId: {
28
+ component: BsHeaderChild,
29
+ name: "SPUID",
30
+ key: "goodId",
31
+ width: 140
32
+ },
33
+ goodNo: {
34
+ component: BsHeaderChild,
35
+ name: "SPU商品编码",
36
+ key: "goodNo",
37
+ width: 200
38
+ },
39
+ imgUrl: {
40
+ component: BsHeaderPic,
41
+ name: "图片",
42
+ key: "imgUrl",
43
+ width: 70
44
+ },
45
+ specId: {
46
+ component: BsHeaderChild,
47
+ name: "SKUID",
48
+ key: "specId",
49
+ width: 200
50
+ },
51
+ goodName: {
52
+ component: BsHeaderChild,
53
+ name: "商品名称",
54
+ key: "goodName",
55
+ width: 100
56
+ },
57
+ specNo: {
58
+ component: BsHeaderChild,
59
+ name: "sku编码",
60
+ key: "specNo",
61
+ width: 140
62
+ },
63
+ specName: {
64
+ component: BsHeaderChild,
65
+ name: "sku名称",
66
+ key: "specName",
67
+ width: 140
68
+ },
69
+ orderPrice: {
70
+ component: BsHeaderChild,
71
+ name: "实付金额",
72
+ key: "orderPrice",
73
+ width: 100
74
+ },
75
+ sharePrice: {
76
+ component: BsHeaderChild,
77
+ name: "分摊价",
78
+ key: "sharePrice",
79
+ width: 120
80
+ },
81
+ giftType: {
82
+ component: BsHeaderChild,
83
+ name: "赠品类型",
84
+ key: "giftType",
85
+ width: 150
86
+ }
87
+ },
88
+ itemKey: {
89
+ goodId: "SPUID",
90
+ goodNo: "SPU商品编码",
91
+ specId: "SKUID",
92
+ goodName: "商品名称",
93
+ specNo: "sku编码",
94
+ specName: "sku名称",
95
+ orderPrice: "实付金额",
96
+ num: "数量",
97
+ sharePrice: "分摊价",
98
+ giftType: "赠品类型"
99
+ },
100
+ moneyKey: "orderPrice"
101
+ }
102
+ };
103
+ GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
104
+ var CommonHeaderGoods = /*#__PURE__*/_createClass(function CommonHeaderGoods(options) {
105
+ var _this = this,
106
+ _GoodHeaderMap$this$t;
107
+ _classCallCheck(this, CommonHeaderGoods);
108
+ _defineProperty(this, "name", void 0);
109
+ _defineProperty(this, "id", void 0);
110
+ _defineProperty(this, "sortField", void 0);
111
+ _defineProperty(this, "type", void 0);
112
+ _defineProperty(this, "componentConfig", void 0);
113
+ _defineProperty(this, "align", void 0);
114
+ _defineProperty(this, "width", void 0);
115
+ _defineProperty(this, "isCombinationComponent", void 0);
116
+ _defineProperty(this, "formField", void 0);
117
+ _defineProperty(this, "canSort", void 0);
118
+ _defineProperty(this, "children", void 0);
119
+ _defineProperty(this, "dataType", void 0);
120
+ _defineProperty(this, "itemKey", void 0);
121
+ _defineProperty(this, "getParentId", function () {
122
+ var _this$id$split = _this.id.split("_"),
123
+ _this$id$split2 = _slicedToArray(_this$id$split, 3),
124
+ key = _this$id$split2[0],
125
+ name = _this$id$split2[1],
126
+ code = _this$id$split2[2];
127
+ return "".concat(key, "_").concat(name);
128
+ });
129
+ _defineProperty(this, "renderClient", function (record) {
130
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
131
+ id: _this.id,
132
+ label: _this.name,
133
+ value: _this.getComponentValue(record)
134
+ }) : null;
135
+ });
136
+ _defineProperty(this, "renderPc", function (value, record) {
137
+ var _this$getComponentVal;
138
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
139
+ });
140
+ _defineProperty(this, "renderLog", function (r) {
141
+ var id = _this.getParentId();
142
+ if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
143
+ return _this.renderPc(undefined, r);
144
+ });
145
+ _defineProperty(this, "getComponentValue", function (r) {
146
+ var id = _this.getParentId();
147
+ var list = ((r === null || r === void 0 ? void 0 : r[id]) || []).reduce(function (prv, next) {
148
+ next[GoodHeaderMap[_this.type].moneyKey] && prv.push(next[GoodHeaderMap[_this.type].moneyKey]);
149
+ return prv;
150
+ }, []);
151
+ return list.join(",");
152
+ });
153
+ _defineProperty(this, "renderExport", function (value, record) {
154
+ var _this$getComponentVal2;
155
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
156
+ });
157
+ _defineProperty(this, "editRender", function () {
158
+ return null;
159
+ });
160
+ _defineProperty(this, "filterConfig", function () {
161
+ return [];
162
+ });
163
+ console.log('options', options);
164
+ this.name = options.name;
165
+ this.id = options.id;
166
+ this.sortField = options.id;
167
+ this.formField = options.id;
168
+ this.type = options.type;
169
+ this.componentConfig = options.componentConfig;
170
+ this.align = "left";
171
+ this.width = 200;
172
+ this.isCombinationComponent = true;
173
+ this.canSort = false;
174
+ this.dataType = "string";
175
+ console.log('GoodHeaderMap', GoodHeaderMap[this.type]);
176
+ this.itemKey = (_GoodHeaderMap$this$t = GoodHeaderMap[this.type]) === null || _GoodHeaderMap$this$t === void 0 ? void 0 : _GoodHeaderMap$this$t.itemKey;
177
+ this.children = _toConsumableArray(Object.keys(GoodHeaderMap[this.type].headerMap).reduce(function (prv, key) {
178
+ var _options$componentCon, _options$componentCon2;
179
+ if (options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && (_options$componentCon2 = _options$componentCon.showHeader) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.includes(key)) {
180
+ prv.push(new GoodHeaderMap[_this.type].headerMap[key].component(_objectSpread(_objectSpread({}, options), {}, {
181
+ name: _this.itemKey[key],
182
+ id: "".concat(options.id, "_").concat(GoodHeaderMap[_this.type].headerMap[key].key),
183
+ width: GoodHeaderMap[_this.type].headerMap[key].width
184
+ })));
185
+ }
186
+ return prv;
187
+ }, []));
188
+ });
189
+ export default CommonHeaderGoods;
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
2
  import React from "react";
3
- import { BsHeaderGood } from "../../BS/common/index";
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
4
  declare class WdtGoods implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
@@ -14,7 +14,7 @@ declare class WdtGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
- wdtGoods: BsHeaderGood;
17
+ wdtGoods: CommonHeaderGoods;
18
18
  constructor(options: PickOption);
19
19
  renderClient: (record: any) => React.JSX.Element | null;
20
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 { BsHeaderGood } from "../../BS/common/index";
14
+ import CommonHeaderGoods from "../../CommonHeaderGood";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
@@ -100,7 +100,7 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
100
100
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
101
101
  this.isCombinationComponent = true;
102
102
  this.canSort = false;
103
- this.wdtGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
103
+ this.wdtGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
104
104
  id: "".concat(options.id, "_wdtGoods"),
105
105
  name: "商品信息"
106
106
  }));
@@ -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, 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 | 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;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | CommonSystemOrder | BasicInput | JstLogistics | 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 | 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 | WdtGoods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.23.1-beta.6",
3
+ "version": "0.23.1-beta.8",
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.6",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.4"
23
+ "@kmkf-fe-packages/basic-components": "^0.23.1-beta.8",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.8"
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": "54a9c887c55052078f9e3feeb398e31a7757f3c8",
40
+ "gitHead": "f96bf8dffe0f7ef6a62e90e40be09894f70a5b99",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }