@kmkf-fe-packages/services-components 2.0.26 → 2.0.27

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.
@@ -18,9 +18,14 @@ var getTemplate = function getTemplate(companyUserConfig) {
18
18
  };
19
19
  function useGetHasErpData(reduxData) {
20
20
  var companyUserConfig = useMemo(function () {
21
- var _ref, _reduxData$main$userI, _reduxData$main, _reduxData$workOrder, _userInfo$companyUser;
21
+ var _ref, _ref2, _reduxData$main$userI, _reduxData$main, _reduxData$workOrder, _reduxData$global, _userInfo$companyUser;
22
22
  // console.log("companyUserConfig--reduxData", reduxData);
23
- var userInfo = (_ref = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) !== null && _ref !== void 0 ? _ref : {};
23
+ /**
24
+ * main - pc
25
+ * workOrder - 除千牛工作台外所有插件端
26
+ * global - 千牛工作台
27
+ * **/
28
+ var userInfo = (_ref = (_ref2 = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) !== null && _ref2 !== void 0 ? _ref2 : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) !== null && _ref !== void 0 ? _ref : {};
24
29
  var companyUserConfig = (_userInfo$companyUser = userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 ? _userInfo$companyUser : {};
25
30
  if (typeof companyUserConfig === "string") {
26
31
  try {
@@ -42,9 +42,10 @@ var Global = function Global(_ref) {
42
42
  setLoading = _useState4[1];
43
43
  var reduxDataMap = useMemo(function () {
44
44
  try {
45
- sessionStorage.setItem("reduxData_test", JSON.stringify(reduxData || {}));
45
+ var _ref2, _ref3, _reduxData$main$userI, _reduxData$main, _reduxData$main$userI2, _reduxData$workOrder, _reduxData$workOrder$, _reduxData$global, _reduxData$global$use;
46
+ sessionStorage.setItem("companyKey_test", (_ref2 = (_ref3 = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : (_reduxData$main$userI2 = _reduxData$main.userInfo) === null || _reduxData$main$userI2 === void 0 ? void 0 : _reduxData$main$userI2.companyKey) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : (_reduxData$workOrder$ = _reduxData$workOrder.userInfo) === null || _reduxData$workOrder$ === void 0 ? void 0 : _reduxData$workOrder$.companyKey) !== null && _ref3 !== void 0 ? _ref3 : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : (_reduxData$global$use = _reduxData$global.userInfo) === null || _reduxData$global$use === void 0 ? void 0 : _reduxData$global$use.companyKey) !== null && _ref2 !== void 0 ? _ref2 : "");
46
47
  } catch (error) {
47
- console.log("reduxData_test-error", error);
48
+ console.log("companyKey_test_error", error);
48
49
  }
49
50
  return reduxData;
50
51
  }, [JSON.stringify(reduxData)]);
@@ -77,7 +78,7 @@ var Global = function Global(_ref) {
77
78
  return "success";
78
79
  }, [globalState, logisticsCompanyState, sendDataState, addressDataState]);
79
80
  var reloadData = /*#__PURE__*/function () {
80
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
81
82
  return _regeneratorRuntime().wrap(function _callee$(_context) {
82
83
  while (1) switch (_context.prev = _context.next) {
83
84
  case 0:
@@ -123,11 +124,11 @@ var Global = function Global(_ref) {
123
124
  }, _callee);
124
125
  }));
125
126
  return function reloadData() {
126
- return _ref2.apply(this, arguments);
127
+ return _ref4.apply(this, arguments);
127
128
  };
128
129
  }();
129
130
  var initDataSource = /*#__PURE__*/function () {
130
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
131
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
131
132
  var mapping, mergeMapping, promises, _Object$keys, _Object$keys2, _Object$keys2$filter, _promises;
132
133
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
133
134
  while (1) switch (_context2.prev = _context2.next) {
@@ -175,7 +176,7 @@ var Global = function Global(_ref) {
175
176
  }, _callee2, null, [[4, 10]]);
176
177
  }));
177
178
  return function initDataSource() {
178
- return _ref3.apply(this, arguments);
179
+ return _ref5.apply(this, arguments);
179
180
  };
180
181
  }();
181
182
  if (allState === "loading") {
@@ -22,7 +22,14 @@ import InterceptApiStatus from "./InterceptApiStatus";
22
22
  import Express from "../Express";
23
23
  import ExpressCode from "../ExpressCode";
24
24
  import ColumnHeader from "./columnHeader";
25
- var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
25
+ // import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
26
+ // import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
27
+ // import interceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
28
+ var Logistics = /*#__PURE__*/_createClass(
29
+ // interceptLogisticsUserKCode: InterceptLogisticsUserKCode;
30
+ // interceptLogisticsUserSecretKey: InterceptLogisticsUserSecretKey;
31
+
32
+ function Logistics(options) {
26
33
  var _this = this;
27
34
  _classCallCheck(this, Logistics);
28
35
  _defineProperty(this, "name", void 0);
@@ -67,6 +74,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
67
74
  interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
68
75
  interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
69
76
  interceptState: _this.interceptState.getComponentValue(r)
77
+ // interceptLogisticsUserKCode:
78
+ // this.interceptLogisticsUserKCode.getComponentValue(r),
79
+ // interceptLogisticsUserSecretKey:
80
+ // this.interceptLogisticsUserSecretKey.getComponentValue(r),
70
81
  };
71
82
  });
72
83
  _defineProperty(this, "renderPc", function () {
@@ -76,7 +87,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
76
87
  return null;
77
88
  });
78
89
  _defineProperty(this, "editRender", function (p) {
79
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects;
90
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
80
91
  return /*#__PURE__*/React.createElement(GetFormItem, {
81
92
  title: _this.name,
82
93
  name: _this.id,
@@ -84,12 +95,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
84
95
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
85
96
  display: p === null || p === void 0 ? void 0 : p.display,
86
97
  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,
87
- 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 : '',
88
- component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
98
+ 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 : "",
99
+ component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({
100
+ platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env,
101
+ onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
102
+ }, _this.componentConfig, {
89
103
  logisticsOptions: _this.expressDateInstance.getExpressData(),
90
104
  expressInterceptData: _this.expressInterceptData.getExpressData(),
91
105
  logisticsAddressData: _this.logisticsAddressData.getAddressData(),
92
- isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
106
+ isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing
93
107
  }))
94
108
  });
95
109
  });
@@ -98,7 +112,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
98
112
  subKey: "interceptCompany"
99
113
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
100
114
  subKey: "interceptCode"
101
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
115
+ })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
116
+ // this.interceptLogisticsUserKCode.filterConfig(item),
117
+ // this.interceptLogisticsUserSecretKey.filterConfig(item),
118
+ ];
102
119
  });
103
120
  this.name = options.name;
104
121
  this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
@@ -120,6 +137,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
120
137
  this.interceptSenderMobile = new InterceptSenderMobile(options);
121
138
  this.interceptSnapshot = new InterceptSnapshot(options);
122
139
  this.interceptState = new InterceptState(options);
140
+ // this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
141
+ // options,
142
+ // );
143
+ // this.interceptLogisticsUserKCode = new InterceptLogisticsUserKCode(options);
123
144
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
124
145
  id: "".concat(options.id, "_interceptCompany"),
125
146
  name: "物流信息"
@@ -131,7 +152,11 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
131
152
  this.isCombinationComponent = true;
132
153
  this.canSort = false;
133
154
  this.dataType = "object";
134
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState];
155
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState
156
+ // this.interceptLogisticsUserKCode,
157
+ // this.interceptLogisticsUserSecretKey,
158
+ ];
159
+
135
160
  this.rules = [{
136
161
  validator: function validator(_, value) {
137
162
  var _this$componentConfig5, _this$componentConfig6, _value$interceptAddre, _value$interceptSende;
@@ -0,0 +1,43 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class InterceptLogisticsUserKCode implements ComponentInterface {
5
+ name: string;
6
+ parentId: string;
7
+ id: string;
8
+ sortField: string;
9
+ companyId: string;
10
+ type: string;
11
+ rules: any[];
12
+ componentConfig: ComponentInterface["componentConfig"];
13
+ effects: ComponentInterface["effects"];
14
+ align: ALignType;
15
+ width: number;
16
+ isCombinationComponent: boolean;
17
+ formField: string;
18
+ canSort: boolean;
19
+ children: ComponentInterface[];
20
+ logisticsAddress: InstanceType<typeof LogisticsAddressData>;
21
+ dataType: ComponentInterface["dataType"];
22
+ options: ComponentInterface["options"];
23
+ constructor(options: PickOption);
24
+ getComponentValue: (r: Record) => any;
25
+ renderClient: (record: any) => React.JSX.Element | null;
26
+ renderPc: (value: any, record: Record) => any;
27
+ renderLog: (r: Record) => any[] | null;
28
+ renderExport: (value: any, record: Record) => any;
29
+ editRender: () => null;
30
+ filterConfig: (item: ColumnConfig) => {
31
+ searchDefaultConditions: "in";
32
+ type: string;
33
+ id: string;
34
+ name: string;
35
+ filterComponentType: "MultipleSelect";
36
+ props: {
37
+ options: any[];
38
+ };
39
+ formatFilterValue: (value: string[]) => string[];
40
+ filterFn: (value: string[]) => (i: Record) => boolean;
41
+ };
42
+ }
43
+ export default InterceptLogisticsUserKCode;
@@ -0,0 +1,110 @@
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, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
12
+ import { SYMBOL } from "../../constant";
13
+ var InterceptLogisticsUserKCode = /*#__PURE__*/_createClass(function InterceptLogisticsUserKCode(options) {
14
+ var _this = this;
15
+ _classCallCheck(this, InterceptLogisticsUserKCode);
16
+ _defineProperty(this, "name", void 0);
17
+ _defineProperty(this, "parentId", void 0);
18
+ _defineProperty(this, "id", void 0);
19
+ _defineProperty(this, "sortField", void 0);
20
+ _defineProperty(this, "companyId", void 0);
21
+ _defineProperty(this, "type", void 0);
22
+ _defineProperty(this, "rules", void 0);
23
+ _defineProperty(this, "componentConfig", void 0);
24
+ _defineProperty(this, "effects", void 0);
25
+ _defineProperty(this, "align", void 0);
26
+ _defineProperty(this, "width", void 0);
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "formField", void 0);
29
+ _defineProperty(this, "canSort", void 0);
30
+ _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "logisticsAddress", void 0);
32
+ _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "options", void 0);
34
+ _defineProperty(this, "getComponentValue", function (r) {
35
+ return r === null || r === void 0 ? void 0 : r[_this.id];
36
+ });
37
+ _defineProperty(this, "renderClient", function (record) {
38
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
39
+ id: _this.id,
40
+ label: _this.name,
41
+ value: record[_this.id]
42
+ }) : null;
43
+ });
44
+ _defineProperty(this, "renderPc", function (value, record) {
45
+ var _record$_this$id;
46
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
47
+ });
48
+ _defineProperty(this, "renderLog", function (r) {
49
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
50
+ return [r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
51
+ });
52
+ _defineProperty(this, "renderExport", function (value, record) {
53
+ var _record$_this$id2;
54
+ return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
55
+ });
56
+ _defineProperty(this, "editRender", function () {
57
+ return null;
58
+ });
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ return {
61
+ searchDefaultConditions: SYMBOL.in,
62
+ type: item.type,
63
+ id: "".concat(item.id, "_interceptLogisticsUserKCode"),
64
+ name: "".concat(item.name, "-\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09"),
65
+ filterComponentType: "MultipleSelect",
66
+ props: {
67
+ options: _this.options || []
68
+ },
69
+ formatFilterValue: function formatFilterValue(value) {
70
+ var _value$map;
71
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
72
+ return v === null || v === void 0 ? void 0 : v.split(",");
73
+ })) === null || _value$map === void 0 ? void 0 : _value$map.flat();
74
+ },
75
+ filterFn: function filterFn(value) {
76
+ return function (i) {
77
+ var _value$map2, _value$map2$flat;
78
+ return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
79
+ return v === null || v === void 0 ? void 0 : v.split(",");
80
+ })) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsUserKCode"));
81
+ };
82
+ }
83
+ };
84
+ });
85
+ this.name = "客户编码(K码)";
86
+ this.parentId = options.id;
87
+ this.id = "".concat(options.id, "_interceptLogisticsUserKCode");
88
+ this.sortField = "".concat(options.id, "_interceptLogisticsUserKCode");
89
+ this.formField = "".concat(options.id, "_interceptLogisticsUserKCode");
90
+ this.companyId = "".concat(options.id, "_interceptCompany");
91
+ this.type = options.type;
92
+ this.componentConfig = options.componentConfig;
93
+ this.rules = [];
94
+ this.align = "left";
95
+ this.width = 220;
96
+ this.isCombinationComponent = false;
97
+ this.canSort = true;
98
+ this.children = [];
99
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
100
+ this.logisticsAddress = LogisticsAddressData.getInstance();
101
+ this.dataType = "string";
102
+ this.options = (this.logisticsAddress.getAddressData() || []).filter(function (item) {
103
+ return item.userKCode;
104
+ });
105
+ }
106
+
107
+ //物流轨迹查询
108
+ );
109
+
110
+ export default InterceptLogisticsUserKCode;
@@ -0,0 +1,35 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptLogisticsUserSecretKey implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ companyId: 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
+ sortField: string;
15
+ formField: string;
16
+ canSort: boolean;
17
+ dataType: ComponentInterface["dataType"];
18
+ children: ComponentInterface[];
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: "like";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ filterFn: (value: string) => (i: Record) => boolean;
33
+ };
34
+ }
35
+ export default InterceptLogisticsUserSecretKey;
@@ -0,0 +1,84 @@
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, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { SYMBOL } from "../../constant";
12
+ var InterceptLogisticsUserSecretKey = /*#__PURE__*/_createClass(function InterceptLogisticsUserSecretKey(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptLogisticsUserSecretKey);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "companyId", 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, "sortField", void 0);
26
+ _defineProperty(this, "formField", void 0);
27
+ _defineProperty(this, "canSort", void 0);
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "children", 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
+ return record === null || record === void 0 ? void 0 : record[_this.id];
42
+ });
43
+ _defineProperty(this, "renderLog", function (r) {
44
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
45
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _record;
49
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ return {
56
+ searchDefaultConditions: SYMBOL.like,
57
+ type: item.type,
58
+ id: "".concat(item.id, "_interceptLogisticsUserSecretKey"),
59
+ name: "".concat(item.name, "-\u5BA2\u6237\u5BC6\u94A5"),
60
+ filterComponentType: "Input",
61
+ filterFn: function filterFn(value) {
62
+ return function (i) {
63
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsUserSecretKey")).includes(value);
64
+ };
65
+ }
66
+ };
67
+ });
68
+ this.name = "客户密钥";
69
+ this.id = "".concat(options.id, "_interceptLogisticsUserSecretKey");
70
+ this.companyId = "".concat(options.id, "_interceptCompany");
71
+ this.formField = "".concat(options.id, "_interceptLogisticsUserSecretKey");
72
+ this.sortField = "".concat(options.id, "_interceptLogisticsUserSecretKey");
73
+ this.dataType = "string";
74
+ this.type = options.type;
75
+ this.componentConfig = options.componentConfig;
76
+ this.rules = [];
77
+ this.align = "left";
78
+ this.width = 200;
79
+ this.isCombinationComponent = false;
80
+ this.canSort = true;
81
+ this.children = [];
82
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
83
+ });
84
+ export default InterceptLogisticsUserSecretKey;
@@ -25,7 +25,13 @@ import Express from "./interceptCompany";
25
25
  import ColumnHeader from "./columnHeader";
26
26
  import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
27
27
  import CopyText from "../../commonComponents/CopyText";
28
- var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
28
+ // import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
29
+ // import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
30
+ var Logistics = /*#__PURE__*/_createClass(
31
+ // interceptLogisticsUserKCode: InterceptLogisticsUserKCode;
32
+ // interceptLogisticsUserSecretKey: InterceptLogisticsUserSecretKey;
33
+
34
+ function Logistics(options) {
29
35
  var _this = this,
30
36
  _this$componentConfig5,
31
37
  _this$componentConfig6;
@@ -109,7 +115,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
109
115
  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 : "",
110
116
  component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
111
117
  expressInterceptData: _this.expressInterceptData.getExpressData(),
112
- isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
118
+ isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
119
+ effects: _this.effects
113
120
  }))
114
121
  });
115
122
  });
@@ -140,6 +147,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
140
147
  this.interceptApiStatus = new InterceptApiStatus(options);
141
148
  this.interceptSenderMobile = new InterceptSenderMobile(options);
142
149
  this.interceptSnapshot = new InterceptSnapshot(options);
150
+ // this.interceptLogisticsUserKCode = new InterceptLogisticsUserKCode(options);
151
+ // this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
152
+ // options
153
+ // );
143
154
  this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
144
155
  id: "".concat(options.id, "_logisticsInterceptCompanyList"),
145
156
  name: "物流信息"
@@ -151,7 +162,11 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
151
162
  this.isCombinationComponent = true;
152
163
  this.canSort = false;
153
164
  this.dataType = "object";
154
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot];
165
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot
166
+ // this.interceptLogisticsUserKCode,
167
+ // this.interceptLogisticsUserSecretKey,
168
+ ];
169
+
155
170
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
156
171
  required: (_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required,
157
172
  validator: function validator(_, value) {
@@ -0,0 +1,44 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class InterceptLogisticsUserKCode implements ComponentInterface {
5
+ name: string;
6
+ parentId: string;
7
+ id: string;
8
+ sortField: string;
9
+ companyId: string;
10
+ type: string;
11
+ rules: any[];
12
+ componentConfig: ComponentInterface["componentConfig"];
13
+ effects: ComponentInterface["effects"];
14
+ align: ALignType;
15
+ width: number;
16
+ isCombinationComponent: boolean;
17
+ formField: string;
18
+ canSort: boolean;
19
+ children: ComponentInterface[];
20
+ logisticsAddress: InstanceType<typeof LogisticsAddressData>;
21
+ dataType: ComponentInterface["dataType"];
22
+ options: ComponentInterface["options"];
23
+ constructor(options: PickOption);
24
+ getComponentValue: (r: Record) => any;
25
+ renderUserKCode: (record: any) => React.JSX.Element;
26
+ renderClient: () => null;
27
+ renderPc: (value: any, record: Record) => React.JSX.Element | "--";
28
+ renderLog: () => null;
29
+ renderExport: (value: any, record: Record) => any;
30
+ editRender: () => null;
31
+ filterConfig: (item: ColumnConfig) => {
32
+ searchDefaultConditions: "in";
33
+ type: string;
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "MultipleSelect";
37
+ props: {
38
+ options: any[];
39
+ };
40
+ formatFilterValue: (value: string[]) => string[];
41
+ filterFn: (value: string[]) => (i: Record) => boolean;
42
+ };
43
+ }
44
+ export default InterceptLogisticsUserKCode;
@@ -0,0 +1,113 @@
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 { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { SYMBOL } from "../../constant";
12
+ var InterceptLogisticsUserKCode = /*#__PURE__*/_createClass(function InterceptLogisticsUserKCode(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptLogisticsUserKCode);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "parentId", void 0);
17
+ _defineProperty(this, "id", void 0);
18
+ _defineProperty(this, "sortField", void 0);
19
+ _defineProperty(this, "companyId", void 0);
20
+ _defineProperty(this, "type", void 0);
21
+ _defineProperty(this, "rules", void 0);
22
+ _defineProperty(this, "componentConfig", void 0);
23
+ _defineProperty(this, "effects", void 0);
24
+ _defineProperty(this, "align", void 0);
25
+ _defineProperty(this, "width", void 0);
26
+ _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "formField", void 0);
28
+ _defineProperty(this, "canSort", void 0);
29
+ _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "logisticsAddress", void 0);
31
+ _defineProperty(this, "dataType", void 0);
32
+ _defineProperty(this, "options", void 0);
33
+ _defineProperty(this, "getComponentValue", function (r) {
34
+ var _logisticsInterceptLi;
35
+ var logisticsInterceptList = (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || [];
36
+ return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : (_logisticsInterceptLi = logisticsInterceptList.map(function (item) {
37
+ return item === null || item === void 0 ? void 0 : item.userKCode;
38
+ })) === null || _logisticsInterceptLi === void 0 ? void 0 : _logisticsInterceptLi.join(",");
39
+ });
40
+ _defineProperty(this, "renderUserKCode", function (record) {
41
+ var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
42
+ return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
43
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item !== null && item !== void 0 && item.userKCode ? item === null || item === void 0 ? void 0 : item.userKCode : "--");
44
+ }));
45
+ });
46
+ _defineProperty(this, "renderClient", function () {
47
+ return null;
48
+ });
49
+ _defineProperty(this, "renderPc", function (value, record) {
50
+ return !isNull(record[_this.id]) ? _this.renderUserKCode(record) : "--";
51
+ });
52
+ _defineProperty(this, "renderLog", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "renderExport", function (value, record) {
56
+ var _this$getComponentVal;
57
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
58
+ });
59
+ _defineProperty(this, "editRender", function () {
60
+ return null;
61
+ });
62
+ _defineProperty(this, "filterConfig", function (item) {
63
+ return {
64
+ searchDefaultConditions: SYMBOL.in,
65
+ type: item.type,
66
+ id: "".concat(item.id, "_logisticsInterceptList"),
67
+ name: "".concat(item.name, "-\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09"),
68
+ filterComponentType: "MultipleSelect",
69
+ props: {
70
+ options: _this.options || []
71
+ },
72
+ formatFilterValue: function formatFilterValue(value) {
73
+ var _value$map;
74
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
75
+ return v === null || v === void 0 ? void 0 : v.split(",");
76
+ })) === null || _value$map === void 0 ? void 0 : _value$map.flat();
77
+ },
78
+ filterFn: function filterFn(value) {
79
+ return function (i) {
80
+ var _value$map2, _value$map2$flat;
81
+ return value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (v) {
82
+ return v === null || v === void 0 ? void 0 : v.split(",");
83
+ })) === null || _value$map2 === void 0 ? void 0 : (_value$map2$flat = _value$map2.flat()) === null || _value$map2$flat === void 0 ? void 0 : _value$map2$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsInterceptList"));
84
+ };
85
+ }
86
+ };
87
+ });
88
+ this.name = "客户编码(K码)";
89
+ this.parentId = options.id;
90
+ this.id = options.id;
91
+ this.sortField = options.id;
92
+ this.formField = options.id;
93
+ this.companyId = "".concat(options.id, "_interceptCompany");
94
+ this.type = options.type;
95
+ this.componentConfig = options.componentConfig;
96
+ this.rules = [];
97
+ this.align = "left";
98
+ this.width = 220;
99
+ this.isCombinationComponent = false;
100
+ this.canSort = true;
101
+ this.children = [];
102
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
103
+ this.logisticsAddress = LogisticsAddressData.getInstance();
104
+ this.dataType = "string";
105
+ this.options = (this.logisticsAddress.getAddressData() || []).filter(function (item) {
106
+ return item.userKCode;
107
+ });
108
+ }
109
+
110
+ //物流轨迹查询
111
+ );
112
+
113
+ export default InterceptLogisticsUserKCode;
@@ -0,0 +1,35 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptLogisticsUserSecretKey implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ companyId: 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
+ sortField: string;
15
+ formField: string;
16
+ canSort: boolean;
17
+ dataType: ComponentInterface["dataType"];
18
+ children: ComponentInterface[];
19
+ constructor(options: PickOption);
20
+ getComponentValue: (r: Record) => any;
21
+ renderUserSecretKey: (record: any) => React.JSX.Element;
22
+ renderClient: () => null;
23
+ renderPc: (value: any, record: Record) => React.JSX.Element | "--";
24
+ renderLog: () => null;
25
+ renderExport: (value: any, record: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: (item: ColumnConfig) => {
28
+ searchDefaultConditions: "like";
29
+ type: string;
30
+ id: string;
31
+ name: string;
32
+ filterComponentType: "Input";
33
+ };
34
+ }
35
+ export default InterceptLogisticsUserSecretKey;
@@ -0,0 +1,83 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { SYMBOL } from "../../constant";
11
+ var InterceptLogisticsUserSecretKey = /*#__PURE__*/_createClass(function InterceptLogisticsUserSecretKey(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, InterceptLogisticsUserSecretKey);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "companyId", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "effects", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "sortField", void 0);
25
+ _defineProperty(this, "formField", void 0);
26
+ _defineProperty(this, "canSort", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "getComponentValue", function (r) {
30
+ var _logisticsInterceptLi;
31
+ var logisticsInterceptList = (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || [];
32
+ return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : (_logisticsInterceptLi = logisticsInterceptList.map(function (item) {
33
+ return item === null || item === void 0 ? void 0 : item.userSecretKey;
34
+ })) === null || _logisticsInterceptLi === void 0 ? void 0 : _logisticsInterceptLi.join(",");
35
+ });
36
+ _defineProperty(this, "renderUserSecretKey", function (record) {
37
+ var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
38
+ return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
39
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item !== null && item !== void 0 && item.userSecretKey ? item === null || item === void 0 ? void 0 : item.userSecretKey : "--");
40
+ }));
41
+ });
42
+ _defineProperty(this, "renderClient", function () {
43
+ return null;
44
+ });
45
+ _defineProperty(this, "renderPc", function (value, record) {
46
+ return !isNull(record[_this.id]) ? _this.renderUserSecretKey(record) : "--";
47
+ });
48
+ _defineProperty(this, "renderLog", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "renderExport", function (value, record) {
52
+ var _this$getComponentVal;
53
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
54
+ });
55
+ _defineProperty(this, "editRender", function () {
56
+ return null;
57
+ });
58
+ _defineProperty(this, "filterConfig", function (item) {
59
+ return {
60
+ searchDefaultConditions: SYMBOL.like,
61
+ type: item.type,
62
+ id: "".concat(item.id, "_logisticsInterceptList"),
63
+ name: "".concat(item.name, "-\u5BA2\u6237\u5BC6\u94A5"),
64
+ filterComponentType: "Input"
65
+ };
66
+ });
67
+ this.name = "客户密钥";
68
+ this.id = options.id;
69
+ this.companyId = "".concat(options.id, "_interceptCompany");
70
+ this.formField = options.id;
71
+ this.sortField = options.id;
72
+ this.dataType = "string";
73
+ this.type = options.type;
74
+ this.componentConfig = options.componentConfig;
75
+ this.rules = [];
76
+ this.align = "left";
77
+ this.width = 200;
78
+ this.isCombinationComponent = false;
79
+ this.canSort = true;
80
+ this.children = [];
81
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
82
+ });
83
+ export default InterceptLogisticsUserSecretKey;
@@ -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, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
3
+ export declare const factory: (type: string, options: PickOption) => JstSendGood | LogisticsInterception | LogisticsMoreInterception | MsgStatus | 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 | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "2.0.26",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.26",
24
+ "@kmkf-fe-packages/basic-components": "2.0.27",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.27",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "4be647c508fb8dc4e071a8084b5b7dc6549c4c61",
44
+ "gitHead": "946aeb45a02607607db54fb372884251b7ae8213",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }