@kmkf-fe-packages/services-components 1.0.0 → 1.0.1-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.
package/README.md CHANGED
@@ -3,4 +3,3 @@
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
5
  ---
6
-
@@ -24,14 +24,14 @@ var typeMap = {
24
24
  typeName: 'bsReissueType',
25
25
  remark: 'bsReissueType_memo',
26
26
  errMsg: '请选择bs补发商品'
27
- },
28
- WDT_REISSUE_GOODS: {
29
- key: 'wdtReissueGoods',
30
- name: '旺店通',
31
- typeName: 'wdtReissueType',
32
- remark: 'wdtReissueType_memo',
33
- errMsg: '请选择旺店通补发商品'
34
27
  }
28
+ // WDT_REISSUE_GOODS: {
29
+ // key: 'wdtReissueGoods',
30
+ // name: '旺店通',
31
+ // typeName: 'wdtReissueType',
32
+ // remark: 'wdtReissueType_memo',
33
+ // errMsg: '请选择旺店通补发商品',
34
+ // },
35
35
  };
36
36
  var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
37
37
  var _this = this,
@@ -0,0 +1,26 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class SystemOrderNo 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: (r: any) => React.JSX.Element | null;
19
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
+ renderLog: (r: Record) => React.JSX.Element | null;
21
+ getComponentValue: (r: Record) => any;
22
+ renderExport: (value: string, record: Record) => any;
23
+ editRender: () => null;
24
+ filterConfig: () => never[];
25
+ }
26
+ export default SystemOrderNo;
@@ -0,0 +1,94 @@
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 componentType = {
18
+ WDT_REISSUE_GOODS: "wdtSystemOrderNo"
19
+ };
20
+ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
21
+ var _this = this;
22
+ _classCallCheck(this, SystemOrderNo);
23
+ _defineProperty(this, "name", void 0);
24
+ _defineProperty(this, "id", void 0);
25
+ _defineProperty(this, "sortField", void 0);
26
+ _defineProperty(this, "type", void 0);
27
+ _defineProperty(this, "componentConfig", void 0);
28
+ _defineProperty(this, "align", void 0);
29
+ _defineProperty(this, "width", void 0);
30
+ _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
32
+ _defineProperty(this, "canSort", void 0);
33
+ _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "getParentId", function () {
36
+ var _this$id$split = _this.id.split("_"),
37
+ _this$id$split2 = _slicedToArray(_this$id$split, 2),
38
+ key = _this$id$split2[0],
39
+ name = _this$id$split2[1];
40
+ return "".concat(key, "_").concat(name);
41
+ });
42
+ _defineProperty(this, "renderClient", function (r) {
43
+ var _r$key;
44
+ var _this$getParentId$spl = _this.getParentId().split("_"),
45
+ _this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
46
+ key = _this$getParentId$spl2[0];
47
+ if (!(r !== null && r !== void 0 && r[key][componentType[_this.type]])) {
48
+ return null;
49
+ }
50
+ var text = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : _r$key[componentType[_this.type]] : "";
51
+ return !isNull(r === null || r === void 0 ? void 0 : r[key]) ? /*#__PURE__*/React.createElement(ItemView, {
52
+ id: _this.id,
53
+ label: _this.name,
54
+ value: text
55
+ }) : null;
56
+ });
57
+ _defineProperty(this, "renderPc", function (value, record) {
58
+ var _this$getComponentVal;
59
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
60
+ });
61
+ _defineProperty(this, "renderLog", function (r) {
62
+ var id = _this.getParentId();
63
+ if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
64
+ return _this.renderPc(undefined, r);
65
+ });
66
+ _defineProperty(this, "getComponentValue", function (r) {
67
+ var id = _this.getParentId();
68
+ var text = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : r[id] : "";
69
+ return text;
70
+ });
71
+ _defineProperty(this, "renderExport", function (value, record) {
72
+ var _this$getComponentVal2;
73
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
74
+ });
75
+ _defineProperty(this, "editRender", function () {
76
+ return null;
77
+ });
78
+ _defineProperty(this, "filterConfig", function () {
79
+ return [];
80
+ });
81
+ this.name = options.name;
82
+ this.id = options.id;
83
+ this.sortField = options.id;
84
+ this.formField = options.id;
85
+ this.type = options.type;
86
+ this.componentConfig = options.componentConfig;
87
+ this.align = "left";
88
+ this.width = 140;
89
+ this.isCombinationComponent = false;
90
+ this.canSort = false;
91
+ this.dataType = "string";
92
+ this.children = [];
93
+ });
94
+ export default SystemOrderNo;
@@ -4,3 +4,4 @@ export { default as BsHeaderPic } from "./BsHeaderPic";
4
4
  export { default as BsHeaderGoodPic } from "./BsHeaderGoodPic";
5
5
  export { default as BsHeaderChild } from "./BsHeaderChild";
6
6
  export { default as BsHeaderGood } from "./BsHeaderGood";
7
+ export { default as SystemOrderNo } from "./SystemOrderNo";
@@ -3,4 +3,5 @@ export { default as BsMemo } from "./BsMemo";
3
3
  export { default as BsHeaderPic } from "./BsHeaderPic";
4
4
  export { default as BsHeaderGoodPic } from "./BsHeaderGoodPic";
5
5
  export { default as BsHeaderChild } from "./BsHeaderChild";
6
- export { default as BsHeaderGood } from "./BsHeaderGood";
6
+ export { default as BsHeaderGood } from "./BsHeaderGood";
7
+ export { default as SystemOrderNo } from "./SystemOrderNo";
@@ -143,7 +143,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
143
143
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
144
144
  display: p === null || p === void 0 ? void 0 : p.display,
145
145
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
146
- type: 3
146
+ type: 3,
147
+ componentType: _this.type
147
148
  }))
148
149
  });
149
150
  });
@@ -0,0 +1,37 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptState implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface["dataType"];
18
+ options: ComponentInterface["options"];
19
+ constructor(options: PickOption);
20
+ getComponentValue: (r: Record) => any;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: any, record: Record) => any;
23
+ renderLog: (r: Record) => any;
24
+ renderExport: (value: any, record: Record) => any;
25
+ editRender: () => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "in";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "MultipleSelect";
32
+ props: {
33
+ options: any[];
34
+ };
35
+ };
36
+ }
37
+ export default InterceptState;
@@ -0,0 +1,89 @@
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 _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); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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); }
8
+ import React from "react";
9
+ import ItemView from "../../commonComponents/ItemView";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { SYMBOL } from "../../constant";
12
+ var InterceptState = /*#__PURE__*/_createClass(function InterceptState(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptState);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "sortField", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "rules", void 0);
20
+ _defineProperty(this, "componentConfig", void 0);
21
+ _defineProperty(this, "effects", void 0);
22
+ _defineProperty(this, "align", void 0);
23
+ _defineProperty(this, "width", void 0);
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "formField", void 0);
26
+ _defineProperty(this, "canSort", void 0);
27
+ _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "options", void 0);
30
+ _defineProperty(this, "getComponentValue", function (r) {
31
+ return r === null || r === void 0 ? void 0 : r[_this.id];
32
+ });
33
+ _defineProperty(this, "renderClient", function (record) {
34
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
+ id: _this.id,
36
+ label: _this.name,
37
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
38
+ }) : null;
39
+ });
40
+ _defineProperty(this, "renderPc", function (value, record) {
41
+ var _record$_this$id;
42
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
43
+ });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
46
+ return r === null || r === void 0 ? void 0 : r[_this.id];
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _record$_this$id2;
50
+ return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function (item) {
56
+ return {
57
+ searchDefaultConditions: SYMBOL.in,
58
+ type: item.type,
59
+ id: "".concat(item.id, "_qySelfInterceptLogisticsStatus"),
60
+ name: "".concat(item.name, "-\u62E6\u622A\u72B6\u6001"),
61
+ filterComponentType: "MultipleSelect",
62
+ props: {
63
+ options: _this.options || []
64
+ }
65
+ };
66
+ });
67
+ this.name = "拦截状态";
68
+ this.id = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
69
+ this.sortField = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
70
+ this.formField = "".concat(options.id, "_qySelfInterceptLogisticsStatus");
71
+ this.type = options.type;
72
+ this.componentConfig = options.componentConfig;
73
+ this.rules = [];
74
+ this.align = "left";
75
+ this.width = 200;
76
+ this.isCombinationComponent = false;
77
+ this.canSort = true;
78
+ this.children = [];
79
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
80
+ this.dataType = "string";
81
+ this.options = [{
82
+ label: "拦截成功",
83
+ value: "拦截成功"
84
+ }, {
85
+ label: "拦截失败",
86
+ value: "拦截失败"
87
+ }];
88
+ });
89
+ export default InterceptState;
@@ -6,6 +6,7 @@ import InterceptSnapshot from "./interceptSnapshot";
6
6
  import InterceptAddress from "./InterceptAddress";
7
7
  import InterceptType from "./InterceptType";
8
8
  import InterceptStatus from "./InterceptStatus";
9
+ import InterceptState from "./InterceptState";
9
10
  import Express from "../Express";
10
11
  import ExpressCode from "../ExpressCode";
11
12
  declare class Logistics implements ComponentInterface {
@@ -21,6 +22,7 @@ declare class Logistics implements ComponentInterface {
21
22
  interceptLogisticsStatus: InterceptStatus;
22
23
  interceptSenderMobile: InterceptSenderMobile;
23
24
  interceptSnapshot: InterceptSnapshot;
25
+ interceptState: InterceptState;
24
26
  isCombinationComponent: boolean;
25
27
  formField: string;
26
28
  canSort: boolean;
@@ -50,21 +52,12 @@ declare class Logistics implements ComponentInterface {
50
52
  mobile: any;
51
53
  };
52
54
  interceptSnapshot: any;
55
+ interceptState: any;
53
56
  };
54
57
  renderPc: () => null;
55
58
  renderExport: () => null;
56
59
  editRender: (p: any) => React.JSX.Element;
57
60
  filterConfig: (item: ColumnConfig) => ({
58
- searchDefaultConditions: "in";
59
- type: string;
60
- id: string;
61
- name: string;
62
- filterComponentType: "MultipleSelect";
63
- props: {
64
- options: any[];
65
- };
66
- filterFn: (value: string) => (i: Record) => boolean;
67
- } | {
68
61
  searchDefaultConditions: "like";
69
62
  type: string;
70
63
  id: string;
@@ -78,13 +71,8 @@ declare class Logistics implements ComponentInterface {
78
71
  name: string;
79
72
  filterComponentType: "MultipleSelect";
80
73
  props: {
81
- options: {
82
- label: string;
83
- value: string;
84
- }[];
74
+ options: any[];
85
75
  };
86
- formatFilterValue: (value: string[]) => string[];
87
- filterFn: (value: string[]) => (i: Record) => boolean;
88
76
  })[];
89
77
  }
90
78
  export default Logistics;
@@ -17,6 +17,7 @@ import InterceptSnapshot from "./interceptSnapshot";
17
17
  import InterceptAddress from "./InterceptAddress";
18
18
  import InterceptType from "./InterceptType";
19
19
  import InterceptStatus from "./InterceptStatus";
20
+ import InterceptState from "./InterceptState";
20
21
  import Express from "../Express";
21
22
  import ExpressCode from "../ExpressCode";
22
23
  import ColumnHeader from "./columnHeader";
@@ -35,6 +36,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
35
36
  _defineProperty(this, "interceptLogisticsStatus", void 0);
36
37
  _defineProperty(this, "interceptSenderMobile", void 0);
37
38
  _defineProperty(this, "interceptSnapshot", void 0);
39
+ _defineProperty(this, "interceptState", void 0);
38
40
  _defineProperty(this, "isCombinationComponent", void 0);
39
41
  _defineProperty(this, "formField", void 0);
40
42
  _defineProperty(this, "canSort", void 0);
@@ -47,10 +49,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
47
49
  _defineProperty(this, "effects", void 0);
48
50
  _defineProperty(this, "dataType", void 0);
49
51
  _defineProperty(this, "renderClient", function (record) {
50
- return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptSnapshot.renderClient(record));
52
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
51
53
  });
52
54
  _defineProperty(this, "renderLog", function (record) {
53
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))));
55
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
54
56
  });
55
57
  _defineProperty(this, "getComponentValue", function (r) {
56
58
  return {
@@ -60,7 +62,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
60
62
  interceptType: _this.interceptType.getComponentValue(r),
61
63
  interceptLogisticsStatus: _this.interceptLogisticsStatus.getComponentValue(r),
62
64
  interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
63
- interceptSnapshot: _this.interceptSnapshot.getComponentValue(r)
65
+ interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
66
+ interceptState: _this.interceptState.getComponentValue(r)
64
67
  };
65
68
  });
66
69
  _defineProperty(this, "renderPc", function () {
@@ -91,7 +94,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
91
94
  subKey: "interceptCompany"
92
95
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
93
96
  subKey: "interceptCode"
94
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
97
+ })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
95
98
  });
96
99
  this.name = options.name;
97
100
  this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
@@ -111,6 +114,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
111
114
  this.interceptLogisticsStatus = new InterceptStatus(options);
112
115
  this.interceptSenderMobile = new InterceptSenderMobile(options);
113
116
  this.interceptSnapshot = new InterceptSnapshot(options);
117
+ this.interceptState = new InterceptState(options);
114
118
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
115
119
  id: "".concat(options.id, "_interceptCompany"),
116
120
  name: "物流信息"
@@ -122,7 +126,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
122
126
  this.isCombinationComponent = true;
123
127
  this.canSort = false;
124
128
  this.dataType = "object";
125
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
129
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot, this.interceptState];
126
130
  this.rules = [{
127
131
  validator: function validator(_, value) {
128
132
  var _this$componentConfig3, _this$componentConfig4, _value$interceptAddre, _value$interceptSende;
@@ -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 WdtReissue 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 WdtReissue;
@@ -0,0 +1,185 @@
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 { WdtReissue 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
+ WDT_REISSUE_GOODS: {
22
+ key: "wdtReissueGoods",
23
+ name: "旺店通",
24
+ typeName: "wdtReissueType",
25
+ remark: "wdtReissueType_memo",
26
+ systemOrderNo: "wdtSystemOrderNo",
27
+ errMsg: "请选择旺店通补发商品"
28
+ }
29
+ };
30
+ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
31
+ var _this = this,
32
+ _typeMap$options$type,
33
+ _typeMap$options$type2,
34
+ _typeMap$options$type3,
35
+ _typeMap$options$type4,
36
+ _typeMap$options$type5,
37
+ _this$componentConfig4;
38
+ _classCallCheck(this, WdtReissue);
39
+ _defineProperty(this, "name", void 0);
40
+ _defineProperty(this, "id", void 0);
41
+ _defineProperty(this, "sortField", void 0);
42
+ _defineProperty(this, "type", void 0);
43
+ _defineProperty(this, "rules", void 0);
44
+ _defineProperty(this, "componentConfig", void 0);
45
+ _defineProperty(this, "effects", void 0);
46
+ _defineProperty(this, "isCombinationComponent", void 0);
47
+ _defineProperty(this, "formField", void 0);
48
+ _defineProperty(this, "canSort", void 0);
49
+ _defineProperty(this, "children", void 0);
50
+ _defineProperty(this, "dataType", void 0);
51
+ _defineProperty(this, "bsType", void 0);
52
+ _defineProperty(this, "bsMemo", void 0);
53
+ _defineProperty(this, "systemOrderNo", void 0);
54
+ _defineProperty(this, "reissueGoods", void 0);
55
+ _defineProperty(this, "renderClient", function (record) {
56
+ var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
57
+ 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, {
58
+ id: _this.id,
59
+ label: _this.name,
60
+ value: /*#__PURE__*/React.createElement(BsGoodsTable, {
61
+ 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)]) || [],
62
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
63
+ type: _this.type
64
+ })
65
+ }) : null) : null;
66
+ });
67
+ _defineProperty(this, "renderPc", function () {
68
+ return null;
69
+ });
70
+ _defineProperty(this, "renderLog", function (r) {
71
+ var _r, _typeMap$_this$type3, _typeMap$_this$type4, _r2, _typeMap$_this$type5, _typeMap$_this$type6, _this$componentConfig2;
72
+ 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, {
73
+ 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)]) || [],
74
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
75
+ type: _this.type
76
+ })) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
77
+ });
78
+ _defineProperty(this, "getComponentValue", function (r) {
79
+ var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
80
+ var obj = {};
81
+ 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)];
82
+ 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)];
83
+ 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)];
84
+ return obj;
85
+ });
86
+ _defineProperty(this, "renderExport", function () {
87
+ return null;
88
+ });
89
+ _defineProperty(this, "editRender", function (p) {
90
+ var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
91
+ return /*#__PURE__*/React.createElement(GetFormItem, {
92
+ title: _this.name,
93
+ name: _this.id,
94
+ rules: _this.rules,
95
+ required: false,
96
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
97
+ display: p === null || p === void 0 ? void 0 : p.display,
98
+ component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
99
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.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].key),
139
+ name: "".concat(_this.name),
140
+ filterComponentType: "Input"
141
+ }];
142
+ });
143
+ this.name = options.name;
144
+ this.id = options.id;
145
+ this.sortField = "".concat(options.id);
146
+ this.formField = "".concat(options.id);
147
+ this.type = options.type;
148
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
149
+ this.isCombinationComponent = true;
150
+ this.canSort = false;
151
+ this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
152
+ id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
153
+ name: "补发类型"
154
+ }));
155
+ this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
156
+ id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.systemOrderNo),
157
+ name: "补发系统订单号"
158
+ }));
159
+ this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
160
+ id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.remark),
161
+ name: "补发备注"
162
+ }));
163
+ this.reissueGoods = this.type === "BS_REISSUE_GOODS" ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
164
+ id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key),
165
+ name: "商品信息"
166
+ })) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
167
+ id: "".concat(options.id, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.key),
168
+ name: "商品信息"
169
+ }));
170
+ this.children = [this.bsType, this.systemOrderNo, this.bsMemo, this.reissueGoods];
171
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
172
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
173
+ required: true,
174
+ validator: function validator(_, value) {
175
+ var _value, _typeMap$options$type6;
176
+ 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)) {
177
+ var _typeMap$options$type7;
178
+ return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
179
+ }
180
+ return Promise.resolve();
181
+ }
182
+ }] : [];
183
+ this.dataType = "object";
184
+ });
185
+ export default WdtReissue;
@@ -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 } 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, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtReissue | 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 } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -142,8 +142,9 @@ export var factory = function factory(type, options) {
142
142
  case "BS_EXCHANGE_GOODS":
143
143
  return new BsExchange(options);
144
144
  case "BS_REISSUE_GOODS":
145
- case "WDT_REISSUE_GOODS":
146
145
  return new BsReissue(options);
146
+ case "WDT_REISSUE_GOODS":
147
+ return new WdtReissue(options);
147
148
  case "BS_RETURN_GOODS":
148
149
  return new BsReturn(options);
149
150
  case "REISSUE_TRADE_ID":
@@ -196,9 +197,6 @@ export var factory = function factory(type, options) {
196
197
  return new CommonDataTime(options);
197
198
  case "FLOW_UPDATE_DATETIME":
198
199
  return new CommonDataTime(options);
199
- case "WDT_GOODS":
200
- // 万里牛商品
201
- return new WdtGoods(options);
202
200
  case "BUSINESS_ORDER_NO":
203
201
  return new CommonInput(options);
204
202
  case "PAYMENT_VOUCHER_CODE":
@@ -70,10 +70,11 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
70
70
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
71
71
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
72
72
  export { default as BsPosting } from "./components/BS/BsPosting";
73
- export { default as NodeInput } from "./components/NodeInput";
74
- export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
- export { default as MsgStatus } from "./components/MsgStatus";
73
+ export { default as NodeInput } from './components/NodeInput';
74
+ export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
75
+ export { default as MsgStatus } from './components/MsgStatus';
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
+ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
77
78
  export { default as CommonInput } from "./components/CommonInput";
78
79
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
79
80
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
package/dist/esm/index.js CHANGED
@@ -74,6 +74,7 @@ export { default as NodeInput } from "./components/NodeInput";
74
74
  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
+ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
77
78
  export { default as CommonInput } from "./components/CommonInput";
78
79
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
79
80
  // TODO: ERP 打款工单使用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-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.0.0",
24
- "@kmkf-fe-packages/kmkf-utils": "^1.0.0"
23
+ "@kmkf-fe-packages/basic-components": "^1.0.1-rc.0",
24
+ "@kmkf-fe-packages/kmkf-utils": "^1.0.1-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": "d76814d115371d8783809ec0c449aba8ab8557ca",
40
+ "gitHead": "ede17f45daed4f2c60dee005f0e83f5b257a4755",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }