@kmkf-fe-packages/services-components 2.0.18 → 2.0.19-beta.0
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/README.md +1 -1
- package/dist/esm/components/BS/common/BsMemo.js +1 -0
- package/dist/esm/components/BS/common/BsType.js +1 -0
- package/dist/esm/components/Common/constants/gy.js +66 -0
- package/dist/esm/components/Common/index.js +1 -1
- package/dist/esm/components/CommonHeaderGood/index.js +98 -0
- package/dist/esm/components/GY/GyReturn/index.d.ts +57 -0
- package/dist/esm/components/GY/GyReturn/index.js +181 -0
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +6 -0
- package/dist/esm/components/LogisticsInterception/index.js +19 -8
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.d.ts +43 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserKCode.js +110 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.d.ts +35 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsUserSecretKey.js +84 -0
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +4 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +10 -3
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.d.ts +44 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserKCode.js +113 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.d.ts +35 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsUserSecretKey.js +83 -0
- package/dist/esm/components/MsgStatus/index.js +7 -2
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Select/index.d.ts +1 -1
- package/dist/esm/components/Select/index.js +9 -6
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -146,6 +146,72 @@ var getColumns = function getColumns() {
|
|
|
146
146
|
align: "center",
|
|
147
147
|
ellipsis: true
|
|
148
148
|
});
|
|
149
|
+
}),
|
|
150
|
+
//管易退货商品信息
|
|
151
|
+
GY_RETURN_GOODS: [{
|
|
152
|
+
dataIndex: "goodName",
|
|
153
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
154
|
+
width: 150
|
|
155
|
+
}, {
|
|
156
|
+
dataIndex: "goodShortName",
|
|
157
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
158
|
+
width: 150
|
|
159
|
+
}, {
|
|
160
|
+
dataIndex: "goodNo",
|
|
161
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
162
|
+
width: 200
|
|
163
|
+
}, {
|
|
164
|
+
dataIndex: "specName",
|
|
165
|
+
title: "SKU\u540D\u79F0",
|
|
166
|
+
align: "center",
|
|
167
|
+
ellipsis: true,
|
|
168
|
+
width: 250
|
|
169
|
+
}, {
|
|
170
|
+
dataIndex: "specNo",
|
|
171
|
+
title: "SKU\u7F16\u7801",
|
|
172
|
+
align: "center",
|
|
173
|
+
ellipsis: true,
|
|
174
|
+
width: 150
|
|
175
|
+
}, {
|
|
176
|
+
dataIndex: "qty",
|
|
177
|
+
title: "\u6570\u91CF",
|
|
178
|
+
width: 100
|
|
179
|
+
}, {
|
|
180
|
+
dataIndex: "price",
|
|
181
|
+
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
182
|
+
width: 150
|
|
183
|
+
}, {
|
|
184
|
+
dataIndex: "amount",
|
|
185
|
+
title: "\u5B9E\u9645\u91D1\u989D",
|
|
186
|
+
width: 150
|
|
187
|
+
}, {
|
|
188
|
+
dataIndex: "originPrice",
|
|
189
|
+
title: "\u6807\u51C6\u5355\u4EF7",
|
|
190
|
+
width: 150
|
|
191
|
+
}, {
|
|
192
|
+
dataIndex: "originAmount",
|
|
193
|
+
title: "\u6807\u51C6\u91D1\u989D",
|
|
194
|
+
width: 150
|
|
195
|
+
}, {
|
|
196
|
+
dataIndex: "discountFee",
|
|
197
|
+
title: "\u8BA9\u5229\u91D1\u989D",
|
|
198
|
+
width: 150
|
|
199
|
+
}, {
|
|
200
|
+
dataIndex: "amountAfter",
|
|
201
|
+
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
202
|
+
width: 150
|
|
203
|
+
}, {
|
|
204
|
+
dataIndex: "isGift",
|
|
205
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
206
|
+
width: 150,
|
|
207
|
+
render: function render(val) {
|
|
208
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
209
|
+
}
|
|
210
|
+
}].map(function (item) {
|
|
211
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
212
|
+
align: "center",
|
|
213
|
+
ellipsis: true
|
|
214
|
+
});
|
|
149
215
|
})
|
|
150
216
|
};
|
|
151
217
|
return data;
|
|
@@ -733,7 +733,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
733
733
|
var key = item.msgType || "ding";
|
|
734
734
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
735
735
|
key: index
|
|
736
|
-
}, msgTypeCh[key], "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
736
|
+
}, msgTypeCh[key] || key, "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
737
737
|
return /*#__PURE__*/React.createElement("div", {
|
|
738
738
|
key: "wrap_".concat(index),
|
|
739
739
|
style: {
|
|
@@ -648,6 +648,104 @@ var GoodHeaderMap = {
|
|
|
648
648
|
},
|
|
649
649
|
moneyKey: "amount"
|
|
650
650
|
},
|
|
651
|
+
GY_RETURN_GOODS: {
|
|
652
|
+
headerMap: {
|
|
653
|
+
goodName: {
|
|
654
|
+
component: BsHeaderChild,
|
|
655
|
+
name: "商品名称",
|
|
656
|
+
key: "goodName",
|
|
657
|
+
width: 100
|
|
658
|
+
},
|
|
659
|
+
goodShortName: {
|
|
660
|
+
component: BsHeaderChild,
|
|
661
|
+
name: "商品简称",
|
|
662
|
+
key: "goodShortName",
|
|
663
|
+
width: 70
|
|
664
|
+
},
|
|
665
|
+
goodNo: {
|
|
666
|
+
component: BsHeaderChild,
|
|
667
|
+
name: "商品编码",
|
|
668
|
+
key: "goodNo",
|
|
669
|
+
width: 70
|
|
670
|
+
},
|
|
671
|
+
specName: {
|
|
672
|
+
component: BsHeaderChild,
|
|
673
|
+
name: "SKU名称",
|
|
674
|
+
key: "specName",
|
|
675
|
+
width: 140
|
|
676
|
+
},
|
|
677
|
+
specNo: {
|
|
678
|
+
component: BsHeaderChild,
|
|
679
|
+
name: "SKU编码",
|
|
680
|
+
key: "specNo",
|
|
681
|
+
width: 140
|
|
682
|
+
},
|
|
683
|
+
qty: {
|
|
684
|
+
component: BsHeaderChild,
|
|
685
|
+
name: "数量",
|
|
686
|
+
key: "qty",
|
|
687
|
+
width: 140
|
|
688
|
+
},
|
|
689
|
+
price: {
|
|
690
|
+
component: BsHeaderChild,
|
|
691
|
+
name: "实际单价",
|
|
692
|
+
key: "price",
|
|
693
|
+
width: 140
|
|
694
|
+
},
|
|
695
|
+
amount: {
|
|
696
|
+
component: BsHeaderChild,
|
|
697
|
+
name: "实际金额",
|
|
698
|
+
key: "amount",
|
|
699
|
+
width: 140
|
|
700
|
+
},
|
|
701
|
+
originPrice: {
|
|
702
|
+
component: BsHeaderChild,
|
|
703
|
+
name: "标准单价",
|
|
704
|
+
key: "originPrice",
|
|
705
|
+
width: 140
|
|
706
|
+
},
|
|
707
|
+
originAmount: {
|
|
708
|
+
component: BsHeaderChild,
|
|
709
|
+
name: "标准金额",
|
|
710
|
+
key: "originAmount",
|
|
711
|
+
width: 140
|
|
712
|
+
},
|
|
713
|
+
discountFee: {
|
|
714
|
+
component: BsHeaderChild,
|
|
715
|
+
name: "让利金额",
|
|
716
|
+
key: "discountFee",
|
|
717
|
+
width: 140
|
|
718
|
+
},
|
|
719
|
+
amountAfter: {
|
|
720
|
+
component: BsHeaderChild,
|
|
721
|
+
name: "让利后金额",
|
|
722
|
+
key: "amountAfter",
|
|
723
|
+
width: 140
|
|
724
|
+
},
|
|
725
|
+
isGift: {
|
|
726
|
+
component: ReissueGift,
|
|
727
|
+
name: "是否赠品",
|
|
728
|
+
key: "isGift",
|
|
729
|
+
width: 150
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
itemKey: {
|
|
733
|
+
goodName: "商品名称",
|
|
734
|
+
goodShortName: "商品简称",
|
|
735
|
+
goodNo: "商品编码",
|
|
736
|
+
specName: "SKU名称",
|
|
737
|
+
specNo: "SKU编码",
|
|
738
|
+
qty: "数量",
|
|
739
|
+
price: "实际单价",
|
|
740
|
+
amount: "实际金额",
|
|
741
|
+
originPrice: "标准单价",
|
|
742
|
+
originAmount: "标准金额",
|
|
743
|
+
discountFee: "让利金额",
|
|
744
|
+
amountAfter: "让利后金额",
|
|
745
|
+
isGift: "是否赠品"
|
|
746
|
+
},
|
|
747
|
+
moneyKey: "amount"
|
|
748
|
+
},
|
|
651
749
|
BS_E3_REISSUE_GOODS: {
|
|
652
750
|
headerMap: {
|
|
653
751
|
sku: {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
import { BsType, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
5
|
+
declare class GyReturn 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
|
+
gyType: BsType;
|
|
19
|
+
systemOrderNo: SystemOrderNo;
|
|
20
|
+
returnGoods: BsHeaderGood | CommonHeaderGoods;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
|
+
renderPc: () => null;
|
|
24
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
25
|
+
getComponentValue: (r: Record) => {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
renderExport: () => null;
|
|
29
|
+
editRender: (p: any) => React.JSX.Element;
|
|
30
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
31
|
+
searchDefaultConditions: "in";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "Cascader";
|
|
36
|
+
props: {
|
|
37
|
+
options: any[] | undefined;
|
|
38
|
+
fieldNames: {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
children: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
45
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
46
|
+
} | {
|
|
47
|
+
searchDefaultConditions: "like";
|
|
48
|
+
type: string;
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
filterComponentType: "Input";
|
|
52
|
+
props?: undefined;
|
|
53
|
+
formatFilterValue?: undefined;
|
|
54
|
+
filterFn?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
}
|
|
57
|
+
export default GyReturn;
|
|
@@ -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 ItemView from "../../../commonComponents/ItemView";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { SYMBOL } from "../../../constant";
|
|
16
|
+
import { BsGoodsTable } from "../../Common";
|
|
17
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
18
|
+
import { GyReturn as Return } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import { BsType, SystemOrderNo } from "../../BS/common/index";
|
|
20
|
+
var typeMap = {
|
|
21
|
+
GY_RETURN_GOODS: {
|
|
22
|
+
key: "gyReturnGoods",
|
|
23
|
+
name: "管易",
|
|
24
|
+
typeName: "gyReturnType",
|
|
25
|
+
systemOrderNo: "gySystemOrderNo",
|
|
26
|
+
errMsg: "请选择管易退货商品"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
30
|
+
var _this = this,
|
|
31
|
+
_typeMap$options$type,
|
|
32
|
+
_typeMap$options$type2,
|
|
33
|
+
_typeMap$options$type3,
|
|
34
|
+
_this$componentConfig6;
|
|
35
|
+
_classCallCheck(this, GyReturn);
|
|
36
|
+
_defineProperty(this, "name", void 0);
|
|
37
|
+
_defineProperty(this, "id", void 0);
|
|
38
|
+
_defineProperty(this, "sortField", void 0);
|
|
39
|
+
_defineProperty(this, "type", void 0);
|
|
40
|
+
_defineProperty(this, "rules", void 0);
|
|
41
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
42
|
+
_defineProperty(this, "effects", void 0);
|
|
43
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
44
|
+
_defineProperty(this, "formField", void 0);
|
|
45
|
+
_defineProperty(this, "canSort", void 0);
|
|
46
|
+
_defineProperty(this, "children", void 0);
|
|
47
|
+
_defineProperty(this, "dataType", void 0);
|
|
48
|
+
_defineProperty(this, "gyType", void 0);
|
|
49
|
+
_defineProperty(this, "systemOrderNo", void 0);
|
|
50
|
+
_defineProperty(this, "returnGoods", void 0);
|
|
51
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
52
|
+
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
53
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.gyType.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, {
|
|
54
|
+
id: _this.id,
|
|
55
|
+
label: _this.name,
|
|
56
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
57
|
+
type: _this.type,
|
|
58
|
+
list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
|
|
59
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
60
|
+
})
|
|
61
|
+
}) : null) : null;
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "renderPc", function () {
|
|
64
|
+
return null;
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
67
|
+
var _typeMap$_this$type3, _r, _typeMap$_this$type4, _typeMap$_this$type5, _this$componentConfig2;
|
|
68
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.systemOrderNo)] ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7:", _this.systemOrderNo.renderLog(r))) : null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement("div", null, "\u9000\u8D27\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
69
|
+
type: _this.type,
|
|
70
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) || [],
|
|
71
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
72
|
+
})) : null);
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
75
|
+
var _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11;
|
|
76
|
+
var obj = {};
|
|
77
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.typeName)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.typeName)];
|
|
78
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
|
|
79
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.systemOrderNo)] = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.systemOrderNo)];
|
|
80
|
+
return obj;
|
|
81
|
+
});
|
|
82
|
+
_defineProperty(this, "renderExport", function () {
|
|
83
|
+
return null;
|
|
84
|
+
});
|
|
85
|
+
_defineProperty(this, "editRender", function (p) {
|
|
86
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
87
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
88
|
+
title: _this.name,
|
|
89
|
+
name: _this.id,
|
|
90
|
+
rules: _this.rules,
|
|
91
|
+
required: false,
|
|
92
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
93
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
94
|
+
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 : "",
|
|
95
|
+
component: /*#__PURE__*/React.createElement(Return, _extends({}, _this.componentConfig, {
|
|
96
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
97
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
98
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
99
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
100
|
+
width: "90%",
|
|
101
|
+
type: _this.type
|
|
102
|
+
}))
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
106
|
+
var _item$templateConfig;
|
|
107
|
+
return [{
|
|
108
|
+
searchDefaultConditions: SYMBOL.in,
|
|
109
|
+
type: item.type,
|
|
110
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
|
|
111
|
+
name: "".concat(item.name, "-\u9000\u8D27\u7C7B\u578B"),
|
|
112
|
+
filterComponentType: "Cascader",
|
|
113
|
+
props: {
|
|
114
|
+
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
115
|
+
fieldNames: {
|
|
116
|
+
label: "label",
|
|
117
|
+
value: "value",
|
|
118
|
+
children: "children"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
122
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
123
|
+
return [val[val.length - 1]];
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
filterFn: function filterFn(value) {
|
|
127
|
+
return function (i) {
|
|
128
|
+
var _typeMap$_this$type12;
|
|
129
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.typeName)), value);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
searchDefaultConditions: SYMBOL.like,
|
|
134
|
+
type: item.type,
|
|
135
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].systemOrderNo),
|
|
136
|
+
name: "".concat(item.name, "-\u9000\u8D27\u7CFB\u7EDF\u8BA2\u5355\u53F7"),
|
|
137
|
+
filterComponentType: "Input"
|
|
138
|
+
}, {
|
|
139
|
+
searchDefaultConditions: SYMBOL.like,
|
|
140
|
+
type: item.type,
|
|
141
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
142
|
+
name: "".concat(_this.name),
|
|
143
|
+
filterComponentType: "Input"
|
|
144
|
+
}];
|
|
145
|
+
});
|
|
146
|
+
this.name = options.name;
|
|
147
|
+
this.id = options.id;
|
|
148
|
+
this.sortField = "".concat(options.id);
|
|
149
|
+
this.formField = "".concat(options.id);
|
|
150
|
+
this.type = options.type;
|
|
151
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
152
|
+
this.isCombinationComponent = true;
|
|
153
|
+
this.canSort = false;
|
|
154
|
+
this.gyType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
155
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
|
|
156
|
+
name: "退货类型"
|
|
157
|
+
}));
|
|
158
|
+
this.systemOrderNo = new SystemOrderNo(_objectSpread(_objectSpread({}, options), {}, {
|
|
159
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.systemOrderNo),
|
|
160
|
+
name: "退货系统订单号"
|
|
161
|
+
}));
|
|
162
|
+
this.returnGoods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
163
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.key),
|
|
164
|
+
name: "商品信息"
|
|
165
|
+
}));
|
|
166
|
+
this.children = [this.gyType, this.systemOrderNo, this.returnGoods];
|
|
167
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
168
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
169
|
+
required: true,
|
|
170
|
+
validator: function validator(_, value) {
|
|
171
|
+
var _value, _typeMap$options$type4;
|
|
172
|
+
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
173
|
+
var _typeMap$options$type5;
|
|
174
|
+
return Promise.reject(new Error("".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.errMsg)));
|
|
175
|
+
}
|
|
176
|
+
return Promise.resolve();
|
|
177
|
+
}
|
|
178
|
+
}] : [];
|
|
179
|
+
this.dataType = "object";
|
|
180
|
+
});
|
|
181
|
+
export default GyReturn;
|
|
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
176
|
});
|
|
177
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -10,6 +10,8 @@ import InterceptState from "./InterceptState";
|
|
|
10
10
|
import InterceptApiStatus from "./InterceptApiStatus";
|
|
11
11
|
import Express from "../Express";
|
|
12
12
|
import ExpressCode from "../ExpressCode";
|
|
13
|
+
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
14
|
+
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
13
15
|
declare class Logistics implements ComponentInterface {
|
|
14
16
|
name: string;
|
|
15
17
|
columnHeader: string | JSX.Element;
|
|
@@ -23,6 +25,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
23
25
|
interceptLogisticsStatus: InterceptStatus;
|
|
24
26
|
interceptApiStatus: InterceptApiStatus;
|
|
25
27
|
interceptSenderMobile: InterceptSenderMobile;
|
|
28
|
+
interceptLogisticsUserKCode: InterceptLogisticsUserKCode;
|
|
29
|
+
interceptLogisticsUserSecretKey: InterceptLogisticsUserSecretKey;
|
|
26
30
|
interceptSnapshot: InterceptSnapshot;
|
|
27
31
|
interceptState: InterceptState;
|
|
28
32
|
isCombinationComponent: boolean;
|
|
@@ -56,6 +60,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
56
60
|
};
|
|
57
61
|
interceptSnapshot: any;
|
|
58
62
|
interceptState: any;
|
|
63
|
+
interceptLogisticsUserKCode: any;
|
|
64
|
+
interceptLogisticsUserSecretKey: any;
|
|
59
65
|
};
|
|
60
66
|
renderPc: () => null;
|
|
61
67
|
renderExport: () => null;
|
|
@@ -22,6 +22,8 @@ import InterceptApiStatus from "./InterceptApiStatus";
|
|
|
22
22
|
import Express from "../Express";
|
|
23
23
|
import ExpressCode from "../ExpressCode";
|
|
24
24
|
import ColumnHeader from "./columnHeader";
|
|
25
|
+
import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
26
|
+
import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
25
27
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
26
28
|
var _this = this;
|
|
27
29
|
_classCallCheck(this, Logistics);
|
|
@@ -37,6 +39,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
37
39
|
_defineProperty(this, "interceptLogisticsStatus", void 0);
|
|
38
40
|
_defineProperty(this, "interceptApiStatus", void 0);
|
|
39
41
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
42
|
+
_defineProperty(this, "interceptLogisticsUserKCode", void 0);
|
|
43
|
+
_defineProperty(this, "interceptLogisticsUserSecretKey", void 0);
|
|
40
44
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
41
45
|
_defineProperty(this, "interceptState", void 0);
|
|
42
46
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -51,7 +55,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
51
55
|
_defineProperty(this, "effects", void 0);
|
|
52
56
|
_defineProperty(this, "dataType", void 0);
|
|
53
57
|
_defineProperty(this, "renderClient", function (record) {
|
|
54
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
58
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record), _this.interceptLogisticsUserKCode.renderClient(record), _this.interceptLogisticsUserSecretKey.renderClient(record));
|
|
55
59
|
});
|
|
56
60
|
_defineProperty(this, "renderLog", function (record) {
|
|
57
61
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
|
|
@@ -66,7 +70,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
66
70
|
interceptApiStatus: _this.interceptApiStatus.getComponentValue(r),
|
|
67
71
|
interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
|
|
68
72
|
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
|
|
69
|
-
interceptState: _this.interceptState.getComponentValue(r)
|
|
73
|
+
interceptState: _this.interceptState.getComponentValue(r),
|
|
74
|
+
interceptLogisticsUserKCode: _this.interceptLogisticsUserKCode.getComponentValue(r),
|
|
75
|
+
interceptLogisticsUserSecretKey: _this.interceptLogisticsUserSecretKey.getComponentValue(r)
|
|
70
76
|
};
|
|
71
77
|
});
|
|
72
78
|
_defineProperty(this, "renderPc", function () {
|
|
@@ -76,7 +82,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
76
82
|
return null;
|
|
77
83
|
});
|
|
78
84
|
_defineProperty(this, "editRender", function (p) {
|
|
79
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects;
|
|
85
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2, _this$effects3;
|
|
80
86
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
81
87
|
title: _this.name,
|
|
82
88
|
name: _this.id,
|
|
@@ -84,12 +90,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
84
90
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
85
91
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
86
92
|
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,
|
|
87
|
-
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 :
|
|
88
|
-
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({
|
|
93
|
+
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 : "",
|
|
94
|
+
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({
|
|
95
|
+
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env,
|
|
96
|
+
onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
|
|
97
|
+
}, _this.componentConfig, {
|
|
89
98
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
90
99
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
91
100
|
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
92
|
-
isEditing: (_this$
|
|
101
|
+
isEditing: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.isEditing
|
|
93
102
|
}))
|
|
94
103
|
});
|
|
95
104
|
});
|
|
@@ -98,7 +107,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
98
107
|
subKey: "interceptCompany"
|
|
99
108
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
100
109
|
subKey: "interceptCode"
|
|
101
|
-
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)];
|
|
110
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item), _this.interceptLogisticsUserKCode.filterConfig(item), _this.interceptLogisticsUserSecretKey.filterConfig(item)];
|
|
102
111
|
});
|
|
103
112
|
this.name = options.name;
|
|
104
113
|
this.columnHeader = /*#__PURE__*/React.createElement(ColumnHeader, {
|
|
@@ -120,6 +129,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
120
129
|
this.interceptSenderMobile = new InterceptSenderMobile(options);
|
|
121
130
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
122
131
|
this.interceptState = new InterceptState(options);
|
|
132
|
+
this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(options);
|
|
133
|
+
this.interceptLogisticsUserKCode = new InterceptLogisticsUserKCode(options);
|
|
123
134
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
124
135
|
id: "".concat(options.id, "_interceptCompany"),
|
|
125
136
|
name: "物流信息"
|
|
@@ -131,7 +142,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
131
142
|
this.isCombinationComponent = true;
|
|
132
143
|
this.canSort = false;
|
|
133
144
|
this.dataType = "object";
|
|
134
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState];
|
|
145
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState, this.interceptLogisticsUserKCode, this.interceptLogisticsUserSecretKey];
|
|
135
146
|
this.rules = [{
|
|
136
147
|
validator: function validator(_, value) {
|
|
137
148
|
var _this$componentConfig5, _this$componentConfig6, _value$interceptAddre, _value$interceptSende;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare class InterceptLogisticsUserKCode implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
parentId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
sortField: string;
|
|
9
|
+
companyId: string;
|
|
10
|
+
type: string;
|
|
11
|
+
rules: any[];
|
|
12
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
+
effects: ComponentInterface["effects"];
|
|
14
|
+
align: ALignType;
|
|
15
|
+
width: number;
|
|
16
|
+
isCombinationComponent: boolean;
|
|
17
|
+
formField: string;
|
|
18
|
+
canSort: boolean;
|
|
19
|
+
children: ComponentInterface[];
|
|
20
|
+
logisticsAddress: InstanceType<typeof LogisticsAddressData>;
|
|
21
|
+
dataType: ComponentInterface["dataType"];
|
|
22
|
+
options: ComponentInterface["options"];
|
|
23
|
+
constructor(options: PickOption);
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
26
|
+
renderPc: (value: any, record: Record) => any;
|
|
27
|
+
renderLog: (r: Record) => any[] | null;
|
|
28
|
+
renderExport: (value: any, record: Record) => any;
|
|
29
|
+
editRender: () => null;
|
|
30
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
|
+
searchDefaultConditions: "in";
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
filterComponentType: "MultipleSelect";
|
|
36
|
+
props: {
|
|
37
|
+
options: any[];
|
|
38
|
+
};
|
|
39
|
+
formatFilterValue: (value: string[]) => string[];
|
|
40
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default InterceptLogisticsUserKCode;
|