@kmkf-fe-packages/services-components 1.22.1-beta.36 → 1.22.1-beta.37

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,5 +1,5 @@
1
1
  import React from "react";
2
- declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryBsE3LogisticsCompany" | "querySendData";
2
+ declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryBsE3LogisticsCompany" | "querySendData" | "queryJSTLogisticsCompany" | "queryWLNLogisticsCompany";
3
3
  declare const Global: ({ children, requestList, repeatRequestList, }: React.PropsWithChildren<{
4
4
  requestList?: RequestType[] | undefined;
5
5
  repeatRequestList?: Record<string, () => Promise<any>> | undefined;
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useEffect, useState } from "react";
17
17
  import { Skeleton, Button, Alert, Space } from "antd";
18
- import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryBsE3LogisticsCompany, querySendData } from "../../service/api";
18
+ import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryBsE3LogisticsCompany, querySendData, queryJSTLogisticsCompany, queryWLNLogisticsCompany } from "../../service/api";
19
19
  import { servers } from "@kmkf-fe-packages/kmkf-utils";
20
20
  var Global = function Global(_ref) {
21
21
  var children = _ref.children,
@@ -44,7 +44,9 @@ var Global = function Global(_ref) {
44
44
  queryWdtAddressData: servers.queryWdtAddressData,
45
45
  queryWdtLogisticsCompany: queryWdtLogisticsCompany,
46
46
  queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
47
- querySendData: querySendData
47
+ querySendData: querySendData,
48
+ queryJSTLogisticsCompany: queryJSTLogisticsCompany,
49
+ queryWLNLogisticsCompany: queryWLNLogisticsCompany
48
50
  };
49
51
  mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
50
52
  promises = [];
@@ -38,7 +38,7 @@ var typeMap = {
38
38
  name: "万里牛",
39
39
  company: "wlnLogisticsCompany",
40
40
  code: "wlnLogisticsCode",
41
- platformType: "default"
41
+ platformType: "wln"
42
42
  },
43
43
  WDT_LOGISTICS: {
44
44
  key: "wdtLogisticsList",
@@ -46,6 +46,13 @@ var typeMap = {
46
46
  company: "wdtLogisticsCompany",
47
47
  code: "wdtLogisticsCode",
48
48
  platformType: "wdt"
49
+ },
50
+ JST_LOGISTICS: {
51
+ key: "jstItemList",
52
+ name: "聚水潭",
53
+ company: "logisticsCompany",
54
+ code: "logisticsCode",
55
+ platformType: 'jst'
49
56
  }
50
57
  };
51
58
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -1,7 +1,7 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
2
  import React from "react";
3
3
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
- declare class JstLogistics implements ComponentInterface {
4
+ declare class Logistics implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
@@ -60,4 +60,4 @@ declare class JstLogistics implements ComponentInterface {
60
60
  formatFilterValue?: undefined;
61
61
  })[];
62
62
  }
63
- export default JstLogistics;
63
+ export default Logistics;
@@ -16,12 +16,6 @@ import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL, batchInput } from "../../../constant";
18
18
  var typeMap = {
19
- JST_LOGISTICS: {
20
- key: "jstItemList",
21
- name: "jst",
22
- company: "logisticsCompany",
23
- code: "logisticsCode"
24
- },
25
19
  REISSUE_LOGISTICS: {
26
20
  key: "reissueLogisticsList",
27
21
  name: "reissue",
@@ -29,14 +23,14 @@ var typeMap = {
29
23
  code: "reissueLogisticsCode"
30
24
  }
31
25
  };
32
- var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
26
+ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
33
27
  var _this = this,
34
28
  _typeMap$_options$typ,
35
29
  _typeMap$_options$typ2,
36
30
  _this$componentConfig8,
37
31
  _this$componentConfig9,
38
32
  _this$componentConfig10;
39
- _classCallCheck(this, JstLogistics);
33
+ _classCallCheck(this, Logistics);
40
34
  _defineProperty(this, "name", void 0);
41
35
  _defineProperty(this, "id", void 0);
42
36
  _defineProperty(this, "sortField", void 0);
@@ -203,4 +197,4 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
203
197
  this.expressDateInstance = ExpressData.getInstance((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.logistics);
204
198
  this.sortChildField = this.getSortChildFields(((_this$componentConfig10 = this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.showField) || "", _options);
205
199
  });
206
- export default JstLogistics;
200
+ export default Logistics;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BsGoods | BsLogistics | BsSystemOrder | BsE3Goods | BsE3Reissue | BasicCascader | CommonMultiStatus | ItemEnCode | BasicInput | JstLogistics | JstSendGood | MemberLevel | MsgStatus | BasicPicture | BasicRadio | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | 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 | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonSystemOrder | JstSendGood | MsgStatus | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
@@ -1,4 +1,4 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
2
2
  // CommonTradeId,
3
3
  CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
4
4
  export var factory = function factory(type, options) {
@@ -122,9 +122,8 @@ export var factory = function factory(type, options) {
122
122
  return new CommonDataTime(options);
123
123
  case "TEMPLATE_ID_INPUT":
124
124
  return new TemplateSelect(options);
125
- case "JST_LOGISTICS":
126
125
  case "REISSUE_LOGISTICS":
127
- return new JstLogistics(options);
126
+ return new ReissueLogistics(options);
128
127
  case "JST_ITEM_SELECT_THIRD":
129
128
  return new JstItemSelect(options);
130
129
  case "JST_SUPPLY":
@@ -171,6 +170,7 @@ export var factory = function factory(type, options) {
171
170
  case "BS_E3_LOGISTICS":
172
171
  case "WLN_LOGISTICS":
173
172
  case "WDT_LOGISTICS":
173
+ case "JST_LOGISTICS":
174
174
  return new BsLogistics(options);
175
175
  case "FLOW_WORK_ORDER_ID_INPUT":
176
176
  return new FlowWorkOrderId(options);
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
34
34
  export { default as Ordinary } from "./components/Ordinary";
35
35
  export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
36
36
  export { default as Payment } from "./components/Payment";
37
- export { default as JstLogistics } from "./components/JST/JstLogistics";
37
+ export { default as ReissueLogistics } from "./components/Reissue/Logistics";
38
38
  export { default as JstItemSelect } from "./components/JST/JstItemSelect";
39
39
  export { default as JstSendGood } from "./components/JST/JstSendGood";
40
40
  export { default as JstSupply } from "./components/JST/JstSupply";
package/dist/esm/index.js CHANGED
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
34
34
  export { default as Ordinary } from "./components/Ordinary";
35
35
  export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
36
36
  export { default as Payment } from "./components/Payment";
37
- export { default as JstLogistics } from "./components/JST/JstLogistics";
37
+ export { default as ReissueLogistics } from "./components/Reissue/Logistics";
38
38
  export { default as JstItemSelect } from "./components/JST/JstItemSelect";
39
39
  export { default as JstSendGood } from "./components/JST/JstSendGood";
40
40
  export { default as JstSupply } from "./components/JST/JstSupply";
@@ -8,6 +8,8 @@ export declare const queryLogisticsAddressData: () => Promise<void>;
8
8
  export declare const queryAllLogisticsCompany: () => Promise<void>;
9
9
  export declare const queryWdtLogisticsCompany: () => Promise<void>;
10
10
  export declare const queryBsE3LogisticsCompany: () => Promise<void>;
11
+ export declare const queryJSTLogisticsCompany: () => Promise<void>;
12
+ export declare const queryWLNLogisticsCompany: () => Promise<void>;
11
13
  export declare const querySendData: () => Promise<void>;
12
14
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
13
15
  export declare const queryLabel: () => Promise<any>;
@@ -266,6 +266,18 @@ export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
266
266
  instance.expressData = data;
267
267
  }).catch(console.log);
268
268
  };
269
+ export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
270
+ var instance = ExpressData.getInstance('jst');
271
+ return servers.JST.getLogisticsDataAsync().then(function (data) {
272
+ instance.expressData = data;
273
+ }).catch(console.log);
274
+ };
275
+ export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
276
+ var instance = ExpressData.getInstance('wln');
277
+ return servers.WLN.getLogisticsDataAsync().then(function (data) {
278
+ instance.expressData = data;
279
+ }).catch(console.log);
280
+ };
269
281
  export var querySendData = /*#__PURE__*/function () {
270
282
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
271
283
  return _regeneratorRuntime().wrap(function _callee$(_context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.22.1-beta.36",
3
+ "version": "1.22.1-beta.37",
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": "1.22.1-beta.36",
25
- "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.29",
24
+ "@kmkf-fe-packages/basic-components": "1.22.1-beta.37",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.37",
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": "6c587243d87027955f2b6a6bb9b89c94a6a80044",
44
+ "gitHead": "447f2f4e0eca28c7220bc100c19543b21aece839",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }
@@ -1,113 +0,0 @@
1
- "use strict";
2
-
3
- var __assign = this && this.__assign || function () {
4
- __assign = Object.assign || function (t) {
5
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6
- s = arguments[i];
7
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- exports.__esModule = true;
14
- var react_1 = require("react");
15
- var GetFormItem_1 = require("../../GetFormItem");
16
- var Common_1 = require("../../Common");
17
- var index_1 = require("../common/index");
18
- var ItemView_1 = require("../../../commonComponents/ItemView");
19
- var kmkf_utils_1 = require("@kmkf-fe-packages/kmkf-utils");
20
- var basic_components_1 = require("@kmkf-fe-packages/basic-components");
21
- var constant_1 = require("../../../constant");
22
- var BsGoods = /** @class */function () {
23
- function BsGoods(options) {
24
- var _this = this;
25
- var _a;
26
- this.renderClient = function (record) {
27
- var _a, _b;
28
- console.log("in renderclient");
29
- return !kmkf_utils_1.isNull(record === null || record === void 0 ? void 0 : record["" + _this.id]) ? react_1["default"].createElement(react_1["default"].Fragment, null, react_1["default"].createElement(ItemView_1["default"], {
30
- id: _this.id,
31
- label: _this.name,
32
- value: react_1["default"].createElement(Common_1.BsGoodsTable, {
33
- list: ((_a = record === null || record === void 0 ? void 0 : record["" + _this.id]) === null || _a === void 0 ? void 0 : _a.bsGoods) || [],
34
- showHeader: ((_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.showHeader) || []
35
- })
36
- })) : null;
37
- };
38
- this.renderPc = function () {
39
- return null;
40
- };
41
- this.renderLog = function (r) {
42
- var _a;
43
- console.log("in renderclient");
44
- if (kmkf_utils_1.isNull(r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"])) return null;
45
- return react_1["default"].createElement(Common_1.BsGoodsTable, {
46
- list: (r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"]) || [],
47
- showHeader: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showHeader) || []
48
- });
49
- };
50
- this.getComponentValue = function (r) {
51
- return r === null || r === void 0 ? void 0 : r[_this.id + "_bsGoods"];
52
- };
53
- this.renderExport = function () {
54
- return null;
55
- };
56
- this.editRender = function (p) {
57
- var _a, _b, _c, _d, _e, _f;
58
- console.log("in renderclient");
59
- return react_1["default"].createElement(GetFormItem_1["default"], {
60
- title: _this.name,
61
- name: _this.id,
62
- rules: _this.rules,
63
- required: false,
64
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
- display: p === null || p === void 0 ? void 0 : p.display,
66
- tooltip: ((_a = _this.componentConfig) === null || _a === void 0 ? void 0 : _a.showTooltip) ? (_b = _this.componentConfig) === null || _b === void 0 ? void 0 : _b.tooltip : "",
67
- component: react_1["default"].createElement(basic_components_1.BsGoods, __assign({}, _this.componentConfig, {
68
- maxLength: ((_c = _this.componentConfig) === null || _c === void 0 ? void 0 : _c.maxLength) || 20,
69
- shopId: (_d = _this.effects) === null || _d === void 0 ? void 0 : _d.shopId,
70
- shopList: ((_e = _this.effects) === null || _e === void 0 ? void 0 : _e.shopList) || [],
71
- companyKey: (_f = _this.effects) === null || _f === void 0 ? void 0 : _f.companyKey,
72
- width: "90%"
73
- }))
74
- });
75
- };
76
- this.filterConfig = function (item) {
77
- return [{
78
- searchDefaultConditions: constant_1.SYMBOL.like,
79
- type: item.type,
80
- id: item.id + "_bsGoods",
81
- name: item.name,
82
- filterComponentType: "Input"
83
- }];
84
- };
85
- this.name = options.name;
86
- this.id = options.id;
87
- this.sortField = options.id + "_bsGoods";
88
- this.formField = options.id + "_bsGoods";
89
- this.type = options.type;
90
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
91
- this.isCombinationComponent = true;
92
- this.canSort = false;
93
- this.bsGoods = new index_1.BsHeaderGood(__assign(__assign({}, options), {
94
- id: options.id + "_bsGoods",
95
- name: "商品信息"
96
- }));
97
- this.children = [this.bsGoods];
98
- this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
99
- this.rules = ((_a = this === null || this === void 0 ? void 0 : this.componentConfig) === null || _a === void 0 ? void 0 : _a.required) ? [{
100
- required: true,
101
- validator: function validator(_, value) {
102
- var _a;
103
- if (!value || !((_a = value === null || value === void 0 ? void 0 : value.bsGoods) === null || _a === void 0 ? void 0 : _a.length)) {
104
- return Promise.reject(new Error("请选择bs商品"));
105
- }
106
- return Promise.resolve();
107
- }
108
- }] : [];
109
- this.dataType = "object";
110
- }
111
- return BsGoods;
112
- }();
113
- exports["default"] = BsGoods;