@kmkf-fe-packages/services-components 2.10.9-beta.0 → 2.10.9-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.js +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  5. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +16 -2
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/constants.js +6 -2
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  8. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  9. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +14 -10
  11. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  12. package/dist/esm/components/BS/BsLogistics/index.js +9 -0
  13. package/dist/esm/components/BS/BsSystemOrder/index.js +5 -3
  14. package/dist/esm/components/BS/common/expressCode.js +3 -0
  15. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  16. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
  17. package/dist/esm/components/Common/dist/index.js +1019 -0
  18. package/dist/esm/components/Common/index.js +5 -3
  19. package/dist/esm/components/CommonHeaderGood/index.js +31 -1
  20. package/dist/esm/components/CommonMultiStatus/index.js +23 -23
  21. package/dist/esm/components/DXD/DxdShopSelect/index.d.ts +40 -0
  22. package/dist/esm/components/DXD/DxdShopSelect/index.js +120 -0
  23. package/dist/esm/components/JST/JstSendGood/index.js +9 -1
  24. package/dist/esm/components/Public/Goods/index.js +10 -1
  25. package/dist/esm/factory.d.ts +2 -2
  26. package/dist/esm/factory.js +9 -2
  27. package/dist/esm/index.d.ts +1 -0
  28. package/dist/esm/index.js +1 -0
  29. package/dist/esm/service/api.d.ts +1 -0
  30. package/dist/esm/service/api.js +6 -0
  31. package/package.json +4 -4
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
27
  import { ApaasImage } from "@kmkf-fe-packages/basic-components";
@@ -787,7 +787,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
787
787
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
788
788
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
789
789
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
790
- PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
790
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
791
+ DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
791
792
  };
792
793
  var rowKeyMap = {
793
794
  BS_SYSTEM_ORDER: "billNo",
@@ -800,7 +801,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
800
801
  JY_SYSTEM_ORDER: "tradeNo",
801
802
  JKY_SYSTEM_ORDER: "tradeNo",
802
803
  WDT_RETURN_BILL_NO: "refundNo",
803
- PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
804
+ PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId",
805
+ DXD_SYSTEM_ORDER: "orderNo"
804
806
  };
805
807
  var rowSelection = {
806
808
  type: isRadio ? "radio" : "checkbox",
@@ -19,7 +19,7 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { BsHeaderPic, BsHeaderChild } from "../BS/common";
20
20
  import ReissueGift from "../BsE3/ReissueGift";
21
21
  import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
22
- import { getJstColumns, getKmColumns } from "@kmkf-fe-packages/basic-components";
22
+ import { getJstColumns, getKmColumns, getDxdColumns } from "@kmkf-fe-packages/basic-components";
23
23
  var orderGoodsHeaderComponentMap = {
24
24
  pic: BsHeaderPic
25
25
  };
@@ -2564,6 +2564,36 @@ var GoodHeaderMap = {
2564
2564
  },
2565
2565
  moneyKey: "sellTotal"
2566
2566
  },
2567
+ DXD_GOODS: {
2568
+ headerMap: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
2569
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
2570
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
2571
+ name: item.title,
2572
+ key: item.dataIndex,
2573
+ width: item.width || 150
2574
+ });
2575
+ return acc;
2576
+ }, {}),
2577
+ itemKey: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
2578
+ acc[item.dataIndex] = item.title;
2579
+ return acc;
2580
+ }, {})
2581
+ },
2582
+ DXD_SUPPLIERS: {
2583
+ headerMap: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
2584
+ acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
2585
+ component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
2586
+ name: item.title,
2587
+ key: item.dataIndex,
2588
+ width: item.width || 150
2589
+ });
2590
+ return acc;
2591
+ }, {}),
2592
+ itemKey: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
2593
+ acc[item.dataIndex] = item.title;
2594
+ return acc;
2595
+ }, {})
2596
+ },
2567
2597
  JKY_REISSUE_GOODS: {
2568
2598
  headerMap: {
2569
2599
  goodsNo: {
@@ -192,53 +192,53 @@ var typeMap = {
192
192
  failValue: "失败",
193
193
  dataType: "array_object"
194
194
  },
195
- KM_WAREHOUSING_STATUS: {
195
+ JST_WAREHOUSING_STATUS: {
196
196
  options: [{
197
- value: "0",
197
+ value: "1",
198
198
  label: "未入库",
199
199
  color: "#ff4d4f"
200
200
  }, {
201
- value: "1",
201
+ value: "2",
202
202
  label: "部分入库",
203
203
  color: "#e7780f"
204
204
  }, {
205
- value: "2",
206
- label: "全部入库",
205
+ value: "3",
206
+ label: "已入库",
207
207
  color: "#52c41a"
208
+ }, {
209
+ label: "已入库-多收",
210
+ value: "4",
211
+ color: "#e7780f"
208
212
  }],
209
- key: "kmInStockStatusItemList",
210
- code: "kmInStockStatusList",
211
- name: "商品入库状态",
213
+ key: "jstInStockStatusItemList",
214
+ code: "jstInStockStatusList",
215
+ name: "聚水潭商品入库状态",
212
216
  type: 2,
213
217
  valueKey: "status",
214
- idKey: "systemOrderId",
218
+ idKey: "sourceTradeNo",
215
219
  failValue: "失败",
216
220
  dataType: "array_object"
217
221
  },
218
- JST_WAREHOUSING_STATUS: {
222
+ KM_WAREHOUSING_STATUS: {
219
223
  options: [{
220
- value: "1",
224
+ value: "0",
221
225
  label: "未入库",
222
226
  color: "#ff4d4f"
223
227
  }, {
224
- value: "2",
228
+ value: "1",
225
229
  label: "部分入库",
226
230
  color: "#e7780f"
227
231
  }, {
228
- value: "3",
229
- label: "已入库",
232
+ value: "2",
233
+ label: "全部入库",
230
234
  color: "#52c41a"
231
- }, {
232
- label: "已入库-多收",
233
- value: "4",
234
- color: "#e7780f"
235
235
  }],
236
- key: "jstInStockStatusItemList",
237
- code: "jstInStockStatusList",
238
- name: "聚水潭商品入库状态",
236
+ key: "kmInStockStatusItemList",
237
+ code: "kmInStockStatusList",
238
+ name: "商品入库状态",
239
239
  type: 2,
240
240
  valueKey: "status",
241
- idKey: "sourceTradeNo",
241
+ idKey: "systemOrderId",
242
242
  failValue: "失败",
243
243
  dataType: "array_object"
244
244
  }
@@ -345,7 +345,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
345
345
  _defineProperty(this, "filterConfig", function (item) {
346
346
  var _typeMap$_this$type21, _item$templateConfig;
347
347
  return {
348
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
348
+ searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
349
349
  type: item.type,
350
350
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
351
351
  name: "".concat(_this.name),
@@ -0,0 +1,40 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class DxdShopSelect implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ isCombinationComponent: boolean;
11
+ formField: string;
12
+ canSort: boolean;
13
+ children: ComponentInterface[];
14
+ shopDateInstance: InstanceType<any>;
15
+ dataType: ComponentInterface["dataType"];
16
+ options: ComponentInterface["options"];
17
+ optionsMap: {
18
+ [key: string]: string;
19
+ };
20
+ constructor(options: PickOption);
21
+ editRender: (p: any) => React.JSX.Element;
22
+ getLabel: (record: any) => string;
23
+ renderClient: (record: any) => React.JSX.Element | null;
24
+ renderPc: (value: unknown, record: Record) => string;
25
+ renderLog: (r: Record) => string | null;
26
+ getComponentValue: (r: Record) => string;
27
+ renderExport: (value: string, record: Record) => string;
28
+ filterConfig: (item: ColumnConfig) => {
29
+ searchDefaultConditions: "in";
30
+ type: string;
31
+ id: string;
32
+ name: string;
33
+ filterComponentType: "MultipleSelect";
34
+ props: {
35
+ options: any[] | undefined;
36
+ };
37
+ filterFn: (value: string) => (i: Record) => boolean;
38
+ };
39
+ }
40
+ export default DxdShopSelect;
@@ -0,0 +1,120 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function 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
+ 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
+ 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 _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
+ 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
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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 GetFormItem from "../../GetFormItem";
13
+ import ItemView from "../../../commonComponents/ItemView";
14
+ import { isNull, filterFn as _filterFn, DxdShopDataCenter } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { SYMBOL } from "../../../constant";
16
+ import { Select } from "antd";
17
+ var DxdShopSelect = /*#__PURE__*/_createClass(function DxdShopSelect(options) {
18
+ var _this = this,
19
+ _this$options;
20
+ _classCallCheck(this, DxdShopSelect);
21
+ _defineProperty(this, "name", void 0);
22
+ _defineProperty(this, "id", void 0);
23
+ _defineProperty(this, "sortField", void 0);
24
+ _defineProperty(this, "type", void 0);
25
+ _defineProperty(this, "rules", void 0);
26
+ _defineProperty(this, "componentConfig", void 0);
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "formField", void 0);
29
+ _defineProperty(this, "canSort", void 0);
30
+ _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "shopDateInstance", void 0);
32
+ _defineProperty(this, "dataType", void 0);
33
+ _defineProperty(this, "options", void 0);
34
+ _defineProperty(this, "optionsMap", void 0);
35
+ _defineProperty(this, "editRender", function (p) {
36
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
37
+ return /*#__PURE__*/React.createElement(GetFormItem, {
38
+ title: _this.name,
39
+ name: _this.id,
40
+ rules: _this.rules,
41
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
42
+ display: p === null || p === void 0 ? void 0 : p.display,
43
+ required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
44
+ 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 : "",
45
+ component: /*#__PURE__*/React.createElement(Select, _extends({}, _this.componentConfig, {
46
+ style: {
47
+ width: 200
48
+ },
49
+ placeholder: "\u8BF7\u9009\u62E9".concat(_this.name),
50
+ options: _this.options,
51
+ showSearch: true,
52
+ filterOption: function filterOption(input, option) {
53
+ return option.label.includes(input);
54
+ }
55
+ }))
56
+ });
57
+ });
58
+ _defineProperty(this, "getLabel", function (record) {
59
+ var _this$optionsMap;
60
+ return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopCode")]];
61
+ });
62
+ _defineProperty(this, "renderClient", function (record) {
63
+ return !isNull(_this.getLabel(record)) ? /*#__PURE__*/React.createElement(ItemView, {
64
+ id: _this.id,
65
+ label: _this.name,
66
+ value: _this.getLabel(record)
67
+ }) : null;
68
+ });
69
+ _defineProperty(this, "renderPc", function (value, record) {
70
+ return _this.getLabel(record) ? _this.getLabel(record) : "--";
71
+ });
72
+ _defineProperty(this, "renderLog", function (r) {
73
+ if (isNull(_this.getLabel(r))) return null;
74
+ return _this.renderPc(undefined, r);
75
+ });
76
+ _defineProperty(this, "getComponentValue", function (r) {
77
+ return _this.getLabel(r);
78
+ });
79
+ _defineProperty(this, "renderExport", function (value, record) {
80
+ var _this$getLabel;
81
+ return (_this$getLabel = _this.getLabel(record)) !== null && _this$getLabel !== void 0 ? _this$getLabel : "--";
82
+ });
83
+ _defineProperty(this, "filterConfig", function (item) {
84
+ return {
85
+ searchDefaultConditions: SYMBOL.in,
86
+ type: item.type,
87
+ id: "".concat(item.id, "_shopCode"),
88
+ name: item.name,
89
+ filterComponentType: "MultipleSelect",
90
+ props: {
91
+ options: _this.options
92
+ },
93
+ filterFn: function filterFn(value) {
94
+ return function (i) {
95
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "shopCode"));
96
+ };
97
+ }
98
+ };
99
+ });
100
+ this.name = options.name;
101
+ this.id = options.id;
102
+ this.sortField = "".concat(options.id, "_shopCode");
103
+ this.formField = "".concat(options.id, "_shopCode");
104
+ this.type = options.type;
105
+ this.rules = [];
106
+ this.isCombinationComponent = false;
107
+ this.canSort = false;
108
+ this.children = [];
109
+ this.shopDateInstance = DxdShopDataCenter.getInstance();
110
+ this.options = this.shopDateInstance.getShopData();
111
+ this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (acc, cur) {
112
+ acc[cur.value] = cur.label;
113
+ return acc;
114
+ }, {});
115
+ this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
116
+ options: this.options
117
+ });
118
+ this.dataType = "string";
119
+ });
120
+ export default DxdShopSelect;
@@ -91,6 +91,14 @@ var typeMap = {
91
91
  sendName: "jkySendName",
92
92
  platformType: "jky",
93
93
  dataType: "weakenArray"
94
+ },
95
+ DXD_SEND_GOOD: {
96
+ key: "dxdSendGood",
97
+ name: "dxd",
98
+ sendId: "dxdSendId",
99
+ sendName: "dxdSendName",
100
+ platformType: "dxd",
101
+ dataType: "weakenArray"
94
102
  }
95
103
  };
96
104
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -224,7 +232,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
224
232
  });
225
233
  };
226
234
  }
227
- } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
235
+ } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD", "DXD_SEND_GOOD"].includes(_this.type) ? {
228
236
  searchDefaultConditions: SYMBOL.in,
229
237
  type: item.type,
230
238
  id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
@@ -35,6 +35,14 @@ var CONFIG_MAP = {
35
35
  name: "吉客云",
36
36
  key: "jkyGoods"
37
37
  },
38
+ DXD_GOODS: {
39
+ name: "大希地",
40
+ key: "dxdGoods"
41
+ },
42
+ DXD_SUPPLIERS: {
43
+ name: "大希地供应商",
44
+ key: "dxdSuppliers"
45
+ },
38
46
  WDT_AFTERSALE_GOODS: {
39
47
  name: "旺店通售后",
40
48
  key: "wdtAftersaleGoods"
@@ -78,7 +86,8 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
78
86
  return {
79
87
  name: item.title,
80
88
  key: "".concat(_this.id, "_").concat(item.dataIndex),
81
- dataType: "arrayObject"
89
+ dataType: "arrayObject",
90
+ conditionOptionsSetting: item.conditionOptionsSetting
82
91
  };
83
92
  });
84
93
  });
@@ -1,3 +1,3 @@
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, 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, ReturnWarehouse, KmExchange } from "./index";
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, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | JstSendGood | MsgStatus | 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 | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | DxdShopSelect | JstSendGood | PublicGoods | 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 | PublicReissueGoods | 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 | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
@@ -2,7 +2,7 @@ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, Ba
2
2
  // CommonTradeId,
3
3
  CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration,
4
4
  // WlnGoods,
5
- 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, ReturnWarehouse, KmExchange } from "./index";
5
+ BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
6
6
  export var factory = function factory(type, options) {
7
7
  var _options$componentCon;
8
8
  switch (type) {
@@ -141,6 +141,7 @@ export var factory = function factory(type, options) {
141
141
  return new JstSupply(options);
142
142
  case "BS_SYSTEM_ORDER":
143
143
  case "KM_SYSTEM_ORDER":
144
+ case "DXD_SYSTEM_ORDER":
144
145
  case "WLN_SYSTEM_ORDER":
145
146
  case "WDT_SYSTEM_ORDER":
146
147
  case "BS_E3_SYSTEM_ORDER":
@@ -160,6 +161,7 @@ export var factory = function factory(type, options) {
160
161
  case "GY_SEND_GOOD":
161
162
  case "JY_SEND_GOOD":
162
163
  case "JKY_SEND_GOOD":
164
+ case "DXD_SEND_GOOD":
163
165
  return new JstSendGood(options);
164
166
  case "KM_RETURN_WAREHOUSE":
165
167
  return new ReturnWarehouse(options);
@@ -178,6 +180,8 @@ export var factory = function factory(type, options) {
178
180
  case "WLN_GOODS":
179
181
  case "WDT_AFTERSALE_GOODS":
180
182
  case "JST_AFTERSALE_GOODS":
183
+ case "DXD_GOODS":
184
+ case "DXD_SUPPLIERS":
181
185
  return new PublicGoods(options);
182
186
  case "WLN_REISSUE_GOODS":
183
187
  case "JST_REISSUE_GOODS":
@@ -227,6 +231,7 @@ export var factory = function factory(type, options) {
227
231
  case "JKY_LOGISTICS":
228
232
  case "SKX_LOGISTICS":
229
233
  case "SKX_RETURN_LOGISTICS":
234
+ case "DXD_LOGISTICS":
230
235
  return new BsLogistics(options);
231
236
  case "FLOW_WORK_ORDER_ID_INPUT":
232
237
  return new FlowWorkOrderId(options);
@@ -254,8 +259,8 @@ export var factory = function factory(type, options) {
254
259
  case "WDT_WAREHOUSING_STATUS":
255
260
  case "WLN_WAREHOUSING_STATUS":
256
261
  case "JKY_WAREHOUSING_STATUS":
257
- case "KM_WAREHOUSING_STATUS":
258
262
  case "JST_WAREHOUSING_STATUS":
263
+ case "KM_WAREHOUSING_STATUS":
259
264
  return new CommonMultiStatus(options);
260
265
  case "MSG_STATUS":
261
266
  return new MsgStatus(options);
@@ -301,6 +306,8 @@ export var factory = function factory(type, options) {
301
306
  return new MemberLevel(options);
302
307
  case "WDT_SHOP":
303
308
  return new WdtShopSelect(options);
309
+ case "DXD_SHOP":
310
+ return new DxdShopSelect(options);
304
311
  case "KM_VIDEO":
305
312
  return new KmVideo(options);
306
313
  case "WDT_TAGS":
@@ -87,6 +87,7 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
87
87
  export { default as WdtReturn } from "./components/WDT/WdtReturn";
88
88
  export { default as WdtExchange } from "./components/WDT/WdtExchange";
89
89
  export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
90
+ export { default as DxdShopSelect } from "./components/DXD/DxdShopSelect";
90
91
  export { default as KmVideo } from "./components/KM/KmVideo";
91
92
  export { default as CommonInput } from "./components/CommonInput";
92
93
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
package/dist/esm/index.js CHANGED
@@ -87,6 +87,7 @@ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
87
87
  export { default as WdtReturn } from "./components/WDT/WdtReturn";
88
88
  export { default as WdtExchange } from "./components/WDT/WdtExchange";
89
89
  export { default as WdtShopSelect } from "./components/WDT/WdtShopSelect";
90
+ export { default as DxdShopSelect } from "./components/DXD/DxdShopSelect";
90
91
  export { default as KmVideo } from "./components/KM/KmVideo";
91
92
  export { default as CommonInput } from "./components/CommonInput";
92
93
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
@@ -15,6 +15,7 @@ export declare const queryJYLogisticsCompany: () => Promise<void>;
15
15
  export declare const queryJKYLogisticsCompany: () => Promise<void>;
16
16
  export declare const queryWLNLogisticsCompany: () => Promise<void>;
17
17
  export declare const queryKMLogisticsCompany: () => Promise<void>;
18
+ export declare const queryDXDLogisticsCompany: () => Promise<void>;
18
19
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
19
20
  export declare const queryLabel: () => Promise<any>;
20
21
  export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
@@ -323,6 +323,12 @@ export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
323
323
  instance.expressData = data;
324
324
  }).catch(console.log);
325
325
  };
326
+ export var queryDXDLogisticsCompany = function queryDXDLogisticsCompany() {
327
+ var instance = ExpressData.getInstance("dxd");
328
+ return servers.DXD.getLogisticsDataAsync().then(function (data) {
329
+ instance.expressData = data;
330
+ }).catch(console.log);
331
+ };
326
332
  // 获取支付宝电子回单
327
333
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
328
334
  return request({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.10.9-beta.0",
3
+ "version": "2.10.9-beta.2",
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.10.9-beta.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.0",
24
+ "@kmkf-fe-packages/basic-components": "2.10.9-beta.2",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.2",
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": "2d04275db0bedc2fce5e120c012da38ad4adec99",
44
+ "gitHead": "dac375113d0fa85fd02bf62d03604d4ffb1b486e",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }