@kmkf-fe-packages/services-components 1.19.11 → 1.20.1

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.
@@ -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 ItemView from "../../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from '@kmkf-fe-packages/kmkf-utils';
15
15
  import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
@@ -84,37 +84,58 @@ var typeMap = {
84
84
  title: "订单状态",
85
85
  dataIndex: "orderStatus",
86
86
  width: 100,
87
- ellipsis: true
87
+ ellipsis: true,
88
+ render: function render(val) {
89
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
90
+ }
88
91
  }, {
89
92
  title: "是否被拆分",
90
93
  dataIndex: "isSplit",
91
94
  width: 100,
92
- ellipsis: true
95
+ ellipsis: true,
96
+ render: function render(val) {
97
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
98
+ }
93
99
  }, {
94
100
  title: "是否拆分子单",
95
101
  dataIndex: "isSplitNew",
96
102
  width: 100,
97
- ellipsis: true
103
+ ellipsis: true,
104
+ render: function render(val) {
105
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
106
+ }
98
107
  }, {
99
108
  title: "是否被合并",
100
109
  dataIndex: "isCombine",
101
110
  width: 100,
102
- ellipsis: true
111
+ ellipsis: true,
112
+ render: function render(val) {
113
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
114
+ }
103
115
  }, {
104
116
  title: "是否合并新单",
105
117
  dataIndex: "isCombineNew",
106
118
  width: 100,
107
- ellipsis: true
119
+ ellipsis: true,
120
+ render: function render(val) {
121
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
122
+ }
108
123
  }, {
109
124
  title: "是否复制单",
110
125
  dataIndex: "isCopy",
111
126
  width: 100,
112
- ellipsis: true
127
+ ellipsis: true,
128
+ render: function render(val) {
129
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
130
+ }
113
131
  }, {
114
132
  title: "是否换货单",
115
133
  dataIndex: "isExchangeOrder",
116
134
  width: 100,
117
- ellipsis: true
135
+ ellipsis: true,
136
+ render: function render(val) {
137
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
138
+ }
118
139
  }, {
119
140
  title: "订单备注",
120
141
  dataIndex: "orderMsg",
@@ -19,7 +19,8 @@ var componentType = {
19
19
  BS_REISSUE_GOODS: 'bsReissueType',
20
20
  BS_RETURN_GOODS: 'bsReturnType',
21
21
  WDT_REISSUE_GOODS: 'wdtReissueType',
22
- WDT_RETURN_GOODS: 'wdtReturnType'
22
+ WDT_RETURN_GOODS: 'wdtReturnType',
23
+ BS_E3_REISSUE_GOODS: 'bsE3ReissueType'
23
24
  };
24
25
  var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
25
26
  var _this = this;
@@ -20,7 +20,8 @@ var componentType = {
20
20
  BS_REISSUE_GOODS: 'bsReissueType',
21
21
  BS_RETURN_GOODS: 'bsReturnType',
22
22
  WDT_REISSUE_GOODS: 'wdtReissueType',
23
- WDT_RETURN_GOODS: 'wdtReturnType'
23
+ WDT_RETURN_GOODS: 'wdtReturnType',
24
+ BS_E3_REISSUE_GOODS: 'bsE3ReissueType'
24
25
  };
25
26
  var BsType = /*#__PURE__*/_createClass(function BsType(options) {
26
27
  var _this = this;
@@ -15,7 +15,8 @@ import React from "react";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  var componentType = {
18
- WDT_REISSUE_GOODS: "wdtSystemOrderNo"
18
+ WDT_REISSUE_GOODS: "wdtSystemOrderNo",
19
+ BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo"
19
20
  };
20
21
  var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
21
22
  var _this = this;
@@ -0,0 +1,58 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
4
+ import CommonHeaderGoods from "../../CommonHeaderGood";
5
+ declare class BsE3Reissue 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
+ bsType: BsType;
19
+ bsMemo: BsMemo;
20
+ systemOrderNo: SystemOrderNo;
21
+ reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
+ constructor(options: PickOption);
23
+ renderClient: (record: any) => React.JSX.Element | null;
24
+ renderPc: () => null;
25
+ renderLog: (r: Record) => React.JSX.Element;
26
+ getComponentValue: (r: Record) => {
27
+ [key: string]: any;
28
+ };
29
+ renderExport: () => null;
30
+ editRender: (p: any) => React.JSX.Element;
31
+ filterConfig: (item: ColumnConfig) => ({
32
+ searchDefaultConditions: "in";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "Cascader";
37
+ props: {
38
+ options: any[] | undefined;
39
+ fieldNames: {
40
+ label: string;
41
+ value: string;
42
+ children: string;
43
+ };
44
+ };
45
+ formatFilterValue: (val: Array<string>) => string[] | undefined;
46
+ filterFn: (value: string) => (i: Record) => boolean;
47
+ } | {
48
+ searchDefaultConditions: "like";
49
+ type: string;
50
+ id: string;
51
+ name: string;
52
+ filterComponentType: "Input";
53
+ props?: undefined;
54
+ formatFilterValue?: undefined;
55
+ filterFn?: undefined;
56
+ })[];
57
+ }
58
+ export default BsE3Reissue;
@@ -0,0 +1,191 @@
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 { BsE3Reissue as Reissue } from "@kmkf-fe-packages/basic-components";
16
+ import { SYMBOL } from "../../../constant";
17
+ import { BsGoodsTable } from "../../Common/index";
18
+ import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
19
+ import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ var typeMap = {
21
+ BS_E3_REISSUE_GOODS: {
22
+ key: "bsE3ReissueGoods",
23
+ typeName: "bsE3ReissueType",
24
+ remark: "bsE3ReissueType_memo",
25
+ systemOrderNo: "bsE3SystemOrderNo",
26
+ errMsg: "请选择百胜补发商品"
27
+ }
28
+ };
29
+ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
30
+ var _this = this,
31
+ _typeMap$options$type,
32
+ _typeMap$options$type2,
33
+ _typeMap$options$type3,
34
+ _typeMap$options$type4,
35
+ _typeMap$options$type5,
36
+ _this$componentConfig6;
37
+ _classCallCheck(this, BsE3Reissue);
38
+ _defineProperty(this, "name", void 0);
39
+ _defineProperty(this, "id", void 0);
40
+ _defineProperty(this, "sortField", void 0);
41
+ _defineProperty(this, "type", void 0);
42
+ _defineProperty(this, "rules", void 0);
43
+ _defineProperty(this, "componentConfig", void 0);
44
+ _defineProperty(this, "effects", void 0);
45
+ _defineProperty(this, "isCombinationComponent", void 0);
46
+ _defineProperty(this, "formField", void 0);
47
+ _defineProperty(this, "canSort", void 0);
48
+ _defineProperty(this, "children", void 0);
49
+ _defineProperty(this, "dataType", void 0);
50
+ _defineProperty(this, "bsType", void 0);
51
+ _defineProperty(this, "bsMemo", void 0);
52
+ _defineProperty(this, "systemOrderNo", void 0);
53
+ _defineProperty(this, "reissueGoods", void 0);
54
+ _defineProperty(this, "renderClient", function (record) {
55
+ var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
56
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
57
+ id: _this.id,
58
+ label: _this.name,
59
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
60
+ 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)]) || [],
61
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
62
+ type: _this.type
63
+ })
64
+ }) : null) : null;
65
+ });
66
+ _defineProperty(this, "renderPc", function () {
67
+ return null;
68
+ });
69
+ _defineProperty(this, "renderLog", function (r) {
70
+ var _r, _typeMap$_this$type3, _typeMap$_this$type4, _r2, _typeMap$_this$type5, _typeMap$_this$type6, _this$componentConfig2;
71
+ 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 && r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.systemOrderNo)] ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7:", _this.systemOrderNo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
72
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)]) || [],
73
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
74
+ type: _this.type
75
+ })) : 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);
76
+ });
77
+ _defineProperty(this, "getComponentValue", function (r) {
78
+ var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
79
+ var obj = {};
80
+ obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.typeName)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.typeName)];
81
+ obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
82
+ obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.systemOrderNo)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.systemOrderNo)];
83
+ return obj;
84
+ });
85
+ _defineProperty(this, "renderExport", function () {
86
+ return null;
87
+ });
88
+ _defineProperty(this, "editRender", function (p) {
89
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
90
+ return /*#__PURE__*/React.createElement(GetFormItem, {
91
+ title: _this.name,
92
+ name: _this.id,
93
+ rules: _this.rules,
94
+ required: false,
95
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
96
+ display: p === null || p === void 0 ? void 0 : p.display,
97
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
98
+ component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
99
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
100
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
101
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
102
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
103
+ width: "90%",
104
+ type: _this.type
105
+ }))
106
+ });
107
+ });
108
+ _defineProperty(this, "filterConfig", function (item) {
109
+ var _item$templateConfig;
110
+ return [{
111
+ searchDefaultConditions: SYMBOL.in,
112
+ type: item.type,
113
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
114
+ name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
115
+ filterComponentType: "Cascader",
116
+ props: {
117
+ options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
118
+ fieldNames: {
119
+ label: "label",
120
+ value: "value",
121
+ children: "children"
122
+ }
123
+ },
124
+ formatFilterValue: function formatFilterValue(val) {
125
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
126
+ return [val[val.length - 1]];
127
+ }
128
+ },
129
+ filterFn: function filterFn(value) {
130
+ return function (i) {
131
+ var _typeMap$_this$type13;
132
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.typeName)), value);
133
+ };
134
+ }
135
+ }, {
136
+ searchDefaultConditions: SYMBOL.like,
137
+ type: item.type,
138
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].systemOrderNo),
139
+ name: "".concat(item.name, "-\u8865\u53D1\u7CFB\u7EDF\u8BA2\u5355\u53F7"),
140
+ filterComponentType: "Input"
141
+ }, {
142
+ searchDefaultConditions: SYMBOL.like,
143
+ type: item.type,
144
+ id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
145
+ name: "".concat(_this.name),
146
+ filterComponentType: "Input"
147
+ }];
148
+ });
149
+ this.name = options.name;
150
+ this.id = options.id;
151
+ this.sortField = "".concat(options.id);
152
+ this.formField = "".concat(options.id);
153
+ this.type = options.type;
154
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
155
+ this.isCombinationComponent = true;
156
+ this.canSort = false;
157
+ this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
158
+ id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
159
+ name: "百胜补发类型"
160
+ }));
161
+ this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
162
+ id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.systemOrderNo),
163
+ name: "百胜补发系统订单号"
164
+ }));
165
+ this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
166
+ id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.remark),
167
+ name: "百胜补发备注"
168
+ }));
169
+ this.reissueGoods = this.type === "BS_REISSUE_GOODS" ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
170
+ id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key),
171
+ name: "商品信息"
172
+ })) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
173
+ id: "".concat(options.id, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.key),
174
+ name: "商品信息"
175
+ }));
176
+ this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
177
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
178
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
179
+ required: true,
180
+ validator: function validator(_, value) {
181
+ var _value, _typeMap$options$type6;
182
+ if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
183
+ var _typeMap$options$type7;
184
+ return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
185
+ }
186
+ return Promise.resolve();
187
+ }
188
+ }] : [];
189
+ this.dataType = "object";
190
+ });
191
+ export default BsE3Reissue;
@@ -0,0 +1,26 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
2
+ import React from 'react';
3
+ declare class ReissueGift 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
+ constructor(options: PickOption);
17
+ getParentId: () => string;
18
+ renderClient: (record: any) => React.JSX.Element | null;
19
+ renderPc: (value: unknown, record: Record) => "--" | "是" | "否";
20
+ renderLog: (r: Record) => "--" | "是" | "否" | null;
21
+ getComponentValue: (r: Record) => "--" | "是" | "否";
22
+ renderExport: (value: string, record: Record) => "--" | "是" | "否";
23
+ editRender: () => null;
24
+ filterConfig: () => never[];
25
+ }
26
+ export default ReissueGift;
@@ -0,0 +1,83 @@
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
+ 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."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _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; }
6
+ 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; } }
7
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ 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); } }
9
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ import React from 'react';
15
+ import ItemView from "../../../commonComponents/ItemView";
16
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
+ var ReissueGift = /*#__PURE__*/_createClass(function ReissueGift(options) {
18
+ var _this = this;
19
+ _classCallCheck(this, ReissueGift);
20
+ _defineProperty(this, "name", void 0);
21
+ _defineProperty(this, "id", void 0);
22
+ _defineProperty(this, "sortField", void 0);
23
+ _defineProperty(this, "type", void 0);
24
+ _defineProperty(this, "componentConfig", void 0);
25
+ _defineProperty(this, "align", void 0);
26
+ _defineProperty(this, "width", void 0);
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "formField", void 0);
29
+ _defineProperty(this, "canSort", void 0);
30
+ _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "dataType", void 0);
32
+ _defineProperty(this, "getParentId", function () {
33
+ var _this$id$split = _this.id.split('_'),
34
+ _this$id$split2 = _slicedToArray(_this$id$split, 3),
35
+ key = _this$id$split2[0],
36
+ name = _this$id$split2[1],
37
+ code = _this$id$split2[2];
38
+ return "".concat(key, "_").concat(name);
39
+ });
40
+ _defineProperty(this, "renderClient", function (record) {
41
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
42
+ id: _this.id,
43
+ label: _this.name,
44
+ value: _this.getComponentValue(record)
45
+ }) : null;
46
+ });
47
+ _defineProperty(this, "renderPc", function (value, record) {
48
+ return _this.getComponentValue(record);
49
+ });
50
+ _defineProperty(this, "renderLog", function (r) {
51
+ var id = _this.getParentId();
52
+ if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
53
+ return _this.renderPc(undefined, r);
54
+ });
55
+ _defineProperty(this, "getComponentValue", function (r) {
56
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) {
57
+ return '--';
58
+ }
59
+ return +(r === null || r === void 0 ? void 0 : r[_this.id]) ? '是' : '否';
60
+ });
61
+ _defineProperty(this, "renderExport", function (value, record) {
62
+ return _this.getComponentValue(record);
63
+ });
64
+ _defineProperty(this, "editRender", function () {
65
+ return null;
66
+ });
67
+ _defineProperty(this, "filterConfig", function () {
68
+ return [];
69
+ });
70
+ this.name = options.name;
71
+ this.id = options.id;
72
+ this.sortField = options.id;
73
+ this.formField = options.id;
74
+ this.type = options.type;
75
+ this.componentConfig = options.componentConfig;
76
+ this.align = 'left';
77
+ this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
78
+ this.isCombinationComponent = false;
79
+ this.canSort = false;
80
+ this.dataType = 'string';
81
+ this.children = [];
82
+ });
83
+ export default ReissueGift;
@@ -14,7 +14,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
16
16
  import React, { useState, useMemo } from "react";
17
- import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { ExpressData, WdtSendData, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { getAlipayBillReceipt } from "../../service/api";
19
19
  import { CopyToClipboard } from 'react-copy-to-clipboard';
20
20
  import styles from "./index.module.less";
@@ -749,6 +749,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
749
749
  }];
750
750
  }
751
751
  break;
752
+ case 'BS_E3_REISSUE_GOODS':
752
753
  case 'BS_E3_GOODS':
753
754
  {
754
755
  columns = [{
@@ -888,7 +889,10 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
888
889
  title: "\u662F\u5426\u8D60\u54C1",
889
890
  align: 'center',
890
891
  ellipsis: true,
891
- width: 100
892
+ width: 100,
893
+ render: function render(val) {
894
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
895
+ }
892
896
  }];
893
897
  }
894
898
  break;
@@ -1159,41 +1163,62 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
1159
1163
  title: "订单状态",
1160
1164
  dataIndex: "orderStatus",
1161
1165
  width: 100,
1162
- ellipsis: true
1166
+ ellipsis: true,
1167
+ render: function render(val) {
1168
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
1169
+ }
1163
1170
  }, {
1164
1171
  title: "是否被拆分",
1165
1172
  dataIndex: "isSplit",
1166
1173
  width: 100,
1167
- ellipsis: true
1174
+ ellipsis: true,
1175
+ render: function render(val) {
1176
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1177
+ }
1168
1178
  }, {
1169
1179
  title: "是否拆分子单",
1170
1180
  dataIndex: "isSplitNew",
1171
1181
  width: 100,
1172
- ellipsis: true
1182
+ ellipsis: true,
1183
+ render: function render(val) {
1184
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1185
+ }
1173
1186
  }, {
1174
1187
  title: "是否被合并",
1175
1188
  dataIndex: "isCombine",
1176
1189
  width: 100,
1177
- ellipsis: true
1190
+ ellipsis: true,
1191
+ render: function render(val) {
1192
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1193
+ }
1178
1194
  }, {
1179
1195
  title: "是否合并新单",
1180
1196
  dataIndex: "isCombineNew",
1181
1197
  width: 100,
1182
- ellipsis: true
1198
+ ellipsis: true,
1199
+ render: function render(val) {
1200
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1201
+ }
1183
1202
  }, {
1184
1203
  title: "是否复制单",
1185
1204
  dataIndex: "isCopy",
1186
1205
  width: 100,
1187
- ellipsis: true
1206
+ ellipsis: true,
1207
+ render: function render(val) {
1208
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1209
+ }
1188
1210
  }, {
1189
1211
  title: "是否换货单",
1190
1212
  dataIndex: "isExchangeOrder",
1191
1213
  width: 100,
1192
- ellipsis: true
1214
+ ellipsis: true,
1215
+ render: function render(val) {
1216
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
1217
+ }
1193
1218
  }, {
1194
1219
  title: "订单备注",
1195
1220
  dataIndex: "orderMsg",
1196
- width: 150,
1221
+ width: 100,
1197
1222
  ellipsis: true
1198
1223
  }]
1199
1224
  };
@@ -19,8 +19,9 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
19
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
20
  import React from "react";
21
21
  import ItemView from "../../commonComponents/ItemView";
22
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
22
+ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
23
23
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
24
+ import ReissueGift from "../BsE3/ReissueGift";
24
25
  var GoodHeaderMap = {
25
26
  "WDT_GOODS": {
26
27
  headerMap: {
@@ -419,7 +420,10 @@ var GoodHeaderMap = {
419
420
  component: BsHeaderChild,
420
421
  name: "是否赠品",
421
422
  key: "isGift",
422
- width: 80
423
+ width: 80,
424
+ render: function render(val) {
425
+ return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
426
+ }
423
427
  }
424
428
  },
425
429
  itemKey: {
@@ -447,6 +451,125 @@ var GoodHeaderMap = {
447
451
  isGift: "是否赠品"
448
452
  },
449
453
  moneyKey: "payment"
454
+ },
455
+ "BS_E3_REISSUE_GOODS": {
456
+ headerMap: {
457
+ sku: {
458
+ component: BsHeaderChild,
459
+ name: "SKU",
460
+ key: "sku",
461
+ width: 140
462
+ },
463
+ skuId: {
464
+ component: BsHeaderChild,
465
+ name: "SKU ID",
466
+ key: "skuId",
467
+ width: 140
468
+ },
469
+ goodsName: {
470
+ component: BsHeaderChild,
471
+ name: "商品名称",
472
+ key: "goodsName",
473
+ width: 200
474
+ },
475
+ goodsShortName: {
476
+ component: BsHeaderChild,
477
+ name: "商品简称",
478
+ key: "goodsShortName",
479
+ width: 150
480
+ },
481
+ picPath: {
482
+ component: BsHeaderChild,
483
+ name: "商品图片",
484
+ key: "picPath",
485
+ width: 80
486
+ },
487
+ goodsSn: {
488
+ component: BsHeaderChild,
489
+ name: "货号",
490
+ key: "goodsSn",
491
+ width: 140
492
+ },
493
+ goodsId: {
494
+ component: BsHeaderChild,
495
+ name: "货号ID",
496
+ key: "goodsId",
497
+ width: 100
498
+ },
499
+ colorName: {
500
+ component: BsHeaderChild,
501
+ name: "颜色名称",
502
+ key: "colorName",
503
+ width: 150
504
+ },
505
+ colorCode: {
506
+ component: BsHeaderChild,
507
+ name: "颜色代码",
508
+ key: "colorCode",
509
+ width: 150
510
+ },
511
+ sizeName: {
512
+ component: BsHeaderChild,
513
+ name: "尺码名称",
514
+ key: "sizeName",
515
+ width: 80
516
+ },
517
+ sizeCode: {
518
+ component: BsHeaderChild,
519
+ name: "尺码代码",
520
+ key: "sizeCode",
521
+ width: 150
522
+ },
523
+ brandName: {
524
+ component: BsHeaderChild,
525
+ name: "品牌名称",
526
+ key: "brandName",
527
+ width: 150
528
+ },
529
+ goodsNumber: {
530
+ component: BsHeaderChild,
531
+ name: "商品数量",
532
+ key: "goodsNumber",
533
+ width: 150
534
+ },
535
+ goodsPrice: {
536
+ component: BsHeaderChild,
537
+ name: "商品单价",
538
+ key: "goodsPrice",
539
+ width: 150
540
+ },
541
+ shopPrice: {
542
+ component: BsHeaderChild,
543
+ name: "商品网店售价",
544
+ key: "shopPrice",
545
+ width: 150
546
+ },
547
+ isGift: {
548
+ component: ReissueGift,
549
+ name: "是否赠品",
550
+ key: "isGift",
551
+ width: 150
552
+ }
553
+ },
554
+ itemKey: {
555
+ sku: "SKU",
556
+ skuId: "SKU ID",
557
+ goodsName: "商品名称",
558
+ goodsShortName: "商品简称",
559
+ picPath: "商品图片",
560
+ goodsSn: "货号",
561
+ goodsId: "货号ID",
562
+ colorName: "颜色名称",
563
+ colorCode: "颜色代码",
564
+ sizeName: "尺码名称",
565
+ sizeCode: "尺码代码",
566
+ brandName: "品牌名称",
567
+ goodsNumber: "商品数量",
568
+ goodsPrice: "商品单价",
569
+ shopPrice: "商品网店售价",
570
+ isGift: "是否赠品"
571
+ },
572
+ moneyKey: "goodPrice"
450
573
  }
451
574
  };
452
575
  GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
@@ -26,7 +26,7 @@ var typeMap = {
26
26
  };
27
27
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
28
28
  var _this = this,
29
- _this$componentConfig5,
29
+ _this$componentConfig8,
30
30
  _this$options;
31
31
  _classCallCheck(this, BasicSelect);
32
32
  _defineProperty(this, "name", void 0);
@@ -63,8 +63,9 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
63
63
  });
64
64
  });
65
65
  _defineProperty(this, "renderClient", function (record) {
66
- var _this$optionsMap;
67
- var label = (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]];
66
+ var _this$componentConfig5, _this$optionsMap;
67
+ // 特殊自定义组件为平台状态时匹配出label
68
+ var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) === 'PLATFORM_STATUS' ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
68
69
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
69
70
  id: _this.id,
70
71
  label: _this.name,
@@ -72,10 +73,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
72
73
  }) : null;
73
74
  });
74
75
  _defineProperty(this, "renderPc", function (value, record) {
75
- var _this$optionsMap2;
76
+ var _this$componentConfig6, _this$optionsMap2;
76
77
  var type = _this.type;
77
78
  var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
78
- var label = ((_this$optionsMap2 = _this.optionsMap) === null || _this$optionsMap2 === void 0 ? void 0 : _this$optionsMap2[key]) || '';
79
+ // 特殊自定义组件为平台状态时匹配出label
80
+ var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap2 = _this.optionsMap) === null || _this$optionsMap2 === void 0 ? void 0 : _this$optionsMap2[key]) || '' : key;
79
81
  return /*#__PURE__*/React.createElement("span", null, label !== null && label !== void 0 ? label : "--");
80
82
  });
81
83
  _defineProperty(this, "renderLog", function (r) {
@@ -88,10 +90,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
88
90
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
89
91
  });
90
92
  _defineProperty(this, "renderExport", function (value, record) {
91
- var _this$optionsMap3;
93
+ var _this$componentConfig7, _this$optionsMap3;
92
94
  var type = _this.type;
93
95
  var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
94
- var label = ((_this$optionsMap3 = _this.optionsMap) === null || _this$optionsMap3 === void 0 ? void 0 : _this$optionsMap3[key]) || '';
96
+ // 特殊自定义组件为平台状态时匹配出label
97
+ var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap3 = _this.optionsMap) === null || _this$optionsMap3 === void 0 ? void 0 : _this$optionsMap3[key]) || '' : key;
95
98
  return label !== null && label !== void 0 ? label : "--";
96
99
  });
97
100
  _defineProperty(this, "filterConfig", function (item) {
@@ -126,7 +129,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
126
129
  this.canSort = true;
127
130
  this.children = [];
128
131
  this.dataType = "string";
129
- this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
132
+ this.options = ((_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.options) || [];
130
133
  this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (prev, next) {
131
134
  prev[next.value] = next.label;
132
135
  return prev;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, 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, KmErpSendGood, AfterSalesOrderId, BsE3Goods } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, 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, KmErpSendGood, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicCascader | BasicSelect | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | BasicCascader | JstSendGood | KmErpSendGood | MsgStatus | BasicPicture | BasicSelect | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | 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 | Label | AfterSalesOrderId;
@@ -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, SubForm, 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, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -144,6 +144,8 @@ export var factory = function factory(type, options) {
144
144
  return new BsGoods(options);
145
145
  case "BS_E3_GOODS":
146
146
  return new BsE3Goods(options);
147
+ case "BS_E3_REISSUE_GOODS":
148
+ return new BsE3Reissue(options);
147
149
  case "BS_EXCHANGE_GOODS":
148
150
  return new BsExchange(options);
149
151
  case "WDT_EXCHANGE_GOODS":
@@ -41,6 +41,7 @@ export { default as JstSupply } from "./components/JST/JstSupply";
41
41
  export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
42
42
  export { default as BsGoods } from "./components/BS/BsGoods";
43
43
  export { default as BsE3Goods } from "./components/BsE3/BsGoods";
44
+ export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
44
45
  export { default as BsExchange } from "./components/BS/BsExchange";
45
46
  export { default as BsReissue } from "./components/BS/BsReissue";
46
47
  export { default as BsReturn } from "./components/BS/BsReturn";
package/dist/esm/index.js CHANGED
@@ -41,6 +41,7 @@ export { default as JstSupply } from "./components/JST/JstSupply";
41
41
  export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
42
42
  export { default as BsGoods } from "./components/BS/BsGoods";
43
43
  export { default as BsE3Goods } from "./components/BsE3/BsGoods";
44
+ export { default as BsE3Reissue } from "./components/BsE3/BsReissueE3";
44
45
  export { default as BsExchange } from "./components/BS/BsExchange";
45
46
  export { default as BsReissue } from "./components/BS/BsReissue";
46
47
  export { default as BsReturn } from "./components/BS/BsReturn";
@@ -62,6 +62,10 @@ export interface ComponentInterface {
62
62
  */
63
63
  formItemIndex?: number;
64
64
  componentConfig?: {
65
+ /**
66
+ * @description 特殊自定义组件有的值
67
+ */
68
+ webUniqueKey?: string;
65
69
  /**
66
70
  * @description 组件描述信息
67
71
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.19.11",
3
+ "version": "1.20.1",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.19.11",
25
- "@kmkf-fe-packages/kmkf-utils": "1.19.11",
24
+ "@kmkf-fe-packages/basic-components": "1.20.1",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.20.1",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "81c37f939a9b0f174e4bb43cbd430340a42a232f",
44
+ "gitHead": "a1dc08d9ef872780fc160b4e09fd6b8d3f3bd933",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }