@kmkf-fe-packages/services-components 1.15.0-beta.5 → 1.15.0-rc.0
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.
|
@@ -52,7 +52,6 @@ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(opt
|
|
|
52
52
|
return null;
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
-
console.log('filterConfig快照', item);
|
|
56
55
|
return {
|
|
57
56
|
searchDefaultConditions: SYMBOL.like,
|
|
58
57
|
type: item.type,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -8,13 +8,13 @@ declare class ETradeId implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
showContains: boolean;
|
|
10
10
|
onlyContainsString: boolean;
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
12
|
+
effects: ComponentInterface['effects'];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
formField: string;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -6,11 +6,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
import React from
|
|
10
|
-
import { TradeId } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import { SYMBOL, batchInput } from "../../constant";
|
|
15
15
|
import CopyText from "../../commonComponents/CopyText";
|
|
16
16
|
var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
@@ -48,10 +48,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
48
48
|
return e.stopPropagation();
|
|
49
49
|
}
|
|
50
50
|
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
51
|
-
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
|
|
52
|
-
style: {
|
|
53
|
-
color: ((record === null || record === void 0 ? void 0 : record.repeatValueKeys) || []).includes("".concat(_this.id, "_tradeId")) ? "red" : "inherit"
|
|
54
|
-
}
|
|
51
|
+
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
|
|
55
52
|
}));
|
|
56
53
|
});
|
|
57
54
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -63,13 +60,13 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
63
60
|
});
|
|
64
61
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
65
62
|
var _record;
|
|
66
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record :
|
|
63
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
|
|
67
64
|
});
|
|
68
65
|
_defineProperty(this, "editRender", function (p) {
|
|
69
66
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects, _this$effects2;
|
|
70
67
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
71
68
|
var _p$onBlur;
|
|
72
|
-
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value,
|
|
69
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
|
|
73
70
|
};
|
|
74
71
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
75
72
|
title: _this.name,
|
|
@@ -78,7 +75,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
78
75
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
76
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
77
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
81
|
-
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 :
|
|
78
|
+
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 : '',
|
|
82
79
|
component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
|
|
83
80
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
84
81
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
@@ -95,10 +92,10 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
95
92
|
// 过滤组件id
|
|
96
93
|
name: item.name,
|
|
97
94
|
// 过滤组件名称
|
|
98
|
-
filterComponentType:
|
|
95
|
+
filterComponentType: 'Input',
|
|
99
96
|
filterFn: function filterFn(value) {
|
|
100
97
|
return function (i) {
|
|
101
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
98
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
|
|
102
99
|
};
|
|
103
100
|
},
|
|
104
101
|
formatFilterValue: function formatFilterValue(input) {
|
|
@@ -119,6 +116,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
119
116
|
this.isCombinationComponent = false;
|
|
120
117
|
this.canSort = true;
|
|
121
118
|
this.children = [];
|
|
122
|
-
this.dataType =
|
|
119
|
+
this.dataType = 'string';
|
|
123
120
|
});
|
|
124
121
|
export default ETradeId;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, 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";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicCascader | StatusSelect | TradeId | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -138,14 +138,12 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
138
138
|
typeMap = {},
|
|
139
139
|
statusMap = {},
|
|
140
140
|
typeObj = {},
|
|
141
|
-
statusObj = {}
|
|
142
|
-
mainStatusObj = {};
|
|
141
|
+
statusObj = {};
|
|
143
142
|
expressList.forEach(function (item) {
|
|
144
143
|
var _item$logisticsStatus, _item$interceptionTyp;
|
|
145
144
|
if (item !== null && item !== void 0 && (_item$logisticsStatus = item.logisticsStatusList) !== null && _item$logisticsStatus !== void 0 && _item$logisticsStatus.length) {
|
|
146
145
|
item.logisticsStatusList.forEach(function (t) {
|
|
147
146
|
statusMap["".concat(t.value)] = t.label;
|
|
148
|
-
mainStatusObj["".concat(t.value)] = t.mainStatus;
|
|
149
147
|
if (statusObj[t.label]) {
|
|
150
148
|
statusObj[t.label] = statusObj[t.label].add(t.value);
|
|
151
149
|
} else {
|
|
@@ -210,8 +208,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
210
208
|
if (!tempObj[type]) {
|
|
211
209
|
tempList.push({
|
|
212
210
|
label: instance.statusNameMap[key],
|
|
213
|
-
value: type
|
|
214
|
-
mainStatus: mainStatusObj[key]
|
|
211
|
+
value: type
|
|
215
212
|
});
|
|
216
213
|
tempObj[type] = instance.statusNameMap[key];
|
|
217
214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.15.0-
|
|
3
|
+
"version": "1.15.0-rc.0",
|
|
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.15.0-
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.15.0-
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.15.0-rc.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.15.0-rc.0",
|
|
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": "9d30f50fed3a405454e80c6f5b7afa11d3346c2c",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|