@kmkf-fe-packages/services-components 2.2.44-beta.46 → 2.2.44-beta.47

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/BS/BsLogistics").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").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/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").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/EItemEnCode").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/BS/BsSystemOrder").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").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/CommonSystemOrder").default | import("../components/CommonMultiStatus").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/AfterSalesOrderId").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;
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;
@@ -1,17 +1,17 @@
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 BsSystemOrder 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'];
10
- effects: ComponentInterface['effects'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
- dataType: ComponentInterface['dataType'];
14
+ dataType: ComponentInterface["dataType"];
15
15
  children: ComponentInterface[];
16
16
  sortChildField: {
17
17
  name: string;
@@ -19,7 +19,7 @@ declare class BsSystemOrder implements ComponentInterface {
19
19
  dataType: string;
20
20
  [key: string]: any;
21
21
  }[];
22
- compoundConfig: ComponentInterface['compoundConfig'];
22
+ compoundConfig: ComponentInterface["compoundConfig"];
23
23
  constructor(options: PickOption);
24
24
  getSortChildFields: () => any;
25
25
  renderClient: (record: any) => React.JSX.Element | null;
@@ -14,15 +14,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
14
14
  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; }
15
15
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
16
  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); }
17
- import React from 'react';
17
+ import React from "react";
18
18
  import GetFormItem from "../../GetFormItem";
19
19
  import ItemView from "../../../commonComponents/ItemView";
20
- import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from '@kmkf-fe-packages/kmkf-utils';
21
- import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
20
+ import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
21
+ import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
22
22
  import { BsSystemOrderTable } from "../../Common";
23
23
  import { BsHeaderChild } from "../common/index";
24
24
  import { SYMBOL, batchInput } from "../../../constant";
25
- import { getSystemShowHead } from '@kmkf-fe-packages/kmkf-utils';
25
+ import { getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
26
26
  var typeMap = {
27
27
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
28
28
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
@@ -41,8 +41,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
41
41
  _typeMap$options$type,
42
42
  _options$componentCon,
43
43
  _this$componentConfig6,
44
- _typeMap$options$type2,
45
- _typeMap$options$type3;
44
+ _typeMap$options$type2;
46
45
  _classCallCheck(this, BsSystemOrder);
47
46
  _defineProperty(this, "name", void 0);
48
47
  _defineProperty(this, "id", void 0);
@@ -61,23 +60,23 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
61
60
  _defineProperty(this, "getSortChildFields", function () {
62
61
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
63
62
  return [{
64
- name: '绑定订单号',
63
+ name: "绑定订单号",
65
64
  key: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.orderNo,
66
- dataType: 'string'
65
+ dataType: "string"
67
66
  }, {
68
- name: '选中系统订单号',
67
+ name: "选中系统订单号",
69
68
  key: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.selectId,
70
- dataType: 'array'
69
+ dataType: "array"
71
70
  }].concat(_toConsumableArray(getSystemShowHead({
72
71
  columns: ((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.columns) || [],
73
72
  showHeader: (_this === null || _this === void 0 ? void 0 : (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
74
73
  }).filter(function (item) {
75
- return !['picUrl'].includes(item.dataIndex);
74
+ return !["picUrl"].includes(item.dataIndex);
76
75
  }).map(function (item) {
77
76
  return {
78
77
  name: item.title,
79
78
  key: "".concat(_this.id, "_").concat(item.dataIndex),
80
- dataType: 'arrayObject'
79
+ dataType: "arrayObject"
81
80
  };
82
81
  })));
83
82
  });
@@ -123,7 +122,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
123
122
  required: false,
124
123
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
125
124
  display: p === null || p === void 0 ? void 0 : p.display,
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 : '',
125
+ 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 : "",
127
126
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
128
127
  onChange: p === null || p === void 0 ? void 0 : p.onChange,
129
128
  type: _this.type
@@ -138,7 +137,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
138
137
  // 过滤组件id
139
138
  name: item.name,
140
139
  // 过滤组件名称
141
- filterComponentType: 'Input',
140
+ filterComponentType: "Input",
142
141
  formatFilterValue: function formatFilterValue(input) {
143
142
  return batchInput(input);
144
143
  }
@@ -175,19 +174,8 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
175
174
  return Promise.resolve();
176
175
  }
177
176
  }] : [];
178
- this.dataType = 'object';
177
+ this.dataType = "object";
179
178
  this.sortChildField = this.getSortChildFields();
180
- this.compoundConfig = [{
181
- name: "\u7ED1\u5B9A\u8BA2\u5355\u53F7",
182
- id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.orderNo)
183
- }, {
184
- name: "\u9009\u4E2D\u7CFB\u7EDF\u8BA2\u5355\u53F7",
185
- id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.selectId)
186
- }, {
187
- name: "\u5546\u54C1\u5217\u8868",
188
- id: "".concat(options.id, "_jySystemShowOrder"),
189
- standardDateType: 'Array',
190
- exampleValue: '[{"country":"","select":false,"payTime":"","isMallDeliveryAbnormal":0,"shopName":"","warehouseName":"","sourcePlatformName":"","fuzzyMobile":"","cityName":"","contact":"","modified":"","shopId":0,"tradeType":"","fuzzyAddress":"","tradeNo":"","districtName":"","mobile":"","sendTime":"","tradeTime":"","subOrderDetails":[{"gift":0,"mallSellingPrice":0,"bfit":false,"mallSkuId":"","productId":"","specCode":"","sellTotal":0,"mallProductId":"","sellPrice":0,"mallProductName":"","oid":"","uuid":"","productName":"","skuName":"","productCode":"","specName":"","mallSkuName":"","sellCount":0,"divideOrderFee":0,"settlementPrice":0,"goodsCode":"","systemOrderNo":"","goodsName":"","skuCode":""}],"sourcePlatformCode":"","warehouseId":0,"tradeStatus":"","endTime":"","provinceName":"","tradeId":"","fuzzyContact":""}]'
191
- }];
179
+ this.compoundConfig = ((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.getCompoundConfig(options.id)) || [];
192
180
  });
193
181
  export default BsSystemOrder;
@@ -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;
@@ -1,6 +1,6 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
2
- import React from 'react';
3
- import CommonHeaderGoods from '../../CommonHeaderGood';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ import CommonHeaderGoods from "../../CommonHeaderGood";
4
4
  declare const CONFIG_MAP: Record;
5
5
  declare class PublicGoods implements ComponentInterface {
6
6
  name: string;
@@ -8,14 +8,15 @@ declare class PublicGoods implements ComponentInterface {
8
8
  sortField: string;
9
9
  type: keyof typeof CONFIG_MAP;
10
10
  rules: any[];
11
- componentConfig: ComponentInterface['componentConfig'];
12
- effects: ComponentInterface['effects'];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ effects: ComponentInterface["effects"];
13
13
  isCombinationComponent: boolean;
14
14
  formField: string;
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
18
  headers: CommonHeaderGoods;
19
+ exampleValue?: string;
19
20
  sortChildField: {
20
21
  name: string;
21
22
  key: string;
@@ -8,45 +8,47 @@ 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';
11
+ import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import { BsGoodsTable } from "../../Common";
14
14
  import CommonHeaderGoods from "../../CommonHeaderGood";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
17
- import { CommonGoods as Goods } from '@kmkf-fe-packages/basic-components';
16
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { getColumnsMap } from "../../Common/constants/columnsBaseInfoMap";
19
19
  import { SYMBOL } from "../../../constant";
20
20
  var CONFIG_MAP = {
21
21
  JST_GOODS: {
22
- name: '聚水潭',
23
- key: 'jstGoods'
22
+ name: "聚水潭",
23
+ key: "jstGoods"
24
24
  },
25
25
  KM_GOODS: {
26
- name: '快麦ERP',
27
- key: 'kmGoods'
26
+ name: "快麦ERP",
27
+ key: "kmGoods"
28
28
  },
29
29
  JY_GOODS: {
30
- name: '巨益',
31
- key: 'jyGoods'
30
+ name: "巨益",
31
+ key: "jyGoods",
32
+ exampleValue: '[{"gift":0,"bfit":false,"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":""}]'
32
33
  },
33
34
  JKY_GOODS: {
34
35
  name: "吉客云",
35
36
  key: "jkyGoods"
36
37
  },
37
38
  WDT_AFTERSALE_GOODS: {
38
- name: '旺店通售后',
39
- key: 'wdtAftersaleGoods'
39
+ name: "旺店通售后",
40
+ key: "wdtAftersaleGoods"
40
41
  },
41
42
  JST_AFTERSALE_GOODS: {
42
- name: 'jst售后',
43
- key: 'jstAftersaleGoods'
43
+ name: "jst售后",
44
+ key: "jstAftersaleGoods"
44
45
  }
45
46
  };
46
47
  var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
47
48
  var _this = this,
48
49
  _CONFIG_MAP$this$type,
49
- _this$componentConfig6;
50
+ _this$componentConfig6,
51
+ _CONFIG_MAP$this$type2;
50
52
  _classCallCheck(this, PublicGoods);
51
53
  _defineProperty(this, "name", void 0);
52
54
  _defineProperty(this, "id", void 0);
@@ -61,16 +63,17 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
61
63
  _defineProperty(this, "children", void 0);
62
64
  _defineProperty(this, "dataType", void 0);
63
65
  _defineProperty(this, "headers", void 0);
66
+ _defineProperty(this, "exampleValue", void 0);
64
67
  _defineProperty(this, "sortChildField", void 0);
65
68
  _defineProperty(this, "getSortChildFields", function () {
66
69
  var Columns = getColumnsMap();
67
70
  return Columns[_this.type].filter(function (item) {
68
- return !['picUrl'].includes(item.dataIndex);
71
+ return !["picUrl"].includes(item.dataIndex);
69
72
  }).map(function (item) {
70
73
  return {
71
74
  name: item.title,
72
75
  key: "".concat(_this.id, "_").concat(item.dataIndex),
73
- dataType: 'arrayObject'
76
+ dataType: "arrayObject"
74
77
  };
75
78
  });
76
79
  });
@@ -114,7 +117,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
114
117
  required: false,
115
118
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
116
119
  display: p === null || p === void 0 ? void 0 : p.display,
117
- 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 : '',
120
+ 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 : "",
118
121
  component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
119
122
  maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
120
123
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -134,7 +137,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
134
137
  // 过滤组件id
135
138
  name: item.name,
136
139
  // 过滤组件名称
137
- filterComponentType: 'Input'
140
+ filterComponentType: "Input"
138
141
  }];
139
142
  });
140
143
  this.type = options.type;
@@ -148,7 +151,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
148
151
  this.canSort = false;
149
152
  this.headers = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
150
153
  id: "".concat(options.id, "_").concat(key),
151
- name: '商品信息'
154
+ name: "商品信息"
152
155
  }));
153
156
  this.children = [this.headers];
154
157
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
@@ -163,7 +166,8 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
163
166
  return Promise.resolve();
164
167
  }
165
168
  }] : [];
166
- this.dataType = 'object';
169
+ this.dataType = "object";
167
170
  this.sortChildField = this.getSortChildFields();
171
+ this.exampleValue = ((_CONFIG_MAP$this$type2 = CONFIG_MAP[this.type]) === null || _CONFIG_MAP$this$type2 === void 0 ? void 0 : _CONFIG_MAP$this$type2.exampleValue) || "";
168
172
  });
169
173
  export default PublicGoods;
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BasicCascader | CommonMultiStatus | JstSendGood | MsgStatus | Payment | BasicPicturePro | PublicGoods | PublicReissueGoods | ReceiverAddress | BasicInput | BasicTypeInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood | MsgStatus | PublicGoods | PublicReissueGoods | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | 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 | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.2.44-beta.46",
3
+ "version": "2.2.44-beta.47",
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.2.44-beta.46",
25
- "@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.46",
24
+ "@kmkf-fe-packages/basic-components": "2.2.44-beta.47",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.47",
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": "acac28cf43174c829a597eb71d84276b41e1c81c",
44
+ "gitHead": "2e32e78a8555ec788508ff93377ae8efef44b632",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }