@kmkf-fe-packages/services-components 1.22.1-beta.63 → 1.22.1-beta.66

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,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const _default: (props: {
3
3
  text: string;
4
- showText?: string;
4
+ showText?: string | React.ReactNode;
5
5
  style?: any;
6
6
  }) => React.JSX.Element;
7
7
  export default _default;
@@ -11,175 +11,17 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
14
+ 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 } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
18
18
  import { SYMBOL, batchInput } from "../../../constant";
19
19
  var typeMap = {
20
- BS_SYSTEM_ORDER: {
21
- key: "bsSystemShowOrder",
22
- name: "百胜",
23
- selectId: "bsSystemSelectIds",
24
- columns: [{
25
- title: "单据类型",
26
- dataIndex: "billType",
27
- width: 150
28
- }, {
29
- title: "系统订单号",
30
- dataIndex: "billNo",
31
- width: 150
32
- }, {
33
- title: "标签",
34
- dataIndex: "billTag",
35
- width: 150
36
- }, {
37
- title: "主播名称",
38
- dataIndex: "authorName",
39
- width: 150
40
- }, {
41
- title: "主播ID",
42
- dataIndex: "authorId",
43
- width: 150
44
- }
45
- // {
46
- // title: '直播活动',
47
- // dataIndex: 'liveActivites',
48
- // width: 150,
49
- // },
50
- ]
51
- },
52
-
20
+ BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
53
21
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
54
- WLN_SYSTEM_ORDER: {
55
- key: "wlnSystemShowOrder",
56
- name: "万里牛",
57
- selectId: "wlnSystemSelectIds",
58
- columns: [{
59
- title: "订单类型",
60
- dataIndex: "billType",
61
- width: 150
62
- }, {
63
- title: "系统订单号",
64
- dataIndex: "billNo",
65
- width: 150
66
- }, {
67
- title: "标记",
68
- dataIndex: "billTag",
69
- width: 150
70
- }]
71
- },
72
- WDT_SYSTEM_ORDER: {
73
- key: "wdtSystemShowOrder",
74
- name: "旺店通",
75
- selectId: "wdtSystemSelectIds",
76
- columns: [{
77
- title: "订单类型",
78
- dataIndex: "billType",
79
- width: 150
80
- }, {
81
- title: "系统订单号",
82
- dataIndex: "billNo",
83
- width: 150
84
- }, {
85
- title: "订单标签",
86
- dataIndex: "billTag",
87
- width: 150
88
- }]
89
- },
90
- BS_E3_SYSTEM_ORDER: {
91
- key: "bsE3SystemShowOrder",
92
- name: "百胜",
93
- selectId: "bsE3SystemSelectIds",
94
- columns: [{
95
- title: "系统订单号",
96
- dataIndex: "orderSn",
97
- width: 150,
98
- ellipsis: true
99
- }, {
100
- title: "订单状态",
101
- dataIndex: "orderStatus",
102
- width: 100,
103
- ellipsis: true,
104
- render: function render(val) {
105
- return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
106
- },
107
- renderExport: function renderExport(val) {
108
- return BS_E3_ORDER_STATUS_MAP[val] || val;
109
- }
110
- }, {
111
- title: "是否被拆分",
112
- dataIndex: "isSplit",
113
- width: 100,
114
- ellipsis: true,
115
- render: function render(val) {
116
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
117
- },
118
- renderExport: function renderExport(val) {
119
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
120
- }
121
- }, {
122
- title: "是否拆分子单",
123
- dataIndex: "isSplitNew",
124
- width: 100,
125
- ellipsis: true,
126
- render: function render(val) {
127
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
128
- },
129
- renderExport: function renderExport(val) {
130
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
131
- }
132
- }, {
133
- title: "是否被合并",
134
- dataIndex: "isCombine",
135
- width: 100,
136
- ellipsis: true,
137
- render: function render(val) {
138
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
139
- },
140
- renderExport: function renderExport(val) {
141
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
142
- }
143
- }, {
144
- title: "是否合并新单",
145
- dataIndex: "isCombineNew",
146
- width: 100,
147
- ellipsis: true,
148
- render: function render(val) {
149
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
150
- },
151
- renderExport: function renderExport(val) {
152
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
153
- }
154
- }, {
155
- title: "是否复制单",
156
- dataIndex: "isCopy",
157
- width: 100,
158
- ellipsis: true,
159
- render: function render(val) {
160
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
161
- },
162
- renderExport: function renderExport(val) {
163
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
164
- }
165
- }, {
166
- title: "是否换货单",
167
- dataIndex: "isExchangeOrder",
168
- width: 100,
169
- ellipsis: true,
170
- render: function render(val) {
171
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
172
- },
173
- renderExport: function renderExport(val) {
174
- return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
175
- }
176
- }, {
177
- title: "订单备注",
178
- dataIndex: "orderMsg",
179
- width: 150,
180
- ellipsis: true
181
- }]
182
- },
22
+ WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG,
23
+ WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG,
24
+ BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
183
25
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG
184
26
  };
185
27
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
@@ -14,13 +14,13 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
16
16
  import React, { useState, useMemo } from "react";
17
- import { ExpressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { getAlipayBillReceipt } from "../../service/api";
19
19
  import { CopyToClipboard } from "react-copy-to-clipboard";
20
20
  import styles from "./index.module.less";
21
21
  import defaultImg from "./img/default-img.png";
22
22
  import CopyText from "../../commonComponents/CopyText";
23
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
23
+ 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, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
24
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
25
25
  var Paragraph = Typography.Paragraph;
26
26
  export var getFormItem = function getFormItem(_ref) {
@@ -635,116 +635,11 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
635
635
  var value = _ref13.value,
636
636
  type = _ref13.type;
637
637
  var columnMap = {
638
- BS_SYSTEM_ORDER: [{
639
- dataIndex: "billType",
640
- title: "订单类型"
641
- }, {
642
- dataIndex: "billNo",
643
- title: "系统订单号"
644
- }, {
645
- dataIndex: "billTag",
646
- title: "标签"
647
- }, {
648
- title: "主播名称",
649
- dataIndex: "authorName"
650
- }, {
651
- title: "主播ID",
652
- dataIndex: "authorId"
653
- }
654
- // {
655
- // title: '直播活动',
656
- // dataIndex: 'liveActivites',
657
- // },
658
- ],
659
-
638
+ BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
660
639
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
661
- WLN_SYSTEM_ORDER: [{
662
- dataIndex: "billType",
663
- title: "单据类型"
664
- }, {
665
- dataIndex: "billNo",
666
- title: "系统订单号"
667
- }, {
668
- dataIndex: "billTag",
669
- title: "标签"
670
- }],
671
- WDT_SYSTEM_ORDER: [{
672
- dataIndex: "billType",
673
- title: "订单类型"
674
- }, {
675
- dataIndex: "billNo",
676
- title: "系统订单号"
677
- }, {
678
- dataIndex: "billTag",
679
- title: "订单标签"
680
- }],
681
- BS_E3_SYSTEM_ORDER: [{
682
- title: "系统订单号",
683
- dataIndex: "orderSn",
684
- width: 150,
685
- ellipsis: true
686
- }, {
687
- title: "订单状态",
688
- dataIndex: "orderStatus",
689
- width: 100,
690
- ellipsis: true,
691
- render: function render(val) {
692
- return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
693
- }
694
- }, {
695
- title: "是否被拆分",
696
- dataIndex: "isSplit",
697
- width: 100,
698
- ellipsis: true,
699
- render: function render(val) {
700
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
701
- }
702
- }, {
703
- title: "是否拆分子单",
704
- dataIndex: "isSplitNew",
705
- width: 100,
706
- ellipsis: true,
707
- render: function render(val) {
708
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
709
- }
710
- }, {
711
- title: "是否被合并",
712
- dataIndex: "isCombine",
713
- width: 100,
714
- ellipsis: true,
715
- render: function render(val) {
716
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
717
- }
718
- }, {
719
- title: "是否合并新单",
720
- dataIndex: "isCombineNew",
721
- width: 100,
722
- ellipsis: true,
723
- render: function render(val) {
724
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
725
- }
726
- }, {
727
- title: "是否复制单",
728
- dataIndex: "isCopy",
729
- width: 100,
730
- ellipsis: true,
731
- render: function render(val) {
732
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
733
- }
734
- }, {
735
- title: "是否换货单",
736
- dataIndex: "isExchangeOrder",
737
- width: 100,
738
- ellipsis: true,
739
- render: function render(val) {
740
- return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
741
- }
742
- }, {
743
- title: "订单备注",
744
- dataIndex: "orderMsg",
745
- width: 100,
746
- ellipsis: true
747
- }],
640
+ WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
641
+ WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
642
+ BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
748
643
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns
749
644
  };
750
645
  var rowKeyMap = {
@@ -169,7 +169,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
169
169
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
170
170
  display: p === null || p === void 0 ? void 0 : p.display,
171
171
  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,
172
- 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 : '',
172
+ 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 : "",
173
173
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
174
174
  type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField
175
175
  }))
@@ -1,3 +1,3 @@
1
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, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | ItemEnCode | GyGoods | GyReissue | 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 | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | 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 | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonSystemOrder | ItemEnCode | GyGoods | GyReissue | JstSendGood | MsgStatus | BasicPosting | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.22.1-beta.63",
3
+ "version": "1.22.1-beta.66",
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.63",
25
- "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.63",
24
+ "@kmkf-fe-packages/basic-components": "1.22.1-beta.64",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.64",
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": "c4c783993a72f38c9257aca814a872b144abce3a",
44
+ "gitHead": "47cce36d2b5709d58de08683d87131da06e29c4c",
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;