@kmkf-fe-packages/services-components 0.8.17-alpha.26 → 0.8.17-alpha.28
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/DeliveryNo/index.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderGood.js +1 -0
- package/dist/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +71 -33
- package/dist/esm/components/CommonMultiStatus/index.d.ts +32 -0
- package/dist/esm/components/CommonMultiStatus/index.js +161 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +32 -0
- package/dist/esm/components/CommonSystemOrder/index.js +151 -0
- package/dist/esm/components/CommonTradeId/index.js +0 -3
- package/dist/esm/components/StatusSelect/index.d.ts +5 -5
- package/dist/esm/components/StatusSelect/index.js +37 -51
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +85 -84
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/package.json +4 -4
|
@@ -9,8 +9,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
9
9
|
import React from "react";
|
|
10
10
|
import some from "lodash/some";
|
|
11
11
|
import GetFormItem from "../../GetFormItem";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { CommonOrderContent } from "../../Common";
|
|
13
|
+
import { CommonSystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
14
14
|
import ItemView from "../../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
@@ -45,9 +45,9 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
45
45
|
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
46
46
|
id: _this.id,
|
|
47
47
|
label: _this.name,
|
|
48
|
-
value: /*#__PURE__*/React.createElement(
|
|
48
|
+
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
49
49
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
50
|
-
type:
|
|
50
|
+
type: 1
|
|
51
51
|
})
|
|
52
52
|
}) : null;
|
|
53
53
|
});
|
|
@@ -59,9 +59,9 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
59
59
|
onClick: function onClick(e) {
|
|
60
60
|
return e.stopPropagation();
|
|
61
61
|
}
|
|
62
|
-
}, /*#__PURE__*/React.createElement(
|
|
62
|
+
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
63
63
|
list: list,
|
|
64
|
-
type:
|
|
64
|
+
type: 1
|
|
65
65
|
}));
|
|
66
66
|
});
|
|
67
67
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -89,8 +89,8 @@ var DeliveryNo = /*#__PURE__*/_createClass(function DeliveryNo(options) {
|
|
|
89
89
|
rules: _this.rules,
|
|
90
90
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
91
91
|
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,
|
|
92
|
-
component: /*#__PURE__*/React.createElement(
|
|
93
|
-
type:
|
|
92
|
+
component: /*#__PURE__*/React.createElement(CommonSystemOrder, _extends({}, _this.componentConfig, {
|
|
93
|
+
type: 1
|
|
94
94
|
}))
|
|
95
95
|
});
|
|
96
96
|
});
|
|
@@ -15,6 +15,7 @@ export declare const showImage: ({ item, type, index, }: {
|
|
|
15
15
|
export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
|
|
16
16
|
export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
|
|
17
17
|
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
18
|
+
export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
|
|
18
19
|
export declare const BsGoodImage: ({ item, index }: {
|
|
19
20
|
item: any;
|
|
20
21
|
index: number;
|
|
@@ -229,10 +229,48 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
229
229
|
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join("/") : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join("/") : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
|
|
230
230
|
}) : null;
|
|
231
231
|
};
|
|
232
|
+
export var CommonOrderContent = function CommonOrderContent(_ref7) {
|
|
233
|
+
var _ref7$list = _ref7.list,
|
|
234
|
+
list = _ref7$list === void 0 ? [] : _ref7$list,
|
|
235
|
+
valueKey = _ref7.valueKey,
|
|
236
|
+
failValue = _ref7.failValue,
|
|
237
|
+
_ref7$options = _ref7.options,
|
|
238
|
+
options = _ref7$options === void 0 ? [] : _ref7$options;
|
|
239
|
+
var orderContent = function orderContent(item, index) {
|
|
240
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
241
|
+
style: {
|
|
242
|
+
textAlign: "center"
|
|
243
|
+
}
|
|
244
|
+
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
|
|
245
|
+
};
|
|
246
|
+
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
247
|
+
var _options$find;
|
|
248
|
+
var color = ((_options$find = options.find(function (item) {
|
|
249
|
+
return item[valueKey] === failValue;
|
|
250
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
|
|
251
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
252
|
+
content: orderContent(item, index),
|
|
253
|
+
overlayStyle: {
|
|
254
|
+
zIndex: 1080
|
|
255
|
+
}
|
|
256
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
257
|
+
key: index,
|
|
258
|
+
style: {
|
|
259
|
+
color: "#1890ff",
|
|
260
|
+
cursor: "pointer"
|
|
261
|
+
}
|
|
262
|
+
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
|
|
263
|
+
style: {
|
|
264
|
+
color: color
|
|
265
|
+
}
|
|
266
|
+
}, (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
|
|
267
|
+
}) : null;
|
|
268
|
+
};
|
|
269
|
+
|
|
232
270
|
//bs商品展示 todo
|
|
233
|
-
export var BsGoodImage = function BsGoodImage(
|
|
234
|
-
var item =
|
|
235
|
-
index =
|
|
271
|
+
export var BsGoodImage = function BsGoodImage(_ref8) {
|
|
272
|
+
var item = _ref8.item,
|
|
273
|
+
index = _ref8.index;
|
|
236
274
|
var picUrl = item.picUrl || defaultImg;
|
|
237
275
|
var keyMap = {
|
|
238
276
|
name: "bs名称",
|
|
@@ -263,9 +301,9 @@ export var BsGoodImage = function BsGoodImage(_ref7) {
|
|
|
263
301
|
})));
|
|
264
302
|
};
|
|
265
303
|
//bs换货 todo
|
|
266
|
-
export var BsExchangeList = function BsExchangeList(
|
|
267
|
-
var list =
|
|
268
|
-
showHeader =
|
|
304
|
+
export var BsExchangeList = function BsExchangeList(_ref9) {
|
|
305
|
+
var list = _ref9.list,
|
|
306
|
+
showHeader = _ref9.showHeader;
|
|
269
307
|
return /*#__PURE__*/React.createElement("div", {
|
|
270
308
|
className: styles.bsImgBox
|
|
271
309
|
}, list.map(function (item) {
|
|
@@ -289,11 +327,11 @@ export var BsGoodPic = function BsGoodPic(list) {
|
|
|
289
327
|
});
|
|
290
328
|
});
|
|
291
329
|
};
|
|
292
|
-
export var BsGoodsTable = function BsGoodsTable(
|
|
293
|
-
var list =
|
|
294
|
-
showHeader =
|
|
295
|
-
|
|
296
|
-
text =
|
|
330
|
+
export var BsGoodsTable = function BsGoodsTable(_ref10) {
|
|
331
|
+
var list = _ref10.list,
|
|
332
|
+
showHeader = _ref10.showHeader,
|
|
333
|
+
_ref10$text = _ref10.text,
|
|
334
|
+
text = _ref10$text === void 0 ? "" : _ref10$text;
|
|
297
335
|
//商品信息
|
|
298
336
|
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
299
337
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
@@ -303,24 +341,18 @@ export var BsGoodsTable = function BsGoodsTable(_ref9) {
|
|
|
303
341
|
align: "center",
|
|
304
342
|
ellipsis: true,
|
|
305
343
|
width: 100
|
|
306
|
-
}, {
|
|
307
|
-
dataIndex: "pic",
|
|
308
|
-
title: "\u56FE\u7247",
|
|
309
|
-
align: "center",
|
|
310
|
-
ellipsis: true,
|
|
311
|
-
width: 100,
|
|
312
|
-
render: function render(val) {
|
|
313
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
314
|
-
width: 60,
|
|
315
|
-
src: val
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
344
|
}, {
|
|
319
345
|
dataIndex: "skuName",
|
|
320
346
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
321
347
|
align: "center",
|
|
322
348
|
ellipsis: true,
|
|
323
349
|
width: 200
|
|
350
|
+
}, {
|
|
351
|
+
dataIndex: "sku",
|
|
352
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
353
|
+
align: "center",
|
|
354
|
+
ellipsis: true,
|
|
355
|
+
width: 100
|
|
324
356
|
}, {
|
|
325
357
|
dataIndex: "name",
|
|
326
358
|
title: "".concat(text, "\u540D\u79F0"),
|
|
@@ -328,14 +360,20 @@ export var BsGoodsTable = function BsGoodsTable(_ref9) {
|
|
|
328
360
|
ellipsis: true,
|
|
329
361
|
width: 200
|
|
330
362
|
}, {
|
|
331
|
-
dataIndex: "
|
|
332
|
-
title: "
|
|
363
|
+
dataIndex: "pic",
|
|
364
|
+
title: "\u56FE\u7247",
|
|
333
365
|
align: "center",
|
|
334
366
|
ellipsis: true,
|
|
335
|
-
width: 100
|
|
367
|
+
width: 100,
|
|
368
|
+
render: function render(val) {
|
|
369
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
370
|
+
width: 60,
|
|
371
|
+
src: val
|
|
372
|
+
});
|
|
373
|
+
}
|
|
336
374
|
}, {
|
|
337
|
-
dataIndex: "
|
|
338
|
-
title: "".concat(text, "
|
|
375
|
+
dataIndex: "code",
|
|
376
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
339
377
|
align: "center",
|
|
340
378
|
ellipsis: true,
|
|
341
379
|
width: 100
|
|
@@ -394,9 +432,9 @@ export var BsGoodsTable = function BsGoodsTable(_ref9) {
|
|
|
394
432
|
}
|
|
395
433
|
});
|
|
396
434
|
};
|
|
397
|
-
export var FileRender = function FileRender(
|
|
398
|
-
var
|
|
399
|
-
fileList =
|
|
435
|
+
export var FileRender = function FileRender(_ref11) {
|
|
436
|
+
var _ref11$fileList = _ref11.fileList,
|
|
437
|
+
fileList = _ref11$fileList === void 0 ? [] : _ref11$fileList;
|
|
400
438
|
var _useState3 = useState(false),
|
|
401
439
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
402
440
|
visible = _useState4[0],
|
|
@@ -474,8 +512,8 @@ export var FileRender = function FileRender(_ref10) {
|
|
|
474
512
|
src: fileUrl
|
|
475
513
|
})));
|
|
476
514
|
};
|
|
477
|
-
export var BsSystemOrderTable = function BsSystemOrderTable(
|
|
478
|
-
var value =
|
|
515
|
+
export var BsSystemOrderTable = function BsSystemOrderTable(_ref12) {
|
|
516
|
+
var value = _ref12.value;
|
|
479
517
|
var columns = [{
|
|
480
518
|
dataIndex: "billType",
|
|
481
519
|
title: "单据类型"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonMultiStatus implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export default CommonMultiStatus;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import some from "lodash/some";
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import { CommonOrderContent } from "../Common";
|
|
15
|
+
import { CommonMultiStatus as Status } from "@kmkf-fe-packages/basic-components";
|
|
16
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { SYMBOL } from "../../constant";
|
|
19
|
+
var typeMap = {
|
|
20
|
+
RETURN_GOODS_STATUS: {
|
|
21
|
+
options: [{
|
|
22
|
+
value: "成功",
|
|
23
|
+
label: "成功",
|
|
24
|
+
color: "#52c41a"
|
|
25
|
+
}, {
|
|
26
|
+
value: "失败",
|
|
27
|
+
label: "失败",
|
|
28
|
+
color: "#ff4d4f"
|
|
29
|
+
}],
|
|
30
|
+
key: "returnGoodsStatusList",
|
|
31
|
+
code: "returnGoodsStatusValue",
|
|
32
|
+
name: "退货状态",
|
|
33
|
+
type: 1,
|
|
34
|
+
valueKey: "status",
|
|
35
|
+
failValue: "失败"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
39
|
+
var _this = this,
|
|
40
|
+
_typeMap$options$type,
|
|
41
|
+
_typeMap$options$type2,
|
|
42
|
+
_this$componentConfig3;
|
|
43
|
+
_classCallCheck(this, CommonMultiStatus);
|
|
44
|
+
_defineProperty(this, "name", void 0);
|
|
45
|
+
_defineProperty(this, "id", void 0);
|
|
46
|
+
_defineProperty(this, "sortField", void 0);
|
|
47
|
+
_defineProperty(this, "type", void 0);
|
|
48
|
+
_defineProperty(this, "rules", void 0);
|
|
49
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
50
|
+
_defineProperty(this, "align", void 0);
|
|
51
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
52
|
+
_defineProperty(this, "formField", void 0);
|
|
53
|
+
_defineProperty(this, "canSort", void 0);
|
|
54
|
+
_defineProperty(this, "children", void 0);
|
|
55
|
+
_defineProperty(this, "dataType", void 0);
|
|
56
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
57
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
58
|
+
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) {
|
|
59
|
+
return !isNull(item);
|
|
60
|
+
}) : false;
|
|
61
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
62
|
+
id: _this.id,
|
|
63
|
+
label: _this.name,
|
|
64
|
+
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
65
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
66
|
+
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
|
|
67
|
+
failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
|
|
68
|
+
options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
|
|
69
|
+
})
|
|
70
|
+
}) : null;
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
73
|
+
var _typeMap$_this$type4, _typeMap$_this$type5;
|
|
74
|
+
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)];
|
|
75
|
+
//兼容多个商品
|
|
76
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
77
|
+
onClick: function onClick(e) {
|
|
78
|
+
return e.stopPropagation();
|
|
79
|
+
}
|
|
80
|
+
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
81
|
+
list: list,
|
|
82
|
+
type: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.type
|
|
83
|
+
}));
|
|
84
|
+
});
|
|
85
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
86
|
+
var _typeMap$_this$type6;
|
|
87
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
|
|
88
|
+
if (isNull(list)) return null;
|
|
89
|
+
return _this.renderPc(undefined, r);
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
92
|
+
var _typeMap$_this$type7;
|
|
93
|
+
return 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.key)];
|
|
94
|
+
});
|
|
95
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
96
|
+
var _typeMap$_this$type8;
|
|
97
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
|
|
98
|
+
return (list || []).map(function (item) {
|
|
99
|
+
var _typeMap$_this$type9;
|
|
100
|
+
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.valueKey];
|
|
101
|
+
}).join(",");
|
|
102
|
+
});
|
|
103
|
+
_defineProperty(this, "editRender", function (p) {
|
|
104
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type10;
|
|
105
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
106
|
+
title: _this.name,
|
|
107
|
+
name: _this.id,
|
|
108
|
+
rules: _this.rules,
|
|
109
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
110
|
+
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,
|
|
111
|
+
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
112
|
+
type: (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.type,
|
|
113
|
+
failValue: typeMap[_this.type].failValue
|
|
114
|
+
}))
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
118
|
+
var _typeMap$_this$type11;
|
|
119
|
+
return [{
|
|
120
|
+
searchDefaultConditions: SYMBOL.like,
|
|
121
|
+
type: item.type,
|
|
122
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code),
|
|
123
|
+
name: "".concat(_this.name),
|
|
124
|
+
filterComponentType: "Input",
|
|
125
|
+
filterFn: function filterFn(value) {
|
|
126
|
+
return function (i) {
|
|
127
|
+
var _typeMap$_this$type12;
|
|
128
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.code), value);
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}];
|
|
132
|
+
});
|
|
133
|
+
this.name = options.name;
|
|
134
|
+
this.id = options.id;
|
|
135
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
136
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
137
|
+
this.type = options.type;
|
|
138
|
+
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
139
|
+
options: typeMap[options.type].options
|
|
140
|
+
});
|
|
141
|
+
this.isCombinationComponent = false;
|
|
142
|
+
this.canSort = false;
|
|
143
|
+
this.children = [];
|
|
144
|
+
this.dataType = "object";
|
|
145
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
146
|
+
required: true,
|
|
147
|
+
validator: function validator(_, value) {
|
|
148
|
+
var hasNo = (value || []).some(function (item) {
|
|
149
|
+
var _typeMap$_this$type13;
|
|
150
|
+
return item[(_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.valueKey];
|
|
151
|
+
});
|
|
152
|
+
if (!hasNo) {
|
|
153
|
+
var _typeMap$_this$type14;
|
|
154
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.name)));
|
|
155
|
+
}
|
|
156
|
+
return Promise.resolve();
|
|
157
|
+
}
|
|
158
|
+
}] : [];
|
|
159
|
+
this.align = "left";
|
|
160
|
+
});
|
|
161
|
+
export default CommonMultiStatus;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class CommonSystemOrder implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export default CommonSystemOrder;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
import React from "react";
|
|
10
|
+
import some from "lodash/some";
|
|
11
|
+
import GetFormItem from "../GetFormItem";
|
|
12
|
+
import { CommonOrderContent } from "../Common";
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
14
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
17
|
+
var typeMap = {
|
|
18
|
+
BS_DELIVERY_NO: {
|
|
19
|
+
key: "deliveryNoList",
|
|
20
|
+
code: "deliveryNoIds",
|
|
21
|
+
name: "出库单",
|
|
22
|
+
type: 1,
|
|
23
|
+
valueKey: "deliveryNo"
|
|
24
|
+
},
|
|
25
|
+
RETURN_GOODS_TRADE_ID: {
|
|
26
|
+
key: "returnGoodsTradeIdList",
|
|
27
|
+
code: "returnGoodsTradeIds",
|
|
28
|
+
name: "退货单id",
|
|
29
|
+
type: 2,
|
|
30
|
+
valueKey: "returnGoodsTradeId"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
34
|
+
var _this = this,
|
|
35
|
+
_typeMap$options$type,
|
|
36
|
+
_typeMap$options$type2,
|
|
37
|
+
_this$componentConfig3;
|
|
38
|
+
_classCallCheck(this, CommonSystemOrder);
|
|
39
|
+
_defineProperty(this, "name", void 0);
|
|
40
|
+
_defineProperty(this, "id", void 0);
|
|
41
|
+
_defineProperty(this, "sortField", void 0);
|
|
42
|
+
_defineProperty(this, "type", void 0);
|
|
43
|
+
_defineProperty(this, "rules", void 0);
|
|
44
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
45
|
+
_defineProperty(this, "align", void 0);
|
|
46
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
|
+
_defineProperty(this, "formField", void 0);
|
|
48
|
+
_defineProperty(this, "canSort", void 0);
|
|
49
|
+
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
52
|
+
var _typeMap$_this$type;
|
|
53
|
+
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) {
|
|
54
|
+
return !isNull(item);
|
|
55
|
+
}) : false;
|
|
56
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
57
|
+
id: _this.id,
|
|
58
|
+
label: _this.name,
|
|
59
|
+
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
60
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
61
|
+
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey
|
|
62
|
+
})
|
|
63
|
+
}) : null;
|
|
64
|
+
});
|
|
65
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
66
|
+
var _typeMap$_this$type2, _typeMap$_this$type3;
|
|
67
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
|
|
68
|
+
//兼容多个商品
|
|
69
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
70
|
+
onClick: function onClick(e) {
|
|
71
|
+
return e.stopPropagation();
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
74
|
+
list: list,
|
|
75
|
+
type: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.type
|
|
76
|
+
}));
|
|
77
|
+
});
|
|
78
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
79
|
+
var _typeMap$_this$type4;
|
|
80
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
81
|
+
if (isNull(list)) return null;
|
|
82
|
+
return _this.renderPc(undefined, r);
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
85
|
+
var _typeMap$_this$type5;
|
|
86
|
+
return 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)];
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
89
|
+
var _typeMap$_this$type6;
|
|
90
|
+
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)];
|
|
91
|
+
return (list || []).map(function (item) {
|
|
92
|
+
var _typeMap$_this$type7;
|
|
93
|
+
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.valueKey];
|
|
94
|
+
}).join(",");
|
|
95
|
+
});
|
|
96
|
+
_defineProperty(this, "editRender", function (p) {
|
|
97
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type8;
|
|
98
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
99
|
+
title: _this.name,
|
|
100
|
+
name: _this.id,
|
|
101
|
+
rules: _this.rules,
|
|
102
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
103
|
+
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,
|
|
104
|
+
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
105
|
+
type: (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.type
|
|
106
|
+
}))
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
110
|
+
var _typeMap$_this$type9;
|
|
111
|
+
return [{
|
|
112
|
+
searchDefaultConditions: SYMBOL.like,
|
|
113
|
+
type: item.type,
|
|
114
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.code),
|
|
115
|
+
name: "".concat(_this.name),
|
|
116
|
+
filterComponentType: "Input",
|
|
117
|
+
filterFn: function filterFn(value) {
|
|
118
|
+
return function (i) {
|
|
119
|
+
var _typeMap$_this$type10;
|
|
120
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code), value);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}];
|
|
124
|
+
});
|
|
125
|
+
this.name = options.name;
|
|
126
|
+
this.id = options.id;
|
|
127
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
128
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
129
|
+
this.type = options.type;
|
|
130
|
+
this.componentConfig = options.componentConfig;
|
|
131
|
+
this.isCombinationComponent = false;
|
|
132
|
+
this.canSort = false;
|
|
133
|
+
this.children = [];
|
|
134
|
+
this.dataType = "object";
|
|
135
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
136
|
+
required: true,
|
|
137
|
+
validator: function validator(_, value) {
|
|
138
|
+
var hasNo = (value || []).some(function (item) {
|
|
139
|
+
var _typeMap$_this$type11;
|
|
140
|
+
return item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.valueKey];
|
|
141
|
+
});
|
|
142
|
+
if (!hasNo) {
|
|
143
|
+
var _typeMap$_this$type12;
|
|
144
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.name)));
|
|
145
|
+
}
|
|
146
|
+
return Promise.resolve();
|
|
147
|
+
}
|
|
148
|
+
}] : [];
|
|
149
|
+
this.align = "left";
|
|
150
|
+
});
|
|
151
|
+
export default CommonSystemOrder;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class StatusSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
editRender: (p: any) => React.JSX.Element;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -8,69 +8,55 @@ 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
|
|
12
|
-
import { CommonStatus } from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { CommonStatus } from "@kmkf-fe-packages/basic-components";
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
// const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
|
|
18
18
|
var selectTypeMap = {
|
|
19
19
|
REISSUE_STATUS: {
|
|
20
20
|
options: [{
|
|
21
|
-
value:
|
|
22
|
-
label:
|
|
23
|
-
color:
|
|
21
|
+
value: "成功",
|
|
22
|
+
label: "成功",
|
|
23
|
+
color: "#52c41a"
|
|
24
24
|
}, {
|
|
25
|
-
value:
|
|
26
|
-
label:
|
|
27
|
-
color:
|
|
25
|
+
value: "失败",
|
|
26
|
+
label: "失败",
|
|
27
|
+
color: "#ff4d4f"
|
|
28
28
|
}],
|
|
29
|
-
key:
|
|
30
|
-
info:
|
|
31
|
-
failValue:
|
|
29
|
+
key: "reissueStatusValue",
|
|
30
|
+
info: "reissueReason",
|
|
31
|
+
failValue: "失败"
|
|
32
32
|
},
|
|
33
33
|
EXCHANGE_STATUS: {
|
|
34
34
|
options: [{
|
|
35
|
-
value:
|
|
36
|
-
label:
|
|
37
|
-
color:
|
|
35
|
+
value: "成功",
|
|
36
|
+
label: "成功",
|
|
37
|
+
color: "#52c41a"
|
|
38
38
|
}, {
|
|
39
|
-
value:
|
|
40
|
-
label:
|
|
41
|
-
color:
|
|
39
|
+
value: "失败",
|
|
40
|
+
label: "失败",
|
|
41
|
+
color: "#ff4d4f"
|
|
42
42
|
}],
|
|
43
|
-
key:
|
|
44
|
-
info:
|
|
45
|
-
failValue:
|
|
43
|
+
key: "exchangeStatusValue",
|
|
44
|
+
info: "exchangeReason",
|
|
45
|
+
failValue: "失败"
|
|
46
46
|
},
|
|
47
47
|
ADJUST_WORK_ORDER_STATUS: {
|
|
48
48
|
options: [{
|
|
49
|
-
value:
|
|
50
|
-
label:
|
|
51
|
-
color:
|
|
49
|
+
value: "成功",
|
|
50
|
+
label: "成功",
|
|
51
|
+
color: "#52c41a"
|
|
52
52
|
}, {
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
55
|
-
color:
|
|
53
|
+
value: "失败",
|
|
54
|
+
label: "失败",
|
|
55
|
+
color: "#ff4d4f"
|
|
56
56
|
}],
|
|
57
|
-
key:
|
|
58
|
-
info:
|
|
59
|
-
failValue:
|
|
60
|
-
},
|
|
61
|
-
RETURN_GOODS_STATUS: {
|
|
62
|
-
options: [{
|
|
63
|
-
value: '成功',
|
|
64
|
-
label: '成功',
|
|
65
|
-
color: '#52c41a'
|
|
66
|
-
}, {
|
|
67
|
-
value: '失败',
|
|
68
|
-
label: '失败',
|
|
69
|
-
color: '#ff4d4f'
|
|
70
|
-
}],
|
|
71
|
-
key: 'returnGoodsStatusValue',
|
|
72
|
-
info: 'returnGoodsReason',
|
|
73
|
-
failValue: '失败'
|
|
57
|
+
key: "adjustWorkOrderStatusValue",
|
|
58
|
+
info: "adjustWorkOrderReason",
|
|
59
|
+
failValue: "失败"
|
|
74
60
|
}
|
|
75
61
|
};
|
|
76
62
|
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
@@ -107,7 +93,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
107
93
|
var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
|
|
108
94
|
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
109
95
|
return item.value === status;
|
|
110
|
-
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) ||
|
|
96
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
|
|
111
97
|
return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
112
98
|
id: _this.id,
|
|
113
99
|
label: _this.name,
|
|
@@ -115,7 +101,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
115
101
|
style: {
|
|
116
102
|
color: statusColor
|
|
117
103
|
}
|
|
118
|
-
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) ||
|
|
104
|
+
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
|
|
119
105
|
}) : null;
|
|
120
106
|
});
|
|
121
107
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -123,12 +109,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
123
109
|
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
124
110
|
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
125
111
|
return item.value === status;
|
|
126
|
-
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) ||
|
|
112
|
+
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
|
|
127
113
|
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
128
114
|
style: {
|
|
129
115
|
color: statusColor
|
|
130
116
|
}
|
|
131
|
-
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) ||
|
|
117
|
+
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
|
|
132
118
|
});
|
|
133
119
|
_defineProperty(this, "renderLog", function (r) {
|
|
134
120
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
@@ -139,7 +125,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
139
125
|
});
|
|
140
126
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
141
127
|
var _record;
|
|
142
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record :
|
|
128
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
143
129
|
});
|
|
144
130
|
_defineProperty(this, "filterConfig", function (item) {
|
|
145
131
|
return {
|
|
@@ -149,7 +135,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
149
135
|
// 过滤组件id
|
|
150
136
|
name: item.name,
|
|
151
137
|
// 过滤组件名称
|
|
152
|
-
filterComponentType:
|
|
138
|
+
filterComponentType: "MultipleSelect",
|
|
153
139
|
props: {
|
|
154
140
|
options: selectTypeMap[_this.type].options
|
|
155
141
|
},
|
|
@@ -172,7 +158,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
172
158
|
this.isCombinationComponent = false;
|
|
173
159
|
this.canSort = true;
|
|
174
160
|
this.children = [];
|
|
175
|
-
this.dataType =
|
|
161
|
+
this.dataType = "string";
|
|
176
162
|
this.options = selectTypeMap[options.type].options;
|
|
177
163
|
});
|
|
178
164
|
export default StatusSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId,
|
|
2
|
-
import { PickOption } from
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue |
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
|
|
2
|
+
import { PickOption } from "./type";
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => HandlerDeadLine | NodeDeadLine | NodeStayDuration | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,152 +1,153 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
5
|
-
case
|
|
5
|
+
case "PLATFORM_INPUT":
|
|
6
6
|
return new PlatForm();
|
|
7
|
-
case
|
|
7
|
+
case "SHOP_INPUT":
|
|
8
8
|
return new ShopInput(options);
|
|
9
|
-
case
|
|
9
|
+
case "OPERATOR_INPUT":
|
|
10
10
|
return new Submitter(options);
|
|
11
|
-
case
|
|
11
|
+
case "HANDLER_INPUT":
|
|
12
12
|
return new Handler(options);
|
|
13
|
-
case
|
|
13
|
+
case "COMPLETED_USER_INPUT":
|
|
14
14
|
return new CompletedUser(options);
|
|
15
|
-
case
|
|
15
|
+
case "INPUT":
|
|
16
16
|
return new BasicInput(options);
|
|
17
|
-
case
|
|
17
|
+
case "RADIO":
|
|
18
18
|
return new BasicRadio(options);
|
|
19
|
-
case
|
|
19
|
+
case "TEXTAREA":
|
|
20
20
|
return new BasicTextArea(options);
|
|
21
|
-
case
|
|
21
|
+
case "CHECKBOX":
|
|
22
22
|
return new BasicCheckbox(options);
|
|
23
|
-
case
|
|
23
|
+
case "DATETIME":
|
|
24
24
|
return new BasicDataTime(options);
|
|
25
|
-
case
|
|
26
|
-
case
|
|
25
|
+
case "SELECT":
|
|
26
|
+
case "BUYER_MESSAGE_NOTICE":
|
|
27
27
|
return new BasicSelect(options);
|
|
28
|
-
case
|
|
28
|
+
case "PICTURE":
|
|
29
29
|
return new BasicPicture(options);
|
|
30
|
-
case
|
|
30
|
+
case "BASIC_MULT_SELECT":
|
|
31
31
|
return new BasicMultSelect(options);
|
|
32
|
-
case
|
|
32
|
+
case "MULT_SELECT":
|
|
33
33
|
return new BasicCascader(options);
|
|
34
|
-
case
|
|
34
|
+
case "BASIC_ADDRESS":
|
|
35
35
|
return new BasicAddress(options);
|
|
36
|
-
case
|
|
36
|
+
case "BASIC_GRADE":
|
|
37
37
|
return new BasicGrade(options);
|
|
38
|
-
case
|
|
38
|
+
case "RATE":
|
|
39
39
|
return new BasicRate(options);
|
|
40
|
-
case
|
|
40
|
+
case "FILE":
|
|
41
41
|
return new BasicFile(options);
|
|
42
|
-
case
|
|
42
|
+
case "POSTING":
|
|
43
43
|
return new BasicPosting(options);
|
|
44
|
-
case
|
|
44
|
+
case "SHOP_NAME_INPUT":
|
|
45
45
|
return new ShopName(options);
|
|
46
|
-
case
|
|
46
|
+
case "TRADE_ID_INPUT":
|
|
47
47
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
48
|
-
case
|
|
48
|
+
case "BUYER_NICK_INPUT":
|
|
49
49
|
return new BuyerNick(options);
|
|
50
|
-
case
|
|
50
|
+
case "RECEIVER_NAME_INPUT":
|
|
51
51
|
return new ReceiverName(options);
|
|
52
|
-
case
|
|
52
|
+
case "RECEIVER_MOBILE_INPUT":
|
|
53
53
|
return new ReceiverMobile(options);
|
|
54
|
-
case
|
|
54
|
+
case "RECEIVER_ADDRESS_INPUT":
|
|
55
55
|
return new ReceiverAddress(options);
|
|
56
|
-
case
|
|
57
|
-
case
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
56
|
+
case "TRADE_CREATE_DATETIME":
|
|
57
|
+
case "TRADE_PAYMENT_DATETIME":
|
|
58
|
+
case "TRADE_DELIVERY_DATETIME":
|
|
59
|
+
case "TRADE_CLOSING_DATETIME":
|
|
60
|
+
case "BS_SIGNING_TIME":
|
|
61
|
+
case "BS_SEND_TIME":
|
|
62
|
+
case "BS_TRADE_PAYMENT_TIME":
|
|
63
63
|
return new TradeDateTime(options);
|
|
64
|
-
case
|
|
64
|
+
case "EXPRESS_LOGISTICS_SELECT":
|
|
65
65
|
return new Logistics(options);
|
|
66
|
-
case
|
|
66
|
+
case "RETURN_LOGISTICS_SELECT":
|
|
67
67
|
return new ReturnLogistics(options);
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case
|
|
68
|
+
case "ACTUAL_PAYMENT":
|
|
69
|
+
case "BS_NET_RECEIPTS":
|
|
70
|
+
case "BS_DEPOSIT":
|
|
71
|
+
case "BS_PACKAGE_WEIGHT":
|
|
72
72
|
return new ActualPayment(options);
|
|
73
|
-
case
|
|
73
|
+
case "REMARK_INPUT":
|
|
74
74
|
return new ERemark(options);
|
|
75
|
-
case
|
|
75
|
+
case "ITEM_SELECT":
|
|
76
76
|
return new ItemSelect(options);
|
|
77
|
-
case
|
|
77
|
+
case "ITEM_ID":
|
|
78
78
|
return new ItemId(options);
|
|
79
|
-
case
|
|
79
|
+
case "ITEM_ENCODE":
|
|
80
80
|
return new ItemEnCode(options);
|
|
81
|
-
case
|
|
81
|
+
case "ALI_PAY_INPUT":
|
|
82
82
|
return new AliPay(options);
|
|
83
|
-
case
|
|
83
|
+
case "ORDINARY_INVOICE":
|
|
84
84
|
return new Ordinary(options);
|
|
85
|
-
case
|
|
85
|
+
case "ITEM_SELECT_THIRD":
|
|
86
86
|
return new ThirdItemSelect(options);
|
|
87
|
-
case
|
|
87
|
+
case "ENTERPRISE_PAYMENT":
|
|
88
88
|
return new Payment(options);
|
|
89
|
-
case
|
|
89
|
+
case "SYSTEM_ORDER_NO":
|
|
90
90
|
return new SystemOrderNo(options);
|
|
91
|
-
case
|
|
91
|
+
case "LOGISTICS_INTERCEPTION":
|
|
92
92
|
return new LogisticsInterception(options);
|
|
93
|
-
case
|
|
93
|
+
case "LOGISTICS_TRAJECTORY":
|
|
94
94
|
return new LogisticsTrajectory(options);
|
|
95
|
-
case
|
|
95
|
+
case "WORK_ORDER_ID_INPUT":
|
|
96
96
|
return new WorkOrderId(options);
|
|
97
|
-
case
|
|
97
|
+
case "FLOW_STATUS_SELECT":
|
|
98
98
|
return new FlowStatusSelect(options);
|
|
99
|
-
case
|
|
99
|
+
case "COMPLETED_DATETIME":
|
|
100
100
|
return new CommonDataTime(options);
|
|
101
|
-
case
|
|
101
|
+
case "CREATED_DATETIME":
|
|
102
102
|
return new CommonDataTime(options);
|
|
103
|
-
case
|
|
103
|
+
case "UPDATE_DATETIME":
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case "TEMPLATE_ID_INPUT":
|
|
106
106
|
return new TemplateSelect(options);
|
|
107
|
-
case
|
|
108
|
-
case
|
|
109
|
-
case
|
|
107
|
+
case "JST_LOGISTICS":
|
|
108
|
+
case "BS_LOGISTICS":
|
|
109
|
+
case "REISSUE_LOGISTICS":
|
|
110
110
|
return new JstLogistics(options);
|
|
111
|
-
case
|
|
111
|
+
case "JST_ITEM_SELECT_THIRD":
|
|
112
112
|
return new JstItemSelect(options);
|
|
113
|
-
case
|
|
113
|
+
case "JST_SUPPLY":
|
|
114
114
|
return new JstSupply(options);
|
|
115
|
-
case
|
|
115
|
+
case "BS_SYSTEM_ORDER":
|
|
116
116
|
return new BsSystemOrder(options);
|
|
117
|
-
case
|
|
118
|
-
case
|
|
117
|
+
case "JST_SEND_GOOD":
|
|
118
|
+
case "BS_SEND_GOOD":
|
|
119
119
|
return new JstSendGood(options);
|
|
120
|
-
case
|
|
120
|
+
case "BS_POSTING":
|
|
121
121
|
return new BasicPosting(options);
|
|
122
|
-
case
|
|
122
|
+
case "BS_GOODS":
|
|
123
123
|
return new BsGoods(options);
|
|
124
|
-
case
|
|
124
|
+
case "BS_EXCHANGE_GOODS":
|
|
125
125
|
return new BsExchange(options);
|
|
126
|
-
case
|
|
126
|
+
case "BS_REISSUE_GOODS":
|
|
127
127
|
return new BsReissue(options);
|
|
128
|
-
case
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
case "BS_DELIVERY_NO":
|
|
129
|
+
case "RETURN_GOODS_TRADE_ID":
|
|
130
|
+
return new CommonSystemOrder(options);
|
|
131
|
+
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
131
132
|
return new FlowWorkOrderId(options);
|
|
132
|
-
case
|
|
133
|
+
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
133
134
|
return new FlowWorkOrderId(options);
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
case
|
|
137
|
-
case 'RETURN_GOODS_STATUS':
|
|
135
|
+
case "REISSUE_STATUS":
|
|
136
|
+
case "EXCHANGE_STATUS":
|
|
137
|
+
case "ADJUST_WORK_ORDER_STATUS":
|
|
138
138
|
return new StatusSelect(options);
|
|
139
|
-
case
|
|
140
|
-
|
|
141
|
-
case
|
|
139
|
+
case "RETURN_GOODS_STATUS":
|
|
140
|
+
return new CommonMultiStatus(options);
|
|
141
|
+
case "REISSUE_TRADE_ID":
|
|
142
|
+
case "EXCHANGE_TRADE_ID":
|
|
142
143
|
return new CommonTradeId(options);
|
|
143
|
-
case
|
|
144
|
+
case "NUMERICAL_CALCULATION":
|
|
144
145
|
return new Calculation(options);
|
|
145
|
-
case
|
|
146
|
+
case "NODE_DEAD_LINE_INPUT":
|
|
146
147
|
return new NodeDeadLine(options);
|
|
147
|
-
case
|
|
148
|
+
case "HANDLER_DEAD_LINE_INPUT":
|
|
148
149
|
return new HandlerDeadLine(options);
|
|
149
|
-
case
|
|
150
|
+
case "NODE_STAY_DURATION_INPUT":
|
|
150
151
|
return new NodeStayDuration(options);
|
|
151
152
|
default:
|
|
152
153
|
return new BasicInput(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
|
41
41
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
42
42
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
43
43
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
44
|
-
export { default as DeliveryNo } from "./components/BS/DeliveryNo";
|
|
45
44
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
46
45
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
47
46
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
@@ -56,6 +55,8 @@ export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
|
56
55
|
export { default as StatusSelect } from "./components/StatusSelect";
|
|
57
56
|
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
58
57
|
export { default as Calculation } from "./components/Calculation";
|
|
58
|
+
export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
|
|
59
|
+
export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
|
|
59
60
|
export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
60
61
|
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
61
62
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
package/dist/esm/index.js
CHANGED
|
@@ -41,7 +41,6 @@ export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
|
41
41
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
42
42
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
43
43
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
44
|
-
export { default as DeliveryNo } from "./components/BS/DeliveryNo";
|
|
45
44
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
46
45
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
47
46
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
@@ -56,6 +55,8 @@ export { default as FlowWorkOrderId } from "./components/FlowWorkOrderId";
|
|
|
56
55
|
export { default as StatusSelect } from "./components/StatusSelect";
|
|
57
56
|
export { default as CommonTradeId } from "./components/CommonTradeId";
|
|
58
57
|
export { default as Calculation } from "./components/Calculation";
|
|
58
|
+
export { default as CommonSystemOrder } from "./components/CommonSystemOrder";
|
|
59
|
+
export { default as CommonMultiStatus } from "./components/CommonMultiStatus";
|
|
59
60
|
export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
60
61
|
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
61
62
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.17-alpha.
|
|
3
|
+
"version": "0.8.17-alpha.28",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.8.17-alpha.28",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.27"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a61c96c5e27753231614bd31327c7a2eef131679"
|
|
44
44
|
}
|