@kmkf-fe-packages/services-components 1.19.6 → 1.19.8-beta.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.
@@ -19,7 +19,8 @@ var typeMap = {
19
19
  ACTUAL_PAYMENT: 'actualPayment',
20
20
  BS_NET_RECEIPTS: 'bsNetReceipts',
21
21
  BS_DEPOSIT: 'bsDeposit',
22
- BS_PACKAGE_WEIGHT: 'bsPackageWeight'
22
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
23
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment'
23
24
  };
24
25
  var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
25
26
  var _this = this;
@@ -162,7 +163,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
162
163
  this.canSort = true;
163
164
  this.children = [];
164
165
  this.componentConfig = options.componentConfig;
165
- this.rules = options.type === 'ACTUAL_PAYMENT' ? [{
166
+ this.rules = ['ACTUAL_PAYMENT', 'ACTUAL_RECEIPT_PAYMENT'].includes(options.type) ? [{
166
167
  pattern: /^\d+(\.\d{1,2})?$/,
167
168
  message: '字段为正数或最多两位小数'
168
169
  }] : [{
@@ -173,7 +174,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
173
174
  ACTUAL_PAYMENT: 'actualPayment',
174
175
  BS_NET_RECEIPTS: 'bsNetReceipts',
175
176
  BS_DEPOSIT: 'bsDeposit',
176
- BS_PACKAGE_WEIGHT: 'bsPackageWeight'
177
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
178
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment'
177
179
  };
178
180
  });
179
181
  export default ActualPayment;
@@ -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.typeName),
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;
@@ -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 = [{
@@ -447,6 +447,125 @@ var GoodHeaderMap = {
447
447
  isGift: "是否赠品"
448
448
  },
449
449
  moneyKey: "payment"
450
+ },
451
+ "BS_E3_REISSUE_GOODS": {
452
+ headerMap: {
453
+ sku: {
454
+ component: BsHeaderChild,
455
+ name: "SKU",
456
+ key: "sku",
457
+ width: 140
458
+ },
459
+ skuId: {
460
+ component: BsHeaderChild,
461
+ name: "SKU ID",
462
+ key: "skuId",
463
+ width: 140
464
+ },
465
+ goodsName: {
466
+ component: BsHeaderChild,
467
+ name: "商品名称",
468
+ key: "goodsName",
469
+ width: 100
470
+ },
471
+ goodsShortName: {
472
+ component: BsHeaderChild,
473
+ name: "商品简称",
474
+ key: "goodsShortName",
475
+ width: 70
476
+ },
477
+ picPath: {
478
+ component: BsHeaderChild,
479
+ name: "商品图片",
480
+ key: "picPath",
481
+ width: 80
482
+ },
483
+ goodsSn: {
484
+ component: BsHeaderChild,
485
+ name: "货号",
486
+ key: "goodsSn",
487
+ width: 140
488
+ },
489
+ goodsId: {
490
+ component: BsHeaderChild,
491
+ name: "货号ID",
492
+ key: "goodsId",
493
+ width: 100
494
+ },
495
+ colorName: {
496
+ component: BsHeaderChild,
497
+ name: "颜色名称",
498
+ key: "colorName",
499
+ width: 80
500
+ },
501
+ colorCode: {
502
+ component: BsHeaderChild,
503
+ name: "颜色代码",
504
+ key: "colorCode",
505
+ width: 80
506
+ },
507
+ sizeName: {
508
+ component: BsHeaderChild,
509
+ name: "尺码名称",
510
+ key: "sizeName",
511
+ width: 80
512
+ },
513
+ sizeCode: {
514
+ component: BsHeaderChild,
515
+ name: "尺码代码",
516
+ key: "sizeCode",
517
+ width: 80
518
+ },
519
+ brandName: {
520
+ component: BsHeaderChild,
521
+ name: "品牌名称",
522
+ key: "brandName",
523
+ width: 80
524
+ },
525
+ goodsNumber: {
526
+ component: BsHeaderChild,
527
+ name: "商品数量",
528
+ key: "goodsNumber",
529
+ width: 80
530
+ },
531
+ goodsPrice: {
532
+ component: BsHeaderChild,
533
+ name: "商品单价",
534
+ key: "goodsPrice",
535
+ width: 80
536
+ },
537
+ shopPrice: {
538
+ component: BsHeaderChild,
539
+ name: "商品网店售价",
540
+ key: "shopPrice",
541
+ width: 80
542
+ },
543
+ isGift: {
544
+ component: BsHeaderChild,
545
+ name: "是否赠品",
546
+ key: "isGift",
547
+ width: 80
548
+ }
549
+ },
550
+ itemKey: {
551
+ sku: "SKU",
552
+ skuId: "SKU ID",
553
+ goodsName: "商品名称",
554
+ goodsShortName: "商品简称",
555
+ picPath: "商品图片",
556
+ goodsSn: "货号",
557
+ goodsId: "货号ID",
558
+ colorName: "颜色名称",
559
+ colorCode: "颜色代码",
560
+ sizeName: "尺码名称",
561
+ sizeCode: "尺码代码",
562
+ brandName: "品牌名称",
563
+ goodsNumber: "商品数量",
564
+ goodsPrice: "商品单价",
565
+ shopPrice: "商品网店售价",
566
+ isGift: "是否赠品"
567
+ },
568
+ moneyKey: "goodPrice"
450
569
  }
451
570
  };
452
571
  GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
@@ -13,6 +13,7 @@ declare class BasicSelect implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface["dataType"];
15
15
  options: ComponentInterface["options"];
16
+ optionsMap: ComponentInterface['optionsMap'];
16
17
  constructor(options: PickOption);
17
18
  getKeyByComponentType: (type: string) => any;
18
19
  editRender: (p: any) => React.JSX.Element;
@@ -26,7 +26,8 @@ var typeMap = {
26
26
  };
27
27
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
28
28
  var _this = this,
29
- _this$componentConfig5;
29
+ _this$componentConfig5,
30
+ _this$options;
30
31
  _classCallCheck(this, BasicSelect);
31
32
  _defineProperty(this, "name", void 0);
32
33
  _defineProperty(this, "id", void 0);
@@ -40,6 +41,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
40
41
  _defineProperty(this, "children", void 0);
41
42
  _defineProperty(this, "dataType", void 0);
42
43
  _defineProperty(this, "options", void 0);
44
+ _defineProperty(this, "optionsMap", void 0);
43
45
  _defineProperty(this, "getKeyByComponentType", function (type) {
44
46
  return typeMap[type].key || "";
45
47
  });
@@ -61,16 +63,20 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
61
63
  });
62
64
  });
63
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]];
64
68
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
65
69
  id: _this.id,
66
70
  label: _this.name,
67
- value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
71
+ value: label || ""
68
72
  }) : null;
69
73
  });
70
74
  _defineProperty(this, "renderPc", function (value, record) {
71
- var _record;
75
+ var _this$optionsMap2;
72
76
  var type = _this.type;
73
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
77
+ 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
+ return /*#__PURE__*/React.createElement("span", null, label !== null && label !== void 0 ? label : "--");
74
80
  });
75
81
  _defineProperty(this, "renderLog", function (r) {
76
82
  var type = _this.type;
@@ -82,9 +88,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
82
88
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
83
89
  });
84
90
  _defineProperty(this, "renderExport", function (value, record) {
85
- var _record2;
91
+ var _this$optionsMap3;
86
92
  var type = _this.type;
87
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
93
+ 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]) || '';
95
+ return label !== null && label !== void 0 ? label : "--";
88
96
  });
89
97
  _defineProperty(this, "filterConfig", function (item) {
90
98
  var _item$config;
@@ -119,5 +127,9 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
119
127
  this.children = [];
120
128
  this.dataType = "string";
121
129
  this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
130
+ this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (prev, next) {
131
+ prev[next.value] = next.label;
132
+ return prev;
133
+ }, {});
122
134
  });
123
135
  export default BasicSelect;
@@ -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 | BsE3Goods | BasicPicture | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | 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 | 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 | BsE3Reissue | BasicPicture | BasicSelect | BasicInput | BasicAddress | BasicCascader | 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 | JstSendGood | JstSupply | BsSystemOrder | 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;
@@ -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) {
@@ -75,6 +75,7 @@ export var factory = function factory(type, options) {
75
75
  case "RETURN_LOGISTICS_SELECT":
76
76
  return new ReturnLogistics(options);
77
77
  case "ACTUAL_PAYMENT":
78
+ case "ACTUAL_RECEIPT_PAYMENT":
78
79
  case "BS_NET_RECEIPTS":
79
80
  case "BS_DEPOSIT":
80
81
  case "BS_PACKAGE_WEIGHT":
@@ -144,6 +145,8 @@ export var factory = function factory(type, options) {
144
145
  return new BsGoods(options);
145
146
  case "BS_E3_GOODS":
146
147
  return new BsE3Goods(options);
148
+ case "BS_E3_REISSUE_GOODS":
149
+ return new BsE3Reissue(options);
147
150
  case "BS_EXCHANGE_GOODS":
148
151
  return new BsExchange(options);
149
152
  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";
@@ -50,6 +50,7 @@ export interface ComponentInterface {
50
50
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
51
51
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
52
52
  options?: Array<any>;
53
+ optionsMap?: Record;
53
54
  templateId?: string;
54
55
  flowTemplateKey?: string;
55
56
  workOrderUniqueKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.19.6",
3
+ "version": "1.19.8-beta.0",
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.6",
25
- "@kmkf-fe-packages/kmkf-utils": "1.19.6",
24
+ "@kmkf-fe-packages/basic-components": "1.19.8-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.0",
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": "d4a4fa0b3a1da6acfc5f42ab48438d64acf3dccc",
44
+ "gitHead": "e4f6b5f6a88454228c9d3f95a50aa0fe7cdd55ea",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }