@kmkf-fe-packages/services-components 2.10.9-beta.2 → 2.10.9-beta.21
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/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/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
|
@@ -134,6 +134,29 @@ var typeMap = {
|
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
136
|
},
|
|
137
|
+
DXD_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "1",
|
|
140
|
+
label: "已入库",
|
|
141
|
+
color: "#52c41a"
|
|
142
|
+
}, {
|
|
143
|
+
value: "2",
|
|
144
|
+
label: "未入库",
|
|
145
|
+
color: "#ff4d4f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "3",
|
|
148
|
+
label: "查无此单",
|
|
149
|
+
color: "#e7780f"
|
|
150
|
+
}],
|
|
151
|
+
key: "dxdInStockStatusItemList",
|
|
152
|
+
code: "dxdInStockStatusList",
|
|
153
|
+
name: "商品入库状态",
|
|
154
|
+
type: 2,
|
|
155
|
+
valueKey: "status",
|
|
156
|
+
idKey: "systemOrderId",
|
|
157
|
+
failValue: "失败",
|
|
158
|
+
dataType: "array_object"
|
|
159
|
+
},
|
|
137
160
|
WLN_WAREHOUSING_STATUS: {
|
|
138
161
|
options: [{
|
|
139
162
|
value: "1",
|
|
@@ -250,7 +273,9 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
250
273
|
_typeMap$options$type3,
|
|
251
274
|
_typeMap$options$type4,
|
|
252
275
|
_this$componentConfig5,
|
|
253
|
-
_this$componentConfig6
|
|
276
|
+
_this$componentConfig6,
|
|
277
|
+
_this$ext4;
|
|
278
|
+
var ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
254
279
|
_classCallCheck(this, CommonMultiStatus);
|
|
255
280
|
_defineProperty(this, "name", void 0);
|
|
256
281
|
_defineProperty(this, "id", void 0);
|
|
@@ -265,6 +290,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
265
290
|
_defineProperty(this, "children", void 0);
|
|
266
291
|
_defineProperty(this, "dataType", void 0);
|
|
267
292
|
_defineProperty(this, "isSingleValue", void 0);
|
|
293
|
+
_defineProperty(this, "ext", void 0);
|
|
268
294
|
_defineProperty(this, "renderClient", function (record) {
|
|
269
295
|
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
|
|
270
296
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -343,13 +369,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
343
369
|
});
|
|
344
370
|
});
|
|
345
371
|
_defineProperty(this, "filterConfig", function (item) {
|
|
346
|
-
var _typeMap$_this$type21, _item$templateConfig;
|
|
372
|
+
var _this$ext, _typeMap$_this$type21, _this$ext2, _item$templateConfig, _this$ext3;
|
|
347
373
|
return {
|
|
348
|
-
searchDefaultConditions:
|
|
374
|
+
searchDefaultConditions: (_this$ext = _this.ext) !== null && _this$ext !== void 0 && _this$ext.isWarehousingStatus ? SYMBOL.in : SYMBOL.like,
|
|
349
375
|
type: item.type,
|
|
350
376
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
351
377
|
name: "".concat(_this.name),
|
|
352
|
-
filterComponentType:
|
|
378
|
+
filterComponentType: (_this$ext2 = _this.ext) !== null && _this$ext2 !== void 0 && _this$ext2.isWarehousingStatus ? "MultipleSelect" : "SelectInput",
|
|
353
379
|
props: {
|
|
354
380
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
355
381
|
fieldNames: {
|
|
@@ -364,7 +390,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
364
390
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
365
391
|
};
|
|
366
392
|
},
|
|
367
|
-
formatFilterValue:
|
|
393
|
+
formatFilterValue: (_this$ext3 = _this.ext) !== null && _this$ext3 !== void 0 && _this$ext3.isWarehousingStatus ? null : function (value) {
|
|
368
394
|
if (value.type === "in") {
|
|
369
395
|
return value.keywords;
|
|
370
396
|
} else {
|
|
@@ -384,6 +410,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
384
410
|
this.isCombinationComponent = false;
|
|
385
411
|
this.canSort = false;
|
|
386
412
|
this.children = [];
|
|
413
|
+
this.ext = ext;
|
|
387
414
|
this.dataType = (_typeMap$options$type3 = (_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.dataType) !== null && _typeMap$options$type3 !== void 0 ? _typeMap$options$type3 : "object";
|
|
388
415
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
389
416
|
required: true,
|
|
@@ -400,6 +427,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
400
427
|
}
|
|
401
428
|
}] : [];
|
|
402
429
|
this.align = "left";
|
|
403
|
-
this.
|
|
430
|
+
//优化写法,this.type !== "WAREHOUSING_STATUS"不修改原有逻辑
|
|
431
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || ((_this$ext4 = this.ext) === null || _this$ext4 === void 0 ? void 0 : _this$ext4.isWarehousingStatus) && this.type !== "WAREHOUSING_STATUS";
|
|
404
432
|
});
|
|
405
433
|
export default CommonMultiStatus;
|
|
@@ -14,8 +14,15 @@ declare class GyGoods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
gyGoods: 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;
|
|
@@ -17,6 +17,7 @@ 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
19
|
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
21
22
|
var _this = this,
|
|
22
23
|
_this$componentConfig6;
|
|
@@ -33,7 +34,11 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
|
33
34
|
_defineProperty(this, "canSort", void 0);
|
|
34
35
|
_defineProperty(this, "children", void 0);
|
|
35
36
|
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
36
38
|
_defineProperty(this, "gyGoods", void 0);
|
|
39
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
40
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
41
|
+
});
|
|
37
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
38
43
|
var _record, _this$componentConfig;
|
|
39
44
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -123,5 +128,6 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
|
|
|
123
128
|
}
|
|
124
129
|
}] : [];
|
|
125
130
|
this.dataType = "object";
|
|
131
|
+
this.sortChildField = this.getSortChildFields();
|
|
126
132
|
});
|
|
127
133
|
export default GyGoods;
|
|
@@ -15,11 +15,18 @@ declare class GyReissue 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;
|
|
@@ -18,6 +18,7 @@ import { BsGoodsTable } from "../../Common/index";
|
|
|
18
18
|
import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
20
|
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
21
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
21
22
|
var typeMap = {
|
|
22
23
|
GY_REISSUE_GOODS: {
|
|
23
24
|
key: "gyReissueGoods",
|
|
@@ -56,10 +57,14 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
56
57
|
_defineProperty(this, "canSort", void 0);
|
|
57
58
|
_defineProperty(this, "children", void 0);
|
|
58
59
|
_defineProperty(this, "dataType", void 0);
|
|
60
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
59
61
|
_defineProperty(this, "bsType", void 0);
|
|
60
62
|
_defineProperty(this, "bsMemo", void 0);
|
|
61
63
|
_defineProperty(this, "systemOrderNo", void 0);
|
|
62
64
|
_defineProperty(this, "reissueGoods", void 0);
|
|
65
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
66
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
67
|
+
});
|
|
63
68
|
_defineProperty(this, "renderClient", function (record) {
|
|
64
69
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
65
70
|
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, {
|
|
@@ -206,5 +211,6 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
206
211
|
}
|
|
207
212
|
}];
|
|
208
213
|
this.dataType = "object";
|
|
214
|
+
this.sortChildField = this.getSortChildFields();
|
|
209
215
|
});
|
|
210
216
|
export default GyReissue;
|
|
@@ -15,10 +15,17 @@ declare class GyReturn implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
gyType: BsType;
|
|
19
20
|
systemOrderNo: SystemOrderNo;
|
|
20
21
|
returnGoods: 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;
|
|
@@ -18,6 +18,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
|
18
18
|
import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import { BsType, SystemOrderNo } from "../../BS/common/index";
|
|
20
20
|
import { useGoodsSourceFormat } from "../../../Hooks";
|
|
21
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
21
22
|
var typeMap = {
|
|
22
23
|
GY_RETURN_GOODS: {
|
|
23
24
|
key: "gyReturnGoods",
|
|
@@ -54,9 +55,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
54
55
|
_defineProperty(this, "canSort", void 0);
|
|
55
56
|
_defineProperty(this, "children", void 0);
|
|
56
57
|
_defineProperty(this, "dataType", void 0);
|
|
58
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
57
59
|
_defineProperty(this, "gyType", void 0);
|
|
58
60
|
_defineProperty(this, "systemOrderNo", void 0);
|
|
59
61
|
_defineProperty(this, "returnGoods", void 0);
|
|
62
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
63
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
64
|
+
});
|
|
60
65
|
_defineProperty(this, "renderClient", function (record) {
|
|
61
66
|
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
62
67
|
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, {
|
|
@@ -198,5 +203,6 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
|
|
|
198
203
|
}
|
|
199
204
|
}];
|
|
200
205
|
this.dataType = "object";
|
|
206
|
+
this.sortChildField = this.getSortChildFields();
|
|
201
207
|
});
|
|
202
208
|
export default GyReturn;
|
|
@@ -20,13 +20,14 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
20
20
|
children: ComponentInterface[];
|
|
21
21
|
dataType: ComponentInterface["dataType"];
|
|
22
22
|
format: ComponentInterface["format"];
|
|
23
|
+
effects: ComponentInterface["effects"];
|
|
23
24
|
constructor(options: PickOption);
|
|
24
25
|
getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
|
|
25
26
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
26
27
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
27
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
28
29
|
getComponentValue: (r: Record) => any;
|
|
29
|
-
renderExport: (value: any, record: any) =>
|
|
30
|
+
renderExport: (value: any, record: any) => string;
|
|
30
31
|
editRender: (p: any) => React.JSX.Element;
|
|
31
32
|
filterConfig: (item: ColumnConfig) => ({
|
|
32
33
|
searchDefaultConditions: "in";
|
|
@@ -123,6 +123,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
123
123
|
_defineProperty(this, "children", void 0);
|
|
124
124
|
_defineProperty(this, "dataType", void 0);
|
|
125
125
|
_defineProperty(this, "format", void 0);
|
|
126
|
+
_defineProperty(this, "effects", void 0);
|
|
126
127
|
_defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
|
|
127
128
|
var _typeMap$options$type, _typeMap$options$type2, _typeMap$options$type3;
|
|
128
129
|
var sendName = {
|
|
@@ -182,12 +183,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
182
183
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
183
184
|
var _typeMap$_this$type6;
|
|
184
185
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
|
|
186
|
+
if (!Array.isArray(list)) {
|
|
187
|
+
return '';
|
|
188
|
+
}
|
|
185
189
|
return (list || []).map(function (item) {
|
|
186
190
|
return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
|
|
187
191
|
}).join(",");
|
|
188
192
|
});
|
|
189
193
|
_defineProperty(this, "editRender", function (p) {
|
|
190
|
-
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7;
|
|
194
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7, _this$effects;
|
|
191
195
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
192
196
|
title: _this.name,
|
|
193
197
|
name: _this.id,
|
|
@@ -199,6 +203,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
199
203
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
200
204
|
type: 3,
|
|
201
205
|
platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType,
|
|
206
|
+
form: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.form,
|
|
202
207
|
onlyShowFieldSelect: _this.componentConfig ? _this.componentConfig.showField === "sendName" : false
|
|
203
208
|
}))
|
|
204
209
|
});
|
|
@@ -293,6 +298,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
293
298
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options, _options.type);
|
|
294
299
|
this.type = _options.type;
|
|
295
300
|
this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
|
|
301
|
+
this.effects = _options === null || _options === void 0 ? void 0 : _options.effects;
|
|
296
302
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
297
303
|
required: true,
|
|
298
304
|
validator: function validator(_, value) {
|
|
@@ -25,7 +25,7 @@ declare class JstSupply implements ComponentInterface {
|
|
|
25
25
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
26
26
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
27
27
|
getComponentValue: (r: Record) => any;
|
|
28
|
-
renderExport: (value: any, record: any) =>
|
|
28
|
+
renderExport: (value: any, record: any) => string;
|
|
29
29
|
editRender: (p: any) => React.JSX.Element;
|
|
30
30
|
filterConfig: (item: ColumnConfig) => {
|
|
31
31
|
searchDefaultConditions: "like";
|
|
@@ -80,6 +80,9 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
|
|
|
80
80
|
});
|
|
81
81
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
82
82
|
var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")]) || [];
|
|
83
|
+
if (!Array.isArray(list)) {
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
83
86
|
return list.map(function (item) {
|
|
84
87
|
return [item === null || item === void 0 ? void 0 : item.supplyId, item === null || item === void 0 ? void 0 : item.supplyName].join("/");
|
|
85
88
|
}).join(",");
|
|
@@ -14,8 +14,15 @@ declare class KmExchange implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
returnGoods: 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;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
// import { BsType, BsMemo } from "../../Bs/common";
|
|
18
18
|
import { CommonExchangeGoods, erpFormValidator } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
|
|
21
22
|
var _this = this,
|
|
22
23
|
_this$componentConfig6,
|
|
@@ -34,7 +35,11 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
|
|
|
34
35
|
_defineProperty(this, "canSort", void 0);
|
|
35
36
|
_defineProperty(this, "children", void 0);
|
|
36
37
|
_defineProperty(this, "dataType", void 0);
|
|
38
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
37
39
|
_defineProperty(this, "returnGoods", 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
|
var kmExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmExchangeGoods")]) || "[]");
|
|
@@ -132,5 +137,6 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
|
|
|
132
137
|
}
|
|
133
138
|
}];
|
|
134
139
|
this.dataType = "object";
|
|
140
|
+
this.sortChildField = this.getSortChildFields();
|
|
135
141
|
});
|
|
136
142
|
export default KmExchange;
|
|
@@ -28,7 +28,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
28
28
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
29
29
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
30
30
|
getComponentValue: (r: Record) => any;
|
|
31
|
-
renderExport: (value: any, record: any) =>
|
|
31
|
+
renderExport: (value: any, record: any) => string;
|
|
32
32
|
editRender: (p: any) => React.JSX.Element;
|
|
33
33
|
filterConfig: (item: ColumnConfig) => ({
|
|
34
34
|
searchDefaultConditions: "in";
|
|
@@ -85,6 +85,9 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
85
85
|
});
|
|
86
86
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
87
87
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
88
|
+
if (!Array.isArray(list)) {
|
|
89
|
+
return '';
|
|
90
|
+
}
|
|
88
91
|
return (list || []).map(function (item) {
|
|
89
92
|
return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
|
|
90
93
|
}).join(",");
|
|
@@ -11,6 +11,7 @@ import InterceptState from "./InterceptState";
|
|
|
11
11
|
import InterceptApiStatus from "./InterceptApiStatus";
|
|
12
12
|
import Express from "../Express";
|
|
13
13
|
import ExpressCode from "../ExpressCode";
|
|
14
|
+
import InterceptLogisticsCustomerCode from "./interceptLogisticsCustomerCode";
|
|
14
15
|
declare class Logistics implements ComponentInterface {
|
|
15
16
|
name: string;
|
|
16
17
|
columnHeader: string | JSX.Element;
|
|
@@ -25,6 +26,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
26
|
interceptApiStatus: InterceptApiStatus;
|
|
26
27
|
interceptSenderMobile: InterceptSenderMobile;
|
|
27
28
|
interceptApiStatusReason: InterceptApiStatusReason;
|
|
29
|
+
interceptLogisticsCustomerCode: InterceptLogisticsCustomerCode;
|
|
28
30
|
interceptSnapshot: InterceptSnapshot;
|
|
29
31
|
interceptState: InterceptState;
|
|
30
32
|
isCombinationComponent: boolean;
|
|
@@ -60,6 +62,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
60
62
|
interceptSnapshot: any;
|
|
61
63
|
interceptState: any;
|
|
62
64
|
interceptApiStatusReason: any;
|
|
65
|
+
interceptLogisticsCustomerCode: any;
|
|
63
66
|
};
|
|
64
67
|
renderPc: () => null;
|
|
65
68
|
renderExport: () => null;
|
|
@@ -10,7 +10,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
10
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
11
|
import React from "react";
|
|
12
12
|
import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
13
|
-
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { ExpressData, ExpressInterceptData, isJdLogisticsCompany, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
16
16
|
import InterceptApiStatusReason from "./interceptApiStatusReason";
|
|
@@ -23,6 +23,7 @@ import InterceptApiStatus from "./InterceptApiStatus";
|
|
|
23
23
|
import Express from "../Express";
|
|
24
24
|
import ExpressCode from "../ExpressCode";
|
|
25
25
|
import ColumnHeader from "./columnHeader";
|
|
26
|
+
import InterceptLogisticsCustomerCode from "./interceptLogisticsCustomerCode";
|
|
26
27
|
// import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
27
28
|
// import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
|
|
28
29
|
// import interceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
|
|
@@ -46,6 +47,7 @@ function Logistics(options) {
|
|
|
46
47
|
_defineProperty(this, "interceptApiStatus", void 0);
|
|
47
48
|
_defineProperty(this, "interceptSenderMobile", void 0);
|
|
48
49
|
_defineProperty(this, "interceptApiStatusReason", void 0);
|
|
50
|
+
_defineProperty(this, "interceptLogisticsCustomerCode", void 0);
|
|
49
51
|
_defineProperty(this, "interceptSnapshot", void 0);
|
|
50
52
|
_defineProperty(this, "interceptState", void 0);
|
|
51
53
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
@@ -61,10 +63,10 @@ function Logistics(options) {
|
|
|
61
63
|
_defineProperty(this, "dataType", void 0);
|
|
62
64
|
_defineProperty(this, "isChange", void 0);
|
|
63
65
|
_defineProperty(this, "renderClient", function (record) {
|
|
64
|
-
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.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
|
|
66
|
+
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.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record), _this.interceptLogisticsCustomerCode.renderClient(record));
|
|
65
67
|
});
|
|
66
68
|
_defineProperty(this, "renderLog", function (record) {
|
|
67
|
-
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.interceptApiStatusReason.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatusReason.name, ":", " ", _this.interceptApiStatusReason.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))));
|
|
69
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsCustomerCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsCustomerCode.name, ":", " ", _this.interceptLogisticsCustomerCode.renderLog(record))), /*#__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.interceptApiStatusReason.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatusReason.name, ":", " ", _this.interceptApiStatusReason.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))));
|
|
68
70
|
});
|
|
69
71
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
70
72
|
return {
|
|
@@ -77,7 +79,8 @@ function Logistics(options) {
|
|
|
77
79
|
interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
|
|
78
80
|
interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
|
|
79
81
|
interceptState: _this.interceptState.getComponentValue(r),
|
|
80
|
-
interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r)
|
|
82
|
+
interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r),
|
|
83
|
+
interceptLogisticsCustomerCode: _this.interceptLogisticsCustomerCode.getComponentValue(r)
|
|
81
84
|
// interceptLogisticsUserKCode:
|
|
82
85
|
// this.interceptLogisticsUserKCode.getComponentValue(r),
|
|
83
86
|
// interceptLogisticsUserSecretKey:
|
|
@@ -133,7 +136,7 @@ function Logistics(options) {
|
|
|
133
136
|
subKey: "interceptCompany"
|
|
134
137
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
135
138
|
subKey: "interceptCode"
|
|
136
|
-
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptApiStatusReason.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
|
|
139
|
+
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptApiStatusReason.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item), _this.interceptLogisticsCustomerCode.filterConfig(item)
|
|
137
140
|
// this.interceptLogisticsUserKCode.filterConfig(item),
|
|
138
141
|
// this.interceptLogisticsUserSecretKey.filterConfig(item),
|
|
139
142
|
];
|
|
@@ -159,6 +162,7 @@ function Logistics(options) {
|
|
|
159
162
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
160
163
|
this.interceptState = new InterceptState(options);
|
|
161
164
|
this.interceptApiStatusReason = new InterceptApiStatusReason(options);
|
|
165
|
+
this.interceptLogisticsCustomerCode = new InterceptLogisticsCustomerCode(options);
|
|
162
166
|
// this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
|
|
163
167
|
// options,
|
|
164
168
|
// );
|
|
@@ -175,7 +179,7 @@ function Logistics(options) {
|
|
|
175
179
|
this.canSort = false;
|
|
176
180
|
this.dataType = "object";
|
|
177
181
|
this.isChange = false;
|
|
178
|
-
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
|
|
182
|
+
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState, this.interceptLogisticsCustomerCode
|
|
179
183
|
// this.interceptLogisticsUserKCode,
|
|
180
184
|
// this.interceptLogisticsUserSecretKey,
|
|
181
185
|
];
|
|
@@ -186,7 +190,10 @@ function Logistics(options) {
|
|
|
186
190
|
if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
|
|
187
191
|
return Promise.reject(new Error("请填写物流信息"));
|
|
188
192
|
}
|
|
189
|
-
if ((
|
|
193
|
+
if (isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && !(value !== null && value !== void 0 && value.interceptLogisticsCustomerCode)) {
|
|
194
|
+
return Promise.reject(new Error("请选择客户编码"));
|
|
195
|
+
}
|
|
196
|
+
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && !(value !== null && value !== void 0 && value.interceptType)) {
|
|
190
197
|
return Promise.reject(new Error("请选择拦截类型"));
|
|
191
198
|
}
|
|
192
199
|
var showAddress = _this.expressInterceptData.getShowNewAddressMap()["".concat(value === null || value === void 0 ? void 0 : value.interceptType)];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ALignType, ColumnConfig, ComponentInterface, PickOption, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class InterceptLogisticsCustomerCode implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
width: number;
|
|
13
|
+
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
15
|
+
canSort: boolean;
|
|
16
|
+
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface["dataType"];
|
|
18
|
+
options: ComponentInterface["options"];
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
getComponentValue: (record: Record) => any;
|
|
21
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (_value: any, record: Record) => any;
|
|
23
|
+
renderLog: (record: Record) => any;
|
|
24
|
+
renderExport: (_value: any, record: Record) => any;
|
|
25
|
+
editRender: () => null;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "in";
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
filterComponentType: "MultipleSelect";
|
|
32
|
+
props: {
|
|
33
|
+
options: any[];
|
|
34
|
+
};
|
|
35
|
+
formatFilterValue: (value: string[]) => string[];
|
|
36
|
+
filterFn: (value: string[]) => (record: Record) => boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default InterceptLogisticsCustomerCode;
|