@kmkf-fe-packages/services-components 0.23.1-alpha.0 → 0.23.1-beta.3
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/BsLogistics/index.js +11 -4
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -8
- package/dist/esm/components/BS/BsReissue/index.js +55 -32
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +7 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
- package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
- package/dist/esm/components/BS/common/expressCode.js +3 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
- package/dist/esm/components/CommonMultiStatus/index.js +58 -51
- package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
- package/dist/esm/components/CommonSystemOrder/index.js +29 -26
- package/dist/esm/components/Input/index.d.ts +7 -6
- package/dist/esm/components/Input/index.js +37 -26
- package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
- package/dist/esm/components/JST/JstLogistics/index.js +21 -7
- package/dist/esm/components/JST/JstSendGood/index.js +6 -0
- package/dist/esm/components/Logistics/index.d.ts +6 -6
- package/dist/esm/components/Logistics/index.js +16 -15
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +48 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +119 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +98 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +40 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +95 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +74 -0
- package/dist/esm/components/Payment/index.d.ts +12 -12
- package/dist/esm/components/Payment/index.js +11 -12
- package/dist/esm/components/TradeId/index.d.ts +1 -1
- package/dist/esm/components/TradeId/index.js +2 -2
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +8 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -3
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +12 -12
- package/package.json +4 -4
|
@@ -30,6 +30,12 @@ var typeMap = {
|
|
|
30
30
|
name: "万里牛",
|
|
31
31
|
company: "wlnLogisticsCompany",
|
|
32
32
|
code: "wlnLogisticsCode"
|
|
33
|
+
},
|
|
34
|
+
WDT_LOGISTICS: {
|
|
35
|
+
key: "wdtLogisticsList",
|
|
36
|
+
name: "旺店通",
|
|
37
|
+
company: "wdtLogisticsCompany",
|
|
38
|
+
code: "wdtLogisticsCode"
|
|
33
39
|
}
|
|
34
40
|
};
|
|
35
41
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -87,7 +93,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
87
93
|
dataType: "string"
|
|
88
94
|
}];
|
|
89
95
|
}
|
|
90
|
-
if (type ===
|
|
96
|
+
if (type === "logisticsCompany") {
|
|
91
97
|
var _typeMap$options$type3;
|
|
92
98
|
return [{
|
|
93
99
|
name: "物流公司",
|
|
@@ -96,7 +102,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
96
102
|
dataType: "string"
|
|
97
103
|
}];
|
|
98
104
|
}
|
|
99
|
-
if (type ===
|
|
105
|
+
if (type === "logisticsCode") {
|
|
100
106
|
var _typeMap$options$type4;
|
|
101
107
|
return [{
|
|
102
108
|
name: "物流单号",
|
|
@@ -142,7 +148,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
142
148
|
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,
|
|
143
149
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
144
150
|
type: 1,
|
|
145
|
-
options: _this.expressDateInstance.getExpressData()
|
|
151
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
152
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
146
153
|
}))
|
|
147
154
|
});
|
|
148
155
|
});
|
|
@@ -196,6 +203,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
196
203
|
}
|
|
197
204
|
}] : [];
|
|
198
205
|
this.expressDateInstance = ExpressData.getInstance();
|
|
199
|
-
this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) ||
|
|
206
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "", _options);
|
|
200
207
|
});
|
|
201
208
|
export default BsLogistics;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { BsType, BsMemo, BsHeaderGood } from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood } from '../common/index';
|
|
4
4
|
declare class BsReissue implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
11
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
11
|
+
effects: ComponentInterface['effects'];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
formField: string;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
17
|
bsType: BsType;
|
|
18
18
|
bsMemo: BsMemo;
|
|
19
19
|
reissueGoods: BsHeaderGood;
|
|
@@ -22,8 +22,7 @@ declare class BsReissue implements ComponentInterface {
|
|
|
22
22
|
renderPc: () => null;
|
|
23
23
|
renderLog: (r: Record) => React.JSX.Element;
|
|
24
24
|
getComponentValue: (r: Record) => {
|
|
25
|
-
|
|
26
|
-
bsReissueGoods: any;
|
|
25
|
+
[key: string]: any;
|
|
27
26
|
};
|
|
28
27
|
renderExport: () => null;
|
|
29
28
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -8,16 +8,35 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
-
import React from
|
|
11
|
+
import React from 'react';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
-
import { BsReissue as Reissue } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { BsReissue as Reissue } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
+
var typeMap = {
|
|
20
|
+
BS_REISSUE_GOODS: {
|
|
21
|
+
key: 'bsReissueGoods',
|
|
22
|
+
name: 'bs',
|
|
23
|
+
typeName: 'bsReissueType',
|
|
24
|
+
remark: 'bsReissueType_memo',
|
|
25
|
+
errMsg: '请选择bs补发商品'
|
|
26
|
+
},
|
|
27
|
+
WDT_REISSUE_GOODS: {
|
|
28
|
+
key: 'wdtReissueGoods',
|
|
29
|
+
name: '旺店通',
|
|
30
|
+
typeName: 'wdtReissueType',
|
|
31
|
+
remark: 'wdtReissueType_memo',
|
|
32
|
+
errMsg: '请选择旺店通补发商品'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
19
35
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
20
36
|
var _this = this,
|
|
37
|
+
_typeMap$options$type,
|
|
38
|
+
_typeMap$options$type2,
|
|
39
|
+
_typeMap$options$type3,
|
|
21
40
|
_this$componentConfig4;
|
|
22
41
|
_classCallCheck(this, BsReissue);
|
|
23
42
|
_defineProperty(this, "name", void 0);
|
|
@@ -36,12 +55,12 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
36
55
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
56
|
_defineProperty(this, "reissueGoods", void 0);
|
|
38
57
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
|
-
var _this$componentConfig;
|
|
40
|
-
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].
|
|
58
|
+
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
59
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
60
|
id: _this.id,
|
|
42
61
|
label: _this.name,
|
|
43
62
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
44
|
-
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].
|
|
63
|
+
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)]) || [],
|
|
45
64
|
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
46
65
|
})
|
|
47
66
|
}) : null) : null;
|
|
@@ -50,17 +69,18 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
50
69
|
return null;
|
|
51
70
|
});
|
|
52
71
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
-
var _r, _r2, _this$componentConfig2;
|
|
54
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "
|
|
55
|
-
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
72
|
+
var _r, _typeMap$_this$type3, _r2, _typeMap$_this$type4, _typeMap$_this$type5, _this$componentConfig2;
|
|
73
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.typeName)]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
74
|
+
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)]) || [],
|
|
56
75
|
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
57
76
|
})) : 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);
|
|
58
77
|
});
|
|
59
78
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
79
|
+
var _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9;
|
|
80
|
+
var obj = {};
|
|
81
|
+
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)];
|
|
82
|
+
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)];
|
|
83
|
+
return obj;
|
|
64
84
|
});
|
|
65
85
|
_defineProperty(this, "renderExport", function () {
|
|
66
86
|
return null;
|
|
@@ -78,7 +98,8 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
78
98
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
99
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
80
100
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
81
|
-
width: "90%"
|
|
101
|
+
width: "90%",
|
|
102
|
+
type: _this.type
|
|
82
103
|
}))
|
|
83
104
|
});
|
|
84
105
|
});
|
|
@@ -87,15 +108,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
87
108
|
return [{
|
|
88
109
|
searchDefaultConditions: SYMBOL.in,
|
|
89
110
|
type: item.type,
|
|
90
|
-
id: "".concat(item.id, "
|
|
111
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
|
|
91
112
|
name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
|
|
92
|
-
filterComponentType:
|
|
113
|
+
filterComponentType: 'Cascader',
|
|
93
114
|
props: {
|
|
94
115
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
95
116
|
fieldNames: {
|
|
96
|
-
label:
|
|
97
|
-
value:
|
|
98
|
-
children:
|
|
117
|
+
label: 'label',
|
|
118
|
+
value: 'value',
|
|
119
|
+
children: 'children'
|
|
99
120
|
}
|
|
100
121
|
},
|
|
101
122
|
formatFilterValue: function formatFilterValue(val) {
|
|
@@ -105,15 +126,16 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
105
126
|
},
|
|
106
127
|
filterFn: function filterFn(value) {
|
|
107
128
|
return function (i) {
|
|
108
|
-
|
|
129
|
+
var _typeMap$_this$type10;
|
|
130
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.typeName)), value);
|
|
109
131
|
};
|
|
110
132
|
}
|
|
111
133
|
}, {
|
|
112
134
|
searchDefaultConditions: SYMBOL.like,
|
|
113
135
|
type: item.type,
|
|
114
|
-
id: "".concat(item.id, "
|
|
136
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
115
137
|
name: "".concat(_this.name),
|
|
116
|
-
filterComponentType:
|
|
138
|
+
filterComponentType: 'Input'
|
|
117
139
|
}];
|
|
118
140
|
});
|
|
119
141
|
this.name = options.name;
|
|
@@ -125,29 +147,30 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
125
147
|
this.isCombinationComponent = true;
|
|
126
148
|
this.canSort = false;
|
|
127
149
|
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
128
|
-
id: "".concat(options.id, "
|
|
129
|
-
name:
|
|
150
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
|
|
151
|
+
name: '补发类型'
|
|
130
152
|
}));
|
|
131
153
|
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
132
|
-
id: "".concat(options.id, "
|
|
133
|
-
name:
|
|
154
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.remark),
|
|
155
|
+
name: '补发备注'
|
|
134
156
|
}));
|
|
135
157
|
this.reissueGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
|
-
id: "".concat(options.id, "
|
|
137
|
-
name:
|
|
158
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.key),
|
|
159
|
+
name: '商品信息'
|
|
138
160
|
}));
|
|
139
161
|
this.children = [this.bsType, this.bsMemo, this.reissueGoods];
|
|
140
162
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
141
163
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
142
164
|
required: true,
|
|
143
165
|
validator: function validator(_, value) {
|
|
144
|
-
var _value$
|
|
145
|
-
if (!value || !(value !== null && value !== void 0 && (_value
|
|
146
|
-
|
|
166
|
+
var _value, _typeMap$options$type4;
|
|
167
|
+
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)) {
|
|
168
|
+
var _typeMap$options$type5;
|
|
169
|
+
return Promise.reject(new Error("".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.errMsg)));
|
|
147
170
|
}
|
|
148
171
|
return Promise.resolve();
|
|
149
172
|
}
|
|
150
173
|
}] : [];
|
|
151
|
-
this.dataType =
|
|
174
|
+
this.dataType = 'object';
|
|
152
175
|
});
|
|
153
176
|
export default BsReissue;
|
|
@@ -1,17 +1,17 @@
|
|
|
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 BsSystemOrder 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[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -21,11 +21,12 @@ declare class BsSystemOrder implements ComponentInterface {
|
|
|
21
21
|
renderExport: () => null;
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
23
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
-
searchDefaultConditions: "
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
25
|
type: string;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
filterComponentType: "Input";
|
|
29
|
+
formatFilterValue: (input: string) => string | string[];
|
|
29
30
|
}[];
|
|
30
31
|
}
|
|
31
32
|
export default BsSystemOrder;
|
|
@@ -8,28 +8,28 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
-
import React from
|
|
11
|
+
import React from 'react';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from
|
|
15
|
-
import { BsSystemOrder as SystemOrder } from
|
|
14
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
|
-
import { SYMBOL } from "../../../constant";
|
|
18
|
+
import { SYMBOL, batchInput } from "../../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
20
|
BS_SYSTEM_ORDER: {
|
|
21
|
-
key:
|
|
22
|
-
name:
|
|
23
|
-
typeName:
|
|
24
|
-
tagName:
|
|
25
|
-
selectId:
|
|
21
|
+
key: 'bsSystemShowOrder',
|
|
22
|
+
name: 'bs',
|
|
23
|
+
typeName: '单据类型',
|
|
24
|
+
tagName: '标签',
|
|
25
|
+
selectId: 'bsSystemSelectIds'
|
|
26
26
|
},
|
|
27
27
|
WLN_SYSTEM_ORDER: {
|
|
28
|
-
key:
|
|
29
|
-
name:
|
|
30
|
-
typeName:
|
|
31
|
-
tagName:
|
|
32
|
-
selectId:
|
|
28
|
+
key: 'wlnSystemShowOrder',
|
|
29
|
+
name: '万里牛',
|
|
30
|
+
typeName: '订单类型',
|
|
31
|
+
tagName: '标记',
|
|
32
|
+
selectId: 'wlnSystemSelectIds'
|
|
33
33
|
},
|
|
34
34
|
WDT_SYSTEM_ORDER: {
|
|
35
35
|
key: "wdtSystemShowOrder",
|
|
@@ -99,13 +99,16 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
99
99
|
});
|
|
100
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
101
101
|
return [{
|
|
102
|
-
searchDefaultConditions: SYMBOL.
|
|
102
|
+
searchDefaultConditions: SYMBOL.in,
|
|
103
103
|
type: item.type,
|
|
104
|
-
id: "".concat(item.id, "_").concat(typeMap[_this.type].
|
|
104
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].selectId),
|
|
105
105
|
// 过滤组件id
|
|
106
106
|
name: item.name,
|
|
107
107
|
// 过滤组件名称
|
|
108
|
-
filterComponentType:
|
|
108
|
+
filterComponentType: 'Input',
|
|
109
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
110
|
+
return batchInput(input);
|
|
111
|
+
}
|
|
109
112
|
}];
|
|
110
113
|
});
|
|
111
114
|
this.name = options.name;
|
|
@@ -121,7 +124,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
121
124
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
|
|
122
125
|
width: 150
|
|
123
126
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
124
|
-
name:
|
|
127
|
+
name: '系统订单号',
|
|
125
128
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
|
|
126
129
|
width: 150
|
|
127
130
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -140,6 +143,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
140
143
|
return Promise.resolve();
|
|
141
144
|
}
|
|
142
145
|
}] : [];
|
|
143
|
-
this.dataType =
|
|
146
|
+
this.dataType = 'object';
|
|
144
147
|
});
|
|
145
148
|
export default BsSystemOrder;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class DeliveryNo 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
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -21,12 +21,13 @@ declare class DeliveryNo implements ComponentInterface {
|
|
|
21
21
|
renderExport: (value: any, record: any) => any;
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
23
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
-
searchDefaultConditions: "
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
25
|
type: string;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
filterComponentType: "Input";
|
|
29
29
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
formatFilterValue: (input: string) => string | string[];
|
|
30
31
|
}[];
|
|
31
32
|
}
|
|
32
33
|
export default DeliveryNo;
|
|
@@ -6,18 +6,18 @@ 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 some from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import some from 'lodash/some';
|
|
11
11
|
import GetFormItem from "../../GetFormItem";
|
|
12
12
|
import { CommonOrderContent } from "../../Common";
|
|
13
|
-
import { CommonSystemOrder } from
|
|
13
|
+
import { CommonSystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import ItemView from "../../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
-
import { SYMBOL } from "../../../constant";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL, batchInput } from "../../../constant";
|
|
17
17
|
var typeMap = {
|
|
18
18
|
BS_DELIVERY_NO: {
|
|
19
|
-
key:
|
|
20
|
-
code:
|
|
19
|
+
key: 'deliveryNoList',
|
|
20
|
+
code: 'deliveryNoIds'
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
@@ -79,7 +79,7 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
79
79
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
80
80
|
return (list || []).map(function (item) {
|
|
81
81
|
return item === null || item === void 0 ? void 0 : item.deliveryNo;
|
|
82
|
-
}).join(
|
|
82
|
+
}).join(',');
|
|
83
83
|
});
|
|
84
84
|
_defineProperty(this, "editRender", function (p) {
|
|
85
85
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -97,16 +97,19 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
97
97
|
_defineProperty(this, "filterConfig", function (item) {
|
|
98
98
|
var _typeMap$_this$type5;
|
|
99
99
|
return [{
|
|
100
|
-
searchDefaultConditions: SYMBOL.
|
|
100
|
+
searchDefaultConditions: SYMBOL.in,
|
|
101
101
|
type: item.type,
|
|
102
102
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.code),
|
|
103
103
|
name: "".concat(_this.name),
|
|
104
|
-
filterComponentType:
|
|
104
|
+
filterComponentType: 'Input',
|
|
105
105
|
filterFn: function filterFn(value) {
|
|
106
106
|
return function (i) {
|
|
107
107
|
var _typeMap$_this$type6;
|
|
108
108
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.code), value);
|
|
109
109
|
};
|
|
110
|
+
},
|
|
111
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
112
|
+
return batchInput(input);
|
|
110
113
|
}
|
|
111
114
|
}];
|
|
112
115
|
});
|
|
@@ -119,7 +122,7 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
119
122
|
this.isCombinationComponent = false;
|
|
120
123
|
this.canSort = false;
|
|
121
124
|
this.children = [];
|
|
122
|
-
this.dataType =
|
|
125
|
+
this.dataType = 'object';
|
|
123
126
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
124
127
|
required: true,
|
|
125
128
|
validator: function validator(_, value) {
|
|
@@ -132,6 +135,6 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
132
135
|
return Promise.resolve();
|
|
133
136
|
}
|
|
134
137
|
}] : [];
|
|
135
|
-
this.align =
|
|
138
|
+
this.align = 'left';
|
|
136
139
|
});
|
|
137
140
|
export default DeliveryNo;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class CommonMultiStatus 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
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -25,7 +25,7 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
25
25
|
type: string;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
|
-
filterComponentType: "MultipleSelect" | "
|
|
28
|
+
filterComponentType: "MultipleSelect" | "SelectInput";
|
|
29
29
|
props: {
|
|
30
30
|
options: any[] | undefined;
|
|
31
31
|
fieldNames: {
|
|
@@ -34,6 +34,7 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
+
formatFilterValue: ((value: any) => any) | null;
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
export default CommonMultiStatus;
|