@kmkf-fe-packages/services-components 2.10.9-beta.3 → 2.10.9-beta.30
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.
- package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
- package/dist/esm/components/BS/BsExchange/index.js +6 -0
- package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BS/BsGoods/index.js +6 -0
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReissue/index.js +6 -0
- package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
- package/dist/esm/components/BS/BsReturn/index.js +6 -0
- package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
- package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +14 -0
- package/dist/esm/components/Common/index.js +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +38 -34
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
- package/dist/esm/components/CommonMultiStatus/index.js +34 -6
- package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
- package/dist/esm/components/GY/GyGoods/index.js +6 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReissue/index.js +6 -0
- package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReturn/index.js +6 -0
- package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JST/JstSendGood/index.js +7 -1
- package/dist/esm/components/JST/JstSupply/index.d.ts +1 -1
- package/dist/esm/components/JST/JstSupply/index.js +3 -0
- package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
- package/dist/esm/components/KM/KmExchange/index.js +6 -0
- package/dist/esm/components/KmErpSendGood/index.d.ts +1 -1
- package/dist/esm/components/KmErpSendGood/index.js +3 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/index.js +14 -7
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +103 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +2 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +19 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.d.ts +39 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.js +108 -0
- package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
- package/dist/esm/components/Public/Exchange/index.js +6 -0
- package/dist/esm/components/Public/Goods/index.js +2 -12
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
- package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
- package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
- package/dist/esm/components/Reissue/Logistics/index.js +3 -0
- package/dist/esm/components/Remark/index.d.ts +4 -1
- package/dist/esm/components/Remark/index.js +36 -8
- package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +5 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LogisticsInterception from "../components/LogisticsInterception";
|
|
2
2
|
import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
|
|
3
|
-
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/JST/JstSendGood").default | LogisticsInterception | LogisticsMoreInterception | import("../components/Public/Goods").default | import("../components/Remark").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/TradeId").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/DXD/DxdShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/Public/ReturnWarehouse").default | import("../components/GY/GyGoods").default | import("../components/KM/KmExchange").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").default;
|
|
4
4
|
export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
|
|
5
5
|
queryWorkOrderDetail?: ((p: any) => void) | undefined;
|
|
6
6
|
flatTemplateList?: any;
|
|
@@ -14,12 +14,19 @@ declare class BsExchange implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsType: BsType;
|
|
18
19
|
bsMemo: BsMemo;
|
|
19
20
|
returnGoods: BsHeaderGood;
|
|
20
21
|
swapOutGoods: BsHeaderGood;
|
|
21
22
|
giftGoods: BsHeaderGood;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
16
|
import { BsExchange as Exchange } from "@kmkf-fe-packages/basic-components";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig10;
|
|
@@ -32,11 +33,15 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsType", void 0);
|
|
36
38
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
39
|
_defineProperty(this, "returnGoods", void 0);
|
|
38
40
|
_defineProperty(this, "swapOutGoods", void 0);
|
|
39
41
|
_defineProperty(this, "giftGoods", void 0);
|
|
42
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
43
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
44
|
+
});
|
|
40
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
46
|
var _this$componentConfig, _this$componentConfig2, _record, _record$bsExchangeTyp, _this$componentConfig3;
|
|
42
47
|
var bsExchangeReturnGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsExchangeReturnGoods")]) || "[]");
|
|
@@ -210,5 +215,6 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
210
215
|
}
|
|
211
216
|
}];
|
|
212
217
|
this.dataType = "object";
|
|
218
|
+
this.sortChildField = this.getSortChildFields();
|
|
213
219
|
});
|
|
214
220
|
export default BsExchange;
|
|
@@ -14,8 +14,15 @@ declare class BsGoods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsGoods: BsHeaderGood;
|
|
18
19
|
constructor(options: PickOption);
|
|
20
|
+
getSortChildFields: () => {
|
|
21
|
+
name: any;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
conditionOptionsSetting: any;
|
|
25
|
+
}[];
|
|
19
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
27
|
renderPc: () => null;
|
|
21
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull, findLabelBySelectValue } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var hasQualityValue = function hasQualityValue(value, componentConfig) {
|
|
20
21
|
var _findLabelBySelectVal, _findLabelBySelectVal2;
|
|
21
22
|
var label = (_findLabelBySelectVal = findLabelBySelectValue(value, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (item) {
|
|
@@ -39,7 +40,11 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
39
40
|
_defineProperty(this, "canSort", void 0);
|
|
40
41
|
_defineProperty(this, "children", void 0);
|
|
41
42
|
_defineProperty(this, "dataType", void 0);
|
|
43
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
42
44
|
_defineProperty(this, "bsGoods", void 0);
|
|
45
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
46
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
47
|
+
});
|
|
43
48
|
_defineProperty(this, "renderClient", function (record) {
|
|
44
49
|
var _record, _this$componentConfig;
|
|
45
50
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -156,5 +161,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
156
161
|
}
|
|
157
162
|
});
|
|
158
163
|
this.dataType = "object";
|
|
164
|
+
this.sortChildField = this.getSortChildFields();
|
|
159
165
|
});
|
|
160
166
|
export default BsGoods;
|
|
@@ -15,10 +15,17 @@ declare class BsReissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface['dataType'];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface['sortChildField']>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
21
22
|
constructor(options: PickOption);
|
|
23
|
+
getSortChildFields: () => {
|
|
24
|
+
name: any;
|
|
25
|
+
key: string;
|
|
26
|
+
dataType: string;
|
|
27
|
+
conditionOptionsSetting: any;
|
|
28
|
+
}[];
|
|
22
29
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
30
|
renderPc: () => null;
|
|
24
31
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
BS_REISSUE_GOODS: {
|
|
22
23
|
key: 'bsReissueGoods',
|
|
@@ -53,9 +54,13 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
53
54
|
_defineProperty(this, "canSort", void 0);
|
|
54
55
|
_defineProperty(this, "children", void 0);
|
|
55
56
|
_defineProperty(this, "dataType", void 0);
|
|
57
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
56
58
|
_defineProperty(this, "bsType", void 0);
|
|
57
59
|
_defineProperty(this, "bsMemo", void 0);
|
|
58
60
|
_defineProperty(this, "reissueGoods", void 0);
|
|
61
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
62
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
63
|
+
});
|
|
59
64
|
_defineProperty(this, "renderClient", function (record) {
|
|
60
65
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
61
66
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -181,5 +186,6 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
181
186
|
}
|
|
182
187
|
}] : [];
|
|
183
188
|
this.dataType = 'object';
|
|
189
|
+
this.sortChildField = this.getSortChildFields();
|
|
184
190
|
});
|
|
185
191
|
export default BsReissue;
|
|
@@ -14,10 +14,17 @@ declare class BsReturn implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsType: BsType;
|
|
18
19
|
bsMemo: BsMemo;
|
|
19
20
|
reissueGoods: BsHeaderGood;
|
|
20
21
|
constructor(options: PickOption);
|
|
22
|
+
getSortChildFields: () => {
|
|
23
|
+
name: any;
|
|
24
|
+
key: string;
|
|
25
|
+
dataType: string;
|
|
26
|
+
conditionOptionsSetting: any;
|
|
27
|
+
}[];
|
|
21
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
29
|
renderPc: () => null;
|
|
23
30
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ import { BsReturn as BsReturnGoods } from "@kmkf-fe-packages/basic-components";
|
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,9 +33,13 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsType", void 0);
|
|
36
38
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
39
|
_defineProperty(this, "reissueGoods", void 0);
|
|
40
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
42
|
+
});
|
|
38
43
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
44
|
var _this$componentConfig;
|
|
40
45
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].bsReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -148,5 +153,6 @@ var BsReturn = /*#__PURE__*/_createClass(function BsReturn(options) {
|
|
|
148
153
|
}
|
|
149
154
|
}] : [];
|
|
150
155
|
this.dataType = "object";
|
|
156
|
+
this.sortChildField = this.getSortChildFields();
|
|
151
157
|
});
|
|
152
158
|
export default BsReturn;
|
|
@@ -14,8 +14,15 @@ declare class BSE3Goods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
bsE3Goods: CommonHeaderGoods;
|
|
18
19
|
constructor(options: PickOption);
|
|
20
|
+
getSortChildFields: () => {
|
|
21
|
+
name: any;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
conditionOptionsSetting: any;
|
|
25
|
+
}[];
|
|
19
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
27
|
renderPc: () => null;
|
|
21
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,7 +33,11 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "bsE3Goods", void 0);
|
|
38
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
39
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
40
|
+
});
|
|
36
41
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
42
|
var _record, _this$componentConfig;
|
|
38
43
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -119,5 +124,6 @@ var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
|
119
124
|
}
|
|
120
125
|
}] : [];
|
|
121
126
|
this.dataType = "object";
|
|
127
|
+
this.sortChildField = this.getSortChildFields();
|
|
122
128
|
});
|
|
123
129
|
export default BSE3Goods;
|
|
@@ -15,11 +15,18 @@ declare class BsE3Reissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
systemOrderNo: SystemOrderNo;
|
|
21
22
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
BS_E3_REISSUE_GOODS: {
|
|
22
23
|
key: "bsE3ReissueGoods",
|
|
@@ -47,10 +48,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
47
48
|
_defineProperty(this, "canSort", void 0);
|
|
48
49
|
_defineProperty(this, "children", void 0);
|
|
49
50
|
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
50
52
|
_defineProperty(this, "bsType", void 0);
|
|
51
53
|
_defineProperty(this, "bsMemo", void 0);
|
|
52
54
|
_defineProperty(this, "systemOrderNo", void 0);
|
|
53
55
|
_defineProperty(this, "reissueGoods", void 0);
|
|
56
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
57
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
58
|
+
});
|
|
54
59
|
_defineProperty(this, "renderClient", function (record) {
|
|
55
60
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
56
61
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -190,5 +195,6 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
|
|
|
190
195
|
}
|
|
191
196
|
}] : [];
|
|
192
197
|
this.dataType = "object";
|
|
198
|
+
this.sortChildField = this.getSortChildFields();
|
|
193
199
|
});
|
|
194
200
|
export default BsE3Reissue;
|
|
@@ -3,3 +3,9 @@ export declare type ColumnsMapType = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
5
5
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
6
|
+
export declare const getGoodsSortChildFields: (type: string, id: string) => {
|
|
7
|
+
name: any;
|
|
8
|
+
key: string;
|
|
9
|
+
dataType: string;
|
|
10
|
+
conditionOptionsSetting: any;
|
|
11
|
+
}[];
|
|
@@ -37,4 +37,18 @@ export var getColumnsMap = function getColumnsMap(args) {
|
|
|
37
37
|
text: text
|
|
38
38
|
})["default"]
|
|
39
39
|
});
|
|
40
|
+
};
|
|
41
|
+
export var getGoodsSortChildFields = function getGoodsSortChildFields(type, id) {
|
|
42
|
+
var columnsMap = getColumnsMap();
|
|
43
|
+
var columns = columnsMap[type] || (type.startsWith("BS_") ? columnsMap.BS_GOODS : columnsMap.default) || [];
|
|
44
|
+
return columns.filter(function (item) {
|
|
45
|
+
return !["picUrl"].includes(item.dataIndex);
|
|
46
|
+
}).map(function (item) {
|
|
47
|
+
return {
|
|
48
|
+
name: item.title,
|
|
49
|
+
key: "".concat(id, "_").concat(item.dataIndex),
|
|
50
|
+
dataType: "arrayObject",
|
|
51
|
+
conditionOptionsSetting: item.conditionOptionsSetting
|
|
52
|
+
};
|
|
53
|
+
});
|
|
40
54
|
};
|
|
@@ -309,6 +309,7 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
309
309
|
var logisticsCompany = item.logisticsCompany,
|
|
310
310
|
logisticsCompanyName = item.logisticsCompanyName;
|
|
311
311
|
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
|
|
312
|
+
console.log("00001--", [platformType, logisticsCompany, ExpressData.getInstance(platformType), ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany]);
|
|
312
313
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
313
314
|
content: content(item, index),
|
|
314
315
|
overlayStyle: {
|
|
@@ -20,6 +20,10 @@ import { BsHeaderPic, BsHeaderChild } from "../BS/common";
|
|
|
20
20
|
import ReissueGift from "../BsE3/ReissueGift";
|
|
21
21
|
import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
|
|
22
22
|
import { getJstColumns, getKmColumns, getDxdColumns } from "@kmkf-fe-packages/basic-components";
|
|
23
|
+
var isNullNotFalse = function isNullNotFalse(val) {
|
|
24
|
+
if (val === false) return false;
|
|
25
|
+
return isNull(val);
|
|
26
|
+
};
|
|
23
27
|
var orderGoodsHeaderComponentMap = {
|
|
24
28
|
pic: BsHeaderPic
|
|
25
29
|
};
|
|
@@ -1188,19 +1192,19 @@ var GoodHeaderMap = {
|
|
|
1188
1192
|
saleBasePrice: {
|
|
1189
1193
|
name: "原价",
|
|
1190
1194
|
transformValue: function transformValue(price) {
|
|
1191
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1195
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1192
1196
|
},
|
|
1193
1197
|
renderExport: function renderExport(price) {
|
|
1194
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1198
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1195
1199
|
}
|
|
1196
1200
|
},
|
|
1197
1201
|
salePrice: {
|
|
1198
1202
|
name: "单价",
|
|
1199
1203
|
transformValue: function transformValue(price) {
|
|
1200
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1204
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1201
1205
|
},
|
|
1202
1206
|
renderExport: function renderExport(price) {
|
|
1203
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1207
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1204
1208
|
}
|
|
1205
1209
|
},
|
|
1206
1210
|
qty: "数量",
|
|
@@ -1209,12 +1213,12 @@ var GoodHeaderMap = {
|
|
|
1209
1213
|
transformValue: function transformValue(val, record, parentName) {
|
|
1210
1214
|
if (!record) return "--";
|
|
1211
1215
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1212
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1216
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1213
1217
|
},
|
|
1214
1218
|
renderExport: function renderExport(val, record, parentName) {
|
|
1215
1219
|
if (!record) return "--";
|
|
1216
1220
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1217
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1221
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1218
1222
|
}
|
|
1219
1223
|
},
|
|
1220
1224
|
batchId: "批次号",
|
|
@@ -1260,19 +1264,19 @@ var GoodHeaderMap = {
|
|
|
1260
1264
|
saleBasePrice: {
|
|
1261
1265
|
name: "原价",
|
|
1262
1266
|
transformValue: function transformValue(price) {
|
|
1263
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1267
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1264
1268
|
},
|
|
1265
1269
|
renderExport: function renderExport(price) {
|
|
1266
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1270
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1267
1271
|
}
|
|
1268
1272
|
},
|
|
1269
1273
|
salePrice: {
|
|
1270
1274
|
name: "单价",
|
|
1271
1275
|
transformValue: function transformValue(price) {
|
|
1272
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1276
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1273
1277
|
},
|
|
1274
1278
|
renderExport: function renderExport(price) {
|
|
1275
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1279
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1276
1280
|
}
|
|
1277
1281
|
},
|
|
1278
1282
|
qty: "数量",
|
|
@@ -1302,19 +1306,19 @@ var GoodHeaderMap = {
|
|
|
1302
1306
|
saleBasePrice: {
|
|
1303
1307
|
name: "原价",
|
|
1304
1308
|
transformValue: function transformValue(price) {
|
|
1305
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1309
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1306
1310
|
},
|
|
1307
1311
|
renderExport: function renderExport(price) {
|
|
1308
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1312
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1309
1313
|
}
|
|
1310
1314
|
},
|
|
1311
1315
|
salePrice: {
|
|
1312
1316
|
name: "单价",
|
|
1313
1317
|
transformValue: function transformValue(price) {
|
|
1314
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1318
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1315
1319
|
},
|
|
1316
1320
|
renderExport: function renderExport(price) {
|
|
1317
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1321
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1318
1322
|
}
|
|
1319
1323
|
},
|
|
1320
1324
|
qty: "数量",
|
|
@@ -1323,12 +1327,12 @@ var GoodHeaderMap = {
|
|
|
1323
1327
|
transformValue: function transformValue(val, record, parentName) {
|
|
1324
1328
|
if (!record) return "--";
|
|
1325
1329
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1326
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1330
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1327
1331
|
},
|
|
1328
1332
|
renderExport: function renderExport(val, record, parentName) {
|
|
1329
1333
|
if (!record) return "--";
|
|
1330
1334
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1331
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1335
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1332
1336
|
}
|
|
1333
1337
|
},
|
|
1334
1338
|
batchId: "批次号",
|
|
@@ -1359,19 +1363,19 @@ var GoodHeaderMap = {
|
|
|
1359
1363
|
saleBasePrice: {
|
|
1360
1364
|
name: "原价",
|
|
1361
1365
|
transformValue: function transformValue(price) {
|
|
1362
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1366
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1363
1367
|
},
|
|
1364
1368
|
renderExport: function renderExport(price) {
|
|
1365
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1369
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1366
1370
|
}
|
|
1367
1371
|
},
|
|
1368
1372
|
salePrice: {
|
|
1369
1373
|
name: "单价",
|
|
1370
1374
|
transformValue: function transformValue(price) {
|
|
1371
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1375
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1372
1376
|
},
|
|
1373
1377
|
renderExport: function renderExport(price) {
|
|
1374
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1378
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1375
1379
|
}
|
|
1376
1380
|
},
|
|
1377
1381
|
qty: "数量",
|
|
@@ -1380,12 +1384,12 @@ var GoodHeaderMap = {
|
|
|
1380
1384
|
transformValue: function transformValue(val, record, parentName) {
|
|
1381
1385
|
if (!record) return "--";
|
|
1382
1386
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1383
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1387
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1384
1388
|
},
|
|
1385
1389
|
renderExport: function renderExport(val, record, parentName) {
|
|
1386
1390
|
if (!record) return "--";
|
|
1387
1391
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1388
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1392
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1389
1393
|
}
|
|
1390
1394
|
},
|
|
1391
1395
|
isGift: {
|
|
@@ -1473,11 +1477,11 @@ var GoodHeaderMap = {
|
|
|
1473
1477
|
name: "赠品类型",
|
|
1474
1478
|
width: 100,
|
|
1475
1479
|
transformValue: function transformValue(val) {
|
|
1476
|
-
if (
|
|
1480
|
+
if (isNullNotFalse(val)) return "--";
|
|
1477
1481
|
return val ? "赠品" : "非赠品";
|
|
1478
1482
|
},
|
|
1479
1483
|
renderExport: function renderExport(val) {
|
|
1480
|
-
if (
|
|
1484
|
+
if (isNullNotFalse(val)) return "--";
|
|
1481
1485
|
return val ? "赠品" : "非赠品";
|
|
1482
1486
|
}
|
|
1483
1487
|
},
|
|
@@ -1485,11 +1489,11 @@ var GoodHeaderMap = {
|
|
|
1485
1489
|
width: 200,
|
|
1486
1490
|
name: "是否组合商品",
|
|
1487
1491
|
transformValue: function transformValue(val) {
|
|
1488
|
-
if (
|
|
1492
|
+
if (isNullNotFalse(val)) return "--";
|
|
1489
1493
|
return val ? "是" : "否";
|
|
1490
1494
|
},
|
|
1491
1495
|
renderExport: function renderExport(val) {
|
|
1492
|
-
if (
|
|
1496
|
+
if (isNullNotFalse(val)) return "--";
|
|
1493
1497
|
return val ? "是" : "否";
|
|
1494
1498
|
}
|
|
1495
1499
|
},
|
|
@@ -1497,11 +1501,11 @@ var GoodHeaderMap = {
|
|
|
1497
1501
|
width: 100,
|
|
1498
1502
|
name: "是否退款",
|
|
1499
1503
|
transformValue: function transformValue(val) {
|
|
1500
|
-
if (
|
|
1504
|
+
if (isNullNotFalse(val)) return "--";
|
|
1501
1505
|
return val ? "是" : "否";
|
|
1502
1506
|
},
|
|
1503
1507
|
renderExport: function renderExport(val) {
|
|
1504
|
-
if (
|
|
1508
|
+
if (isNullNotFalse(val)) return "--";
|
|
1505
1509
|
return val ? "是" : "否";
|
|
1506
1510
|
}
|
|
1507
1511
|
},
|
|
@@ -1587,11 +1591,11 @@ var GoodHeaderMap = {
|
|
|
1587
1591
|
name: "赠品类型",
|
|
1588
1592
|
width: 100,
|
|
1589
1593
|
transformValue: function transformValue(val) {
|
|
1590
|
-
if (
|
|
1594
|
+
if (isNullNotFalse(val)) return "--";
|
|
1591
1595
|
return val ? "赠品" : "非赠品";
|
|
1592
1596
|
},
|
|
1593
1597
|
renderExport: function renderExport(val) {
|
|
1594
|
-
if (
|
|
1598
|
+
if (isNullNotFalse(val)) return "--";
|
|
1595
1599
|
return val ? "赠品" : "非赠品";
|
|
1596
1600
|
}
|
|
1597
1601
|
},
|
|
@@ -1599,11 +1603,11 @@ var GoodHeaderMap = {
|
|
|
1599
1603
|
width: 200,
|
|
1600
1604
|
name: "是否组合商品",
|
|
1601
1605
|
transformValue: function transformValue(val) {
|
|
1602
|
-
if (
|
|
1606
|
+
if (isNullNotFalse(val)) return "--";
|
|
1603
1607
|
return val ? "是" : "否";
|
|
1604
1608
|
},
|
|
1605
1609
|
renderExport: function renderExport(val) {
|
|
1606
|
-
if (
|
|
1610
|
+
if (isNullNotFalse(val)) return "--";
|
|
1607
1611
|
return val ? "是" : "否";
|
|
1608
1612
|
}
|
|
1609
1613
|
},
|
|
@@ -1611,11 +1615,11 @@ var GoodHeaderMap = {
|
|
|
1611
1615
|
width: 100,
|
|
1612
1616
|
name: "是否退款",
|
|
1613
1617
|
transformValue: function transformValue(val) {
|
|
1614
|
-
if (
|
|
1618
|
+
if (isNullNotFalse(val)) return "--";
|
|
1615
1619
|
return val ? "是" : "否";
|
|
1616
1620
|
},
|
|
1617
1621
|
renderExport: function renderExport(val) {
|
|
1618
|
-
if (
|
|
1622
|
+
if (isNullNotFalse(val)) return "--";
|
|
1619
1623
|
return val ? "是" : "否";
|
|
1620
1624
|
}
|
|
1621
1625
|
},
|
|
@@ -14,7 +14,10 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
16
|
isSingleValue: boolean;
|
|
17
|
-
|
|
17
|
+
ext?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
constructor(options: PickOption, ext?: {});
|
|
18
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
22
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
23
|
renderLog: (r: Record) => React.JSX.Element | null;
|