@kmkf-fe-packages/services-components 2.3.11 → 2.3.14

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.
@@ -1,6 +1,6 @@
1
1
  import LogisticsInterception from "../components/LogisticsInterception";
2
2
  import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
3
- export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/AfterSalesOrderId").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/EItemEnCode").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
3
+ export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/ActualPayment").default | import("../components/Address").default | import("../components/AfterSalesOrderId").default | import("../components/Alipay").default | import("../components/BS/BsExchange").default | import("../components/BS/BsGoods").default | import("../components/BS/BsLogistics").default | import("../components/BS/BsPosting").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/BS/BsSystemOrder").default | import("../components/BsE3/BsGoods").default | import("../components/BsE3/BsReissueE3").default | import("../components/BuyerNick").default | import("../components/Calculation").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/CommonDataTime").default | import("../components/CommonInput").default | import("../components/CommonMultiStatus").default | import("../components/CommonSystemOrder").default | import("../components/CompletedUser").default | import("../components/DataTime").default | import("../components/EItemEnCode").default | import("../components/EItemId").default | import("../components/EItemSelect").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/Remark").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
4
4
  export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
5
5
  queryWorkOrderDetail?: ((p: any) => void) | undefined;
6
6
  flatTemplateList?: any;
@@ -13,7 +13,15 @@ declare class BsSystemOrder implements ComponentInterface {
13
13
  canSort: boolean;
14
14
  dataType: ComponentInterface["dataType"];
15
15
  children: ComponentInterface[];
16
+ sortChildField: {
17
+ name: string;
18
+ key: string;
19
+ dataType: string;
20
+ [key: string]: any;
21
+ }[];
22
+ compoundConfig: ComponentInterface["compoundConfig"];
16
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => any;
17
25
  renderClient: (record: any) => React.JSX.Element | null;
18
26
  renderPc: () => null;
19
27
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -2,6 +2,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2
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
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
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
9
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
11
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -34,7 +40,9 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
34
40
  _getSystemShowHead,
35
41
  _typeMap$options$type,
36
42
  _options$componentCon,
37
- _this$componentConfig5;
43
+ _this$componentConfig6,
44
+ _typeMap$options$type2,
45
+ _typeMap$options$type3;
38
46
  _classCallCheck(this, BsSystemOrder);
39
47
  _defineProperty(this, "name", void 0);
40
48
  _defineProperty(this, "id", void 0);
@@ -48,15 +56,40 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
48
56
  _defineProperty(this, "canSort", void 0);
49
57
  _defineProperty(this, "dataType", void 0);
50
58
  _defineProperty(this, "children", void 0);
59
+ _defineProperty(this, "sortChildField", void 0);
60
+ _defineProperty(this, "compoundConfig", void 0);
61
+ _defineProperty(this, "getSortChildFields", function () {
62
+ var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
63
+ return [{
64
+ name: "绑定订单号",
65
+ key: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.orderNo,
66
+ dataType: "string"
67
+ }, {
68
+ name: "选中系统订单号",
69
+ key: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.selectId,
70
+ dataType: "array"
71
+ }].concat(_toConsumableArray(getSystemShowHead({
72
+ columns: ((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.columns) || [],
73
+ showHeader: (_this === null || _this === void 0 ? void 0 : (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
74
+ }).filter(function (item) {
75
+ return !["picUrl"].includes(item.dataIndex);
76
+ }).map(function (item) {
77
+ return {
78
+ name: item.title,
79
+ key: "".concat(_this.id, "_").concat(item.dataIndex),
80
+ dataType: "arrayObject"
81
+ };
82
+ })));
83
+ });
51
84
  _defineProperty(this, "renderClient", function (record) {
52
- var _this$componentConfig;
85
+ var _this$componentConfig2;
53
86
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
54
87
  id: _this.id,
55
88
  label: _this.name,
56
89
  value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
57
90
  value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
58
91
  type: _this.type,
59
- showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
92
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
60
93
  })
61
94
  })) : null;
62
95
  });
@@ -64,7 +97,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
64
97
  return null;
65
98
  });
66
99
  _defineProperty(this, "renderLog", function (r) {
67
- var _this$componentConfig2;
100
+ var _this$componentConfig3;
68
101
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
69
102
  return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
70
103
  value: {
@@ -72,7 +105,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
72
105
  selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
73
106
  },
74
107
  type: _this.type,
75
- showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
108
+ showHeader: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || []
76
109
  });
77
110
  });
78
111
  _defineProperty(this, "getComponentValue", function (r) {
@@ -82,7 +115,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
82
115
  return null;
83
116
  });
84
117
  _defineProperty(this, "editRender", function (p) {
85
- var _this$componentConfig3, _this$componentConfig4;
118
+ var _this$componentConfig4, _this$componentConfig5;
86
119
  return /*#__PURE__*/React.createElement(GetFormItem, {
87
120
  title: _this.name,
88
121
  name: _this.id,
@@ -90,7 +123,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
90
123
  required: false,
91
124
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
92
125
  display: p === null || p === void 0 ? void 0 : p.display,
93
- 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 : "",
126
+ tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
94
127
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
95
128
  onChange: p === null || p === void 0 ? void 0 : p.onChange,
96
129
  type: _this.type
@@ -132,7 +165,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
132
165
  }));
133
166
  })) || [];
134
167
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
135
- this.rules = this !== null && this !== void 0 && (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
168
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
136
169
  required: true,
137
170
  validator: function validator(_, value) {
138
171
  var _value$selectIds;
@@ -143,5 +176,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
143
176
  }
144
177
  }] : [];
145
178
  this.dataType = "object";
179
+ this.sortChildField = this.getSortChildFields();
180
+ this.compoundConfig = (_typeMap$options$type2 = typeMap[options.type]) !== null && _typeMap$options$type2 !== void 0 && _typeMap$options$type2.compoundConfig ? (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.compoundConfig(options.id) : [];
146
181
  });
147
182
  export default BsSystemOrder;
@@ -1,19 +1,21 @@
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 BasicCascader 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
- format: ComponentInterface["format"];
16
- options: ComponentInterface["options"];
14
+ dataType: ComponentInterface['dataType'];
15
+ format: ComponentInterface['format'];
16
+ options: ComponentInterface['options'];
17
+ exampleValue?: string;
18
+ standardDateType: ComponentInterface['standardDateType'];
17
19
  constructor(options: PickOption);
18
20
  /**
19
21
  * 通过值计算展示内容
@@ -6,13 +6,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
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
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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 { Cascader } from "antd";
11
- import intersection from "lodash/intersection";
9
+ import React from 'react';
10
+ import { Cascader } from 'antd';
11
+ import intersection from 'lodash/intersection';
12
12
  import GetFormItem from "../GetFormItem";
13
- import { findLabelBySelectValue, transMultSelectOptions, tree } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { findLabelBySelectValue, transMultSelectOptions, tree } from '@kmkf-fe-packages/kmkf-utils';
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
17
  var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
18
18
  var _this = this,
@@ -31,11 +31,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
31
31
  _defineProperty(this, "dataType", void 0);
32
32
  _defineProperty(this, "format", void 0);
33
33
  _defineProperty(this, "options", void 0);
34
+ _defineProperty(this, "exampleValue", void 0);
35
+ _defineProperty(this, "standardDateType", void 0);
34
36
  _defineProperty(this, "getValues", function (value) {
35
37
  var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
36
38
  return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
37
39
  return i.label;
38
- })) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(",");
40
+ })) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(',');
39
41
  });
40
42
  _defineProperty(this, "renderClient", function (record) {
41
43
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -51,7 +53,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
51
53
  }
52
54
  return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
53
55
  return item === null || item === void 0 ? void 0 : item.label;
54
- })) === null || _ref$map === void 0 ? void 0 : _ref$map.join(","));
56
+ })) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
55
57
  // return (
56
58
  // <span>
57
59
  // {findLabelBySelectValue(
@@ -75,11 +77,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
75
77
  _defineProperty(this, "renderExport", function (value, record) {
76
78
  var _ref2, _ref2$map;
77
79
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
78
- return "--";
80
+ return '--';
79
81
  }
80
82
  return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
81
83
  return item === null || item === void 0 ? void 0 : item.label;
82
- })) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(",");
84
+ })) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
83
85
  // return findLabelBySelectValue(
84
86
  // (record?.[`${this.id}_multSelect`] || [])?.map(
85
87
  // (item: any) => item.actived
@@ -98,14 +100,14 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
98
100
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
99
101
  required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
100
102
  display: p === null || p === void 0 ? void 0 : p.display,
101
- tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
103
+ tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
102
104
  component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
103
105
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
104
106
  options: transMultSelectOptions(((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || []),
105
107
  fieldNames: {
106
- label: "label",
107
- value: "actived",
108
- children: "children"
108
+ label: 'label',
109
+ value: 'actived',
110
+ children: 'children'
109
111
  },
110
112
  showSearch: true,
111
113
  onChange: p === null || p === void 0 ? void 0 : p.onChange
@@ -122,26 +124,26 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
122
124
  // 过滤组件id
123
125
  name: item.name,
124
126
  // 过滤组件名称
125
- filterComponentType: "Cascader",
127
+ filterComponentType: 'Cascader',
126
128
  props: {
127
129
  options: options,
128
130
  multiple: true,
129
- maxTagCount: "responsive",
131
+ maxTagCount: 'responsive',
130
132
  fieldNames: {
131
- label: "label",
132
- value: "actived",
133
- children: "children"
133
+ label: 'label',
134
+ value: 'actived',
135
+ children: 'children'
134
136
  }
135
137
  },
136
138
  filterFn: function filterFn(value) {
137
139
  return function (i) {
138
- return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "basicMultSelect")).length > 0;
140
+ return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
139
141
  };
140
142
  },
141
143
  formatFilterValue: function formatFilterValue(val) {
142
144
  if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
143
145
  return val.map(function (item) {
144
- var node = tree.findNodeByValue(options, "actived", item[item.length - 1]);
146
+ var node = tree.findNodeByValue(options, 'actived', item[item.length - 1]);
145
147
  if (node) {
146
148
  var label = node.label,
147
149
  actived = node.actived;
@@ -165,9 +167,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
165
167
  this.children = [];
166
168
  this.isCombinationComponent = false;
167
169
  this.canSort = true;
168
- this.dataType = "array";
169
- this.format = "cascader";
170
+ this.dataType = 'array';
171
+ this.format = 'cascader';
170
172
  this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
173
+ this.standardDateType = 'Array';
174
+ this.exampleValue = '[{"label":"卖家补偿","actived":3},{"label":"麦基修改","actived":"3-1"}]';
171
175
  }
172
176
 
173
177
  /**
@@ -1,19 +1,19 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
3
- import AlipayNick from "./AlipayNick";
4
- import AlipayNo from "./AlipayNo";
5
- import AlipayTime from "./AlipayTime";
6
- import BuyerNick from "./BuyerNick";
7
- import PaymentAmount from "./PaymentAmount";
8
- import PaymentStatus from "./PaymentStatus";
9
- import PaymentTid from "./PaymentTid";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
+ import AlipayNick from './AlipayNick';
4
+ import AlipayNo from './AlipayNo';
5
+ import AlipayTime from './AlipayTime';
6
+ import BuyerNick from './BuyerNick';
7
+ import PaymentAmount from './PaymentAmount';
8
+ import PaymentStatus from './PaymentStatus';
9
+ import PaymentTid from './PaymentTid';
10
10
  declare class Logistics implements ComponentInterface {
11
11
  name: string;
12
12
  id: string;
13
13
  sortField: string;
14
14
  type: string;
15
15
  rules: any[];
16
- componentConfig: ComponentInterface["componentConfig"];
16
+ componentConfig: ComponentInterface['componentConfig'];
17
17
  paymentTid: PaymentTid;
18
18
  paymentStatus: PaymentStatus;
19
19
  paymentAmount: PaymentAmount;
@@ -25,8 +25,9 @@ declare class Logistics implements ComponentInterface {
25
25
  formField: string;
26
26
  canSort: boolean;
27
27
  children: ComponentInterface[];
28
- dataType: ComponentInterface["dataType"];
29
- effects: ComponentInterface["effects"];
28
+ dataType: ComponentInterface['dataType'];
29
+ effects: ComponentInterface['effects'];
30
+ compoundConfig: ComponentInterface['compoundConfig'];
30
31
  constructor(options: PickOption);
31
32
  renderClient: (record: any, params: any) => React.JSX.Element;
32
33
  renderPc: () => null;
@@ -8,8 +8,8 @@ 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 { Payment as ApaasPayment } from "@kmkf-fe-packages/basic-components";
11
+ import React from 'react';
12
+ import { Payment as ApaasPayment } from '@kmkf-fe-packages/basic-components';
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import AlipayNick from "./AlipayNick";
15
15
  import AlipayNo from "./AlipayNo";
@@ -40,6 +40,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
40
40
  _defineProperty(this, "children", void 0);
41
41
  _defineProperty(this, "dataType", void 0);
42
42
  _defineProperty(this, "effects", void 0);
43
+ _defineProperty(this, "compoundConfig", void 0);
43
44
  _defineProperty(this, "renderClient", function (record, params) {
44
45
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record, params), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
45
46
  });
@@ -104,32 +105,51 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
104
105
  validator: function validator(_, value) {
105
106
  var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9;
106
107
  if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
107
- return Promise.reject(new Error("请输入打款金额"));
108
+ return Promise.reject(new Error('请输入打款金额'));
108
109
  } else if (value !== null && value !== void 0 && value.enterprisePaymentRefundFee && !/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value === null || value === void 0 ? void 0 : value.enterprisePaymentRefundFee)) {
109
- return Promise.reject(new Error("打款金额最多2位小数"));
110
+ return Promise.reject(new Error('打款金额最多2位小数'));
110
111
  }
111
112
  if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
112
- return Promise.reject(new Error("请输入订单编号"));
113
+ return Promise.reject(new Error('请输入订单编号'));
113
114
  } else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
114
- return Promise.reject(new Error("请输入正确的订单编号"));
115
+ return Promise.reject(new Error('请输入正确的订单编号'));
115
116
  }
116
117
  if ((_this$componentConfig8 = _this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
117
- return Promise.reject(new Error("请输入支付宝名称"));
118
+ return Promise.reject(new Error('请输入支付宝名称'));
118
119
  }
119
120
  if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
120
- return Promise.reject(new Error("请输入支付宝账号"));
121
+ return Promise.reject(new Error('请输入支付宝账号'));
121
122
  } else if (value.enterprisePaymentAlipayNo && !/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value.enterprisePaymentAlipayNo)) {
122
- return Promise.reject(new Error("请输入正确的支付宝账号格式"));
123
+ return Promise.reject(new Error('请输入正确的支付宝账号格式'));
123
124
  }
124
125
  //支付宝信息不能只填一个,否则不能打款
125
126
  if (value !== null && value !== void 0 && value.enterprisePaymentAlipayNick || value !== null && value !== void 0 && value.enterprisePaymentAlipayNo) {
126
127
  if (!(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick && value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
127
- return Promise.reject(new Error("支付宝姓名/账号都要填写"));
128
+ return Promise.reject(new Error('支付宝姓名/账号都要填写'));
128
129
  }
129
130
  }
130
131
  return Promise.resolve();
131
132
  }
132
133
  }];
133
- this.dataType = "object";
134
+ this.dataType = 'object';
135
+ this.compoundConfig = [{
136
+ name: "\u8BA2\u5355\u7F16\u53F7",
137
+ id: "".concat(options.id, "_enterprisePaymentTid")
138
+ }, {
139
+ name: "\u6253\u6B3E\u91D1\u989D",
140
+ id: "".concat(options.id, "_enterprisePaymentRefundFee")
141
+ }, {
142
+ name: "\u4E70\u5BB6\u6635\u79F0",
143
+ id: "".concat(options.id, "_enterprisePaymentBuyerNick")
144
+ }, {
145
+ name: "\u652F\u4ED8\u5B9D\u59D3\u540D",
146
+ id: "".concat(options.id, "_enterprisePaymentAlipayNick")
147
+ }, {
148
+ name: "\u652F\u4ED8\u5B9D\u8D26\u53F7",
149
+ id: "".concat(options.id, "_enterprisePaymentAlipayNo")
150
+ }, {
151
+ name: "\u6253\u6B3E\u72B6\u6001",
152
+ id: "".concat(options.id, "_enterprisePaymentStatus")
153
+ }];
134
154
  });
135
155
  export default Logistics;
@@ -18,8 +18,17 @@ declare class BasicPicturePro implements ComponentInterface {
18
18
  children: ComponentInterface[];
19
19
  dataType: ComponentInterface['dataType'];
20
20
  currenEnv: ComponentInterface['platform'];
21
+ sortChildField: {
22
+ name: string;
23
+ key: string;
24
+ dataType: string;
25
+ [key: string]: any;
26
+ }[];
27
+ exampleValue?: string;
28
+ standardDateType: ComponentInterface['standardDateType'];
21
29
  constructor(options: PickOption);
22
30
  formatPictures: (pictures: string) => string[];
31
+ getSortChildFields: () => any;
23
32
  render: (value: Value) => React.JSX.Element | null;
24
33
  renderPc: () => null;
25
34
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -36,11 +36,25 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
36
36
  _defineProperty(this, "children", void 0);
37
37
  _defineProperty(this, "dataType", void 0);
38
38
  _defineProperty(this, "currenEnv", void 0);
39
+ _defineProperty(this, "sortChildField", void 0);
40
+ _defineProperty(this, "exampleValue", void 0);
41
+ _defineProperty(this, "standardDateType", void 0);
39
42
  _defineProperty(this, "formatPictures", function (pictures) {
40
43
  pictures = pictures.replace(/[\[\]]/g, '');
41
44
  pictures = pictures.replace(/\s/g, '');
42
45
  return pictures ? pictures.split(',') : [];
43
46
  });
47
+ _defineProperty(this, "getSortChildFields", function () {
48
+ return [{
49
+ name: '图片名称',
50
+ key: "".concat(_this.id, "_name"),
51
+ dataType: 'arrayObject'
52
+ }, {
53
+ name: '图片链接',
54
+ key: "".concat(_this.id, "_url"),
55
+ dataType: 'arrayObject'
56
+ }];
57
+ });
44
58
  _defineProperty(this, "render", function (value) {
45
59
  var _document;
46
60
  if (!(value !== null && value !== void 0 && value.length)) {
@@ -176,5 +190,8 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
176
190
  }))];
177
191
  this.dataType = 'object';
178
192
  this.currenEnv = options === null || options === void 0 ? void 0 : (_options$effects = options.effects) === null || _options$effects === void 0 ? void 0 : _options$effects.env;
193
+ this.sortChildField = this.getSortChildFields();
194
+ this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
195
+ this.standardDateType = 'Array';
179
196
  });
180
197
  export default BasicPicturePro;
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
31
31
  sortColumns: SortColumnsField;
32
32
  headerProvince: boolean;
33
33
  constructor(options: PickOption);
34
- getChildren: () => (Province | City | District | Detail | ReceiverName | ReceiverMobile | undefined)[];
34
+ getChildren: () => (City | Detail | District | Province | ReceiverMobile | ReceiverName | undefined)[];
35
35
  getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
36
36
  renderPc: (value: any, record: Record) => React.JSX.Element | null;
37
37
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -16,7 +16,16 @@ declare class PublicGoods implements ComponentInterface {
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
18
  headers: CommonHeaderGoods;
19
+ exampleValue?: string;
20
+ standardDateType: ComponentInterface["standardDateType"];
21
+ sortChildField: {
22
+ name: string;
23
+ key: string;
24
+ dataType: string;
25
+ [key: string]: any;
26
+ }[];
19
27
  constructor(options: PickOption);
28
+ getSortChildFields: () => any;
20
29
  renderClient: (record: any) => React.JSX.Element | null;
21
30
  renderPc: () => null;
22
31
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -15,6 +15,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
+ import { getColumnsMap } from "../../Common/constants/columnsBaseInfoMap";
18
19
  import { SYMBOL } from "../../../constant";
19
20
  var CONFIG_MAP = {
20
21
  JST_GOODS: {
@@ -27,7 +28,8 @@ var CONFIG_MAP = {
27
28
  },
28
29
  JY_GOODS: {
29
30
  name: "巨益",
30
- key: "jyGoods"
31
+ key: "jyGoods",
32
+ exampleValue: '[{"gift":"","bfit":"","mallSkuId":"","specCode":"","sellTotal":0,"canEdit":false,"sellPrice":0,"mallProductName":"","oid":"","uuid":"","productName":"","skuName":"","canDelete":false,"divideOrderFee":0,"goodsName":"","mallSellingPrice":0,"productId":"","mallProductId":"","productCode":"","specName":"","mallSkuName":"","sellCount":0,"settlementPrice":0,"goodsCode":"","systemOrderNo":"","skuCode":""}]'
31
33
  },
32
34
  JKY_GOODS: {
33
35
  name: "吉客云",
@@ -45,7 +47,8 @@ var CONFIG_MAP = {
45
47
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
46
48
  var _this = this,
47
49
  _CONFIG_MAP$this$type,
48
- _this$componentConfig6;
50
+ _this$componentConfig6,
51
+ _CONFIG_MAP$this$type2;
49
52
  _classCallCheck(this, PublicGoods);
50
53
  _defineProperty(this, "name", void 0);
51
54
  _defineProperty(this, "id", void 0);
@@ -60,6 +63,21 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
60
63
  _defineProperty(this, "children", void 0);
61
64
  _defineProperty(this, "dataType", void 0);
62
65
  _defineProperty(this, "headers", void 0);
66
+ _defineProperty(this, "exampleValue", void 0);
67
+ _defineProperty(this, "standardDateType", void 0);
68
+ _defineProperty(this, "sortChildField", void 0);
69
+ _defineProperty(this, "getSortChildFields", function () {
70
+ var Columns = getColumnsMap();
71
+ return Columns[_this.type].filter(function (item) {
72
+ return !["picUrl"].includes(item.dataIndex);
73
+ }).map(function (item) {
74
+ return {
75
+ name: item.title,
76
+ key: "".concat(_this.id, "_").concat(item.dataIndex),
77
+ dataType: "arrayObject"
78
+ };
79
+ });
80
+ });
63
81
  _defineProperty(this, "renderClient", function (record) {
64
82
  var _record, _CONFIG_MAP$_this$typ, _this$componentConfig;
65
83
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -150,5 +168,8 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
150
168
  }
151
169
  }] : [];
152
170
  this.dataType = "object";
171
+ this.sortChildField = this.getSortChildFields();
172
+ this.exampleValue = ((_CONFIG_MAP$this$type2 = CONFIG_MAP[this.type]) === null || _CONFIG_MAP$this$type2 === void 0 ? void 0 : _CONFIG_MAP$this$type2.exampleValue) || "";
173
+ this.standardDateType = "Array";
153
174
  });
154
175
  export default PublicGoods;
@@ -1,6 +1,6 @@
1
- import { ComponentInterface, PickOption, Record } from "../../type";
2
- import React from "react";
3
- import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
1
+ import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
+ import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare type Value = {
5
5
  address?: (string | number)[];
6
6
  detail?: string;
@@ -11,14 +11,15 @@ declare class BasicInput implements ComponentInterface {
11
11
  sortField: string;
12
12
  type: string;
13
13
  rules: any[];
14
- componentConfig: ComponentInterface["componentConfig"];
15
- effects: ComponentInterface["effects"];
14
+ componentConfig: ComponentInterface['componentConfig'];
15
+ effects: ComponentInterface['effects'];
16
16
  isCombinationComponent: boolean;
17
17
  formField: string;
18
18
  canSort: boolean;
19
19
  children: ComponentInterface[];
20
20
  addressDateInstance: InstanceType<typeof AddressData>;
21
- dataType: ComponentInterface["dataType"];
21
+ dataType: ComponentInterface['dataType'];
22
+ compoundConfig: ComponentInterface['compoundConfig'];
22
23
  constructor(options: PickOption);
23
24
  render: (value: Value) => React.JSX.Element;
24
25
  transTextToNumber: (value?: string) => string | number | undefined;