@kmkf-fe-packages/services-components 2.2.4 → 2.2.5-beta.2
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/README.md +1 -1
- package/dist/esm/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/components/BS/BsLogistics/index.d.ts +5 -2
- package/dist/esm/components/BS/BsLogistics/index.js +19 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderPic.js +4 -9
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +14 -6
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +14 -4
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
- package/dist/esm/components/Common/img/ai.png +0 -0
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +15 -8
- package/dist/esm/components/CommonHeaderGood/index.js +230 -4
- package/dist/esm/components/FlowTag/index.js +10 -2
- package/dist/esm/components/GY/GyGoods/index.js +2 -0
- package/dist/esm/components/GY/GyReissue/index.js +2 -0
- package/dist/esm/components/GY/GyReturn/index.js +2 -0
- package/dist/esm/components/JST/JstSendGood/index.js +9 -1
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/MsgStatus/index.js +6 -1
- package/dist/esm/components/OrderSubForm/index.d.ts +49 -0
- package/dist/esm/components/OrderSubForm/index.js +268 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Public/Goods/index.d.ts +3 -0
- package/dist/esm/components/Public/Goods/index.js +3 -0
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.js +3 -0
- package/dist/esm/components/SubForm/index.js +8 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +37 -0
- package/package.json +4 -4
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare type subConfigType = {
|
|
5
|
+
isEdit: boolean;
|
|
6
|
+
isRequired: boolean;
|
|
7
|
+
isShow: boolean;
|
|
8
|
+
key: string;
|
|
9
|
+
name: string;
|
|
10
|
+
workOrderComponentType: string;
|
|
11
|
+
width: number;
|
|
12
|
+
dataIndex: string;
|
|
13
|
+
title: string;
|
|
14
|
+
widget: string;
|
|
15
|
+
settingName?: string;
|
|
16
|
+
};
|
|
17
|
+
declare class OrderSubForm implements ComponentInterface {
|
|
18
|
+
name: string;
|
|
19
|
+
id: string;
|
|
20
|
+
sortField: string;
|
|
21
|
+
type: string;
|
|
22
|
+
rules: any[];
|
|
23
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
24
|
+
effects: ComponentInterface["effects"];
|
|
25
|
+
isCombinationComponent: boolean;
|
|
26
|
+
formField: string;
|
|
27
|
+
canSort: boolean;
|
|
28
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
29
|
+
children: ComponentInterface[];
|
|
30
|
+
dataType: ComponentInterface["dataType"];
|
|
31
|
+
constructor(options: PickOption);
|
|
32
|
+
renderTransformItem: (item: subConfigType, val: any) => any;
|
|
33
|
+
getNewTableHeader: () => any;
|
|
34
|
+
renderTabel: (list: any) => React.JSX.Element;
|
|
35
|
+
renderPc: () => null;
|
|
36
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
37
|
+
getComponentValue: (r: Record) => any;
|
|
38
|
+
renderExport: () => null;
|
|
39
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
40
|
+
editRender: (p: any) => React.JSX.Element;
|
|
41
|
+
filterConfig: (item: ColumnConfig) => {
|
|
42
|
+
searchDefaultConditions: "like";
|
|
43
|
+
type: string;
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
filterComponentType: "Input";
|
|
47
|
+
}[];
|
|
48
|
+
}
|
|
49
|
+
export default OrderSubForm;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
17
|
+
import moment from "moment";
|
|
18
|
+
import React from "react";
|
|
19
|
+
import { Table } from "antd";
|
|
20
|
+
import { OrderSubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
21
|
+
import BsHeaderChild from "../BS/common/BsHeaderChild";
|
|
22
|
+
import BsHeaderPic from "../BS/common/BsHeaderPic";
|
|
23
|
+
import GetFormItem from "../GetFormItem";
|
|
24
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
25
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
26
|
+
import { difference } from "lodash";
|
|
27
|
+
import { SYMBOL } from "../../constant";
|
|
28
|
+
import { OrderSubFormUtils, orderSubFormConstants } from "@kmkf-fe-packages/basic-components";
|
|
29
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
30
|
+
var renderDetailItem = OrderSubFormUtils.renderDetailItem;
|
|
31
|
+
var getSelectWidgetMap = orderSubFormConstants.getSelectWidgetMap,
|
|
32
|
+
getOrderSubformColumns = orderSubFormConstants.getOrderSubformColumns;
|
|
33
|
+
var OrderSubForm = /*#__PURE__*/_createClass(
|
|
34
|
+
// workOrderUniqueKey?: string;
|
|
35
|
+
function OrderSubForm(options) {
|
|
36
|
+
var _this = this;
|
|
37
|
+
_classCallCheck(this, OrderSubForm);
|
|
38
|
+
_defineProperty(this, "name", void 0);
|
|
39
|
+
_defineProperty(this, "id", void 0);
|
|
40
|
+
_defineProperty(this, "sortField", void 0);
|
|
41
|
+
_defineProperty(this, "type", void 0);
|
|
42
|
+
_defineProperty(this, "rules", void 0);
|
|
43
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
44
|
+
_defineProperty(this, "effects", void 0);
|
|
45
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
46
|
+
_defineProperty(this, "formField", void 0);
|
|
47
|
+
_defineProperty(this, "canSort", void 0);
|
|
48
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
49
|
+
_defineProperty(this, "children", void 0);
|
|
50
|
+
_defineProperty(this, "dataType", void 0);
|
|
51
|
+
_defineProperty(this, "renderTransformItem", function (item, val) {
|
|
52
|
+
var _getSelectWidgetMap;
|
|
53
|
+
var mapValue = (_getSelectWidgetMap = getSelectWidgetMap(_this.expressDateInstance)) === null || _getSelectWidgetMap === void 0 ? void 0 : _getSelectWidgetMap[item.dataIndex];
|
|
54
|
+
var selectValue;
|
|
55
|
+
if (mapValue && typeof mapValue === "function") {
|
|
56
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue(val);
|
|
57
|
+
} else {
|
|
58
|
+
selectValue = mapValue === null || mapValue === void 0 ? void 0 : mapValue[val];
|
|
59
|
+
}
|
|
60
|
+
return selectValue;
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "getNewTableHeader", function () {
|
|
63
|
+
var _this$componentConfig, _ref2;
|
|
64
|
+
var orderSubformColumns = getOrderSubformColumns();
|
|
65
|
+
var orderSubformColumnMap = orderSubformColumns.reduce(function (prv, next) {
|
|
66
|
+
prv[next.dataIndex] = next;
|
|
67
|
+
return prv;
|
|
68
|
+
}, {});
|
|
69
|
+
var _ref = ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.subConfig) || {},
|
|
70
|
+
_ref$correlationList = _ref.correlationList,
|
|
71
|
+
correlationList = _ref$correlationList === void 0 ? [] : _ref$correlationList;
|
|
72
|
+
var columns = correlationList && correlationList !== null && correlationList !== void 0 && correlationList.length ? correlationList.map(function (t) {
|
|
73
|
+
return orderSubformColumnMap[t.dataIndex];
|
|
74
|
+
}) : orderSubformColumns;
|
|
75
|
+
return (_ref2 = columns || []) === null || _ref2 === void 0 ? void 0 : _ref2.reduce(function (prv, item) {
|
|
76
|
+
var _this$componentConfig2, _this$componentConfig3;
|
|
77
|
+
var t = ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : (_this$componentConfig3 = _this$componentConfig2.tableHeader) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.find(function (v) {
|
|
78
|
+
return v.key === item.dataIndex;
|
|
79
|
+
})) || {
|
|
80
|
+
isShow: true,
|
|
81
|
+
isEdit: false,
|
|
82
|
+
isRequired: false,
|
|
83
|
+
width: item !== null && item !== void 0 && item.width ? Number(item === null || item === void 0 ? void 0 : item.width) : 150
|
|
84
|
+
};
|
|
85
|
+
if (t.isShow) {
|
|
86
|
+
prv.push(_objectSpread(_objectSpread({}, item), t));
|
|
87
|
+
}
|
|
88
|
+
return prv;
|
|
89
|
+
}, []);
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "renderTabel", function (list) {
|
|
92
|
+
var _ref3, _ref3$filter;
|
|
93
|
+
var columns = [{
|
|
94
|
+
dataIndex: "",
|
|
95
|
+
title: "序号",
|
|
96
|
+
align: "center",
|
|
97
|
+
ellipsis: true,
|
|
98
|
+
width: 50,
|
|
99
|
+
render: function render(val, record, index) {
|
|
100
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
101
|
+
}
|
|
102
|
+
}].concat(_toConsumableArray(((_ref3 = _this.getNewTableHeader() || []) === null || _ref3 === void 0 ? void 0 : (_ref3$filter = _ref3.filter(function (t) {
|
|
103
|
+
return t.isShow;
|
|
104
|
+
})) === null || _ref3$filter === void 0 ? void 0 : _ref3$filter.map(function (item) {
|
|
105
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
106
|
+
align: "center",
|
|
107
|
+
ellipsis: true,
|
|
108
|
+
title: (item === null || item === void 0 ? void 0 : item.settingName) || item.title,
|
|
109
|
+
render: function render(val) {
|
|
110
|
+
return renderDetailItem({
|
|
111
|
+
item: item,
|
|
112
|
+
val: val
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
})) || []));
|
|
117
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
118
|
+
columns: columns,
|
|
119
|
+
dataSource: list,
|
|
120
|
+
rowKey: "uuid",
|
|
121
|
+
size: "small",
|
|
122
|
+
pagination: false,
|
|
123
|
+
scroll: {
|
|
124
|
+
x: "100%"
|
|
125
|
+
},
|
|
126
|
+
locale: {
|
|
127
|
+
emptyText: "暂无数据"
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
_defineProperty(this, "renderPc", function () {
|
|
132
|
+
return null;
|
|
133
|
+
});
|
|
134
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
135
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")])) return null;
|
|
136
|
+
return _this.renderTabel(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")]);
|
|
137
|
+
});
|
|
138
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
139
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_subOrderList")];
|
|
140
|
+
});
|
|
141
|
+
_defineProperty(this, "renderExport", function () {
|
|
142
|
+
return null;
|
|
143
|
+
});
|
|
144
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
145
|
+
var _record;
|
|
146
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
147
|
+
id: _this.id,
|
|
148
|
+
label: _this.name,
|
|
149
|
+
value: _this.renderTabel(record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.subOrderList)
|
|
150
|
+
}) : null;
|
|
151
|
+
});
|
|
152
|
+
_defineProperty(this, "editRender", function (p) {
|
|
153
|
+
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
|
|
154
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
155
|
+
title: _this.name,
|
|
156
|
+
name: _this.id,
|
|
157
|
+
rules: _this.rules,
|
|
158
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
159
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
160
|
+
required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
|
|
161
|
+
tooltip: (_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.showTooltip ? (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.tooltip : "",
|
|
162
|
+
component: /*#__PURE__*/React.createElement(SubFormComponent, _extends({
|
|
163
|
+
effects: _this.effects
|
|
164
|
+
}, _this.componentConfig, {
|
|
165
|
+
platform: p === null || p === void 0 ? void 0 : p.platform
|
|
166
|
+
}))
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
170
|
+
return [{
|
|
171
|
+
searchDefaultConditions: SYMBOL.like,
|
|
172
|
+
type: item.type,
|
|
173
|
+
id: "".concat(item.id, "_subOrderList"),
|
|
174
|
+
// 过滤组件id
|
|
175
|
+
name: item.name,
|
|
176
|
+
// 过滤组件名称
|
|
177
|
+
filterComponentType: "Input"
|
|
178
|
+
}];
|
|
179
|
+
});
|
|
180
|
+
this.name = options.name;
|
|
181
|
+
this.id = options.id;
|
|
182
|
+
this.sortField = "".concat(options.id, "_subOrderList");
|
|
183
|
+
this.formField = "".concat(options.id, "_subOrderList");
|
|
184
|
+
this.type = options.type;
|
|
185
|
+
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
186
|
+
this.componentConfig = options.componentConfig;
|
|
187
|
+
// this.workOrderUniqueKey = options?.workOrderUniqueKey;
|
|
188
|
+
this.rules = [{
|
|
189
|
+
validator: function validator(_, value) {
|
|
190
|
+
var _this$componentConfig8, _value$subOrderList, _this$componentConfig9, _this$componentConfig10, _value$subOrderList2;
|
|
191
|
+
if ((_this$componentConfig8 = _this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required && !(value !== null && value !== void 0 && (_value$subOrderList = value.subOrderList) !== null && _value$subOrderList !== void 0 && _value$subOrderList.length)) {
|
|
192
|
+
return Promise.reject(new Error("请填写子订单"));
|
|
193
|
+
}
|
|
194
|
+
var result = (_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : (_this$componentConfig10 = _this$componentConfig9.tableHeader) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.reduce(function (prv, next) {
|
|
195
|
+
if (next.isRequired && next.isShow && !next.isEdit) {
|
|
196
|
+
prv[next.key] = "".concat(next.name, "\u5FC5\u586B");
|
|
197
|
+
}
|
|
198
|
+
return prv;
|
|
199
|
+
}, {});
|
|
200
|
+
// TODO: 补充确省字段
|
|
201
|
+
var fillKeysValue = value === null || value === void 0 ? void 0 : (_value$subOrderList2 = value.subOrderList) === null || _value$subOrderList2 === void 0 ? void 0 : _value$subOrderList2.map(function (item) {
|
|
202
|
+
var _this$componentConfig11, _this$componentConfig12;
|
|
203
|
+
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) {
|
|
204
|
+
return item.key;
|
|
205
|
+
}), Object.keys(item));
|
|
206
|
+
if (!isNull(lostKeys)) {
|
|
207
|
+
return lostKeys.reduce(function (prv, next) {
|
|
208
|
+
return _objectSpread(_objectSpread({}, prv), {}, _defineProperty({}, next, undefined));
|
|
209
|
+
}, item);
|
|
210
|
+
}
|
|
211
|
+
return item;
|
|
212
|
+
});
|
|
213
|
+
var msg = (fillKeysValue || []).reduce(function (prv, next) {
|
|
214
|
+
Object.keys(next).forEach(function (key) {
|
|
215
|
+
if (result[key] && isNull(next[key])) {
|
|
216
|
+
prv = result[key];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
return prv;
|
|
220
|
+
}, "");
|
|
221
|
+
if (msg) {
|
|
222
|
+
return Promise.reject(new Error(msg));
|
|
223
|
+
}
|
|
224
|
+
return Promise.resolve();
|
|
225
|
+
}
|
|
226
|
+
}];
|
|
227
|
+
this.isCombinationComponent = true;
|
|
228
|
+
this.canSort = false;
|
|
229
|
+
this.children = (this.getNewTableHeader() || []).map(function (item) {
|
|
230
|
+
if (item.widget === "upload") {
|
|
231
|
+
return new BsHeaderPic(_objectSpread(_objectSpread({}, options), {}, {
|
|
232
|
+
name: item.title,
|
|
233
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex)
|
|
234
|
+
}));
|
|
235
|
+
} else if (item.widget === "select") {
|
|
236
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
237
|
+
name: item.title,
|
|
238
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex),
|
|
239
|
+
transformValue: function transformValue(val) {
|
|
240
|
+
return _this.renderTransformItem(item, val);
|
|
241
|
+
},
|
|
242
|
+
renderExport: function renderExport(val) {
|
|
243
|
+
return _this.renderTransformItem(item, val);
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
246
|
+
} else if (item.widget === "datePicker") {
|
|
247
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
248
|
+
name: item.title,
|
|
249
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex),
|
|
250
|
+
transformValue: function transformValue(val) {
|
|
251
|
+
return val ? moment(val).format("YYYY-MM-DD HH:mm:ss") : "";
|
|
252
|
+
},
|
|
253
|
+
renderExport: function renderExport(val) {
|
|
254
|
+
return val ? moment(val).format("YYYY-MM-DD HH:mm:ss") : "";
|
|
255
|
+
}
|
|
256
|
+
}));
|
|
257
|
+
} else {
|
|
258
|
+
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
259
|
+
name: item.title,
|
|
260
|
+
id: "".concat(options.id, "_subOrderList_").concat(item.dataIndex)
|
|
261
|
+
}));
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
this.dataType = "object";
|
|
265
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
266
|
+
console.log("componentConfig", this.componentConfig);
|
|
267
|
+
});
|
|
268
|
+
export default OrderSubForm;
|
|
@@ -36,6 +36,5 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
-
formDataTransform: (value: string) => string | number;
|
|
40
39
|
}
|
|
41
40
|
export default PaymentAmount;
|
|
@@ -132,10 +132,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
-
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
-
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
-
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
-
});
|
|
139
135
|
this.name = '打款金额';
|
|
140
136
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
141
137
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -16,6 +16,10 @@ var typeMap = {
|
|
|
16
16
|
SKX_OUTBOUND_NOTICE_NO: {
|
|
17
17
|
key: "skxOutboundNoticeNo",
|
|
18
18
|
blurType: "skxOutboundNoticeNo"
|
|
19
|
+
},
|
|
20
|
+
SKX_RETURN_BILL_NO: {
|
|
21
|
+
key: "skxReturnBillNo",
|
|
22
|
+
blurType: "skxReturnBillNo"
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
var SkxIdInputSelect = /*#__PURE__*/_createClass(function SkxIdInputSelect(options) {
|
|
@@ -16,12 +16,12 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
16
16
|
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); }
|
|
17
17
|
import React from "react";
|
|
18
18
|
import { Table } from "antd";
|
|
19
|
-
import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
19
|
+
import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
|
|
20
20
|
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
|
|
24
|
+
import { difference } from "lodash";
|
|
25
25
|
import { SYMBOL } from "../../constant";
|
|
26
26
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
27
27
|
var _this = this;
|
|
@@ -80,7 +80,12 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
80
80
|
ellipsis: true,
|
|
81
81
|
width: item.width,
|
|
82
82
|
render: function render(val) {
|
|
83
|
-
return /*#__PURE__*/React.createElement("
|
|
83
|
+
return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
style: {
|
|
85
|
+
width: "100%",
|
|
86
|
+
overflow: "auto"
|
|
87
|
+
}
|
|
88
|
+
}, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
|
|
84
89
|
}
|
|
85
90
|
};
|
|
86
91
|
})) || []));
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } 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) => BsLogistics | BsSystemOrder | FlowTag | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | 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 | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | GyGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, 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, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -34,6 +34,7 @@ export var factory = function factory(type, options) {
|
|
|
34
34
|
case "ORDER_TYPE":
|
|
35
35
|
case "REFUND_TYPE":
|
|
36
36
|
case "EXECUTE_ACTION_TYPE":
|
|
37
|
+
case "ERP_ORDER_STATUS":
|
|
37
38
|
return new BasicSelect(options);
|
|
38
39
|
case "PICTURE":
|
|
39
40
|
return new BasicPicture(options);
|
|
@@ -141,6 +142,7 @@ export var factory = function factory(type, options) {
|
|
|
141
142
|
case "BS_E3_SYSTEM_ORDER":
|
|
142
143
|
case "GY_SYSTEM_ORDER":
|
|
143
144
|
case "JST_SYSTEM_ORDER":
|
|
145
|
+
case "JY_SYSTEM_ORDER":
|
|
144
146
|
return new BsSystemOrder(options);
|
|
145
147
|
case "JST_SEND_GOOD":
|
|
146
148
|
case "BS_SEND_GOOD":
|
|
@@ -149,6 +151,7 @@ export var factory = function factory(type, options) {
|
|
|
149
151
|
case "WDT_SEND_GOOD":
|
|
150
152
|
case "KM_SEND_GOOD":
|
|
151
153
|
case "GY_SEND_GOOD":
|
|
154
|
+
case "JY_SEND_GOOD":
|
|
152
155
|
return new JstSendGood(options);
|
|
153
156
|
case "BS_POSTING":
|
|
154
157
|
return new BsPosting(options);
|
|
@@ -158,6 +161,7 @@ export var factory = function factory(type, options) {
|
|
|
158
161
|
return new BsE3Goods(options);
|
|
159
162
|
case "GY_GOODS":
|
|
160
163
|
return new GyGoods(options);
|
|
164
|
+
case "JY_GOODS":
|
|
161
165
|
case "KM_GOODS":
|
|
162
166
|
case "JST_GOODS":
|
|
163
167
|
return new PublicGoods(options);
|
|
@@ -199,7 +203,9 @@ export var factory = function factory(type, options) {
|
|
|
199
203
|
case "JST_LOGISTICS":
|
|
200
204
|
case "KM_LOGISTICS":
|
|
201
205
|
case "GY_LOGISTICS":
|
|
206
|
+
case "JY_LOGISTICS":
|
|
202
207
|
case "SKX_LOGISTICS":
|
|
208
|
+
case "SKX_RETURN_LOGISTICS":
|
|
203
209
|
return new BsLogistics(options);
|
|
204
210
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
205
211
|
return new FlowWorkOrderId(options);
|
|
@@ -275,6 +281,7 @@ export var factory = function factory(type, options) {
|
|
|
275
281
|
case "WDT_TAGS":
|
|
276
282
|
return new AsyncSelect(options);
|
|
277
283
|
case "SKX_OUTBOUND_NOTICE_NO":
|
|
284
|
+
case "SKX_RETURN_BILL_NO":
|
|
278
285
|
return new SkxIdInputSelect(options);
|
|
279
286
|
case "SKX_ORDER_TYPE":
|
|
280
287
|
return new BasicSelectOption(options);
|
|
@@ -283,9 +290,14 @@ export var factory = function factory(type, options) {
|
|
|
283
290
|
case "SKX_SHOP_NAME":
|
|
284
291
|
case "SKX_WAREHOUSE":
|
|
285
292
|
case "SKX_ORDER_STATUS":
|
|
293
|
+
case "SKX_REFUND_BILL_NO":
|
|
294
|
+
case "SKX_RETURN_ORDER_STATUS":
|
|
286
295
|
return new BasicTypeInput(options);
|
|
287
296
|
case "SKX_GOODS":
|
|
297
|
+
case "SKX_RETURN_GOODS":
|
|
288
298
|
return new SkxGoods(options);
|
|
299
|
+
case "ORDER_SUBFORM":
|
|
300
|
+
return new OrderSubForm(options);
|
|
289
301
|
default:
|
|
290
302
|
return new BasicInput(options);
|
|
291
303
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export { default as GyReturn } from "./components/GY/GyReturn";
|
|
|
100
100
|
export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
|
+
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
103
104
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
104
105
|
export { factory } from "./factory";
|
|
105
106
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
@@ -111,3 +112,5 @@ export { default as GetFormItem } from "./components/GetFormItem";
|
|
|
111
112
|
export { default as Global } from "./commonComponents/GlobalContext";
|
|
112
113
|
export * as ErpScenes from "./commonComponents/ErpContext";
|
|
113
114
|
export * as servers from "./service/api";
|
|
115
|
+
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
116
|
+
export * from "./Hooks";
|
package/dist/esm/index.js
CHANGED
|
@@ -100,6 +100,7 @@ export { default as GyReturn } from "./components/GY/GyReturn";
|
|
|
100
100
|
export { default as AsyncSelect } from "./components/Public/AsyncSelect";
|
|
101
101
|
export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
|
+
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
103
104
|
// TODO: ERP 打款工单使用
|
|
104
105
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
105
106
|
export { factory } from "./factory";
|
|
@@ -113,4 +114,6 @@ export { default as Global } from "./commonComponents/GlobalContext";
|
|
|
113
114
|
import * as _ErpScenes from "./commonComponents/ErpContext";
|
|
114
115
|
export { _ErpScenes as ErpScenes };
|
|
115
116
|
import * as _servers from "./service/api";
|
|
116
|
-
export { _servers as servers };
|
|
117
|
+
export { _servers as servers };
|
|
118
|
+
export { default as QueryLogisticsTrack } from "./commonComponents/QueryLogisticsTrack";
|
|
119
|
+
export * from "./Hooks";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -77,6 +77,34 @@ export interface ComponentInterface {
|
|
|
77
77
|
*/
|
|
78
78
|
formItemIndex?: number;
|
|
79
79
|
componentConfig?: {
|
|
80
|
+
/**
|
|
81
|
+
* @description 商品类组件选择商品来源配置
|
|
82
|
+
*/
|
|
83
|
+
goodsSource?: {
|
|
84
|
+
source?: "workOrder" | "erp";
|
|
85
|
+
sourceSettings?: {
|
|
86
|
+
filterMode?: "some" | "every";
|
|
87
|
+
filterRules?: {
|
|
88
|
+
leftValue: string;
|
|
89
|
+
compareSymbol: any;
|
|
90
|
+
rightValue?: any;
|
|
91
|
+
}[];
|
|
92
|
+
dataFilterConfig: {
|
|
93
|
+
[cpId: string]: {
|
|
94
|
+
isFilter?: boolean;
|
|
95
|
+
isShow?: boolean;
|
|
96
|
+
index?: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
keyMap: {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
};
|
|
102
|
+
workOrder: {
|
|
103
|
+
flowTemplateKey: string;
|
|
104
|
+
nodeId: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
80
108
|
/**
|
|
81
109
|
* @description 特殊自定义组件有的值
|
|
82
110
|
*/
|
|
@@ -303,3 +331,12 @@ export declare type ColumnConfig = {
|
|
|
303
331
|
config?: ComponentInterface["componentConfig"];
|
|
304
332
|
templateConfig?: ComponentInterface["componentConfig"];
|
|
305
333
|
};
|
|
334
|
+
export interface ColumnsConfigI {
|
|
335
|
+
show: boolean;
|
|
336
|
+
delete: boolean;
|
|
337
|
+
width: number;
|
|
338
|
+
name: string;
|
|
339
|
+
id: string;
|
|
340
|
+
type: string;
|
|
341
|
+
config?: any;
|
|
342
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5-beta.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.2.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.5-beta.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.2",
|
|
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": "25af86e0250188e7f3985986c8851bf486913647",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|