@kmkf-fe-packages/services-components 1.17.8-beta.17 → 1.17.8-beta.20

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.
@@ -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
- if (!type) {
83
- var _typeMap$options$type, _typeMap$options$type2;
84
- return [{
85
- name: "物流公司",
86
- key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
87
- options: _this.expressDateInstance.getExpressData(),
88
- dataType: "arrayObject"
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
- }];
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: "arrayObject"
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: "arrayObject"
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
- typeName: '单据类型',
24
- tagName: '标签',
25
- selectId: 'bsSystemSelectIds'
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
- typeName: '订单类型',
31
- tagName: '标记',
32
- selectId: 'wlnSystemSelectIds'
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
- typeName: "订单类型",
38
- tagName: "订单标签",
39
- selectId: "wdtSystemSelectIds"
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 = [new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
126
- name: typeMap[options.type].typeName,
127
- id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
128
- width: 150
129
- })), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
130
- name: '系统订单号',
131
- id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
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 { BsHeaderGood } from "../../BS/common/index";
4
+ declare class BsGoods 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
+ bsGoods: BsHeaderGood;
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 BsGoods;
@@ -0,0 +1,120 @@
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 { BsHeaderGood } from "../../BS/common/index";
15
+ import ItemView from "../../../commonComponents/ItemView";
16
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
+ import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
+ import { SYMBOL } from "../../../constant";
19
+ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
20
+ var _this = this,
21
+ _this$componentConfig6;
22
+ _classCallCheck(this, BsGoods);
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, "bsGoods", 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
+ list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsGoods) || [],
43
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
44
+ })
45
+ })) : null;
46
+ });
47
+ _defineProperty(this, "renderPc", function () {
48
+ return null;
49
+ });
50
+ _defineProperty(this, "renderLog", function (r) {
51
+ var _this$componentConfig2;
52
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")])) return null;
53
+ return /*#__PURE__*/React.createElement(BsGoodsTable, {
54
+ list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")]) || [],
55
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
56
+ });
57
+ });
58
+ _defineProperty(this, "getComponentValue", function (r) {
59
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsE3Goods")];
60
+ });
61
+ _defineProperty(this, "renderExport", function () {
62
+ return null;
63
+ });
64
+ _defineProperty(this, "editRender", function (p) {
65
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2, _this$effects3;
66
+ return /*#__PURE__*/React.createElement(GetFormItem, {
67
+ title: _this.name,
68
+ name: _this.id,
69
+ rules: _this.rules,
70
+ required: false,
71
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
+ display: p === null || p === void 0 ? void 0 : p.display,
73
+ 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 : '',
74
+ component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
75
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
76
+ shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
77
+ shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
78
+ companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
79
+ width: "90%"
80
+ }))
81
+ });
82
+ });
83
+ _defineProperty(this, "filterConfig", function (item) {
84
+ return [{
85
+ searchDefaultConditions: SYMBOL.like,
86
+ type: item.type,
87
+ id: "".concat(item.id, "_bsE3Goods"),
88
+ // 过滤组件id
89
+ name: item.name,
90
+ // 过滤组件名称
91
+ filterComponentType: "Input"
92
+ }];
93
+ });
94
+ this.name = options.name;
95
+ this.id = options.id;
96
+ this.sortField = "".concat(options.id, "_bsE3Goods");
97
+ this.formField = "".concat(options.id, "_bsE3Goods");
98
+ this.type = options.type;
99
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
100
+ this.isCombinationComponent = true;
101
+ this.canSort = false;
102
+ this.bsGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
103
+ id: "".concat(options.id, "_bsE3Goods"),
104
+ name: "商品信息"
105
+ }));
106
+ this.children = [this.bsGoods];
107
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
108
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
109
+ required: true,
110
+ validator: function validator(_, value) {
111
+ var _value$bsGoods;
112
+ if (!value || !(value !== null && value !== void 0 && (_value$bsGoods = value.bsGoods) !== null && _value$bsGoods !== void 0 && _value$bsGoods.length)) {
113
+ return Promise.reject(new Error("请选择bs商品"));
114
+ }
115
+ return Promise.resolve();
116
+ }
117
+ }] : [];
118
+ this.dataType = "object";
119
+ });
120
+ export default BsGoods;
@@ -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.billNo);
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: {
@@ -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 (_this$showHeader = _this.showHeader) === null || _this$showHeader === void 0 ? void 0 : (_this$showHeader$filt = _this$showHeader.filter(function (item) {
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: "arrayObject"
53
+ dataType: "arrayObject",
54
+ disabled: !_this.showHeader.includes(item)
57
55
  };
58
56
  });
59
57
  });
@@ -85,22 +85,17 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
85
85
  });
86
86
  _defineProperty(this, "getSortChildFields", function () {
87
87
  var _this$componentConfig3, _this$componentConfig4;
88
- var list = [];
89
- if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.enableSupplierName) {
90
- list.push({
91
- name: "jst供应商名称",
92
- key: "".concat(_this.id, "_supplierName"),
93
- dataType: "arrayObject"
94
- });
95
- }
96
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableItemId) {
97
- list.push({
98
- name: "jst供应商编码",
99
- key: "".concat(_this.id, "_itemId"),
100
- dataType: "arrayObject"
101
- });
102
- }
103
- return list;
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
+ }];
104
99
  });
105
100
  _defineProperty(this, "filterConfig", function (item) {
106
101
  return [{
@@ -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
- if (!type) {
56
- var _typeMap$options$type, _typeMap$options$type2;
57
- return [{
58
- name: "物流公司",
59
- key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
60
- options: _this.expressDateInstance.getExpressData(),
61
- dataType: "string"
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
- }];
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;
@@ -66,26 +66,19 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
66
66
  var sendName = {
67
67
  name: "发货仓名称",
68
68
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.sendName),
69
- dataType: "arrayObject"
69
+ dataType: "arrayObject",
70
+ disabled: type === 'sendId'
70
71
  };
71
72
  var sendId = {
72
73
  name: "发货仓编码",
73
74
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.sendId),
74
- dataType: "arrayObject"
75
+ dataType: "arrayObject",
76
+ disabled: type === 'sendName'
75
77
  };
76
78
  if (fieldType === 'WDT_SEND_GOOD') {
77
79
  sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
78
80
  }
79
- if (type === 'all') {
80
- return [sendName, sendId];
81
- }
82
- if (type === 'sendName') {
83
- return [sendName];
84
- }
85
- if (type === 'sendId') {
86
- return [sendId];
87
- }
88
- return [];
81
+ return [sendName, sendId];
89
82
  });
90
83
  _defineProperty(this, "renderClient", function (record) {
91
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) {
@@ -33,32 +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
- if (!type) {
37
- return [{
38
- name: "jst供销商名称",
39
- key: "".concat(options.id, "_supplyName"),
40
- dataType: "arrayObject"
41
- }, {
42
- name: "jst供销商编码",
43
- key: "".concat(options.id, "_supplyId"),
44
- dataType: "arrayObject"
45
- }];
46
- }
47
- if (type === "supplyName") {
48
- return [{
49
- name: "jst供销商名称",
50
- key: "".concat(options.id, "_supplyName"),
51
- dataType: "arrayObject"
52
- }];
53
- }
54
- if (type === "supplyId") {
55
- return [{
56
- name: "jst供销商编码",
57
- key: "".concat(options.id, "_supplyId"),
58
- dataType: "arrayObject"
59
- }];
60
- }
61
- 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
+ }];
62
47
  });
63
48
  _defineProperty(this, "renderClient", function (record) {
64
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) {
@@ -153,9 +138,9 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
153
138
  this.id = _options.id;
154
139
  this.sortField = "".concat(_options.id, "_jstItemList");
155
140
  this.formField = "".concat(_options.id, "_jstItemList");
156
- this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options);
157
141
  this.type = _options.type;
158
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);
159
144
  this.isCombinationComponent = false;
160
145
  this.canSort = false;
161
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
- if (type === 'all') {
40
- return [{
41
- name: "发货仓名称",
42
- key: "".concat(options.id, "_").concat(_this.suffixSendName),
43
- dataType: "arrayObject"
44
- }, {
45
- name: "发货仓编码",
46
- key: "".concat(options.id, "_").concat(_this.suffixSendId),
47
- dataType: "arrayObject"
48
- }];
49
- }
50
- if (type === 'sendName') {
51
- return [{
52
- name: "发货仓名称",
53
- key: "".concat(options.id, "_").concat(_this.suffixSendName),
54
- dataType: "arrayObject"
55
- }];
56
- }
57
- if (type === 'sendId') {
58
- return [{
59
- name: "发货仓编码",
60
- key: "".concat(options.id, "_").concat(_this.suffixSendId),
61
- dataType: "arrayObject"
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) {
@@ -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
- var list = [];
36
- if ((_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.enableItemId) {
37
- list.push({
38
- name: '供应商编码',
39
- key: "".concat(_this.id, "_itemId"),
40
- dataType: "arrayObject"
41
- });
42
- }
43
- if ((_this$componentConfig2 = _this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.enableSupplierName) {
44
- list.push({
45
- name: '供应商名称',
46
- key: "".concat(_this.id, "_supplierName"),
47
- dataType: "arrayObject"
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, {
@@ -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) => BasicCascader | BasicCheckbox | ItemEnCode | FlowWorkOrderId | BasicInput | JstSendGood | JstSupply | LogisticsInterception | LogisticsMoreInterception | MsgStatus | PaymentVoucherCode | StatusSelect | SubForm | ThirdItemSelect | BasicDataTime | TradeDateTime | TradeId | BasicAddress | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | Payment | JstLogistics | JstItemSelect | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | Label | KmErpSendGood | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Goods | ItemEnCode | JstItemSelect | JstLogistics | JstSendGood | JstSupply | KmErpSendGood | ThirdItemSelect | 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 | SystemOrderNo | Ordinary | Payment | BsGoods | BsExchange | BsReissue | BsReturn | 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 | AfterSalesOrderId;
@@ -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":
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.17",
3
+ "version": "1.17.8-beta.20",
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.17",
25
- "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.17",
24
+ "@kmkf-fe-packages/basic-components": "1.17.8-beta.19",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.17.8-beta.19",
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": "d8cd5502419b67618ea3653283cbf94e96587c4f",
44
+ "gitHead": "a2709049388e51c946592ba5c1ae76618389ac91",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }