@kmkf-fe-packages/services-components 2.0.4 → 2.0.8

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.
Files changed (32) hide show
  1. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  2. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +3 -0
  3. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +55 -0
  4. package/dist/esm/commonComponents/GlobalContext/index.d.ts +3 -2
  5. package/dist/esm/commonComponents/GlobalContext/index.js +109 -30
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  8. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +1 -0
  9. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +1 -0
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +3 -0
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +79 -0
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +3 -0
  13. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +80 -0
  14. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +3 -0
  15. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +78 -0
  16. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  17. package/dist/esm/components/BS/BsLogistics/index.js +22 -9
  18. package/dist/esm/components/BS/common/expressCode.js +3 -0
  19. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  20. package/dist/esm/components/Common/dist/index.js +1019 -0
  21. package/dist/esm/components/PostIng/index.js +10 -18
  22. package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -0
  23. package/dist/esm/components/Reissue/Logistics/index.js +6 -2
  24. package/dist/esm/components/StatusSelect/constants.d.ts +18 -0
  25. package/dist/esm/components/StatusSelect/constants.js +23 -0
  26. package/dist/esm/components/StatusSelect/index.d.ts +10 -6
  27. package/dist/esm/components/StatusSelect/index.js +49 -110
  28. package/dist/esm/factory.d.ts +1 -1
  29. package/dist/esm/factory.js +3 -0
  30. package/dist/esm/service/api.d.ts +1 -1
  31. package/dist/esm/service/api.js +52 -66
  32. package/package.json +4 -4
@@ -20,6 +20,7 @@ import District from "../BS/BsPosting/components//District";
20
20
  import Detail from "../BS/BsPosting/components//Detail";
21
21
  import ReceiverName from "../BS/BsPosting/components//ReceiverName";
22
22
  import ReceiverMobile from "../BS/BsPosting/components//ReceiverMobile";
23
+ import CopyText from "../../commonComponents/CopyText";
23
24
  var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
24
25
  var _this = this,
25
26
  _options$componentCon,
@@ -62,12 +63,15 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
62
63
  var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
63
64
  return _this.addressDateInstance.getNameByCode(suffix);
64
65
  }).join("");
65
- return /*#__PURE__*/React.createElement("div", {
66
- style: {
67
- maxHeight: "100px",
68
- overflowY: "auto"
69
- }
70
- }, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile));
66
+ return /*#__PURE__*/React.createElement(CopyText, {
67
+ text: "".concat(addressText).concat(detail, " ").concat(name, " ").concat(mobile),
68
+ showText: /*#__PURE__*/React.createElement("div", {
69
+ style: {
70
+ maxHeight: "100px",
71
+ overflowY: "auto"
72
+ }
73
+ }, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile))
74
+ });
71
75
  });
72
76
  _defineProperty(this, "renderLog", function (r) {
73
77
  var _ref2;
@@ -131,18 +135,6 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
131
135
  });
132
136
  _defineProperty(this, "renderClient", function (record) {
133
137
  var _ref4;
134
- // if (this.isSplitColumns) {
135
- // return (
136
- // <>
137
- // {this.province.renderClient(record)}
138
- // {this.city.renderClient(record)}
139
- // {this.district.renderClient(record)}
140
- // {this.detail.renderClient(record)}
141
- // {this.receiverName.renderClient(record)}
142
- // {this.receiverMobile.renderClient(record)}
143
- // </>
144
- // );
145
- // }
146
138
  var province = record["".concat(_this.id, "_postingProvince")];
147
139
  var city = record["".concat(_this.id, "_postingCity")];
148
140
  var district = record["".concat(_this.id, "_postingDistrict")];
@@ -21,6 +21,7 @@ declare class Logistics implements ComponentInterface {
21
21
  canSort: boolean;
22
22
  children: ComponentInterface[];
23
23
  dataType: ComponentInterface["dataType"];
24
+ logisticsType: string;
24
25
  constructor(options: PickOption);
25
26
  getSortChildFields: (type: string, options: PickOption) => any;
26
27
  renderClient: (record: any) => React.JSX.Element | null;
@@ -37,7 +37,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
37
37
  _typeMap$_options$typ2,
38
38
  _this$componentConfig9,
39
39
  _this$componentConfig11,
40
- _this$componentConfig12;
40
+ _this$componentConfig12,
41
+ _this$componentConfig13;
41
42
  _classCallCheck(this, Logistics);
42
43
  _defineProperty(this, "name", void 0);
43
44
  _defineProperty(this, "id", void 0);
@@ -53,6 +54,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
53
54
  _defineProperty(this, "canSort", void 0);
54
55
  _defineProperty(this, "children", void 0);
55
56
  _defineProperty(this, "dataType", void 0);
57
+ _defineProperty(this, "logisticsType", void 0);
56
58
  _defineProperty(this, "getSortChildFields", function (type, options) {
57
59
  var _typeMap$options$type, _typeMap$options$type2;
58
60
  return [{
@@ -111,7 +113,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
111
113
  var _typeMap$_this$type4;
112
114
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
113
115
  return (list || []).map(function (item) {
114
- return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
116
+ var _item$logisticsCompan;
117
+ return [_this.logisticsType === "input" ? (_item$logisticsCompan = item === null || item === void 0 ? void 0 : item.logisticsCompanyName) !== null && _item$logisticsCompan !== void 0 ? _item$logisticsCompan : "" : _this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
115
118
  }).join(",");
116
119
  });
117
120
  _defineProperty(this, "editRender", function (p) {
@@ -225,5 +228,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
225
228
  this.align = "left";
226
229
  this.expressDateInstance = ExpressData.getInstance((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.logistics);
227
230
  this.sortChildField = this.getSortChildFields(((_this$componentConfig12 = this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.showField) || "", _options);
231
+ this.logisticsType = ((_this$componentConfig13 = this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : _this$componentConfig13.logistics) === "gy" ? "input" : "select";
228
232
  });
229
233
  export default Logistics;
@@ -0,0 +1,18 @@
1
+ declare type OptionsType = {
2
+ value: string;
3
+ label: string;
4
+ color: string;
5
+ }[];
6
+ export interface SelectPropsType {
7
+ options: OptionsType;
8
+ key: string;
9
+ info: string;
10
+ failValue: string;
11
+ }
12
+ export declare const getSelectTypeAttribute: ({ key, info, text, failValueIndex, }: {
13
+ key: string;
14
+ info: string;
15
+ text?: string | undefined;
16
+ failValueIndex?: number | undefined;
17
+ }) => SelectPropsType;
18
+ export {};
@@ -0,0 +1,23 @@
1
+ export var getSelectTypeAttribute = function getSelectTypeAttribute(_ref) {
2
+ var key = _ref.key,
3
+ info = _ref.info,
4
+ _ref$text = _ref.text,
5
+ text = _ref$text === void 0 ? "" : _ref$text,
6
+ _ref$failValueIndex = _ref.failValueIndex,
7
+ failValueIndex = _ref$failValueIndex === void 0 ? 1 : _ref$failValueIndex;
8
+ var dataMap = {
9
+ key: key,
10
+ info: info,
11
+ options: [{
12
+ value: "".concat(text, "\u6210\u529F"),
13
+ label: "".concat(text, "\u6210\u529F"),
14
+ color: "#52c41a"
15
+ }, {
16
+ value: "".concat(text, "\u5931\u8D25"),
17
+ label: "".concat(text, "\u5931\u8D25"),
18
+ color: "#ff4d4f"
19
+ }]
20
+ };
21
+ dataMap["failValue"] = dataMap.options[failValueIndex].value;
22
+ return dataMap;
23
+ };
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class StatusSelect 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;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
15
- options: ComponentInterface['options'];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
16
  constructor(options: PickOption);
17
17
  editRender: (p: any) => React.JSX.Element;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -27,7 +27,11 @@ declare class StatusSelect implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "MultipleSelect";
29
29
  props: {
30
- options: Record[];
30
+ options: {
31
+ value: string;
32
+ label: string;
33
+ color: string;
34
+ }[];
31
35
  };
32
36
  filterFn: (value: string) => (i: Record) => boolean;
33
37
  };
@@ -8,112 +8,51 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
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
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
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 { CommonStatus } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { CommonStatus } from "@kmkf-fe-packages/basic-components";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../constant";
17
- // const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
17
+ import { getSelectTypeAttribute } from "./constants";
18
18
  var selectTypeMap = {
19
- REISSUE_STATUS: {
20
- options: [{
21
- value: '成功',
22
- label: '成功',
23
- color: '#52c41a'
24
- }, {
25
- value: '失败',
26
- label: '失败',
27
- color: '#ff4d4f'
28
- }],
29
- key: 'reissueStatusValue',
30
- info: 'reissueReason',
31
- failValue: '失败'
32
- },
33
- ADJUST_WORK_ORDER_STATUS: {
34
- options: [{
35
- value: '成功',
36
- label: '成功',
37
- color: '#52c41a'
38
- }, {
39
- value: '失败',
40
- label: '失败',
41
- color: '#ff4d4f'
42
- }],
43
- key: 'adjustWorkOrderStatusValue',
44
- info: 'adjustWorkOrderReason',
45
- failValue: '失败'
46
- },
47
- CREATE_STATUS: {
48
- options: [{
49
- value: '成功',
50
- label: '成功',
51
- color: '#52c41a'
52
- }, {
53
- value: '失败',
54
- label: '失败',
55
- color: '#ff4d4f'
56
- }],
57
- key: 'createStatusValue',
58
- info: 'createReason',
59
- failValue: '失败'
60
- },
61
- INVOICE_STATUS: {
62
- options: [{
63
- value: '成功',
64
- label: '成功',
65
- color: '#52c41a'
66
- }, {
67
- value: '失败',
68
- label: '失败',
69
- color: '#ff4d4f'
70
- }],
71
- key: 'invoiceStatusValue',
72
- info: 'invoiceReason',
73
- failValue: '失败'
74
- },
75
- AGREE_REFUND_STATUS: {
76
- options: [{
77
- value: '成功',
78
- label: '成功',
79
- color: '#52c41a'
80
- }, {
81
- value: '失败',
82
- label: '失败',
83
- color: '#ff4d4f'
84
- }],
85
- key: 'agreeRefundStatusValue',
86
- info: 'agreeRefundStatusReason',
87
- failValue: '失败'
88
- },
89
- REJECT_REFUND_STATUS: {
90
- options: [{
91
- value: '成功',
92
- label: '成功',
93
- color: '#52c41a'
94
- }, {
95
- value: '失败',
96
- label: '失败',
97
- color: '#ff4d4f'
98
- }],
99
- key: 'rejectRefundStatusValue',
100
- info: 'rejectRefundStatusReason',
101
- failValue: '失败'
102
- },
103
- INVOICING_STATUS: {
104
- options: [{
105
- value: '开票成功',
106
- label: '开票成功',
107
- color: '#52c41a'
108
- }, {
109
- value: '开票失败',
110
- label: '开票失败',
111
- color: '#ff4d4f'
112
- }],
113
- key: 'invoicingStatusValue',
114
- info: 'invoicingReason',
115
- failValue: '开票失败'
116
- }
19
+ REISSUE_STATUS: getSelectTypeAttribute({
20
+ key: "reissueStatusValue",
21
+ info: "reissueReason"
22
+ }),
23
+ ADJUST_WORK_ORDER_STATUS: getSelectTypeAttribute({
24
+ key: "adjustWorkOrderStatusValue",
25
+ info: "adjustWorkOrderReason"
26
+ }),
27
+ CREATE_STATUS: getSelectTypeAttribute({
28
+ key: "createStatusValue",
29
+ info: "createReason"
30
+ }),
31
+ INVOICE_STATUS: getSelectTypeAttribute({
32
+ key: "invoiceStatusValue",
33
+ info: "invoiceReason"
34
+ }),
35
+ AGREE_REFUND_STATUS: getSelectTypeAttribute({
36
+ key: "agreeRefundStatusValue",
37
+ info: "agreeRefundStatusReason"
38
+ }),
39
+ REJECT_REFUND_STATUS: getSelectTypeAttribute({
40
+ key: "rejectRefundStatusValue",
41
+ info: "rejectRefundStatusReason"
42
+ }),
43
+ INVOICING_STATUS: getSelectTypeAttribute({
44
+ key: "invoicingStatusValue",
45
+ info: "invoicingReason",
46
+ text: "开票"
47
+ }),
48
+ AGREE_RETURN_GOODS_STATUS: getSelectTypeAttribute({
49
+ key: "agreeReturnGoodsStatusValue",
50
+ info: "agreeReturnGoodsStatusReason"
51
+ }),
52
+ REJECT_RETURN_GOODS_STATUS: getSelectTypeAttribute({
53
+ key: "rejectReturnGoodsStatusValue",
54
+ info: "rejectReturnGoodsStatusReason"
55
+ })
117
56
  };
118
57
  var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
119
58
  var _this = this;
@@ -139,7 +78,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
139
78
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
140
79
  display: p === null || p === void 0 ? void 0 : p.display,
141
80
  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,
142
- 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 : '',
81
+ 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 : "",
143
82
  component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
144
83
  style: {
145
84
  width: 200
@@ -154,7 +93,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
154
93
  var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
155
94
  var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
156
95
  return item.value === status;
157
- })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
96
+ })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
158
97
  return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
159
98
  id: _this.id,
160
99
  label: _this.name,
@@ -164,7 +103,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
164
103
  }
165
104
  }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", {
166
105
  className: "c-red"
167
- }, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
106
+ }, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
168
107
  }) : null;
169
108
  });
170
109
  _defineProperty(this, "renderPc", function (value, record) {
@@ -172,14 +111,14 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
172
111
  var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
173
112
  var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
174
113
  return item.value === status;
175
- })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
114
+ })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
176
115
  return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
177
116
  style: {
178
117
  color: statusColor
179
118
  }
180
119
  }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", {
181
120
  className: "c-red"
182
- }, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
121
+ }, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
183
122
  });
184
123
  _defineProperty(this, "renderLog", function (r) {
185
124
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
@@ -189,7 +128,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
189
128
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
190
129
  });
191
130
  _defineProperty(this, "renderExport", function (value, record) {
192
- return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '') : '--';
131
+ return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "") : "--";
193
132
  });
194
133
  _defineProperty(this, "filterConfig", function (item) {
195
134
  return {
@@ -199,7 +138,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
199
138
  // 过滤组件id
200
139
  name: item.name,
201
140
  // 过滤组件名称
202
- filterComponentType: 'MultipleSelect',
141
+ filterComponentType: "MultipleSelect",
203
142
  props: {
204
143
  options: selectTypeMap[_this.type].options
205
144
  },
@@ -222,7 +161,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
222
161
  this.isCombinationComponent = false;
223
162
  this.canSort = true;
224
163
  this.children = [];
225
- this.dataType = 'string';
164
+ this.dataType = "string";
226
165
  this.options = selectTypeMap[options.type].options;
227
166
  });
228
167
  export default StatusSelect;
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, 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, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicCheckbox | FlowWorkOrderStatus | BasicInput | JstSendGood | MsgStatus | BasicPosting | ReissueLogistics | StatusSelect | BasicAddress | BasicCascader | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicCheckbox | BasicPosting | ReissueLogistics | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
@@ -177,6 +177,7 @@ export var factory = function factory(type, options) {
177
177
  case "WLN_LOGISTICS":
178
178
  case "WDT_LOGISTICS":
179
179
  case "JST_LOGISTICS":
180
+ case "KM_LOGISTICS":
180
181
  return new BsLogistics(options);
181
182
  case "FLOW_WORK_ORDER_ID_INPUT":
182
183
  return new FlowWorkOrderId(options);
@@ -189,6 +190,8 @@ export var factory = function factory(type, options) {
189
190
  case "INVOICING_STATUS":
190
191
  case "AGREE_REFUND_STATUS":
191
192
  case "REJECT_REFUND_STATUS":
193
+ case "AGREE_RETURN_GOODS_STATUS":
194
+ case "REJECT_RETURN_GOODS_STATUS":
192
195
  return new StatusSelect(options);
193
196
  case "RETURN_GOODS_STATUS":
194
197
  case "EXCHANGE_STATUS":
@@ -10,7 +10,7 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
10
10
  export declare const queryBsE3LogisticsCompany: () => Promise<void>;
11
11
  export declare const queryJSTLogisticsCompany: () => Promise<void>;
12
12
  export declare const queryWLNLogisticsCompany: () => Promise<void>;
13
- export declare const querySendData: () => Promise<void>;
13
+ export declare const queryKMLogisticsCompany: () => Promise<void>;
14
14
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
15
15
  export declare const queryLabel: () => Promise<any>;
16
16
  export declare const queryWorkOrderDetail: (data: any) => Promise<any>;