@kmkf-fe-packages/services-components 2.10.9-beta.8 → 2.10.9-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/Hooks/useColumnsConfig.js +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +3 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
- 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/BsLogistics/index.js +9 -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/BS/BsSystemOrder/index.js +8 -4
- package/dist/esm/components/BS/common/expressCode.js +3 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -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 +18 -2
- package/dist/esm/components/Common/constants/wdt.js +13 -3
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +28 -9
- package/dist/esm/components/CommonHeaderGood/index.js +97 -42
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
- package/dist/esm/components/CommonMultiStatus/index.js +123 -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 +7 -3
- package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
- package/dist/esm/components/GY/GyReturn/index.js +7 -3
- package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JST/JstSendGood/index.js +16 -2
- 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 +42 -0
- package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +102 -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 +101 -0
- package/dist/esm/components/MsgStatus/index.d.ts +1 -1
- package/dist/esm/components/MsgStatus/index.js +19 -12
- package/dist/esm/components/MultSelect/index.d.ts +1 -0
- package/dist/esm/components/MultSelect/index.js +17 -10
- package/dist/esm/components/Public/AsyncSelect/index.js +23 -22
- package/dist/esm/components/Public/Exchange/index.d.ts +14 -7
- package/dist/esm/components/Public/Exchange/index.js +19 -15
- package/dist/esm/components/Public/Goods/index.js +31 -18
- package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
- package/dist/esm/components/Public/ReissueGoods/index.js +7 -3
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
- package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
- package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
- package/dist/esm/components/Reissue/Logistics/index.js +3 -0
- package/dist/esm/components/Remark/index.d.ts +4 -1
- package/dist/esm/components/Remark/index.js +46 -9
- 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/Select/index.js +6 -0
- package/dist/esm/components/StatusSelect/index.d.ts +27 -1
- package/dist/esm/components/StatusSelect/index.js +44 -5
- 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 +7 -3
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
- package/dist/esm/constant.js +0 -3
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +17 -1
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +6 -0
- package/dist/esm/type.d.ts +2 -0
- package/package.json +4 -4
|
@@ -13,8 +13,9 @@ import { CommonStatus } from "@kmkf-fe-packages/basic-components";
|
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
-
import { SYMBOL } from "../../constant";
|
|
16
|
+
import { SYMBOL, batchInput } from "../../constant";
|
|
17
17
|
import { getSelectTypeAttribute } from "./constants";
|
|
18
|
+
var STATUS_REASON_TYPES = ["AGREE_REFUND_STATUS", "REJECT_REFUND_STATUS", "AGREE_RETURN_GOODS_STATUS", "REJECT_RETURN_GOODS_STATUS"];
|
|
18
19
|
var selectTypeMap = {
|
|
19
20
|
REISSUE_STATUS: getSelectTypeAttribute({
|
|
20
21
|
key: "reissueStatusValue",
|
|
@@ -88,6 +89,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
88
89
|
_defineProperty(this, "formField", void 0);
|
|
89
90
|
_defineProperty(this, "canSort", void 0);
|
|
90
91
|
_defineProperty(this, "children", void 0);
|
|
92
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
91
93
|
_defineProperty(this, "dataType", void 0);
|
|
92
94
|
_defineProperty(this, "options", void 0);
|
|
93
95
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -152,23 +154,48 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
152
154
|
return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "") : "--";
|
|
153
155
|
});
|
|
154
156
|
_defineProperty(this, "filterConfig", function (item) {
|
|
155
|
-
|
|
157
|
+
var statusKey = selectTypeMap[_this.type].key;
|
|
158
|
+
var reasonKey = selectTypeMap[_this.type].info;
|
|
159
|
+
var statusFilter = {
|
|
156
160
|
searchDefaultConditions: SYMBOL.in,
|
|
157
161
|
type: item.type,
|
|
158
|
-
id: "".concat(item.id, "_").concat(
|
|
162
|
+
id: "".concat(item.id, "_").concat(statusKey),
|
|
159
163
|
// 过滤组件id
|
|
160
164
|
name: item.name,
|
|
161
|
-
// 过滤组件名称
|
|
162
165
|
filterComponentType: "MultipleSelect",
|
|
163
166
|
props: {
|
|
164
167
|
options: selectTypeMap[_this.type].options
|
|
165
168
|
},
|
|
166
169
|
filterFn: function filterFn(value) {
|
|
167
170
|
return function (i) {
|
|
168
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
171
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, statusKey));
|
|
169
172
|
};
|
|
170
173
|
} // 第一个为选中值,第二个参数为表格行记录值
|
|
171
174
|
};
|
|
175
|
+
|
|
176
|
+
if (!STATUS_REASON_TYPES.includes(_this.type)) {
|
|
177
|
+
return statusFilter;
|
|
178
|
+
}
|
|
179
|
+
return [statusFilter, {
|
|
180
|
+
searchDefaultConditions: SYMBOL.anylike,
|
|
181
|
+
type: item.type,
|
|
182
|
+
id: "".concat(item.id, "_").concat(reasonKey),
|
|
183
|
+
name: "".concat(item.name, "\u539F\u56E0"),
|
|
184
|
+
filterComponentType: "Input",
|
|
185
|
+
props: {
|
|
186
|
+
placeholder: "\u8BF7\u8F93\u5165".concat(item.name, "\u5931\u8D25\u539F\u56E0\u5173\u952E\u5B57")
|
|
187
|
+
},
|
|
188
|
+
filterFn: function filterFn(value) {
|
|
189
|
+
return function (i) {
|
|
190
|
+
var keywords = batchInput(value);
|
|
191
|
+
var reason = "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, reasonKey) || "");
|
|
192
|
+
return Array.isArray(keywords) && keywords.some(function (keyword) {
|
|
193
|
+
return reason.includes(keyword);
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
formatFilterValue: batchInput
|
|
198
|
+
}];
|
|
172
199
|
});
|
|
173
200
|
this.name = options.name;
|
|
174
201
|
this.id = options.id;
|
|
@@ -191,5 +218,17 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
191
218
|
this.children = [];
|
|
192
219
|
this.dataType = "string";
|
|
193
220
|
this.options = selectTypeMap[options.type].options;
|
|
221
|
+
this.sortChildField = STATUS_REASON_TYPES.includes(options.type) ? [{
|
|
222
|
+
name: options.name,
|
|
223
|
+
key: this.formField,
|
|
224
|
+
dataType: this.dataType,
|
|
225
|
+
options: this.options,
|
|
226
|
+
conditionOnly: true
|
|
227
|
+
}, {
|
|
228
|
+
name: "".concat(options.name, "\u539F\u56E0"),
|
|
229
|
+
key: "".concat(options.id, "_").concat(selectTypeMap[options.type].info),
|
|
230
|
+
dataType: "like",
|
|
231
|
+
conditionOnly: true
|
|
232
|
+
}] : undefined;
|
|
194
233
|
});
|
|
195
234
|
export default StatusSelect;
|
|
@@ -14,8 +14,15 @@ declare class WDTExchange 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 } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var WDTExchange = /*#__PURE__*/_createClass(
|
|
21
22
|
// wdtType: BsType;
|
|
22
23
|
// wdtMemo: BsMemo;
|
|
@@ -39,7 +40,11 @@ function WDTExchange(options) {
|
|
|
39
40
|
_defineProperty(this, "canSort", void 0);
|
|
40
41
|
_defineProperty(this, "children", void 0);
|
|
41
42
|
_defineProperty(this, "dataType", void 0);
|
|
43
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
42
44
|
_defineProperty(this, "returnGoods", void 0);
|
|
45
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
46
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
47
|
+
});
|
|
43
48
|
_defineProperty(this, "renderClient", function (record) {
|
|
44
49
|
var _this$componentConfig;
|
|
45
50
|
var wdtExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_wdtExchangeGoods")]) || "[]");
|
|
@@ -180,5 +185,6 @@ function WDTExchange(options) {
|
|
|
180
185
|
},*/];
|
|
181
186
|
|
|
182
187
|
this.dataType = "object";
|
|
188
|
+
this.sortChildField = this.getSortChildFields();
|
|
183
189
|
});
|
|
184
190
|
export default WDTExchange;
|
|
@@ -14,8 +14,15 @@ declare class WdtGoods implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
17
18
|
wdtGoods: CommonHeaderGoods;
|
|
18
19
|
constructor(options: PickOption);
|
|
20
|
+
getSortChildFields: () => {
|
|
21
|
+
name: any;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
conditionOptionsSetting: any;
|
|
25
|
+
}[];
|
|
19
26
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
27
|
renderPc: () => null;
|
|
21
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -16,6 +16,7 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
18
|
import { SYMBOL } from "../../../constant";
|
|
19
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
19
20
|
var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig6;
|
|
@@ -32,7 +33,11 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
|
32
33
|
_defineProperty(this, "canSort", void 0);
|
|
33
34
|
_defineProperty(this, "children", void 0);
|
|
34
35
|
_defineProperty(this, "dataType", void 0);
|
|
36
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
35
37
|
_defineProperty(this, "wdtGoods", void 0);
|
|
38
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
39
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
40
|
+
});
|
|
36
41
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
42
|
var _record, _this$componentConfig;
|
|
38
43
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -119,5 +124,6 @@ var WdtGoods = /*#__PURE__*/_createClass(function WdtGoods(options) {
|
|
|
119
124
|
}
|
|
120
125
|
}] : [];
|
|
121
126
|
this.dataType = "object";
|
|
127
|
+
this.sortChildField = this.getSortChildFields();
|
|
122
128
|
});
|
|
123
129
|
export default WdtGoods;
|
|
@@ -15,11 +15,18 @@ declare class WdtReissue implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
bsType: BsType;
|
|
19
20
|
bsMemo: BsMemo;
|
|
20
21
|
systemOrderNo: SystemOrderNo;
|
|
21
22
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => {
|
|
25
|
+
name: any;
|
|
26
|
+
key: string;
|
|
27
|
+
dataType: string;
|
|
28
|
+
conditionOptionsSetting: any;
|
|
29
|
+
}[];
|
|
23
30
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
31
|
renderPc: () => null;
|
|
25
32
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
|
|
|
17
17
|
import { BsGoodsTable } from "../../Common/index";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood, SystemOrderNo } from "../../BS/common/index";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var typeMap = {
|
|
21
22
|
WDT_REISSUE_GOODS: {
|
|
22
23
|
key: "wdtReissueGoods",
|
|
@@ -56,10 +57,14 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(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, {
|
|
@@ -202,11 +207,10 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
202
207
|
required: isRequired,
|
|
203
208
|
validator: function validator(_rule, value) {
|
|
204
209
|
var _typeMap$options$type9, _typeMap$options$type10;
|
|
205
|
-
return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) ||
|
|
206
|
-
return Promise.resolve();
|
|
207
|
-
};
|
|
210
|
+
return ((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : (_typeMap$options$type10 = _typeMap$options$type9.validator) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.call(_typeMap$options$type9, _rule, value, options.type)) || Promise.resolve();
|
|
208
211
|
}
|
|
209
212
|
}];
|
|
210
213
|
this.dataType = "object";
|
|
214
|
+
this.sortChildField = this.getSortChildFields();
|
|
211
215
|
});
|
|
212
216
|
export default WdtReissue;
|
|
@@ -15,9 +15,16 @@ declare class WdtReturn implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
|
|
18
19
|
wdtType: BsType;
|
|
19
20
|
reissueGoods: CommonHeaderGoods;
|
|
20
21
|
constructor(options: PickOption);
|
|
22
|
+
getSortChildFields: () => {
|
|
23
|
+
name: any;
|
|
24
|
+
key: string;
|
|
25
|
+
dataType: string;
|
|
26
|
+
conditionOptionsSetting: any;
|
|
27
|
+
}[];
|
|
21
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
29
|
renderPc: () => null;
|
|
23
30
|
renderLog: (r: Record) => React.JSX.Element;
|
|
@@ -17,6 +17,7 @@ import { BsGoodsTable } from "../../Common";
|
|
|
17
17
|
import { BsType } from "../../BS/common/index";
|
|
18
18
|
import { CommonReturnGoods } from "@kmkf-fe-packages/basic-components";
|
|
19
19
|
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
+
import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
|
|
20
21
|
var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
21
22
|
var _this = this,
|
|
22
23
|
_this$componentConfig6;
|
|
@@ -33,8 +34,12 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(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, "wdtType", void 0);
|
|
37
39
|
_defineProperty(this, "reissueGoods", void 0);
|
|
40
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
+
return getGoodsSortChildFields(_this.type, _this.id);
|
|
42
|
+
});
|
|
38
43
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
44
|
var _this$componentConfig;
|
|
40
45
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.wdtType.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].wdtReturnGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -147,5 +152,6 @@ var WdtReturn = /*#__PURE__*/_createClass(function WdtReturn(options) {
|
|
|
147
152
|
}
|
|
148
153
|
}] : [];
|
|
149
154
|
this.dataType = "object";
|
|
155
|
+
this.sortChildField = this.getSortChildFields();
|
|
150
156
|
});
|
|
151
157
|
export default WdtReturn;
|
package/dist/esm/constant.js
CHANGED
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicMultSelect | PublicGoods | StatusSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -38,12 +38,15 @@ export var factory = function factory(type, options) {
|
|
|
38
38
|
case "EXECUTE_ACTION_TYPE":
|
|
39
39
|
case "ERP_ORDER_STATUS":
|
|
40
40
|
case "JST_OUTBOUND_STATUS":
|
|
41
|
+
case "PLATFORM_TRANSIT_FLAG":
|
|
42
|
+
case "PLATFORM_TRANSIT_TYPE":
|
|
41
43
|
return new BasicSelect(options);
|
|
42
44
|
case "PICTURE":
|
|
43
45
|
return new BasicPicture(options);
|
|
44
46
|
case "PICTURE_PRO":
|
|
45
47
|
return new BasicPicturePro(options);
|
|
46
48
|
case "BASIC_MULT_SELECT":
|
|
49
|
+
case "JY_ABNORMAL_FLAG":
|
|
47
50
|
return new BasicMultSelect(options);
|
|
48
51
|
case "MULT_SELECT":
|
|
49
52
|
return new BasicCascader(options);
|
|
@@ -141,7 +144,9 @@ export var factory = function factory(type, options) {
|
|
|
141
144
|
return new JstSupply(options);
|
|
142
145
|
case "BS_SYSTEM_ORDER":
|
|
143
146
|
case "KM_SYSTEM_ORDER":
|
|
147
|
+
case "KM_AFTER_SALES_ORDER":
|
|
144
148
|
case "DXD_SYSTEM_ORDER":
|
|
149
|
+
case "TTX_SYSTEM_ORDER":
|
|
145
150
|
case "WLN_SYSTEM_ORDER":
|
|
146
151
|
case "WDT_SYSTEM_ORDER":
|
|
147
152
|
case "BS_E3_SYSTEM_ORDER":
|
|
@@ -162,6 +167,7 @@ export var factory = function factory(type, options) {
|
|
|
162
167
|
case "JY_SEND_GOOD":
|
|
163
168
|
case "JKY_SEND_GOOD":
|
|
164
169
|
case "DXD_SEND_GOOD":
|
|
170
|
+
case "TTX_SEND_GOOD":
|
|
165
171
|
return new JstSendGood(options);
|
|
166
172
|
case "KM_RETURN_WAREHOUSE":
|
|
167
173
|
return new ReturnWarehouse(options);
|
|
@@ -176,12 +182,14 @@ export var factory = function factory(type, options) {
|
|
|
176
182
|
case "JY_GOODS":
|
|
177
183
|
case "JKY_GOODS":
|
|
178
184
|
case "KM_GOODS":
|
|
185
|
+
case "KM_AFTERSALE_GOODS":
|
|
179
186
|
case "JST_GOODS":
|
|
180
187
|
case "WLN_GOODS":
|
|
181
188
|
case "WDT_AFTERSALE_GOODS":
|
|
182
189
|
case "JST_AFTERSALE_GOODS":
|
|
183
190
|
case "DXD_GOODS":
|
|
184
191
|
case "DXD_SUPPLIERS":
|
|
192
|
+
case "TTX_GOODS":
|
|
185
193
|
return new PublicGoods(options);
|
|
186
194
|
case "WLN_REISSUE_GOODS":
|
|
187
195
|
case "JST_REISSUE_GOODS":
|
|
@@ -232,6 +240,7 @@ export var factory = function factory(type, options) {
|
|
|
232
240
|
case "SKX_LOGISTICS":
|
|
233
241
|
case "SKX_RETURN_LOGISTICS":
|
|
234
242
|
case "DXD_LOGISTICS":
|
|
243
|
+
case "TTX_LOGISTICS":
|
|
235
244
|
return new BsLogistics(options);
|
|
236
245
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
237
246
|
return new FlowWorkOrderId(options);
|
|
@@ -254,14 +263,21 @@ export var factory = function factory(type, options) {
|
|
|
254
263
|
return new StatusSelect(options);
|
|
255
264
|
case "RETURN_GOODS_STATUS":
|
|
256
265
|
case "EXCHANGE_STATUS":
|
|
266
|
+
return new CommonMultiStatus(options);
|
|
257
267
|
case "WAREHOUSING_STATUS":
|
|
258
268
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
259
269
|
case "WDT_WAREHOUSING_STATUS":
|
|
270
|
+
case "WDT_WAREHOUSING_STATUS_V2":
|
|
271
|
+
case "DXD_WAREHOUSING_STATUS":
|
|
260
272
|
case "WLN_WAREHOUSING_STATUS":
|
|
261
273
|
case "JKY_WAREHOUSING_STATUS":
|
|
262
274
|
case "JST_WAREHOUSING_STATUS":
|
|
263
275
|
case "KM_WAREHOUSING_STATUS":
|
|
264
|
-
|
|
276
|
+
case "TTX_WAREHOUSING_STATUS":
|
|
277
|
+
case "JY_WAREHOUSING_STATUS":
|
|
278
|
+
return new CommonMultiStatus(options, {
|
|
279
|
+
isWarehousingStatus: true
|
|
280
|
+
});
|
|
265
281
|
case "MSG_STATUS":
|
|
266
282
|
return new MsgStatus(options);
|
|
267
283
|
case "GY_PAYMENT_METHOD":
|
|
@@ -16,6 +16,7 @@ export declare const queryJKYLogisticsCompany: () => Promise<void>;
|
|
|
16
16
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
17
17
|
export declare const queryKMLogisticsCompany: () => Promise<void>;
|
|
18
18
|
export declare const queryDXDLogisticsCompany: () => Promise<void>;
|
|
19
|
+
export declare const queryTTXLogisticsCompany: () => Promise<void>;
|
|
19
20
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
20
21
|
export declare const queryLabel: () => Promise<any>;
|
|
21
22
|
export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -329,6 +329,12 @@ export var queryDXDLogisticsCompany = function queryDXDLogisticsCompany() {
|
|
|
329
329
|
instance.expressData = data;
|
|
330
330
|
}).catch(console.log);
|
|
331
331
|
};
|
|
332
|
+
export var queryTTXLogisticsCompany = function queryTTXLogisticsCompany() {
|
|
333
|
+
var instance = ExpressData.getInstance("ttx");
|
|
334
|
+
return servers.TTX.getLogisticsDataAsync().then(function (data) {
|
|
335
|
+
instance.expressData = data;
|
|
336
|
+
}).catch(console.log);
|
|
337
|
+
};
|
|
332
338
|
// 获取支付宝电子回单
|
|
333
339
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
334
340
|
return request({
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare type ShowHeaderObjType = {
|
|
|
5
5
|
title: string;
|
|
6
6
|
dataIndex: string;
|
|
7
7
|
show?: boolean;
|
|
8
|
+
width?: number;
|
|
8
9
|
};
|
|
9
10
|
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
10
11
|
export declare type ALignType = "left" | "right" | "center";
|
|
@@ -42,6 +43,7 @@ export interface ComponentInterface {
|
|
|
42
43
|
name: string;
|
|
43
44
|
key: string;
|
|
44
45
|
dataType: string;
|
|
46
|
+
conditionOnly?: boolean;
|
|
45
47
|
[key: string]: any;
|
|
46
48
|
}[];
|
|
47
49
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.81",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.10.9-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.10.9-beta.80",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.80",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d4b436192cb15832b4b4093972b845c8beab3bcc",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|