@kmkf-fe-packages/services-components 0.8.13-alpha.0 → 0.8.13-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,12 @@ var typeMap = {
27
27
  name: 'bs',
28
28
  company: 'bsLogisticsCompany',
29
29
  code: 'bsLogisticsCode'
30
+ },
31
+ REISSUE_LOGISTICS: {
32
+ key: 'reissueLogisticsList',
33
+ name: 'reissue',
34
+ company: 'reissueLogisticsCompany',
35
+ code: 'reissueLogisticsCode'
30
36
  }
31
37
  };
32
38
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
@@ -32,7 +32,8 @@ var typeMap = {
32
32
  };
33
33
  var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
34
34
  var _this = this,
35
- _options$componentCon;
35
+ _options$componentCon,
36
+ _options$componentCon2;
36
37
  _classCallCheck(this, BasicPosting);
37
38
  _defineProperty(this, "name", void 0);
38
39
  _defineProperty(this, "id", void 0);
@@ -200,8 +201,8 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
200
201
  this.canSort = false;
201
202
  this.children = [];
202
203
  this.dataType = "string";
203
- this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
204
- this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
204
+ this.addressDateInstance = options.type === "BS_POSTING" || ((_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showField) === "bs" ? BsAddressData.getInstance() : AddressData.getInstance();
205
+ this.rules = options !== null && options !== void 0 && (_options$componentCon2 = options.componentConfig) !== null && _options$componentCon2 !== void 0 && _options$componentCon2.required ? [{
205
206
  validator: function validator(_, value) {
206
207
  var _value$postingAddress;
207
208
  if (!(value !== null && value !== void 0 && (_value$postingAddress = value.postingAddress) !== null && _value$postingAddress !== void 0 && _value$postingAddress.length) || !(value !== null && value !== void 0 && value.postingDetail) || !(value !== null && value !== void 0 && value.postingReceiverName) || !(value !== null && value !== void 0 && value.postingReceiverMobile)) {
@@ -1,12 +1,12 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
2
  import React from 'react';
3
- declare class BuyerMessageNotice implements ComponentInterface {
3
+ declare class BasicReissueStatusSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
@@ -14,14 +14,12 @@ declare class BuyerMessageNotice implements ComponentInterface {
14
14
  dataType: ComponentInterface['dataType'];
15
15
  options: ComponentInterface['options'];
16
16
  constructor(options: PickOption);
17
+ editRender: (p: any) => React.JSX.Element;
18
+ renderClient: (record: any) => React.JSX.Element | null;
17
19
  renderPc: (value: any, record: Record) => React.JSX.Element;
18
20
  renderLog: (r: Record) => React.JSX.Element | null;
19
- getComponentValue: (r: Record) => {
20
- value: any;
21
- };
22
- renderExport: (value: any, record: Record) => string;
23
- renderClient: (record: Record) => React.JSX.Element | null;
24
- editRender: (p: any) => React.JSX.Element;
21
+ getComponentValue: (r: Record) => any;
22
+ renderExport: (value: any, record: Record) => any;
25
23
  filterConfig: (item: ColumnConfig) => {
26
24
  searchDefaultConditions: "in";
27
25
  type: string;
@@ -29,10 +27,11 @@ declare class BuyerMessageNotice implements ComponentInterface {
29
27
  name: string;
30
28
  filterComponentType: "MultipleSelect";
31
29
  props: {
32
- options: any[];
30
+ options: {
31
+ value: string;
32
+ }[];
33
33
  };
34
34
  filterFn: (value: string) => (i: Record) => boolean;
35
35
  };
36
- formDataTransform: (v: string) => string;
37
36
  }
38
- export default BuyerMessageNotice;
37
+ export default BasicReissueStatusSelect;
@@ -1,4 +1,7 @@
1
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); }
2
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); } }
3
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; }
4
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -6,15 +9,19 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
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); }
8
11
  import React from 'react';
9
- import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
12
+ import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
10
13
  import GetFormItem from "../GetFormItem";
11
14
  import ItemView from "../../commonComponents/ItemView";
12
15
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
16
  import { SYMBOL } from "../../constant";
14
- var BuyerMessageNotice = /*#__PURE__*/_createClass(function BuyerMessageNotice(options) {
15
- var _this = this,
16
- _this$componentConfig3;
17
- _classCallCheck(this, BuyerMessageNotice);
17
+ var statusOptions = [{
18
+ value: '成功'
19
+ }, {
20
+ value: '失败'
21
+ }];
22
+ var BasicReissueStatusSelect = /*#__PURE__*/_createClass(function BasicReissueStatusSelect(options) {
23
+ var _this = this;
24
+ _classCallCheck(this, BasicReissueStatusSelect);
18
25
  _defineProperty(this, "name", void 0);
19
26
  _defineProperty(this, "id", void 0);
20
27
  _defineProperty(this, "sortField", void 0);
@@ -27,34 +34,6 @@ var BuyerMessageNotice = /*#__PURE__*/_createClass(function BuyerMessageNotice(o
27
34
  _defineProperty(this, "children", void 0);
28
35
  _defineProperty(this, "dataType", void 0);
29
36
  _defineProperty(this, "options", void 0);
30
- _defineProperty(this, "renderPc", function (value, record) {
31
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerMessageNotice")]) === undefined) {
32
- return /*#__PURE__*/React.createElement("span", null, "--");
33
- }
34
- return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerMessageNotice")]);
35
- });
36
- _defineProperty(this, "renderLog", function (r) {
37
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerMessageNotice")])) return null;
38
- return _this.renderPc(undefined, r);
39
- });
40
- _defineProperty(this, "getComponentValue", function (r) {
41
- return {
42
- value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerMessageNotice")]
43
- };
44
- });
45
- _defineProperty(this, "renderExport", function (value, record) {
46
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerMessageNotice")]) === undefined) {
47
- return '--';
48
- }
49
- return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerMessageNotice")]);
50
- });
51
- _defineProperty(this, "renderClient", function (record) {
52
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
53
- id: _this.id,
54
- label: _this.name,
55
- value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ''
56
- }) : null;
57
- });
58
37
  _defineProperty(this, "editRender", function (p) {
59
38
  var _this$componentConfig, _this$componentConfig2;
60
39
  return /*#__PURE__*/React.createElement(GetFormItem, {
@@ -63,43 +42,66 @@ var BuyerMessageNotice = /*#__PURE__*/_createClass(function BuyerMessageNotice(o
63
42
  rules: _this.rules,
64
43
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
44
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
66
- component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
45
+ component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
46
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
47
+ showSearch: true
48
+ }))
67
49
  });
68
50
  });
51
+ _defineProperty(this, "renderClient", function (record) {
52
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
53
+ id: _this.id,
54
+ label: _this.name,
55
+ value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ''
56
+ }) : null;
57
+ });
58
+ _defineProperty(this, "renderPc", function (value, record) {
59
+ var _record;
60
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_status")]) !== null && _record !== void 0 ? _record : '--');
61
+ });
62
+ _defineProperty(this, "renderLog", function (r) {
63
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_reissue_status")])) return null;
64
+ return _this.renderPc(undefined, r);
65
+ });
66
+ _defineProperty(this, "getComponentValue", function (r) {
67
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_reissue_status")];
68
+ });
69
+ _defineProperty(this, "renderExport", function (value, record) {
70
+ var _record2;
71
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_status")]) !== null && _record2 !== void 0 ? _record2 : '--';
72
+ });
69
73
  _defineProperty(this, "filterConfig", function (item) {
70
- var _item$config;
71
74
  return {
72
75
  searchDefaultConditions: SYMBOL.in,
73
76
  type: item.type,
74
- id: "".concat(item.id, "_buyerMessageNotice"),
77
+ id: "".concat(item.id, "_reissue_status"),
75
78
  // 过滤组件id
76
79
  name: item.name,
77
80
  // 过滤组件名称
78
81
  filterComponentType: 'MultipleSelect',
79
82
  props: {
80
- options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
83
+ options: statusOptions
81
84
  },
82
85
  filterFn: function filterFn(value) {
83
86
  return function (i) {
84
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'buyerMessageNotice'));
87
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'select'));
85
88
  };
86
89
  } // 第一个为选中值,第二个参数为表格行记录值
87
90
  };
88
91
  });
89
- _defineProperty(this, "formDataTransform", function (v) {
90
- return v;
91
- });
92
92
  this.name = options.name;
93
93
  this.id = options.id;
94
+ this.sortField = "".concat(options.id, "_reissue_status");
95
+ this.formField = "".concat(options.id, "_reissue_status");
94
96
  this.type = options.type;
97
+ this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
98
+ options: statusOptions
99
+ });
100
+ this.rules = [];
95
101
  this.isCombinationComponent = false;
96
102
  this.canSort = true;
97
- this.sortField = "".concat(options.id, "_buyerMessageNotice");
98
- this.formField = "".concat(options.id, "_buyerMessageNotice");
99
103
  this.children = [];
100
- this.componentConfig = options.componentConfig;
101
- this.rules = [];
102
104
  this.dataType = 'string';
103
- this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
105
+ this.options = statusOptions;
104
106
  });
105
- export default BuyerMessageNotice;
107
+ export default BasicReissueStatusSelect;
@@ -0,0 +1,36 @@
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
+ import React from "react";
3
+ declare class ReissueTradeId implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ showContains: boolean;
10
+ onlyContainsString: boolean;
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
+ constructor(options: PickOption);
19
+ renderClient: (record: any) => React.JSX.Element | null;
20
+ copyHandle: (text: string) => void;
21
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
22
+ renderLog: (r: Record) => React.JSX.Element | null;
23
+ getComponentValue: (r: Record) => any;
24
+ renderExport: (value: unknown, record: Record) => any;
25
+ editRender: (p: any) => React.JSX.Element;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "in";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ filterFn: (value: string) => (i: Record) => boolean;
33
+ formatFilterValue: (input: string) => string[];
34
+ };
35
+ }
36
+ export default ReissueTradeId;
@@ -0,0 +1,132 @@
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 _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); }
3
+ 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); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+ 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; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ 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); }
9
+ import React from "react";
10
+ import { message } from "antd";
11
+ import { TradeId } from "@kmkf-fe-packages/basic-components";
12
+ import { CopyOutlined } from "@ant-design/icons";
13
+ import GetFormItem from "../GetFormItem";
14
+ import ItemView from "../../commonComponents/ItemView";
15
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
+ import copy from "copy-to-clipboard";
17
+ import { SYMBOL } from "../../constant";
18
+ var ReissueTradeId = /*#__PURE__*/_createClass(function ReissueTradeId(options) {
19
+ var _this = this;
20
+ _classCallCheck(this, ReissueTradeId);
21
+ _defineProperty(this, "name", void 0);
22
+ _defineProperty(this, "id", void 0);
23
+ _defineProperty(this, "sortField", void 0);
24
+ _defineProperty(this, "type", void 0);
25
+ _defineProperty(this, "rules", void 0);
26
+ _defineProperty(this, "showContains", void 0);
27
+ _defineProperty(this, "onlyContainsString", void 0);
28
+ _defineProperty(this, "componentConfig", void 0);
29
+ _defineProperty(this, "effects", 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, "renderClient", function (record) {
36
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
37
+ id: _this.id,
38
+ label: _this.name,
39
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
40
+ }) : null;
41
+ });
42
+ _defineProperty(this, "copyHandle", function (text) {
43
+ copy(text);
44
+ message.success("复制成功");
45
+ });
46
+ _defineProperty(this, "renderPc", function (value, record) {
47
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_tradeId")]) === undefined) {
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
49
+ }
50
+ return /*#__PURE__*/React.createElement("span", {
51
+ onClick: function onClick(e) {
52
+ return e.stopPropagation();
53
+ }
54
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_tradeId")], /*#__PURE__*/React.createElement("span", {
55
+ onClick: function onClick(e) {
56
+ _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_tradeId")]);
57
+ e.stopPropagation();
58
+ }
59
+ }, /*#__PURE__*/React.createElement("span", {
60
+ style: {
61
+ paddingLeft: "4px",
62
+ cursor: "pointer"
63
+ }
64
+ }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
65
+ });
66
+ _defineProperty(this, "renderLog", function (r) {
67
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_reissue_tradeId")])) return null;
68
+ return _this.renderPc(undefined, r);
69
+ });
70
+ _defineProperty(this, "getComponentValue", function (r) {
71
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_reissue_tradeId")];
72
+ });
73
+ _defineProperty(this, "renderExport", function (value, record) {
74
+ var _record;
75
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_reissue_tradeId")]) !== null && _record !== void 0 ? _record : "--";
76
+ });
77
+ _defineProperty(this, "editRender", function (p) {
78
+ var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
79
+ var onTradeIdBlur = function onTradeIdBlur(e) {
80
+ var _p$onBlur;
81
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, "tradeId");
82
+ };
83
+ return /*#__PURE__*/React.createElement(GetFormItem, {
84
+ title: _this.name,
85
+ name: _this.id,
86
+ rules: _this.rules,
87
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
88
+ required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
89
+ component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
90
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
91
+ shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
92
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
93
+ disabled: true,
94
+ onBlur: onTradeIdBlur
95
+ }))
96
+ });
97
+ });
98
+ _defineProperty(this, "filterConfig", function (item) {
99
+ return {
100
+ searchDefaultConditions: SYMBOL.in,
101
+ type: item.type,
102
+ id: "".concat(item.id, "_reissue_tradeId"),
103
+ // 过滤组件id
104
+ name: item.name,
105
+ // 过滤组件名称
106
+ filterComponentType: "Input",
107
+ filterFn: function filterFn(value) {
108
+ return function (i) {
109
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "tradeId"), value);
110
+ };
111
+ },
112
+ formatFilterValue: function formatFilterValue(input) {
113
+ return input.split(/[,|,]/);
114
+ }
115
+ };
116
+ });
117
+ this.name = options.name;
118
+ this.id = options.id;
119
+ this.sortField = "".concat(options.id, "_reissue_tradeId");
120
+ this.formField = "".concat(options.id, "_reissue_tradeId");
121
+ this.type = options.type;
122
+ this.showContains = false;
123
+ this.onlyContainsString = true;
124
+ this.componentConfig = options.componentConfig;
125
+ this.effects = options.effects;
126
+ this.rules = [];
127
+ this.isCombinationComponent = false;
128
+ this.canSort = true;
129
+ this.children = [];
130
+ this.dataType = "string";
131
+ });
132
+ export default ReissueTradeId;
@@ -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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue } 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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, ReissueStatus, ReissueTradeId } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsExchange | BsGoods | BsReissue | BasicFile | BasicPosting | BasicRadio | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BasicRadio | ReissueTradeId | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | 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 | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | ReissueStatus;
@@ -1,4 +1,4 @@
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue } 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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, ReissueStatus, ReissueTradeId } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -106,6 +106,7 @@ export var factory = function factory(type, options) {
106
106
  return new TemplateSelect(options);
107
107
  case "JST_LOGISTICS":
108
108
  case "BS_LOGISTICS":
109
+ case "REISSUE_LOGISTICS":
109
110
  return new JstLogistics(options);
110
111
  case "JST_ITEM_SELECT_THIRD":
111
112
  return new JstItemSelect(options);
@@ -126,6 +127,10 @@ export var factory = function factory(type, options) {
126
127
  return new FlowWorkOrderId(options);
127
128
  case "OUTER_WORK_ORDER_ID_INPUT":
128
129
  return new FlowWorkOrderId(options);
130
+ case "REISSUE_STATUS":
131
+ return new ReissueStatus(options);
132
+ case "REISSUE_TRADE_ID":
133
+ return new ReissueTradeId(options);
129
134
  default:
130
135
  return new BasicInput(options);
131
136
  }
@@ -51,6 +51,8 @@ export { default as Submitter } from "./components/Submitter";
51
51
  export { default as Handler } from "./components/Handler";
52
52
  export { default as CompletedUser } from "./components/CompletedUser";
53
53
  export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
54
+ export { default as ReissueStatus } from "./components/ReissueStatus";
55
+ export { default as ReissueTradeId } from "./components/ReissueTradeId";
54
56
  export { factory } from "./factory";
55
57
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
56
58
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
package/dist/esm/index.js CHANGED
@@ -51,6 +51,8 @@ export { default as Submitter } from "./components/Submitter";
51
51
  export { default as Handler } from "./components/Handler";
52
52
  export { default as CompletedUser } from "./components/CompletedUser";
53
53
  export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
54
+ export { default as ReissueStatus } from "./components/ReissueStatus";
55
+ export { default as ReissueTradeId } from "./components/ReissueTradeId";
54
56
  export { factory } from "./factory";
55
57
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
56
58
  export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
@@ -62,7 +62,7 @@ export interface ComponentInterface {
62
62
  /**
63
63
  * @description 显示字段名称
64
64
  */
65
- showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all";
65
+ showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs";
66
66
  /**
67
67
  * @description 是否选择SKU
68
68
  */
@@ -143,6 +143,7 @@ export interface ComponentInterface {
143
143
  * @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
144
144
  */
145
145
  erpFlag?: boolean;
146
+ reissueFlag?: boolean;
146
147
  showHeader?: string[];
147
148
  reasonList?: any[];
148
149
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.8.13-alpha.0",
3
+ "version": "0.8.13-alpha.1",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.8.13-alpha.0",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.8.13-alpha.0"
29
+ "@kmkf-fe-packages/basic-components": "^0.8.13-alpha.1",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.13-alpha.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "9ff89895b9babf0bc9e6b4d195bca2e05a1746e5"
43
+ "gitHead": "eaffaa8f384544cd8abb9cac141419f4812af9be"
44
44
  }