@kmkf-fe-packages/services-components 1.17.8-beta.3 → 1.17.8-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/BS/BsLogistics/index.js +13 -31
- package/dist/esm/components/BS/BsSystemOrder/index.js +93 -22
- package/dist/esm/components/BsE3/BsGoods/index.d.ts +33 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +123 -0
- package/dist/esm/components/Common/index.js +45 -2
- package/dist/esm/components/CommonHeaderGood/index.js +161 -0
- package/dist/esm/components/EItemEnCode/index.js +3 -5
- package/dist/esm/components/Input/index.js +13 -10
- package/dist/esm/components/JST/JstItemSelect/index.d.ts +7 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +21 -5
- package/dist/esm/components/JST/JstLogistics/index.js +13 -31
- package/dist/esm/components/JST/JstSendGood/index.d.ts +1 -3
- package/dist/esm/components/JST/JstSendGood/index.js +7 -21
- package/dist/esm/components/JST/JstSupply/index.js +12 -31
- package/dist/esm/components/KmErpSendGood/index.js +11 -26
- package/dist/esm/components/MsgStatus/index.d.ts +1 -0
- package/dist/esm/components/MsgStatus/index.js +6 -3
- package/dist/esm/components/SubForm/index.js +16 -2
- package/dist/esm/components/ThirdItemSelect/index.js +11 -16
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +4 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +2 -2
- package/package.json +4 -4
|
@@ -79,37 +79,19 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
79
79
|
}) : null;
|
|
80
80
|
});
|
|
81
81
|
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
if (type === "logisticsCompany") {
|
|
96
|
-
var _typeMap$options$type3;
|
|
97
|
-
return [{
|
|
98
|
-
name: "物流公司",
|
|
99
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
100
|
-
options: _this.expressDateInstance.getExpressData(),
|
|
101
|
-
dataType: "string"
|
|
102
|
-
}];
|
|
103
|
-
}
|
|
104
|
-
if (type === "logisticsCode") {
|
|
105
|
-
var _typeMap$options$type4;
|
|
106
|
-
return [{
|
|
107
|
-
name: "物流单号",
|
|
108
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
109
|
-
dataType: "string"
|
|
110
|
-
}];
|
|
111
|
-
}
|
|
112
|
-
return [];
|
|
82
|
+
var _typeMap$options$type, _typeMap$options$type2;
|
|
83
|
+
return [{
|
|
84
|
+
name: "物流公司",
|
|
85
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
86
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
87
|
+
dataType: "arrayObject",
|
|
88
|
+
disabled: type === 'logisticsCode'
|
|
89
|
+
}, {
|
|
90
|
+
name: "物流单号",
|
|
91
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
92
|
+
dataType: "arrayObject",
|
|
93
|
+
disabled: type === 'logisticsCompany'
|
|
94
|
+
}];
|
|
113
95
|
});
|
|
114
96
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
115
97
|
var _typeMap$_this$type;
|
|
@@ -20,27 +20,104 @@ var typeMap = {
|
|
|
20
20
|
BS_SYSTEM_ORDER: {
|
|
21
21
|
key: 'bsSystemShowOrder',
|
|
22
22
|
name: 'bs',
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
selectId: 'bsSystemSelectIds',
|
|
24
|
+
columns: [{
|
|
25
|
+
title: "单据类型",
|
|
26
|
+
dataIndex: "billType",
|
|
27
|
+
width: 150
|
|
28
|
+
}, {
|
|
29
|
+
title: "系统订单号",
|
|
30
|
+
dataIndex: "billNo",
|
|
31
|
+
width: 150
|
|
32
|
+
}, {
|
|
33
|
+
title: "标签",
|
|
34
|
+
dataIndex: "billTag",
|
|
35
|
+
width: 150
|
|
36
|
+
}]
|
|
26
37
|
},
|
|
27
38
|
WLN_SYSTEM_ORDER: {
|
|
28
39
|
key: 'wlnSystemShowOrder',
|
|
29
40
|
name: '万里牛',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
selectId: 'wlnSystemSelectIds',
|
|
42
|
+
columns: [{
|
|
43
|
+
title: "订单类型",
|
|
44
|
+
dataIndex: "billType",
|
|
45
|
+
width: 150
|
|
46
|
+
}, {
|
|
47
|
+
title: "系统订单号",
|
|
48
|
+
dataIndex: "billNo",
|
|
49
|
+
width: 150
|
|
50
|
+
}, {
|
|
51
|
+
title: "标记",
|
|
52
|
+
dataIndex: "billTag",
|
|
53
|
+
width: 150
|
|
54
|
+
}]
|
|
33
55
|
},
|
|
34
56
|
WDT_SYSTEM_ORDER: {
|
|
35
57
|
key: "wdtSystemShowOrder",
|
|
36
58
|
name: "旺店通",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
selectId: "wdtSystemSelectIds",
|
|
60
|
+
columns: [{
|
|
61
|
+
title: "订单类型",
|
|
62
|
+
dataIndex: "billType",
|
|
63
|
+
width: 150
|
|
64
|
+
}, {
|
|
65
|
+
title: "系统订单号",
|
|
66
|
+
dataIndex: "billNo",
|
|
67
|
+
width: 150
|
|
68
|
+
}, {
|
|
69
|
+
title: "订单标签",
|
|
70
|
+
dataIndex: "billTag",
|
|
71
|
+
width: 150
|
|
72
|
+
}]
|
|
73
|
+
},
|
|
74
|
+
BS_E3_SYSTEM_ORDER: {
|
|
75
|
+
key: "bsE3SystemShowOrder",
|
|
76
|
+
name: "百胜",
|
|
77
|
+
selectId: "bsE3SystemSelectIds",
|
|
78
|
+
columns: [{
|
|
79
|
+
title: "系统订单号",
|
|
80
|
+
dataIndex: "orderSn",
|
|
81
|
+
width: 150
|
|
82
|
+
}, {
|
|
83
|
+
title: "订单状态",
|
|
84
|
+
dataIndex: "orderStatus",
|
|
85
|
+
width: 100
|
|
86
|
+
}, {
|
|
87
|
+
title: "是否被拆分",
|
|
88
|
+
dataIndex: "isSplit",
|
|
89
|
+
width: 100
|
|
90
|
+
}, {
|
|
91
|
+
title: "是否拆分子单",
|
|
92
|
+
dataIndex: "isSplitNew",
|
|
93
|
+
width: 100
|
|
94
|
+
}, {
|
|
95
|
+
title: "是否被合并",
|
|
96
|
+
dataIndex: "isCombine",
|
|
97
|
+
width: 100
|
|
98
|
+
}, {
|
|
99
|
+
title: "是否合并新单",
|
|
100
|
+
dataIndex: "isCombineNew",
|
|
101
|
+
width: 100
|
|
102
|
+
}, {
|
|
103
|
+
title: "是否复制单",
|
|
104
|
+
dataIndex: "isCopy",
|
|
105
|
+
width: 100
|
|
106
|
+
}, {
|
|
107
|
+
title: "是否换货单",
|
|
108
|
+
dataIndex: "isHH",
|
|
109
|
+
width: 100
|
|
110
|
+
}, {
|
|
111
|
+
title: "订单备注",
|
|
112
|
+
dataIndex: "orderMsg",
|
|
113
|
+
width: 150
|
|
114
|
+
}]
|
|
40
115
|
}
|
|
41
116
|
};
|
|
42
117
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
43
118
|
var _this = this,
|
|
119
|
+
_typeMap$options$type,
|
|
120
|
+
_typeMap$options$type2,
|
|
44
121
|
_this$componentConfig3;
|
|
45
122
|
_classCallCheck(this, BsSystemOrder);
|
|
46
123
|
_defineProperty(this, "name", void 0);
|
|
@@ -122,19 +199,13 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
122
199
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
123
200
|
this.isCombinationComponent = true;
|
|
124
201
|
this.canSort = false;
|
|
125
|
-
this.children = [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
width: 150
|
|
133
|
-
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
134
|
-
name: typeMap[options.type].tagName,
|
|
135
|
-
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billTag"),
|
|
136
|
-
width: 150
|
|
137
|
-
}))];
|
|
202
|
+
this.children = ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : (_typeMap$options$type2 = _typeMap$options$type.columns) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.map(function (column) {
|
|
203
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
204
|
+
name: column.title,
|
|
205
|
+
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex),
|
|
206
|
+
width: column.width || 150
|
|
207
|
+
}));
|
|
208
|
+
})) || [];
|
|
138
209
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
139
210
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
140
211
|
required: true,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
4
|
+
declare class BSE3Goods implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
14
|
+
canSort: boolean;
|
|
15
|
+
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
17
|
+
bsE3Goods: CommonHeaderGoods;
|
|
18
|
+
constructor(options: PickOption);
|
|
19
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
+
renderPc: () => null;
|
|
21
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
+
getComponentValue: (r: Record) => any;
|
|
23
|
+
renderExport: () => null;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
|
+
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "like";
|
|
27
|
+
type: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "Input";
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
export default BSE3Goods;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import { BsGoodsTable } from "../../Common";
|
|
14
|
+
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
15
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
+
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
|
+
import { SYMBOL } from "../../../constant";
|
|
19
|
+
var BSE3Goods = /*#__PURE__*/_createClass(function BSE3Goods(options) {
|
|
20
|
+
var _this = this,
|
|
21
|
+
_this$componentConfig6;
|
|
22
|
+
_classCallCheck(this, BSE3Goods);
|
|
23
|
+
_defineProperty(this, "name", void 0);
|
|
24
|
+
_defineProperty(this, "id", void 0);
|
|
25
|
+
_defineProperty(this, "sortField", void 0);
|
|
26
|
+
_defineProperty(this, "type", void 0);
|
|
27
|
+
_defineProperty(this, "rules", void 0);
|
|
28
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
29
|
+
_defineProperty(this, "effects", void 0);
|
|
30
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "formField", void 0);
|
|
32
|
+
_defineProperty(this, "canSort", void 0);
|
|
33
|
+
_defineProperty(this, "children", void 0);
|
|
34
|
+
_defineProperty(this, "dataType", void 0);
|
|
35
|
+
_defineProperty(this, "bsE3Goods", void 0);
|
|
36
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
37
|
+
var _record, _this$componentConfig;
|
|
38
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
39
|
+
id: _this.id,
|
|
40
|
+
label: _this.name,
|
|
41
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
42
|
+
type: _this.type,
|
|
43
|
+
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsE3Goods) || [],
|
|
44
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
45
|
+
})
|
|
46
|
+
})) : null;
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderPc", function () {
|
|
49
|
+
return null;
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
+
var _this$componentConfig2;
|
|
53
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")])) return null;
|
|
54
|
+
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
+
type: _this.type,
|
|
56
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")]) || [],
|
|
57
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
61
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")];
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "renderExport", function () {
|
|
64
|
+
return null;
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "editRender", function (p) {
|
|
67
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
|
|
68
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
69
|
+
title: _this.name,
|
|
70
|
+
name: _this.id,
|
|
71
|
+
rules: _this.rules,
|
|
72
|
+
required: false,
|
|
73
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
76
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
77
|
+
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
78
|
+
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
|
+
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
80
|
+
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
81
|
+
type: _this.type,
|
|
82
|
+
width: "90%"
|
|
83
|
+
}))
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
87
|
+
return [{
|
|
88
|
+
searchDefaultConditions: SYMBOL.like,
|
|
89
|
+
type: item.type,
|
|
90
|
+
id: "".concat(item.id, "_bsE3Goods"),
|
|
91
|
+
// 过滤组件id
|
|
92
|
+
name: item.name,
|
|
93
|
+
// 过滤组件名称
|
|
94
|
+
filterComponentType: "Input"
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
this.name = options.name;
|
|
98
|
+
this.id = options.id;
|
|
99
|
+
this.sortField = "".concat(options.id, "_bsE3Goods");
|
|
100
|
+
this.formField = "".concat(options.id, "_bsE3Goods");
|
|
101
|
+
this.type = options.type;
|
|
102
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
|
+
this.isCombinationComponent = true;
|
|
104
|
+
this.canSort = false;
|
|
105
|
+
this.bsE3Goods = new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
106
|
+
id: "".concat(options.id, "_bsE3Goods"),
|
|
107
|
+
name: "商品信息"
|
|
108
|
+
}));
|
|
109
|
+
this.children = [this.bsE3Goods];
|
|
110
|
+
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
111
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
112
|
+
required: true,
|
|
113
|
+
validator: function validator(_, value) {
|
|
114
|
+
var _value$bsE3Goods;
|
|
115
|
+
if (!value || !(value !== null && value !== void 0 && (_value$bsE3Goods = value.bsE3Goods) !== null && _value$bsE3Goods !== void 0 && _value$bsE3Goods.length)) {
|
|
116
|
+
return Promise.reject(new Error("请选择百胜E3商品"));
|
|
117
|
+
}
|
|
118
|
+
return Promise.resolve();
|
|
119
|
+
}
|
|
120
|
+
}] : [];
|
|
121
|
+
this.dataType = "object";
|
|
122
|
+
});
|
|
123
|
+
export default BSE3Goods;
|
|
@@ -1006,12 +1006,55 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1006
1006
|
}, {
|
|
1007
1007
|
dataIndex: 'billTag',
|
|
1008
1008
|
title: '订单标签'
|
|
1009
|
+
}],
|
|
1010
|
+
BS_E3_BS_SYSTEM_ORDER: [{
|
|
1011
|
+
title: "系统订单号",
|
|
1012
|
+
dataIndex: "orderSn",
|
|
1013
|
+
width: 150
|
|
1014
|
+
}, {
|
|
1015
|
+
title: "订单状态",
|
|
1016
|
+
dataIndex: "orderStatus",
|
|
1017
|
+
width: 100
|
|
1018
|
+
}, {
|
|
1019
|
+
title: "是否被拆分",
|
|
1020
|
+
dataIndex: "isSplit",
|
|
1021
|
+
width: 100
|
|
1022
|
+
}, {
|
|
1023
|
+
title: "是否拆分子单",
|
|
1024
|
+
dataIndex: "isSplitNew",
|
|
1025
|
+
width: 100
|
|
1026
|
+
}, {
|
|
1027
|
+
title: "是否被合并",
|
|
1028
|
+
dataIndex: "isCombine",
|
|
1029
|
+
width: 100
|
|
1030
|
+
}, {
|
|
1031
|
+
title: "是否合并新单",
|
|
1032
|
+
dataIndex: "isCombineNew",
|
|
1033
|
+
width: 100
|
|
1034
|
+
}, {
|
|
1035
|
+
title: "是否复制单",
|
|
1036
|
+
dataIndex: "isCopy",
|
|
1037
|
+
width: 100
|
|
1038
|
+
}, {
|
|
1039
|
+
title: "是否换货单",
|
|
1040
|
+
dataIndex: "isHH",
|
|
1041
|
+
width: 100
|
|
1042
|
+
}, {
|
|
1043
|
+
title: "订单备注",
|
|
1044
|
+
dataIndex: "orderMsg",
|
|
1045
|
+
width: 150
|
|
1009
1046
|
}]
|
|
1010
1047
|
};
|
|
1048
|
+
var rowKeyMap = {
|
|
1049
|
+
BS_SYSTEM_ORDER: 'billNo',
|
|
1050
|
+
WLN_SYSTEM_ORDER: 'billNo',
|
|
1051
|
+
WDT_SYSTEM_ORDER: 'billNo',
|
|
1052
|
+
BS_E3_BS_SYSTEM_ORDER: 'orderSn'
|
|
1053
|
+
};
|
|
1011
1054
|
var rowSelection = {
|
|
1012
1055
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
1013
1056
|
if (next.select) {
|
|
1014
|
-
prv.push(next
|
|
1057
|
+
prv.push(next[rowKeyMap[type]] || 'billNo');
|
|
1015
1058
|
}
|
|
1016
1059
|
return prv;
|
|
1017
1060
|
}, []),
|
|
@@ -1027,7 +1070,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1027
1070
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
1028
1071
|
columns: columnMap[type] || [],
|
|
1029
1072
|
rowSelection: rowSelection,
|
|
1030
|
-
rowKey: 'billNo',
|
|
1073
|
+
rowKey: rowKeyMap[type] || 'billNo',
|
|
1031
1074
|
size: "small",
|
|
1032
1075
|
pagination: false,
|
|
1033
1076
|
scroll: {
|
|
@@ -286,6 +286,167 @@ var GoodHeaderMap = {
|
|
|
286
286
|
giftType: "赠品方式"
|
|
287
287
|
},
|
|
288
288
|
moneyKey: "exchangePrice"
|
|
289
|
+
},
|
|
290
|
+
"BS_E3_GOODS": {
|
|
291
|
+
headerMap: {
|
|
292
|
+
sku: {
|
|
293
|
+
component: BsHeaderChild,
|
|
294
|
+
name: "SKU",
|
|
295
|
+
key: "sku",
|
|
296
|
+
width: 140
|
|
297
|
+
},
|
|
298
|
+
skuId: {
|
|
299
|
+
component: BsHeaderChild,
|
|
300
|
+
name: "SKU ID",
|
|
301
|
+
key: "skuId",
|
|
302
|
+
width: 140
|
|
303
|
+
},
|
|
304
|
+
goodsName: {
|
|
305
|
+
component: BsHeaderChild,
|
|
306
|
+
name: "商品名称",
|
|
307
|
+
key: "goodsName",
|
|
308
|
+
width: 100
|
|
309
|
+
},
|
|
310
|
+
goodsSname: {
|
|
311
|
+
component: BsHeaderChild,
|
|
312
|
+
name: "商品简称",
|
|
313
|
+
key: "goodsSname",
|
|
314
|
+
width: 70
|
|
315
|
+
},
|
|
316
|
+
picPath: {
|
|
317
|
+
component: BsHeaderChild,
|
|
318
|
+
name: "商品图片",
|
|
319
|
+
key: "picPath",
|
|
320
|
+
width: 80
|
|
321
|
+
},
|
|
322
|
+
goodsSn: {
|
|
323
|
+
component: BsHeaderChild,
|
|
324
|
+
name: "货号",
|
|
325
|
+
key: "goodsSn",
|
|
326
|
+
width: 140
|
|
327
|
+
},
|
|
328
|
+
goodsId: {
|
|
329
|
+
component: BsHeaderChild,
|
|
330
|
+
name: "货号ID",
|
|
331
|
+
key: "goodsId",
|
|
332
|
+
width: 100
|
|
333
|
+
},
|
|
334
|
+
colorName: {
|
|
335
|
+
component: BsHeaderChild,
|
|
336
|
+
name: "颜色名称",
|
|
337
|
+
key: "colorName",
|
|
338
|
+
width: 80
|
|
339
|
+
},
|
|
340
|
+
colorCode: {
|
|
341
|
+
component: BsHeaderChild,
|
|
342
|
+
name: "颜色代码",
|
|
343
|
+
key: "colorCode",
|
|
344
|
+
width: 80
|
|
345
|
+
},
|
|
346
|
+
sizeName: {
|
|
347
|
+
component: BsHeaderChild,
|
|
348
|
+
name: "尺码名称",
|
|
349
|
+
key: "sizeName",
|
|
350
|
+
width: 80
|
|
351
|
+
},
|
|
352
|
+
sizeCode: {
|
|
353
|
+
component: BsHeaderChild,
|
|
354
|
+
name: "尺码代码",
|
|
355
|
+
key: "sizeCode",
|
|
356
|
+
width: 80
|
|
357
|
+
},
|
|
358
|
+
brandName: {
|
|
359
|
+
component: BsHeaderChild,
|
|
360
|
+
name: "品牌名称",
|
|
361
|
+
key: "brandName",
|
|
362
|
+
width: 80
|
|
363
|
+
},
|
|
364
|
+
goodsNumber: {
|
|
365
|
+
component: BsHeaderChild,
|
|
366
|
+
name: "商品数量",
|
|
367
|
+
key: "goodsNumber",
|
|
368
|
+
width: 80
|
|
369
|
+
},
|
|
370
|
+
goodsPrice: {
|
|
371
|
+
component: BsHeaderChild,
|
|
372
|
+
name: "商品单价",
|
|
373
|
+
key: "goodsPrice",
|
|
374
|
+
width: 80
|
|
375
|
+
},
|
|
376
|
+
shopPrice: {
|
|
377
|
+
component: BsHeaderChild,
|
|
378
|
+
name: "商品网店售价",
|
|
379
|
+
key: "shopPrice",
|
|
380
|
+
width: 80
|
|
381
|
+
},
|
|
382
|
+
sharePrice: {
|
|
383
|
+
component: BsHeaderChild,
|
|
384
|
+
name: "分摊价",
|
|
385
|
+
key: "sharePrice",
|
|
386
|
+
width: 80
|
|
387
|
+
},
|
|
388
|
+
sharePayment: {
|
|
389
|
+
component: BsHeaderChild,
|
|
390
|
+
name: "分摊实付金额",
|
|
391
|
+
key: "sharePayment",
|
|
392
|
+
width: 80
|
|
393
|
+
},
|
|
394
|
+
payment: {
|
|
395
|
+
component: BsHeaderChild,
|
|
396
|
+
name: "实付金额",
|
|
397
|
+
key: "payment",
|
|
398
|
+
width: 80
|
|
399
|
+
},
|
|
400
|
+
tcSku: {
|
|
401
|
+
component: BsHeaderChild,
|
|
402
|
+
name: "套餐SKU",
|
|
403
|
+
key: "tcSku",
|
|
404
|
+
width: 120
|
|
405
|
+
},
|
|
406
|
+
tcGoodsNumber: {
|
|
407
|
+
component: BsHeaderChild,
|
|
408
|
+
name: "套餐套数",
|
|
409
|
+
key: "tcGoodsNumber",
|
|
410
|
+
width: 120
|
|
411
|
+
},
|
|
412
|
+
taocanSingleSl: {
|
|
413
|
+
component: BsHeaderChild,
|
|
414
|
+
name: "单个套餐数量",
|
|
415
|
+
key: "taocanSingleSl",
|
|
416
|
+
width: 80
|
|
417
|
+
},
|
|
418
|
+
isGift: {
|
|
419
|
+
component: BsHeaderChild,
|
|
420
|
+
name: "是否赠品",
|
|
421
|
+
key: "isGift",
|
|
422
|
+
width: 80
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
itemKey: {
|
|
426
|
+
sku: "SKU",
|
|
427
|
+
skuId: "SKU ID",
|
|
428
|
+
goodsName: "商品名称",
|
|
429
|
+
goodsSname: "商品简称",
|
|
430
|
+
picPath: "商品图片",
|
|
431
|
+
goodsSn: "货号",
|
|
432
|
+
goodsId: "货号ID",
|
|
433
|
+
colorName: "颜色名称",
|
|
434
|
+
colorCode: "颜色代码",
|
|
435
|
+
sizeName: "尺码名称",
|
|
436
|
+
sizeCode: "尺码代码",
|
|
437
|
+
brandName: "品牌名称",
|
|
438
|
+
goodsNumber: "商品数量",
|
|
439
|
+
goodsPrice: "商品单价",
|
|
440
|
+
shopPrice: "商品网店售价",
|
|
441
|
+
sharePrice: "分摊价",
|
|
442
|
+
sharePayment: "分摊实付金额",
|
|
443
|
+
payment: "实付金额",
|
|
444
|
+
tcSku: "套餐SKU",
|
|
445
|
+
tcGoodsNumber: "套餐套数",
|
|
446
|
+
taocanSingleSl: "单个套餐数量",
|
|
447
|
+
isGift: "是否赠品"
|
|
448
|
+
},
|
|
449
|
+
moneyKey: "payment"
|
|
289
450
|
}
|
|
290
451
|
};
|
|
291
452
|
GoodHeaderMap['WDT_REISSUE_GOODS'] = GoodHeaderMap['WDT_GOODS'];
|
|
@@ -38,7 +38,6 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
38
38
|
_defineProperty(this, "platform", void 0);
|
|
39
39
|
_defineProperty(this, "sortChildField", void 0);
|
|
40
40
|
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
-
var _this$showHeader, _this$showHeader$filt;
|
|
42
41
|
var mapping = {
|
|
43
42
|
title: '商品名称',
|
|
44
43
|
outerId: '商品编码',
|
|
@@ -47,13 +46,12 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
47
46
|
outerSkuId: 'sku编码',
|
|
48
47
|
propertiesName: 'sku信息'
|
|
49
48
|
};
|
|
50
|
-
return (
|
|
51
|
-
return !!mapping[item];
|
|
52
|
-
})) === null || _this$showHeader$filt === void 0 ? void 0 : _this$showHeader$filt.map(function (item) {
|
|
49
|
+
return Object.keys(mapping).map(function (item) {
|
|
53
50
|
return {
|
|
54
51
|
name: mapping[item],
|
|
55
52
|
key: "".concat(_this.id, "_").concat(item),
|
|
56
|
-
dataType: "
|
|
53
|
+
dataType: "arrayObject",
|
|
54
|
+
disabled: !_this.showHeader.includes(item)
|
|
57
55
|
};
|
|
58
56
|
});
|
|
59
57
|
});
|
|
@@ -110,7 +110,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
110
110
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
111
111
|
this.rules = [{
|
|
112
112
|
validator: function validator(_, value) {
|
|
113
|
-
var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9, _this$componentConfig10;
|
|
113
|
+
var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11;
|
|
114
114
|
if (!value) {
|
|
115
115
|
return Promise.resolve();
|
|
116
116
|
}
|
|
@@ -127,11 +127,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
127
127
|
if (testList.length && !isTest) {
|
|
128
128
|
return Promise.reject(new Error("请填写正确的格式"));
|
|
129
129
|
}
|
|
130
|
-
if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 &&
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.isNumber && value > Number.MAX_SAFE_INTEGER) {
|
|
131
|
+
return Promise.reject(new Error("输入数值超出最大数字上限,请使用文本框替代当前数字输入框组件"));
|
|
132
|
+
}
|
|
133
|
+
if ((_this$componentConfig10 = _this.componentConfig) !== null && _this$componentConfig10 !== void 0 && (_this$componentConfig11 = _this$componentConfig10.rulesOptions) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.length) {
|
|
134
|
+
var _this$componentConfig12;
|
|
135
|
+
var rulesList = (_this$componentConfig12 = _this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.rulesOptions.filter(function (item) {
|
|
136
|
+
var _this$componentConfig13;
|
|
137
|
+
return (((_this$componentConfig13 = _this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : _this$componentConfig13.selectRules) || []).includes(item.id);
|
|
135
138
|
});
|
|
136
139
|
if (!rulesList.length) {
|
|
137
140
|
return Promise.resolve();
|
|
@@ -154,8 +157,8 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
154
157
|
validateTrigger: "onBlur",
|
|
155
158
|
validator: function () {
|
|
156
159
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
157
|
-
var _this$
|
|
158
|
-
var _resultList$, params, _yield$replaceCheck, resultList, _this$
|
|
160
|
+
var _this$componentConfig14;
|
|
161
|
+
var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig15, _this$componentConfig16, _this$componentConfig17, messageMap;
|
|
159
162
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
160
163
|
while (1) switch (_context.prev = _context.next) {
|
|
161
164
|
case 0:
|
|
@@ -165,7 +168,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
165
168
|
}
|
|
166
169
|
return _context.abrupt("return", Promise.resolve());
|
|
167
170
|
case 2:
|
|
168
|
-
if (!((_this$
|
|
171
|
+
if (!((_this$componentConfig14 = _this.componentConfig) !== null && _this$componentConfig14 !== void 0 && _this$componentConfig14.replaceWarn)) {
|
|
169
172
|
_context.next = 11;
|
|
170
173
|
break;
|
|
171
174
|
}
|
|
@@ -192,7 +195,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
192
195
|
currFlow: "数据已存在本模版中,不能重复提交",
|
|
193
196
|
allWorkOrder: "数据已存在其他模版中,不能重复提交"
|
|
194
197
|
};
|
|
195
|
-
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$
|
|
198
|
+
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig15 = (_this$componentConfig16 = _this.componentConfig) === null || _this$componentConfig16 === void 0 ? void 0 : (_this$componentConfig17 = _this$componentConfig16.repeatConfig) === null || _this$componentConfig17 === void 0 ? void 0 : _this$componentConfig17.repeatRange) !== null && _this$componentConfig15 !== void 0 ? _this$componentConfig15 : ""] || "内容已存在,不能重复提交")));
|
|
196
199
|
case 11:
|
|
197
200
|
case "end":
|
|
198
201
|
return _context.stop();
|
|
@@ -15,6 +15,12 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
sortChildField: {
|
|
19
|
+
name: string;
|
|
20
|
+
key: string;
|
|
21
|
+
dataType: string;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}[];
|
|
18
24
|
constructor(options: PickOption);
|
|
19
25
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
20
26
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -22,6 +28,7 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
22
28
|
getComponentValue: (r: Record) => any;
|
|
23
29
|
renderExport: (value: any, record: any) => any;
|
|
24
30
|
editRender: (p: any) => React.JSX.Element;
|
|
31
|
+
getSortChildFields: () => any;
|
|
25
32
|
filterConfig: (item: ColumnConfig) => {
|
|
26
33
|
searchDefaultConditions: "like";
|
|
27
34
|
type: string;
|
|
@@ -16,7 +16,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$
|
|
19
|
+
_this$componentConfig5;
|
|
20
20
|
_classCallCheck(this, JstItemSelect);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
@@ -31,6 +31,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
31
31
|
_defineProperty(this, "canSort", void 0);
|
|
32
32
|
_defineProperty(this, "children", void 0);
|
|
33
33
|
_defineProperty(this, "dataType", void 0);
|
|
34
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
34
35
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
36
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
37
|
id: _this.id,
|
|
@@ -82,6 +83,20 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
82
83
|
}))
|
|
83
84
|
});
|
|
84
85
|
});
|
|
86
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
87
|
+
var _this$componentConfig3, _this$componentConfig4;
|
|
88
|
+
return [{
|
|
89
|
+
name: "jst供应商名称",
|
|
90
|
+
key: "".concat(_this.id, "_supplierName"),
|
|
91
|
+
dataType: "arrayObject",
|
|
92
|
+
disabled: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.enableSupplierName)
|
|
93
|
+
}, {
|
|
94
|
+
name: "jst供应商编码",
|
|
95
|
+
key: "".concat(_this.id, "_itemId"),
|
|
96
|
+
dataType: "arrayObject",
|
|
97
|
+
disabled: !((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableItemId)
|
|
98
|
+
}];
|
|
99
|
+
});
|
|
85
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
86
101
|
return [{
|
|
87
102
|
searchDefaultConditions: SYMBOL.like,
|
|
@@ -127,23 +142,23 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
127
142
|
this.canSort = false;
|
|
128
143
|
this.children = [];
|
|
129
144
|
this.dataType = "object";
|
|
130
|
-
this.rules = (_this$
|
|
145
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
131
146
|
required: true,
|
|
132
147
|
validator: function validator(_, value) {
|
|
133
|
-
var _this$
|
|
148
|
+
var _this$componentConfig6, _this$componentConfig7;
|
|
134
149
|
if (!value || !value.length) {
|
|
135
150
|
return Promise.reject(new Error("请选择宝贝"));
|
|
136
151
|
}
|
|
137
152
|
var hasNotId = (value || []).some(function (item) {
|
|
138
153
|
return !item.itemId;
|
|
139
154
|
});
|
|
140
|
-
if ((_this$
|
|
155
|
+
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.enableItemId && hasNotId) {
|
|
141
156
|
return Promise.reject(new Error("请输入供应商编码"));
|
|
142
157
|
}
|
|
143
158
|
var hasNotName = (value || []).some(function (item) {
|
|
144
159
|
return !item.supplierName;
|
|
145
160
|
});
|
|
146
|
-
if ((_this$
|
|
161
|
+
if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.enableSupplierName && hasNotName) {
|
|
147
162
|
return Promise.reject(new Error("请输入供应商名称"));
|
|
148
163
|
}
|
|
149
164
|
return Promise.resolve();
|
|
@@ -151,5 +166,6 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
151
166
|
}] : [];
|
|
152
167
|
this.align = "left";
|
|
153
168
|
this.expressDateInstance = ExpressData.getInstance();
|
|
169
|
+
this.sortChildField = this.getSortChildFields();
|
|
154
170
|
});
|
|
155
171
|
export default JstItemSelect;
|
|
@@ -52,37 +52,19 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
52
52
|
_defineProperty(this, "children", void 0);
|
|
53
53
|
_defineProperty(this, "dataType", void 0);
|
|
54
54
|
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
if (type === "logisticsCompany") {
|
|
69
|
-
var _typeMap$options$type3;
|
|
70
|
-
return [{
|
|
71
|
-
name: "物流公司",
|
|
72
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.company),
|
|
73
|
-
options: _this.expressDateInstance.getExpressData(),
|
|
74
|
-
dataType: "string"
|
|
75
|
-
}];
|
|
76
|
-
}
|
|
77
|
-
if (type === "logisticsCode") {
|
|
78
|
-
var _typeMap$options$type4;
|
|
79
|
-
return [{
|
|
80
|
-
name: "物流单号",
|
|
81
|
-
key: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.code),
|
|
82
|
-
dataType: "string"
|
|
83
|
-
}];
|
|
84
|
-
}
|
|
85
|
-
return [];
|
|
55
|
+
var _typeMap$options$type, _typeMap$options$type2;
|
|
56
|
+
return [{
|
|
57
|
+
name: "物流公司",
|
|
58
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
|
|
59
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
60
|
+
dataType: "string",
|
|
61
|
+
disabled: type === "logisticsCode"
|
|
62
|
+
}, {
|
|
63
|
+
name: "物流单号",
|
|
64
|
+
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
|
|
65
|
+
dataType: "string",
|
|
66
|
+
disabled: type === "logisticsCompany"
|
|
67
|
+
}];
|
|
86
68
|
});
|
|
87
69
|
_defineProperty(this, "renderClient", function (record) {
|
|
88
70
|
var _this$componentConfig;
|
|
@@ -19,6 +19,7 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
19
19
|
canSort: boolean;
|
|
20
20
|
children: ComponentInterface[];
|
|
21
21
|
dataType: ComponentInterface["dataType"];
|
|
22
|
+
format: ComponentInterface["format"];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
|
|
24
25
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -46,8 +47,5 @@ declare class JstSendGood implements ComponentInterface {
|
|
|
46
47
|
filterFn: (value: string) => (i: Record) => any;
|
|
47
48
|
props?: undefined;
|
|
48
49
|
})[];
|
|
49
|
-
formDataTransform: (v: Array<{
|
|
50
|
-
sendName: string;
|
|
51
|
-
}>) => string[];
|
|
52
50
|
}
|
|
53
51
|
export default JstSendGood;
|
|
@@ -60,31 +60,25 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
60
60
|
_defineProperty(this, "canSort", void 0);
|
|
61
61
|
_defineProperty(this, "children", void 0);
|
|
62
62
|
_defineProperty(this, "dataType", void 0);
|
|
63
|
+
_defineProperty(this, "format", void 0);
|
|
63
64
|
_defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
|
|
64
65
|
var _typeMap$options$type, _typeMap$options$type2;
|
|
65
66
|
var sendName = {
|
|
66
67
|
name: "发货仓名称",
|
|
67
68
|
key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
|
|
68
|
-
dataType: "
|
|
69
|
+
dataType: "arrayObject",
|
|
70
|
+
disabled: type === 'sendId'
|
|
69
71
|
};
|
|
70
72
|
var sendId = {
|
|
71
73
|
name: "发货仓编码",
|
|
72
74
|
key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
|
|
73
|
-
dataType: "
|
|
75
|
+
dataType: "arrayObject",
|
|
76
|
+
disabled: type === 'sendName'
|
|
74
77
|
};
|
|
75
78
|
if (fieldType === 'WDT_SEND_GOOD') {
|
|
76
79
|
sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
|
|
77
80
|
}
|
|
78
|
-
|
|
79
|
-
return [sendName, sendId];
|
|
80
|
-
}
|
|
81
|
-
if (type === 'sendName') {
|
|
82
|
-
return [sendName];
|
|
83
|
-
}
|
|
84
|
-
if (type === 'sendId') {
|
|
85
|
-
return [sendId];
|
|
86
|
-
}
|
|
87
|
-
return [];
|
|
81
|
+
return [sendName, sendId];
|
|
88
82
|
});
|
|
89
83
|
_defineProperty(this, "renderClient", function (record) {
|
|
90
84
|
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) {
|
|
@@ -202,14 +196,6 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
202
196
|
}
|
|
203
197
|
}];
|
|
204
198
|
});
|
|
205
|
-
_defineProperty(this, "formDataTransform", function (v) {
|
|
206
|
-
var _v$map;
|
|
207
|
-
return v === null || v === void 0 ? void 0 : (_v$map = v.map(function (item) {
|
|
208
|
-
return item.sendName;
|
|
209
|
-
})) === null || _v$map === void 0 ? void 0 : _v$map.filter(function (item) {
|
|
210
|
-
return !isNull(item);
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
199
|
this.name = _options.name;
|
|
214
200
|
this.id = _options.id;
|
|
215
201
|
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
@@ -217,7 +203,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
217
203
|
this.componentConfig = _options.componentConfig;
|
|
218
204
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options, _options.type);
|
|
219
205
|
this.type = _options.type;
|
|
220
|
-
this.dataType = "
|
|
206
|
+
this.dataType = "arrayObject";
|
|
221
207
|
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
222
208
|
required: true,
|
|
223
209
|
validator: function validator(_, value) {
|
|
@@ -33,36 +33,17 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
|
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}];
|
|
48
|
-
}
|
|
49
|
-
if (type === "supplyName") {
|
|
50
|
-
return [{
|
|
51
|
-
name: "jst供销商名称",
|
|
52
|
-
key: "".concat(options.id, "_supplyName"),
|
|
53
|
-
dataType: "array",
|
|
54
|
-
format: "input"
|
|
55
|
-
}];
|
|
56
|
-
}
|
|
57
|
-
if (type === "supplyId") {
|
|
58
|
-
return [{
|
|
59
|
-
name: "jst供销商编码",
|
|
60
|
-
key: "".concat(options.id, "_supplyId"),
|
|
61
|
-
dataType: "array",
|
|
62
|
-
format: "input"
|
|
63
|
-
}];
|
|
64
|
-
}
|
|
65
|
-
return [];
|
|
36
|
+
return [{
|
|
37
|
+
name: "jst供销商名称",
|
|
38
|
+
key: "".concat(options.id, "_supplyName"),
|
|
39
|
+
dataType: "arrayObject",
|
|
40
|
+
disabled: type === 'supplyId'
|
|
41
|
+
}, {
|
|
42
|
+
name: "jst供销商编码",
|
|
43
|
+
key: "".concat(options.id, "_supplyId"),
|
|
44
|
+
dataType: "arrayObject",
|
|
45
|
+
disabled: type === 'supplyName'
|
|
46
|
+
}];
|
|
66
47
|
});
|
|
67
48
|
_defineProperty(this, "renderClient", function (record) {
|
|
68
49
|
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) {
|
|
@@ -157,9 +138,9 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
|
|
|
157
138
|
this.id = _options.id;
|
|
158
139
|
this.sortField = "".concat(_options.id, "_jstItemList");
|
|
159
140
|
this.formField = "".concat(_options.id, "_jstItemList");
|
|
160
|
-
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options);
|
|
161
141
|
this.type = _options.type;
|
|
162
142
|
this.componentConfig = _options.componentConfig;
|
|
143
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options);
|
|
163
144
|
this.isCombinationComponent = false;
|
|
164
145
|
this.canSort = false;
|
|
165
146
|
this.children = [];
|
|
@@ -36,32 +36,17 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
36
36
|
_defineProperty(this, "suffixSendId", void 0);
|
|
37
37
|
_defineProperty(this, "suffixSendName", void 0);
|
|
38
38
|
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
if (type === 'sendName') {
|
|
51
|
-
return [{
|
|
52
|
-
name: "发货仓名称",
|
|
53
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendName),
|
|
54
|
-
dataType: "string"
|
|
55
|
-
}];
|
|
56
|
-
}
|
|
57
|
-
if (type === 'sendId') {
|
|
58
|
-
return [{
|
|
59
|
-
name: "发货仓编码",
|
|
60
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendId),
|
|
61
|
-
dataType: "string"
|
|
62
|
-
}];
|
|
63
|
-
}
|
|
64
|
-
return [];
|
|
39
|
+
return [{
|
|
40
|
+
name: "发货仓名称",
|
|
41
|
+
key: "".concat(options.id, "_").concat(_this.suffixSendName),
|
|
42
|
+
dataType: "arrayObject",
|
|
43
|
+
disabled: type === 'sendId'
|
|
44
|
+
}, {
|
|
45
|
+
name: "发货仓编码",
|
|
46
|
+
key: "".concat(options.id, "_").concat(_this.suffixSendId),
|
|
47
|
+
dataType: "arrayObject",
|
|
48
|
+
disabled: type === 'sendName'
|
|
49
|
+
}];
|
|
65
50
|
});
|
|
66
51
|
_defineProperty(this, "renderClient", function (record) {
|
|
67
52
|
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) {
|
|
@@ -13,6 +13,7 @@ declare class MsgStatus implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -67,7 +67,8 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
67
67
|
var _this = this,
|
|
68
68
|
_typeMap$options$type,
|
|
69
69
|
_typeMap$options$type2,
|
|
70
|
-
_this$componentConfig5
|
|
70
|
+
_this$componentConfig5,
|
|
71
|
+
_typeMap$options$type3;
|
|
71
72
|
_classCallCheck(this, MsgStatus);
|
|
72
73
|
_defineProperty(this, "name", void 0);
|
|
73
74
|
_defineProperty(this, "id", void 0);
|
|
@@ -81,6 +82,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
81
82
|
_defineProperty(this, "canSort", void 0);
|
|
82
83
|
_defineProperty(this, "children", void 0);
|
|
83
84
|
_defineProperty(this, "dataType", void 0);
|
|
85
|
+
_defineProperty(this, "options", void 0);
|
|
84
86
|
_defineProperty(this, "renderClient", function (record) {
|
|
85
87
|
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
86
88
|
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) {
|
|
@@ -177,7 +179,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
177
179
|
this.name = options.name;
|
|
178
180
|
this.id = options.id;
|
|
179
181
|
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
180
|
-
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.
|
|
182
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
|
|
181
183
|
this.type = options.type;
|
|
182
184
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
183
185
|
options: typeMap[options.type].options
|
|
@@ -185,7 +187,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
185
187
|
this.isCombinationComponent = false;
|
|
186
188
|
this.canSort = false;
|
|
187
189
|
this.children = [];
|
|
188
|
-
this.dataType = '
|
|
190
|
+
this.dataType = 'weakenArray';
|
|
189
191
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
190
192
|
required: true,
|
|
191
193
|
validator: function validator(_, value) {
|
|
@@ -201,5 +203,6 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
201
203
|
}
|
|
202
204
|
}] : [];
|
|
203
205
|
this.align = 'left';
|
|
206
|
+
this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
|
|
204
207
|
});
|
|
205
208
|
export default MsgStatus;
|
|
@@ -21,6 +21,7 @@ import BsHeaderChild from "../BS/common/BsHeaderChild";
|
|
|
21
21
|
import GetFormItem from "../GetFormItem";
|
|
22
22
|
import ItemView from "../../commonComponents/ItemView";
|
|
23
23
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { difference } from 'lodash';
|
|
24
25
|
import { SYMBOL } from "../../constant";
|
|
25
26
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
26
27
|
var _this = this;
|
|
@@ -160,9 +161,22 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
160
161
|
}
|
|
161
162
|
return prv;
|
|
162
163
|
}, {});
|
|
163
|
-
|
|
164
|
+
// TODO: 补充确省字段
|
|
165
|
+
var fillKeysValue = value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
166
|
+
var _this$componentConfig11, _this$componentConfig12;
|
|
167
|
+
var lostKeys = difference((_this$componentConfig11 = _this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : (_this$componentConfig12 = _this$componentConfig11.tableHeader) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.map(function (item) {
|
|
168
|
+
return item.key;
|
|
169
|
+
}), Object.keys(item));
|
|
170
|
+
if (!isNull(lostKeys)) {
|
|
171
|
+
return lostKeys.reduce(function (prv, next) {
|
|
172
|
+
return _objectSpread(_objectSpread({}, prv), {}, _defineProperty({}, next, undefined));
|
|
173
|
+
}, item);
|
|
174
|
+
}
|
|
175
|
+
return item;
|
|
176
|
+
});
|
|
177
|
+
var msg = (fillKeysValue || []).reduce(function (prv, next) {
|
|
164
178
|
Object.keys(next).forEach(function (key) {
|
|
165
|
-
if (result[key] &&
|
|
179
|
+
if (result[key] && isNull(next[key])) {
|
|
166
180
|
prv = result[key];
|
|
167
181
|
}
|
|
168
182
|
});
|
|
@@ -32,22 +32,17 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
32
32
|
_defineProperty(this, "sortChildField", void 0);
|
|
33
33
|
_defineProperty(this, "getSortChildFields", function () {
|
|
34
34
|
var _this$componentConfig, _this$componentConfig2;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
key: "".concat(_this.id, "_supplierName"),
|
|
47
|
-
dataType: "string"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return list;
|
|
35
|
+
return [{
|
|
36
|
+
name: '供应商编码',
|
|
37
|
+
key: "".concat(_this.id, "_itemId"),
|
|
38
|
+
dataType: "arrayObject",
|
|
39
|
+
disabled: !((_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.enableItemId)
|
|
40
|
+
}, {
|
|
41
|
+
name: '供应商名称',
|
|
42
|
+
key: "".concat(_this.id, "_supplierName"),
|
|
43
|
+
dataType: "arrayObject",
|
|
44
|
+
disabled: !((_this$componentConfig2 = _this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.enableSupplierName)
|
|
45
|
+
}];
|
|
51
46
|
});
|
|
52
47
|
_defineProperty(this, "renderClient", function (record) {
|
|
53
48
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
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, 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, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods } 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 | BsE3Goods | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | 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 | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -131,6 +131,7 @@ export var factory = function factory(type, options) {
|
|
|
131
131
|
case "BS_SYSTEM_ORDER":
|
|
132
132
|
case "WLN_SYSTEM_ORDER":
|
|
133
133
|
case "WDT_SYSTEM_ORDER":
|
|
134
|
+
case "BS_E3_SYSTEM_ORDER":
|
|
134
135
|
return new BsSystemOrder(options);
|
|
135
136
|
case "JST_SEND_GOOD":
|
|
136
137
|
case "BS_SEND_GOOD":
|
|
@@ -141,6 +142,8 @@ export var factory = function factory(type, options) {
|
|
|
141
142
|
return new BsPosting(options);
|
|
142
143
|
case "BS_GOODS":
|
|
143
144
|
return new BsGoods(options);
|
|
145
|
+
case "BS_E3_GOODS":
|
|
146
|
+
return new BsE3Goods(options);
|
|
144
147
|
case "BS_EXCHANGE_GOODS":
|
|
145
148
|
return new BsExchange(options);
|
|
146
149
|
case "WDT_EXCHANGE_GOODS":
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
41
41
|
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
42
42
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
43
|
+
export { default as BsE3Goods } from "./components/BsE3/BsGoods";
|
|
43
44
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
44
45
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
45
46
|
export { default as BsReturn } from "./components/BS/BsReturn";
|
package/dist/esm/index.js
CHANGED
|
@@ -40,6 +40,7 @@ export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
41
41
|
export { default as BsSystemOrder } from "./components/BS/BsSystemOrder";
|
|
42
42
|
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
43
|
+
export { default as BsE3Goods } from "./components/BsE3/BsGoods";
|
|
43
44
|
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
44
45
|
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
45
46
|
export { default as BsReturn } from "./components/BS/BsReturn";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ export interface ComponentInterface {
|
|
|
47
47
|
rules?: any[];
|
|
48
48
|
width?: number;
|
|
49
49
|
align?: ALignType;
|
|
50
|
-
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
51
|
-
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
|
|
50
|
+
dataType: "string" | "number" | "boolean" | "array" | "range" | "object" | "weakenArray" | "arrayObject";
|
|
51
|
+
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup" | "object";
|
|
52
52
|
options?: Array<any>;
|
|
53
53
|
templateId?: string;
|
|
54
54
|
flowTemplateKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.17.8-beta.
|
|
3
|
+
"version": "1.17.8-beta.31",
|
|
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": "1.17.8-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.17.8-beta.31",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.30",
|
|
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": "c431c2ff8007325a7802ab501fbed20164f1083f",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|