@kmkf-fe-packages/services-components 1.3.0 → 1.4.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,8 @@ var componentType = {
18
18
  BS_EXCHANGE_GOODS: 'bsExchangeType',
19
19
  BS_REISSUE_GOODS: 'bsReissueType',
20
20
  BS_RETURN_GOODS: 'bsReturnType',
21
- WDT_REISSUE_GOODS: 'wdtReissueType'
21
+ WDT_REISSUE_GOODS: 'wdtReissueType',
22
+ WDT_RETURN_GOODS: 'wdtReturnType'
22
23
  };
23
24
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
24
25
  var _this = this;
@@ -19,7 +19,8 @@ var componentType = {
19
19
  BS_EXCHANGE_GOODS: 'bsExchangeType',
20
20
  BS_REISSUE_GOODS: 'bsReissueType',
21
21
  BS_RETURN_GOODS: 'bsReturnType',
22
- WDT_REISSUE_GOODS: 'wdtReissueType'
22
+ WDT_REISSUE_GOODS: 'wdtReissueType',
23
+ WDT_RETURN_GOODS: 'wdtReturnType'
23
24
  };
24
25
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
25
26
  var _this = this;
@@ -17,7 +17,7 @@ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: an
17
17
  export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
18
18
  export declare const JstGoodImage: ({ list, type, platformType }: any) => any;
19
19
  export declare const BsExpressRender: ({ list, showField, platformType }: any) => any;
20
- export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
20
+ export declare const CommonOrderContent: ({ list, valueKey, failValue, options, isShowPopover }: any) => any;
21
21
  export declare const BsGoodImage: ({ item, index }: {
22
22
  item: any;
23
23
  index: number;
@@ -311,7 +311,9 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
311
311
  valueKey = _ref8.valueKey,
312
312
  failValue = _ref8.failValue,
313
313
  _ref8$options = _ref8.options,
314
- options = _ref8$options === void 0 ? [] : _ref8$options;
314
+ options = _ref8$options === void 0 ? [] : _ref8$options,
315
+ _ref8$isShowPopover = _ref8.isShowPopover,
316
+ isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
315
317
  var orderContent = function orderContent(item, index) {
316
318
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
317
319
  style: {
@@ -327,7 +329,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
327
329
  var currentOption = options.find(function (option) {
328
330
  return item[valueKey] === option.value;
329
331
  });
330
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
332
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, isShowPopover ? /*#__PURE__*/React.createElement(Popover, {
331
333
  content: orderContent(item, index),
332
334
  overlayStyle: {
333
335
  zIndex: 1080
@@ -338,7 +340,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
338
340
  color: '#1890ff',
339
341
  cursor: 'pointer'
340
342
  }
341
- }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
343
+ }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")) : null, /*#__PURE__*/React.createElement("span", {
342
344
  style: {
343
345
  color: color
344
346
  }
@@ -415,7 +417,6 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
415
417
  text = _ref11$text === void 0 ? '' : _ref11$text,
416
418
  type = _ref11.type;
417
419
  //商品信息
418
-
419
420
  var COLUMNS_MAP = function COLUMNS_MAP() {
420
421
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
421
422
  return function (type) {
@@ -568,6 +569,186 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
568
569
  }
569
570
  }];
570
571
  break;
572
+ case 'WDT_RETURN_GOODS':
573
+ {
574
+ columns = [{
575
+ dataIndex: 'goodId',
576
+ title: "SPUID",
577
+ align: 'center',
578
+ ellipsis: true,
579
+ width: 70
580
+ }, {
581
+ dataIndex: 'goodNo',
582
+ title: "\u5546\u54C1SPU\u7F16\u7801",
583
+ align: 'center',
584
+ ellipsis: true,
585
+ width: 180
586
+ }, {
587
+ dataIndex: 'goodName',
588
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
589
+ align: 'center',
590
+ ellipsis: true,
591
+ width: 250
592
+ }, {
593
+ dataIndex: 'specId',
594
+ title: "".concat(text, "SKUID"),
595
+ align: 'center',
596
+ ellipsis: true,
597
+ width: 100
598
+ }, {
599
+ dataIndex: 'specNo',
600
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
601
+ align: 'center',
602
+ ellipsis: true,
603
+ width: 180
604
+ }, {
605
+ dataIndex: 'specName',
606
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
607
+ align: 'center',
608
+ ellipsis: true,
609
+ width: 250
610
+ }, {
611
+ dataIndex: 'num',
612
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
613
+ align: 'center',
614
+ ellipsis: true,
615
+ width: 100
616
+ }, {
617
+ dataIndex: 'sharePrice',
618
+ title: "\u5206\u644A\u4EF7",
619
+ align: 'center',
620
+ ellipsis: true,
621
+ width: 80
622
+ }, {
623
+ dataIndex: 'returnPrice',
624
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
625
+ align: 'center',
626
+ ellipsis: true,
627
+ width: 100
628
+ }, {
629
+ dataIndex: 'giftType',
630
+ title: "\u8D60\u54C1\u65B9\u5F0F",
631
+ align: 'center',
632
+ ellipsis: true,
633
+ width: 100,
634
+ render: function render(val) {
635
+ var giftTypeMap = {
636
+ 0: '非赠品',
637
+ 1: '自动赠送',
638
+ 2: '手工赠送',
639
+ 3: '回购自动送赠品',
640
+ 4: '前N有礼送赠品',
641
+ 6: '天猫优仓赠品',
642
+ 7: '淘宝CRM会员送赠'
643
+ };
644
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
645
+ }
646
+ }, {
647
+ dataIndex: 'type',
648
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
649
+ align: 'center',
650
+ ellipsis: true,
651
+ width: 100,
652
+ render: function render(val) {
653
+ var typeMap = {
654
+ '1': '单品',
655
+ '2': '组合装'
656
+ };
657
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
658
+ }
659
+ }];
660
+ }
661
+ break;
662
+ case 'WDT_EXCHANGE_GOODS':
663
+ {
664
+ columns = [{
665
+ dataIndex: 'goodId',
666
+ title: "SPUID",
667
+ align: 'center',
668
+ ellipsis: true,
669
+ width: 70
670
+ }, {
671
+ dataIndex: 'goodNo',
672
+ title: "\u5546\u54C1SPU\u7F16\u7801",
673
+ align: 'center',
674
+ ellipsis: true,
675
+ width: 180
676
+ }, {
677
+ dataIndex: 'goodName',
678
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
679
+ align: 'center',
680
+ ellipsis: true,
681
+ width: 250
682
+ }, {
683
+ dataIndex: 'specId',
684
+ title: "".concat(text, "SKUID"),
685
+ align: 'center',
686
+ ellipsis: true,
687
+ width: 100
688
+ }, {
689
+ dataIndex: 'specNo',
690
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
691
+ align: 'center',
692
+ ellipsis: true,
693
+ width: 180
694
+ }, {
695
+ dataIndex: 'specName',
696
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
697
+ align: 'center',
698
+ ellipsis: true,
699
+ width: 250
700
+ }, {
701
+ dataIndex: 'num',
702
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
703
+ align: 'center',
704
+ ellipsis: true,
705
+ width: 100
706
+ }, {
707
+ dataIndex: 'price',
708
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
709
+ align: 'center',
710
+ ellipsis: true,
711
+ width: 100
712
+ }, {
713
+ dataIndex: 'exchangePrice',
714
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
715
+ align: 'center',
716
+ ellipsis: true,
717
+ width: 100
718
+ }, {
719
+ dataIndex: 'giftType',
720
+ title: "\u8D60\u54C1\u65B9\u5F0F",
721
+ align: 'center',
722
+ ellipsis: true,
723
+ width: 100,
724
+ render: function render(val) {
725
+ var giftTypeMap = {
726
+ 0: '非赠品',
727
+ 1: '自动赠送',
728
+ 2: '手工赠送',
729
+ 3: '回购自动送赠品',
730
+ 4: '前N有礼送赠品',
731
+ 6: '天猫优仓赠品',
732
+ 7: '淘宝CRM会员送赠'
733
+ };
734
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
735
+ }
736
+ }, {
737
+ dataIndex: 'type',
738
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
739
+ align: 'center',
740
+ ellipsis: true,
741
+ width: 100,
742
+ render: function render(val) {
743
+ var typeMap = {
744
+ '1': '单品',
745
+ '2': '组合装'
746
+ };
747
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
748
+ }
749
+ }];
750
+ }
751
+ break;
571
752
  default:
572
753
  columns = [{
573
754
  dataIndex: 'mark',
@@ -104,6 +104,188 @@ var GoodHeaderMap = {
104
104
  giftType: "赠品方式"
105
105
  },
106
106
  moneyKey: "orderPrice"
107
+ },
108
+ "WDT_RETURN_GOODS": {
109
+ headerMap: {
110
+ goodId: {
111
+ component: BsHeaderChild,
112
+ name: "SPUID",
113
+ key: "goodId",
114
+ width: 140
115
+ },
116
+ goodNo: {
117
+ component: BsHeaderChild,
118
+ name: "商品SPU编码",
119
+ key: "goodNo",
120
+ width: 180
121
+ },
122
+ goodName: {
123
+ component: BsHeaderChild,
124
+ name: "商品名称",
125
+ key: "goodName",
126
+ width: 100
127
+ },
128
+ specId: {
129
+ component: BsHeaderChild,
130
+ name: "SKUID",
131
+ key: "specId",
132
+ width: 200
133
+ },
134
+ specNo: {
135
+ component: BsHeaderChild,
136
+ name: "商品SKU编码",
137
+ key: "specNo",
138
+ width: 180
139
+ },
140
+ specName: {
141
+ component: BsHeaderChild,
142
+ name: "商品SKU名称",
143
+ key: "specName",
144
+ width: 140
145
+ },
146
+ num: {
147
+ component: BsHeaderChild,
148
+ name: "退货数量",
149
+ key: "num",
150
+ width: 100
151
+ },
152
+ sharePrice: {
153
+ component: BsHeaderChild,
154
+ name: "分摊价",
155
+ key: "sharePrice",
156
+ width: 120
157
+ },
158
+ returnPrice: {
159
+ component: BsHeaderChild,
160
+ name: "退款金额",
161
+ key: "returnPrice",
162
+ width: 120
163
+ },
164
+ giftType: {
165
+ component: BsHeaderChild,
166
+ name: "赠品方式",
167
+ key: "giftType",
168
+ width: 150
169
+ },
170
+ type: {
171
+ component: BsHeaderChild,
172
+ name: "商品类型",
173
+ key: "type",
174
+ width: 100,
175
+ render: function render(val) {
176
+ var typeMap = {
177
+ '1': '单品',
178
+ '2': '组合装'
179
+ };
180
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
181
+ }
182
+ }
183
+ },
184
+ itemKey: {
185
+ goodId: "SPUID",
186
+ goodNo: "商品SPU编码",
187
+ goodName: "商品名称",
188
+ specId: "SKUID",
189
+ specNo: "商品SKU编码",
190
+ specName: "商品SKU名称",
191
+ num: "退货数量",
192
+ sharePrice: "分摊价",
193
+ returnPrice: "退款金额",
194
+ giftType: "赠品方式",
195
+ type: "商品类型"
196
+ },
197
+ moneyKey: "returnPrice"
198
+ },
199
+ "WDT_EXCHANGE_GOODS": {
200
+ headerMap: {
201
+ goodId: {
202
+ component: BsHeaderChild,
203
+ name: "SPUID",
204
+ key: "goodId",
205
+ width: 140
206
+ },
207
+ goodNo: {
208
+ component: BsHeaderChild,
209
+ name: "商品SPU编码",
210
+ key: "goodNo",
211
+ width: 180
212
+ },
213
+ goodName: {
214
+ component: BsHeaderChild,
215
+ name: "商品名称",
216
+ key: "goodName",
217
+ width: 100
218
+ },
219
+ specId: {
220
+ component: BsHeaderChild,
221
+ name: "SKUID",
222
+ key: "specId",
223
+ width: 200
224
+ },
225
+ specNo: {
226
+ component: BsHeaderChild,
227
+ name: "商品SKU编码",
228
+ key: "specNo",
229
+ width: 180
230
+ },
231
+ specName: {
232
+ component: BsHeaderChild,
233
+ name: "商品SKU名称",
234
+ key: "specName",
235
+ width: 140
236
+ },
237
+ num: {
238
+ component: BsHeaderChild,
239
+ name: "换出数量",
240
+ key: "num",
241
+ width: 100
242
+ },
243
+ productPrice: {
244
+ component: BsHeaderChild,
245
+ name: "商品单价",
246
+ key: "productPrice",
247
+ width: 120
248
+ },
249
+ exchangePrice: {
250
+ component: BsHeaderChild,
251
+ name: "换出金额",
252
+ key: "exchangePrice",
253
+ width: 120
254
+ },
255
+ type: {
256
+ component: BsHeaderChild,
257
+ name: "商品类型",
258
+ key: "type",
259
+ width: 100,
260
+ render: function render(val) {
261
+ var typeMap = {
262
+ '1': '单品',
263
+ '2': '组合装'
264
+ };
265
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
266
+ }
267
+ },
268
+ giftType: {
269
+ component: BsHeaderChild,
270
+ name: "赠品方式",
271
+ key: "giftType",
272
+ width: 150
273
+ }
274
+ },
275
+ itemKey: {
276
+ goodId: "SPUID",
277
+ goodNo: "商品SPU编码",
278
+ goodName: "商品名称",
279
+ specId: "SKUID",
280
+ specNo: "商品SKU编码",
281
+ specName: "商品SKU名称",
282
+ num: "换出数量",
283
+ productPrice: "商品单价",
284
+ exchangePrice: "换出金额",
285
+ type: "商品类型",
286
+ giftType: "赠品方式"
287
+ },
288
+ moneyKey: "exchangePrice"
107
289
  }
108
290
  };
109
291
  GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
@@ -80,7 +80,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
80
80
  var _this = this,
81
81
  _typeMap$options$type,
82
82
  _typeMap$options$type2,
83
- _this$componentConfig3;
83
+ _this$componentConfig6;
84
84
  _classCallCheck(this, CommonMultiStatus);
85
85
  _defineProperty(this, "name", void 0);
86
86
  _defineProperty(this, "id", void 0);
@@ -95,7 +95,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
95
95
  _defineProperty(this, "children", void 0);
96
96
  _defineProperty(this, "dataType", void 0);
97
97
  _defineProperty(this, "renderClient", function (record) {
98
- var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
98
+ var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
99
99
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
100
100
  return !isNull(item);
101
101
  }) : false;
@@ -106,12 +106,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
106
106
  list: record === null || record === void 0 ? void 0 : record[_this.id],
107
107
  valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
108
108
  failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
109
- options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
109
+ options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options,
110
+ isShowPopover: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.belongType) !== "wdt"
110
111
  })
111
112
  }) : null;
112
113
  });
113
114
  _defineProperty(this, "renderPc", function (value, record) {
114
- var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
115
+ var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _this$componentConfig2;
115
116
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
116
117
  //兼容多个商品
117
118
  return /*#__PURE__*/React.createElement("span", {
@@ -122,7 +123,8 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
122
123
  list: list,
123
124
  valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
124
125
  failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
125
- options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
126
+ options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options,
127
+ isShowPopover: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.belongType) !== "wdt"
126
128
  }));
127
129
  });
128
130
  _defineProperty(this, "renderLog", function (r) {
@@ -139,35 +141,39 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
139
141
  var _typeMap$_this$type10;
140
142
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
141
143
  return (list || []).map(function (item) {
142
- var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type15, _typeMap$_this$type16;
144
+ var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _this$componentConfig3, _typeMap$_this$type16, _typeMap$_this$type17;
143
145
  var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
144
146
  var _typeMap$_this$type14;
145
147
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
146
148
  });
147
- return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]) || '');
149
+ if (((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.belongType) === "wdt") {
150
+ var _typeMap$_this$type15;
151
+ return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '';
152
+ }
153
+ return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.valueKey]) || '');
148
154
  }).join(',');
149
155
  });
150
156
  _defineProperty(this, "editRender", function (p) {
151
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type17;
157
+ var _this$componentConfig4, _this$componentConfig5, _typeMap$_this$type18;
152
158
  return /*#__PURE__*/React.createElement(GetFormItem, {
153
159
  title: _this.name,
154
160
  name: _this.id,
155
161
  rules: _this.rules,
156
162
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
157
163
  display: p === null || p === void 0 ? void 0 : p.display,
158
- required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
164
+ required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
159
165
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
160
- type: (_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.type,
166
+ type: (_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.type,
161
167
  failValue: typeMap[_this.type].failValue
162
168
  }))
163
169
  });
164
170
  });
165
171
  _defineProperty(this, "filterConfig", function (item) {
166
- var _typeMap$_this$type18, _item$templateConfig;
172
+ var _typeMap$_this$type19, _item$templateConfig;
167
173
  return {
168
174
  searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
169
175
  type: item.type,
170
- id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
176
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code),
171
177
  name: "".concat(_this.name),
172
178
  filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
173
179
  props: {
@@ -179,8 +185,8 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
179
185
  },
180
186
  filterFn: function filterFn(value) {
181
187
  return function (i) {
182
- var _typeMap$_this$type19;
183
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code), value);
188
+ var _typeMap$_this$type20;
189
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.code), value);
184
190
  };
185
191
  },
186
192
  formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
@@ -204,16 +210,16 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
204
210
  this.canSort = false;
205
211
  this.children = [];
206
212
  this.dataType = 'object';
207
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
213
+ this.rules = (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
208
214
  required: true,
209
215
  validator: function validator(_, value) {
210
216
  var hasNo = (value || []).some(function (item) {
211
- var _typeMap$_this$type20;
212
- return item[(_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.valueKey];
217
+ var _typeMap$_this$type21;
218
+ return item[(_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.valueKey];
213
219
  });
214
220
  if (!hasNo) {
215
- var _typeMap$_this$type21;
216
- return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.name)));
221
+ var _typeMap$_this$type22;
222
+ return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.name)));
217
223
  }
218
224
  return Promise.resolve();
219
225
  }
@@ -48,7 +48,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
48
48
  var _this = this,
49
49
  _typeMap$options$type,
50
50
  _typeMap$options$type2,
51
- _this$componentConfig3;
51
+ _this$componentConfig5;
52
52
  _classCallCheck(this, CommonSystemOrder);
53
53
  _defineProperty(this, "name", void 0);
54
54
  _defineProperty(this, "id", void 0);
@@ -63,7 +63,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
63
63
  _defineProperty(this, "children", void 0);
64
64
  _defineProperty(this, "dataType", void 0);
65
65
  _defineProperty(this, "renderClient", function (record) {
66
- var _typeMap$_this$type;
66
+ var _typeMap$_this$type, _this$componentConfig;
67
67
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
68
68
  return !isNull(item);
69
69
  }) : false;
@@ -72,12 +72,13 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
72
72
  label: _this.name,
73
73
  value: /*#__PURE__*/React.createElement(CommonOrderContent, {
74
74
  list: record === null || record === void 0 ? void 0 : record[_this.id],
75
- valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey
75
+ valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
76
+ isShowPopover: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.belongType) !== "wdt"
76
77
  })
77
78
  }) : null;
78
79
  });
79
80
  _defineProperty(this, "renderPc", function (value, record) {
80
- var _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
81
+ var _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4, _this$componentConfig2;
81
82
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
82
83
  //兼容多个商品
83
84
  return /*#__PURE__*/React.createElement("span", {
@@ -87,7 +88,8 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
87
88
  }, /*#__PURE__*/React.createElement(CommonOrderContent, {
88
89
  list: list,
89
90
  type: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.type,
90
- valueKey: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.valueKey
91
+ valueKey: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.valueKey,
92
+ isShowPopover: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.belongType) !== "wdt"
91
93
  }));
92
94
  });
93
95
  _defineProperty(this, "renderLog", function (r) {
@@ -109,14 +111,14 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
109
111
  }).join(',');
110
112
  });
111
113
  _defineProperty(this, "editRender", function (p) {
112
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type9;
114
+ var _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type9;
113
115
  return /*#__PURE__*/React.createElement(GetFormItem, {
114
116
  title: _this.name,
115
117
  name: _this.id,
116
118
  rules: _this.rules,
117
119
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
118
120
  display: p === null || p === void 0 ? void 0 : p.display,
119
- required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
121
+ required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
120
122
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
121
123
  type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
122
124
  }))
@@ -151,7 +153,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
151
153
  this.canSort = false;
152
154
  this.children = [];
153
155
  this.dataType = 'object';
154
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
156
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
155
157
  required: true,
156
158
  validator: function validator(_, value) {
157
159
  var hasNo = (value || []).some(function (item) {
@@ -27,7 +27,20 @@ declare class Label implements ComponentInterface {
27
27
  }>) => React.JSX.Element;
28
28
  renderPc: (value: any, record: Record) => React.JSX.Element;
29
29
  renderLog: (r: Record) => React.JSX.Element;
30
- renderExport: (value: any, record: Record) => any;
31
- filterConfig: (item: ColumnConfig) => never[];
30
+ renderExport: (value: any, record: Record) => string;
31
+ filterConfig: (item: ColumnConfig) => {
32
+ searchDefaultConditions: "in";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "MultipleSelect";
37
+ props: {
38
+ options: any;
39
+ };
40
+ filterFn: (value: string) => (i: Record) => boolean;
41
+ };
42
+ formDataTransform: (v: Array<{
43
+ labelShowName: string;
44
+ }>) => string[];
32
45
  }
33
46
  export default Label;
@@ -8,9 +8,12 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  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); }
9
9
  import React from "react";
10
10
  import { Tag, Select, Space } from 'antd';
11
- import { LabelData, isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { groupBy } from 'lodash';
12
+ import { LabelData, isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
13
+ import intersection from "lodash/intersection";
12
14
  import GetFormItem from "../GetFormItem";
13
15
  import ItemView from "../../commonComponents/ItemView";
16
+ import { SYMBOL } from "../../constant";
14
17
  var EditRenderItem = function EditRenderItem(props) {
15
18
  var value = props.value;
16
19
  var tagRender = function tagRender(prop) {
@@ -90,14 +93,17 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
90
93
  }) : null;
91
94
  });
92
95
  _defineProperty(this, "showDetail", function (value) {
96
+ var _Object$keys;
93
97
  return /*#__PURE__*/React.createElement(Space, {
94
98
  style: {
95
99
  flexWrap: 'wrap'
96
100
  }
97
- }, Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.map(function (v) {
101
+ }, Array.isArray(value) ? (_Object$keys = Object.keys(groupBy(value, function (item) {
102
+ return item.labelShowName;
103
+ }))) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (labelShowName) {
98
104
  var _this$labelDateInstan;
99
105
  var label = ((_this$labelDateInstan = _this.labelDateInstance.labelData) === null || _this$labelDateInstan === void 0 ? void 0 : _this$labelDateInstan.find(function (item) {
100
- return item.value === (v === null || v === void 0 ? void 0 : v.labelShowName);
106
+ return item.value === labelShowName;
101
107
  })) || {};
102
108
  if (!isNull(label)) return /*#__PURE__*/React.createElement(Tag, {
103
109
  color: label === null || label === void 0 ? void 0 : label.color
@@ -112,13 +118,34 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
112
118
  return _this.renderPc(undefined, r);
113
119
  });
114
120
  _defineProperty(this, "renderExport", function (value, record) {
115
- var _record, _record$map;
116
- return record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : (_record$map = _record.map(function (item) {
121
+ var _Array$from, _record;
122
+ return (_Array$from = Array.from(new Set(record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : _record.map(function (item) {
117
123
  return item === null || item === void 0 ? void 0 : item.labelShowName;
118
- })) === null || _record$map === void 0 ? void 0 : _record$map.join('、');
124
+ })))) === null || _Array$from === void 0 ? void 0 : _Array$from.join('、');
119
125
  });
120
126
  _defineProperty(this, "filterConfig", function (item) {
121
- return [];
127
+ return {
128
+ searchDefaultConditions: SYMBOL.in,
129
+ type: item.type,
130
+ id: "".concat(item.id, "_label"),
131
+ // 过滤组件id
132
+ name: item.name,
133
+ // 过滤组件名称
134
+ filterComponentType: "MultipleSelect",
135
+ props: {
136
+ options: _this.labelDateInstance.labelData || []
137
+ },
138
+ filterFn: function filterFn(value) {
139
+ return function (i) {
140
+ return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "label")).length > 0;
141
+ };
142
+ }
143
+ };
144
+ });
145
+ _defineProperty(this, "formDataTransform", function (v) {
146
+ return v === null || v === void 0 ? void 0 : v.map(function (item) {
147
+ return item.labelShowName;
148
+ });
122
149
  });
123
150
  this.name = options.name;
124
151
  this.id = options.id;
@@ -112,6 +112,9 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
112
112
  display: p === null || p === void 0 ? void 0 : p.display,
113
113
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
114
114
  component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
115
+ style: {
116
+ width: 200
117
+ },
115
118
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
116
119
  failValue: selectTypeMap[_this.type].failValue
117
120
  }))
@@ -0,0 +1,35 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
+ declare class WDTExchange 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
+ returnGoods: CommonHeaderGoods;
18
+ constructor(options: PickOption);
19
+ renderClient: (record: any) => React.JSX.Element | null;
20
+ renderPc: () => null;
21
+ renderLog: (r: Record) => React.JSX.Element;
22
+ getComponentValue: (r: Record) => {
23
+ wdtExchangeGoods: any;
24
+ };
25
+ renderExport: (value: any, record: any) => null;
26
+ editRender: (p: any) => React.JSX.Element;
27
+ filterConfig: (item: ColumnConfig) => {
28
+ searchDefaultConditions: "like";
29
+ type: string;
30
+ id: string;
31
+ name: string;
32
+ filterComponentType: "Input";
33
+ }[];
34
+ }
35
+ export default WDTExchange;
@@ -0,0 +1,183 @@
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 ItemView from "../../../commonComponents/ItemView";
15
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { SYMBOL } from "../../../constant";
17
+ // import { BsType, BsMemo } from "../../Bs/common";
18
+ import { CommonExchangeGoods } from "@kmkf-fe-packages/basic-components";
19
+ import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ var WDTExchange = /*#__PURE__*/_createClass(
21
+ // wdtType: BsType;
22
+ // wdtMemo: BsMemo;
23
+
24
+ // swapOutGoods: BsHeaderGood;
25
+ // giftGoods: BsHeaderGood;
26
+ function WDTExchange(options) {
27
+ var _this = this,
28
+ _this$componentConfig4;
29
+ _classCallCheck(this, WDTExchange);
30
+ _defineProperty(this, "name", void 0);
31
+ _defineProperty(this, "id", void 0);
32
+ _defineProperty(this, "sortField", void 0);
33
+ _defineProperty(this, "type", void 0);
34
+ _defineProperty(this, "rules", void 0);
35
+ _defineProperty(this, "componentConfig", void 0);
36
+ _defineProperty(this, "effects", void 0);
37
+ _defineProperty(this, "isCombinationComponent", void 0);
38
+ _defineProperty(this, "formField", void 0);
39
+ _defineProperty(this, "canSort", void 0);
40
+ _defineProperty(this, "children", void 0);
41
+ _defineProperty(this, "dataType", void 0);
42
+ _defineProperty(this, "returnGoods", void 0);
43
+ _defineProperty(this, "renderClient", function (record) {
44
+ var _this$componentConfig;
45
+ var wdtExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_wdtExchangeGoods")]) || "[]");
46
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
47
+ id: "".concat(_this.id, "-out"),
48
+ label: "".concat(_this.name, "-\u6362\u51FA"),
49
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
50
+ type: _this.type,
51
+ list: wdtExchangeGoods || [],
52
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
53
+ })
54
+ })) : null;
55
+ });
56
+ _defineProperty(this, "renderPc", function () {
57
+ return null;
58
+ });
59
+ _defineProperty(this, "renderLog", function (r) {
60
+ var _r, _this$componentConfig2;
61
+ return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_wdtExchangeGoods")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
62
+ type: _this.type,
63
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtExchangeGoods")]) || [],
64
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
65
+ })) : 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);
66
+ });
67
+ _defineProperty(this, "getComponentValue", function (r) {
68
+ return {
69
+ wdtExchangeGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtExchangeGoods")]
70
+ };
71
+ });
72
+ _defineProperty(this, "renderExport", function (value, record) {
73
+ return null;
74
+ });
75
+ _defineProperty(this, "editRender", function (p) {
76
+ var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
77
+ return /*#__PURE__*/React.createElement(GetFormItem, {
78
+ title: _this.name,
79
+ name: _this.id,
80
+ rules: _this.rules,
81
+ required: false,
82
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
+ display: p === null || p === void 0 ? void 0 : p.display,
84
+ component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
85
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
86
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
87
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
88
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
89
+ width: "90%",
90
+ type: "WDT_EXCHANGE_GOODS"
91
+ }))
92
+ });
93
+ });
94
+ _defineProperty(this, "filterConfig", function (item) {
95
+ return [{
96
+ searchDefaultConditions: SYMBOL.like,
97
+ type: item.type,
98
+ id: "".concat(item.id, "_wdtExchangeGoods"),
99
+ name: "".concat(_this.name, "-\u6362\u51FA"),
100
+ filterComponentType: "Input"
101
+ }];
102
+ });
103
+ this.name = options.name;
104
+ this.id = options.id;
105
+ this.sortField = "".concat(options.id);
106
+ this.formField = "".concat(options.id);
107
+ this.type = options.type;
108
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
109
+ this.isCombinationComponent = true;
110
+ this.canSort = false;
111
+ // this.wdtType = new BsType({
112
+ // ...options,
113
+ // id: `${options.id}_wdtExchangeType`,
114
+ // name: "换货类型",
115
+ // });
116
+ // this.wdtMemo = new BsMemo({
117
+ // ...options,
118
+ // id: `${options.id}_wdtExchangeType_memo`,
119
+ // name: "换货备注",
120
+ // });
121
+ this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
122
+ id: "".concat(options.id, "_wdtExchangeGoods"),
123
+ name: "商品信息"
124
+ }));
125
+ // this.swapOutGoods = new BsHeaderGood({
126
+ // ...options,
127
+ // id: `${options.id}_wdtExchangeSwapOutGoods`,
128
+ // name: "换出商品",
129
+ // });
130
+ // this.giftGoods = new BsHeaderGood({
131
+ // ...options,
132
+ // id: `${options.id}_wdtExchangeGiftGoods`,
133
+ // name: "赠品商品",
134
+ // });
135
+ this.children = [
136
+ // this.wdtType,
137
+ // this.wdtMemo,
138
+ this.returnGoods
139
+ // this.swapOutGoods,
140
+ // this.giftGoods,
141
+ ];
142
+
143
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
144
+ this.rules = [{
145
+ required: (_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required,
146
+ validator: function validator(_, value) {
147
+ var _this$componentConfig5, _value$wdtExchangeGoo;
148
+ if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && (_value$wdtExchangeGoo = value.wdtExchangeGoods) !== null && _value$wdtExchangeGoo !== void 0 && _value$wdtExchangeGoo.length)) {
149
+ return Promise.reject(new Error("请选择wdt换货商品"));
150
+ }
151
+ return Promise.resolve();
152
+ }
153
+ }
154
+ /* {
155
+ validator: (_: any, value: any) => {
156
+ if (value && ["2", "4"].includes(value?.wdtExchangeType?.[0])) {
157
+ const hasNoGood = (value?.wdtExchangeGoods || []).some(
158
+ (item: any) => {
159
+ return !item?.wdtExchangeGoods.length;
160
+ }
161
+ );
162
+ if (hasNoGood) {
163
+ return Promise.reject(new Error("请选择退回商品后再提交工单"));
164
+ }
165
+ const hasLen = (value?.wdtExchangeGoods || []).some(
166
+ (item: any) => {
167
+ return (
168
+ item?.wdtExchangeGoods.length !==
169
+ item?.wdtExchangeSwapOutGoods.length
170
+ );
171
+ }
172
+ );
173
+ if (hasLen) {
174
+ return Promise.reject(new Error("请核对商品数据,再提交工单"));
175
+ }
176
+ }
177
+ return Promise.resolve();
178
+ },
179
+ },*/];
180
+
181
+ this.dataType = "object";
182
+ });
183
+ export default WDTExchange;
@@ -0,0 +1,54 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import { BsType } from "../../BS/common/index";
4
+ import CommonHeaderGoods from "../../CommonHeaderGood";
5
+ declare class WdtReturn implements ComponentInterface {
6
+ name: string;
7
+ id: string;
8
+ sortField: string;
9
+ type: string;
10
+ rules: any[];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ effects: ComponentInterface["effects"];
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ wdtType: BsType;
19
+ reissueGoods: CommonHeaderGoods;
20
+ constructor(options: PickOption);
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: () => null;
23
+ renderLog: (r: Record) => React.JSX.Element;
24
+ getComponentValue: (r: Record) => any;
25
+ renderExport: () => null;
26
+ editRender: (p: any) => React.JSX.Element;
27
+ filterConfig: (item: ColumnConfig) => ({
28
+ searchDefaultConditions: "in";
29
+ type: string;
30
+ id: string;
31
+ name: string;
32
+ filterComponentType: "Cascader";
33
+ props: {
34
+ options: any[] | undefined;
35
+ fieldNames: {
36
+ label: string;
37
+ value: string;
38
+ children: string;
39
+ };
40
+ };
41
+ formatFilterValue: (val: Array<string>) => string[] | undefined;
42
+ filterFn: (value: string) => (i: Record) => boolean;
43
+ } | {
44
+ searchDefaultConditions: "like";
45
+ type: string;
46
+ id: string;
47
+ name: string;
48
+ filterComponentType: "Input";
49
+ props?: undefined;
50
+ formatFilterValue?: undefined;
51
+ filterFn?: undefined;
52
+ })[];
53
+ }
54
+ export default WdtReturn;
@@ -0,0 +1,150 @@
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 ItemView from "../../../commonComponents/ItemView";
14
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { SYMBOL } from "../../../constant";
16
+ import { BsGoodsTable } from "../../Common";
17
+ import { BsType } from "../../BS/common/index";
18
+ import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
19
+ import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
21
+ var _this = this,
22
+ _this$componentConfig4;
23
+ _classCallCheck(this, WdtReturn);
24
+ _defineProperty(this, "name", void 0);
25
+ _defineProperty(this, "id", void 0);
26
+ _defineProperty(this, "sortField", void 0);
27
+ _defineProperty(this, "type", void 0);
28
+ _defineProperty(this, "rules", void 0);
29
+ _defineProperty(this, "componentConfig", void 0);
30
+ _defineProperty(this, "effects", void 0);
31
+ _defineProperty(this, "isCombinationComponent", void 0);
32
+ _defineProperty(this, "formField", void 0);
33
+ _defineProperty(this, "canSort", void 0);
34
+ _defineProperty(this, "children", void 0);
35
+ _defineProperty(this, "dataType", void 0);
36
+ _defineProperty(this, "wdtType", void 0);
37
+ _defineProperty(this, "reissueGoods", void 0);
38
+ _defineProperty(this, "renderClient", function (record) {
39
+ var _this$componentConfig;
40
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.wdtType.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].wdtReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
41
+ id: _this.id,
42
+ label: _this.name,
43
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
44
+ type: _this.type,
45
+ list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].wdtReturnGoods) || [],
46
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
47
+ })
48
+ }) : null) : null;
49
+ });
50
+ _defineProperty(this, "renderPc", function () {
51
+ return null;
52
+ });
53
+ _defineProperty(this, "renderLog", function (r) {
54
+ var _r, _r2, _this$componentConfig2;
55
+ return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_wdtReturnType")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.wdtType.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_wdtReturnGoods")]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
56
+ type: _this.type,
57
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtReturnGoods")]) || [],
58
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
59
+ })) : 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);
60
+ });
61
+ _defineProperty(this, "getComponentValue", function (r) {
62
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtReturnGoods")];
63
+ });
64
+ _defineProperty(this, "renderExport", function () {
65
+ return null;
66
+ });
67
+ _defineProperty(this, "editRender", function (p) {
68
+ var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
69
+ return /*#__PURE__*/React.createElement(GetFormItem, {
70
+ title: _this.name,
71
+ name: _this.id,
72
+ rules: _this.rules,
73
+ required: false,
74
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
75
+ display: p === null || p === void 0 ? void 0 : p.display,
76
+ component: /*#__PURE__*/React.createElement(CommonReturnGoods, _extends({}, _this.componentConfig, {
77
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
78
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
79
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
80
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
81
+ type: "WDT_RETURN_GOODS",
82
+ width: "90%"
83
+ }))
84
+ });
85
+ });
86
+ _defineProperty(this, "filterConfig", function (item) {
87
+ var _item$templateConfig;
88
+ return [{
89
+ searchDefaultConditions: SYMBOL.in,
90
+ type: item.type,
91
+ id: "".concat(item.id, "_wdtReturnType"),
92
+ name: "".concat(item.name, "-\u9000\u8D27\u7C7B\u578B"),
93
+ filterComponentType: "Cascader",
94
+ props: {
95
+ options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
96
+ fieldNames: {
97
+ label: "label",
98
+ value: "value",
99
+ children: "children"
100
+ }
101
+ },
102
+ formatFilterValue: function formatFilterValue(val) {
103
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
104
+ return [val[val.length - 1]];
105
+ }
106
+ },
107
+ filterFn: function filterFn(value) {
108
+ return function (i) {
109
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "wdtReturnType"), value);
110
+ };
111
+ }
112
+ }, {
113
+ searchDefaultConditions: SYMBOL.like,
114
+ type: item.type,
115
+ id: "".concat(item.id, "_wdtReturnGoods"),
116
+ name: "".concat(_this.name),
117
+ filterComponentType: "Input"
118
+ }];
119
+ });
120
+ this.name = options.name;
121
+ this.id = options.id;
122
+ this.sortField = "".concat(options.id);
123
+ this.formField = "".concat(options.id);
124
+ this.type = options.type;
125
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
126
+ this.isCombinationComponent = true;
127
+ this.canSort = false;
128
+ this.wdtType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
129
+ id: "".concat(options.id, "_wdtReturnType"),
130
+ name: "退货类型"
131
+ }));
132
+ this.reissueGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
133
+ id: "".concat(options.id, "_wdtReturnGoods"),
134
+ name: "商品信息"
135
+ }));
136
+ this.children = [this.wdtType, this.reissueGoods];
137
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
138
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
139
+ required: true,
140
+ validator: function validator(_, value) {
141
+ var _value$wdtReturnGoods;
142
+ if (!value || !(value !== null && value !== void 0 && (_value$wdtReturnGoods = value.wdtReturnGoods) !== null && _value$wdtReturnGoods !== void 0 && _value$wdtReturnGoods.length)) {
143
+ return Promise.reject(new Error("请选择wdt退货商品"));
144
+ }
145
+ return Promise.resolve();
146
+ }
147
+ }] : [];
148
+ this.dataType = "object";
149
+ });
150
+ export default WdtReturn;
@@ -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, 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, Label, WdtReissue } 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, 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | CommonSystemOrder | BasicInput | Label | StatusSelect | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | CommonInput | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => FlowMarkSelect | Label | MsgStatus | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode;
@@ -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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -141,12 +141,16 @@ export var factory = function factory(type, options) {
141
141
  return new BsGoods(options);
142
142
  case "BS_EXCHANGE_GOODS":
143
143
  return new BsExchange(options);
144
+ case "WDT_EXCHANGE_GOODS":
145
+ return new WdtExchange(options);
144
146
  case "BS_REISSUE_GOODS":
145
147
  return new BsReissue(options);
146
148
  case "WDT_REISSUE_GOODS":
147
149
  return new WdtReissue(options);
148
150
  case "BS_RETURN_GOODS":
149
151
  return new BsReturn(options);
152
+ case "WDT_RETURN_GOODS":
153
+ return new WdtReturn(options);
150
154
  case "REISSUE_TRADE_ID":
151
155
  case "BS_DELIVERY_NO":
152
156
  case "RETURN_GOODS_TRADE_ID":
@@ -75,6 +75,8 @@ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus
75
75
  export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
77
  export { default as WdtReissue } from "./components/WDT/WdtRessuie";
78
+ export { default as WdtReturn } from "./components/WDT/WdtReturn";
79
+ export { default as WdtExchange } from "./components/WDT/WdtExchange";
78
80
  export { default as CommonInput } from "./components/CommonInput";
79
81
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
80
82
  export { default as Label } from "./components/Label";
package/dist/esm/index.js CHANGED
@@ -75,6 +75,8 @@ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus
75
75
  export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
77
  export { default as WdtReissue } from "./components/WDT/WdtRessuie";
78
+ export { default as WdtReturn } from "./components/WDT/WdtReturn";
79
+ export { default as WdtExchange } from "./components/WDT/WdtExchange";
78
80
  export { default as CommonInput } from "./components/CommonInput";
79
81
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
80
82
  export { default as Label } from "./components/Label";
@@ -169,6 +169,7 @@ export interface ComponentInterface {
169
169
  rulesOptions?: Array<any>;
170
170
  selectRules?: Array<string>;
171
171
  logistics?: string;
172
+ belongType?: string;
172
173
  repeatConfig?: {
173
174
  repeatRange: string;
174
175
  repeatComponents: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.3.0",
3
+ "version": "1.4.0-rc.0",
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": "1.3.0",
24
- "@kmkf-fe-packages/kmkf-utils": "1.3.0"
23
+ "@kmkf-fe-packages/basic-components": "1.4.0-rc.0",
24
+ "@kmkf-fe-packages/kmkf-utils": "1.4.0-rc.0"
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": "227e5e52ad4e85074c0486fea308033557d75a6e",
40
+ "gitHead": "6ecec78fdd7fa5eb426bf0d8092953a3ecb94b1f",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }