@kmkf-fe-packages/services-components 0.27.1-test.0 → 0.27.1-test.12
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/commonComponents/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/ErpContext/index.d.ts +16 -0
- package/dist/esm/commonComponents/ErpContext/index.js +68 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +12 -7
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +5 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +9 -19
- package/dist/esm/components/Common/index.d.ts +3 -2
- package/dist/esm/components/Common/index.js +261 -171
- package/dist/esm/components/CommonHeaderGood/index.js +168 -0
- package/dist/esm/components/CommonInput/index.d.ts +34 -0
- package/dist/esm/components/CommonInput/index.js +105 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +23 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +4 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +169 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.less +30 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/noImage.png +0 -0
- package/dist/esm/components/ErpTradeId/index.MD +1 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -29
- package/dist/esm/components/ErpTradeId/index.js +41 -104
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstLogistics/index.js +16 -11
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +57 -4
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js +80 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +9 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +26 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +27 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +71 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +93 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +108 -0
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +22 -14
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +35 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +181 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +148 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -3
- package/dist/esm/index.d.ts +10 -3
- package/dist/esm/index.js +10 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +36 -16
- package/dist/esm/type.d.ts +4 -2
- package/package.json +4 -4
|
@@ -0,0 +1,108 @@
|
|
|
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 _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); }
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
11
|
+
import GetFormItem from "../GetFormItem";
|
|
12
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
15
|
+
import { AlipayBill } from "../Common/index";
|
|
16
|
+
var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(options) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
_classCallCheck(this, PaymentVoucherCode);
|
|
19
|
+
_defineProperty(this, "name", void 0);
|
|
20
|
+
_defineProperty(this, "id", void 0);
|
|
21
|
+
_defineProperty(this, "sortField", void 0);
|
|
22
|
+
_defineProperty(this, "type", void 0);
|
|
23
|
+
_defineProperty(this, "rules", void 0);
|
|
24
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "templateId", void 0);
|
|
31
|
+
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
32
|
+
_defineProperty(this, "effects", void 0);
|
|
33
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
|
+
var _this$effects;
|
|
35
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")])) return "--";
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
onClick: function onClick(e) {
|
|
38
|
+
return e.stopPropagation();
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement(AlipayBill, {
|
|
41
|
+
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")],
|
|
42
|
+
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env
|
|
43
|
+
}));
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")])) return null;
|
|
47
|
+
return _this.renderPc(undefined, r);
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
50
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")];
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
|
+
var _record;
|
|
54
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")]) !== null && _record !== void 0 ? _record : "--";
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
57
|
+
var _this$effects2;
|
|
58
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
59
|
+
id: _this.id,
|
|
60
|
+
label: _this.name,
|
|
61
|
+
value: /*#__PURE__*/React.createElement(AlipayBill, {
|
|
62
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
63
|
+
platform: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env
|
|
64
|
+
})
|
|
65
|
+
}) : null;
|
|
66
|
+
});
|
|
67
|
+
_defineProperty(this, "editRender", function (p) {
|
|
68
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
69
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
70
|
+
title: _this.name,
|
|
71
|
+
name: _this.id,
|
|
72
|
+
rules: _this.rules,
|
|
73
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
|
+
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,
|
|
76
|
+
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
77
|
+
placeholder: "\u81EA\u52A8\u83B7\u53D6\u65E0\u9700\u586B\u5199",
|
|
78
|
+
disabled: true
|
|
79
|
+
}))
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
83
|
+
return {
|
|
84
|
+
searchDefaultConditions: SYMBOL.like,
|
|
85
|
+
type: item.type,
|
|
86
|
+
id: "".concat(item.id, "_paymentVoucherCode"),
|
|
87
|
+
// 过滤组件id
|
|
88
|
+
name: item.name,
|
|
89
|
+
// 过滤组件名称
|
|
90
|
+
filterComponentType: "Input"
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
this.name = options.name;
|
|
94
|
+
this.id = options.id;
|
|
95
|
+
this.sortField = "".concat(options.id, "_paymentVoucherCode");
|
|
96
|
+
this.formField = "".concat(options.id, "_paymentVoucherCode");
|
|
97
|
+
this.type = options.type;
|
|
98
|
+
this.templateId = options.templateId;
|
|
99
|
+
this.componentConfig = options.componentConfig;
|
|
100
|
+
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
101
|
+
this.rules = [];
|
|
102
|
+
this.isCombinationComponent = false;
|
|
103
|
+
this.canSort = false;
|
|
104
|
+
this.children = [];
|
|
105
|
+
this.dataType = "string";
|
|
106
|
+
this.effects = options.effects;
|
|
107
|
+
});
|
|
108
|
+
export default PaymentVoucherCode;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BasicSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getKeyByComponentType: (type: string) => any;
|
|
18
18
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -6,15 +6,23 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import { ApaasSelect } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var typeMap = {
|
|
16
|
-
BUYER_MESSAGE_NOTICE:
|
|
17
|
-
|
|
16
|
+
BUYER_MESSAGE_NOTICE: {
|
|
17
|
+
key: "buyerMessageNotice"
|
|
18
|
+
},
|
|
19
|
+
SELECT: {
|
|
20
|
+
key: "select"
|
|
21
|
+
},
|
|
22
|
+
NEW_PAYMENT_STATUS: {
|
|
23
|
+
key: "newPaymentStatus",
|
|
24
|
+
placeholder: "自动获取无需填写"
|
|
25
|
+
}
|
|
18
26
|
};
|
|
19
27
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
20
28
|
var _this = this,
|
|
@@ -33,7 +41,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
33
41
|
_defineProperty(this, "dataType", void 0);
|
|
34
42
|
_defineProperty(this, "options", void 0);
|
|
35
43
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
36
|
-
return typeMap[type] ||
|
|
44
|
+
return typeMap[type].key || "";
|
|
37
45
|
});
|
|
38
46
|
_defineProperty(this, "editRender", function (p) {
|
|
39
47
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -45,7 +53,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
45
53
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
46
54
|
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,
|
|
47
55
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
48
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
56
|
+
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
49
57
|
showSearch: true,
|
|
50
58
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
51
59
|
}))
|
|
@@ -55,27 +63,27 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
55
63
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
56
64
|
id: _this.id,
|
|
57
65
|
label: _this.name,
|
|
58
|
-
value: (record === null || record === void 0 ? void 0 : record[_this.id]) ||
|
|
66
|
+
value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
|
|
59
67
|
}) : null;
|
|
60
68
|
});
|
|
61
69
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
62
70
|
var _record;
|
|
63
71
|
var type = _this.type;
|
|
64
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record :
|
|
72
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
|
|
65
73
|
});
|
|
66
74
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
75
|
var type = _this.type;
|
|
68
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
|
|
76
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)])) return null;
|
|
69
77
|
return _this.renderPc(undefined, r);
|
|
70
78
|
});
|
|
71
79
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
72
80
|
var type = _this.type;
|
|
73
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
81
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
74
82
|
});
|
|
75
83
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
84
|
var _record2;
|
|
77
85
|
var type = _this.type;
|
|
78
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 :
|
|
86
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
79
87
|
});
|
|
80
88
|
_defineProperty(this, "filterConfig", function (item) {
|
|
81
89
|
var _item$config;
|
|
@@ -87,7 +95,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
87
95
|
// 过滤组件id
|
|
88
96
|
name: item.name,
|
|
89
97
|
// 过滤组件名称
|
|
90
|
-
filterComponentType:
|
|
98
|
+
filterComponentType: "MultipleSelect",
|
|
91
99
|
props: {
|
|
92
100
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
93
101
|
},
|
|
@@ -108,7 +116,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
108
116
|
this.isCombinationComponent = false;
|
|
109
117
|
this.canSort = true;
|
|
110
118
|
this.children = [];
|
|
111
|
-
this.dataType =
|
|
119
|
+
this.dataType = "string";
|
|
112
120
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
113
121
|
});
|
|
114
122
|
export default BasicSelect;
|
|
@@ -17,7 +17,6 @@ declare class ETradeId implements ComponentInterface {
|
|
|
17
17
|
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
copyHandle: (text: string) => void;
|
|
21
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
22
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
23
22
|
getComponentValue: (r: Record) => any;
|
|
@@ -7,14 +7,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { message } from 'antd';
|
|
11
10
|
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
12
|
-
import { CopyOutlined } from '@ant-design/icons';
|
|
13
11
|
import GetFormItem from "../GetFormItem";
|
|
14
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
-
import copy from 'copy-to-clipboard';
|
|
17
14
|
import { SYMBOL, batchInput } from "../../constant";
|
|
15
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
18
16
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
19
17
|
var _this = this;
|
|
20
18
|
_classCallCheck(this, ETradeId);
|
|
@@ -36,13 +34,11 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
36
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
37
35
|
id: _this.id,
|
|
38
36
|
label: _this.name,
|
|
39
|
-
value:
|
|
37
|
+
value: /*#__PURE__*/React.createElement(CopyText, {
|
|
38
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
|
|
39
|
+
})
|
|
40
40
|
}) : null;
|
|
41
41
|
});
|
|
42
|
-
_defineProperty(this, "copyHandle", function (text) {
|
|
43
|
-
copy(text);
|
|
44
|
-
message.success('复制成功');
|
|
45
|
-
});
|
|
46
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
47
43
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
48
44
|
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
@@ -51,17 +47,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
51
47
|
onClick: function onClick(e) {
|
|
52
48
|
return e.stopPropagation();
|
|
53
49
|
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
e.stopPropagation();
|
|
58
|
-
}
|
|
59
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
60
|
-
style: {
|
|
61
|
-
paddingLeft: '4px',
|
|
62
|
-
cursor: 'pointer'
|
|
63
|
-
}
|
|
64
|
-
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
50
|
+
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
51
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
|
|
52
|
+
}));
|
|
65
53
|
});
|
|
66
54
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
55
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
declare class BsExchange implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
returnGoods: CommonHeaderGoods;
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: () => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
22
|
+
getComponentValue: (r: Record) => {
|
|
23
|
+
wdtExchangeGoods: any;
|
|
24
|
+
};
|
|
25
|
+
renderExport: (value: any, record: any) => null;
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "like";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "Input";
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export default BsExchange;
|
|
@@ -0,0 +1,181 @@
|
|
|
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 { BsGoodsTable } from "../../Common";
|
|
14
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
15
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../../constant";
|
|
17
|
+
// import { BsType, BsMemo } from "../../Bs/common";
|
|
18
|
+
import { CommonExchangeGoods } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
var BsExchange = /*#__PURE__*/_createClass(
|
|
21
|
+
// wdtType: BsType;
|
|
22
|
+
// wdtMemo: BsMemo;
|
|
23
|
+
|
|
24
|
+
// swapOutGoods: BsHeaderGood;
|
|
25
|
+
// giftGoods: BsHeaderGood;
|
|
26
|
+
function BsExchange(options) {
|
|
27
|
+
var _this = this,
|
|
28
|
+
_this$componentConfig4;
|
|
29
|
+
_classCallCheck(this, BsExchange);
|
|
30
|
+
_defineProperty(this, "name", void 0);
|
|
31
|
+
_defineProperty(this, "id", void 0);
|
|
32
|
+
_defineProperty(this, "sortField", void 0);
|
|
33
|
+
_defineProperty(this, "type", void 0);
|
|
34
|
+
_defineProperty(this, "rules", void 0);
|
|
35
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
36
|
+
_defineProperty(this, "effects", void 0);
|
|
37
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
38
|
+
_defineProperty(this, "formField", void 0);
|
|
39
|
+
_defineProperty(this, "canSort", void 0);
|
|
40
|
+
_defineProperty(this, "children", void 0);
|
|
41
|
+
_defineProperty(this, "dataType", void 0);
|
|
42
|
+
_defineProperty(this, "returnGoods", void 0);
|
|
43
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
44
|
+
var _this$componentConfig;
|
|
45
|
+
var wdtExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_wdtExchangeGoods")]) || "[]");
|
|
46
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
47
|
+
id: "".concat(_this.id, "-out"),
|
|
48
|
+
label: "".concat(_this.name, "-\u6362\u51FA"),
|
|
49
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
50
|
+
list: wdtExchangeGoods || [],
|
|
51
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
52
|
+
})
|
|
53
|
+
})) : null;
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderPc", function () {
|
|
56
|
+
return null;
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
59
|
+
var _r, _this$componentConfig2;
|
|
60
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_wdtExchangeGoods")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
61
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtExchangeGoods")]) || [],
|
|
62
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
63
|
+
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
66
|
+
return {
|
|
67
|
+
wdtExchangeGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_wdtExchangeGoods")]
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
71
|
+
return null;
|
|
72
|
+
});
|
|
73
|
+
_defineProperty(this, "editRender", function (p) {
|
|
74
|
+
var _this$componentConfig3, _this$effects, _this$effects2, _this$effects3;
|
|
75
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
76
|
+
title: _this.name,
|
|
77
|
+
name: _this.id,
|
|
78
|
+
rules: _this.rules,
|
|
79
|
+
required: false,
|
|
80
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
81
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
82
|
+
component: /*#__PURE__*/React.createElement(CommonExchangeGoods, _extends({}, _this.componentConfig, {
|
|
83
|
+
maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
|
|
84
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
85
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
86
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
87
|
+
width: "90%",
|
|
88
|
+
type: "WDT_EXCHANGE_GOODS"
|
|
89
|
+
}))
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
93
|
+
return [{
|
|
94
|
+
searchDefaultConditions: SYMBOL.like,
|
|
95
|
+
type: item.type,
|
|
96
|
+
id: "".concat(item.id, "_wdtExchangeGoods"),
|
|
97
|
+
name: "".concat(_this.name, "-\u6362\u51FA"),
|
|
98
|
+
filterComponentType: "Input"
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
this.name = options.name;
|
|
102
|
+
this.id = options.id;
|
|
103
|
+
this.sortField = "".concat(options.id);
|
|
104
|
+
this.formField = "".concat(options.id);
|
|
105
|
+
this.type = options.type;
|
|
106
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
107
|
+
this.isCombinationComponent = true;
|
|
108
|
+
this.canSort = false;
|
|
109
|
+
// this.wdtType = new BsType({
|
|
110
|
+
// ...options,
|
|
111
|
+
// id: `${options.id}_wdtExchangeType`,
|
|
112
|
+
// name: "换货类型",
|
|
113
|
+
// });
|
|
114
|
+
// this.wdtMemo = new BsMemo({
|
|
115
|
+
// ...options,
|
|
116
|
+
// id: `${options.id}_wdtExchangeType_memo`,
|
|
117
|
+
// name: "换货备注",
|
|
118
|
+
// });
|
|
119
|
+
this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
120
|
+
id: "".concat(options.id, "_wdtExchangeGoods"),
|
|
121
|
+
name: "换出商品"
|
|
122
|
+
}));
|
|
123
|
+
// this.swapOutGoods = new BsHeaderGood({
|
|
124
|
+
// ...options,
|
|
125
|
+
// id: `${options.id}_wdtExchangeSwapOutGoods`,
|
|
126
|
+
// name: "换出商品",
|
|
127
|
+
// });
|
|
128
|
+
// this.giftGoods = new BsHeaderGood({
|
|
129
|
+
// ...options,
|
|
130
|
+
// id: `${options.id}_wdtExchangeGiftGoods`,
|
|
131
|
+
// name: "赠品商品",
|
|
132
|
+
// });
|
|
133
|
+
this.children = [
|
|
134
|
+
// this.wdtType,
|
|
135
|
+
// this.wdtMemo,
|
|
136
|
+
this.returnGoods
|
|
137
|
+
// this.swapOutGoods,
|
|
138
|
+
// this.giftGoods,
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
142
|
+
this.rules = [{
|
|
143
|
+
required: (_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required,
|
|
144
|
+
validator: function validator(_, value) {
|
|
145
|
+
var _this$componentConfig5, _value$wdtExchangeGoo;
|
|
146
|
+
if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && (_value$wdtExchangeGoo = value.wdtExchangeGoods) !== null && _value$wdtExchangeGoo !== void 0 && _value$wdtExchangeGoo.length)) {
|
|
147
|
+
return Promise.reject(new Error("请选择wdt换货商品"));
|
|
148
|
+
}
|
|
149
|
+
return Promise.resolve();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/* {
|
|
153
|
+
validator: (_: any, value: any) => {
|
|
154
|
+
if (value && ["2", "4"].includes(value?.wdtExchangeType?.[0])) {
|
|
155
|
+
const hasNoGood = (value?.wdtExchangeGoods || []).some(
|
|
156
|
+
(item: any) => {
|
|
157
|
+
return !item?.wdtExchangeGoods.length;
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
if (hasNoGood) {
|
|
161
|
+
return Promise.reject(new Error("请选择退回商品后再提交工单"));
|
|
162
|
+
}
|
|
163
|
+
const hasLen = (value?.wdtExchangeGoods || []).some(
|
|
164
|
+
(item: any) => {
|
|
165
|
+
return (
|
|
166
|
+
item?.wdtExchangeGoods.length !==
|
|
167
|
+
item?.wdtExchangeSwapOutGoods.length
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
if (hasLen) {
|
|
172
|
+
return Promise.reject(new Error("请核对商品数据,再提交工单"));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return Promise.resolve();
|
|
176
|
+
},
|
|
177
|
+
},*/];
|
|
178
|
+
|
|
179
|
+
this.dataType = "object";
|
|
180
|
+
});
|
|
181
|
+
export default BsExchange;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
4
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
5
|
+
declare class WdtReissue implements ComponentInterface {
|
|
6
|
+
name: string;
|
|
7
|
+
id: string;
|
|
8
|
+
sortField: string;
|
|
9
|
+
type: string;
|
|
10
|
+
rules: any[];
|
|
11
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
12
|
+
effects: ComponentInterface["effects"];
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
bsType: BsType;
|
|
19
|
+
bsMemo: BsMemo;
|
|
20
|
+
systemOrderNo: SystemOrderNo;
|
|
21
|
+
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
|
+
constructor(options: PickOption);
|
|
23
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
|
+
renderPc: () => null;
|
|
25
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
26
|
+
getComponentValue: (r: Record) => {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
renderExport: () => null;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
31
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
32
|
+
searchDefaultConditions: "in";
|
|
33
|
+
type: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
filterComponentType: "Cascader";
|
|
37
|
+
props: {
|
|
38
|
+
options: any[] | undefined;
|
|
39
|
+
fieldNames: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
children: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
46
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
47
|
+
} | {
|
|
48
|
+
searchDefaultConditions: "like";
|
|
49
|
+
type: string;
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
filterComponentType: "Input";
|
|
53
|
+
props?: undefined;
|
|
54
|
+
formatFilterValue?: undefined;
|
|
55
|
+
filterFn?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
}
|
|
58
|
+
export default WdtReissue;
|