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

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,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;
@@ -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;
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.48",
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.48",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.48",
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": "fcf1f1db0ee0d8744729c4cf6b8ee9b3ef906fea",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }