@kmkf-fe-packages/services-components 1.0.5-rc.1 → 1.0.6-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.
|
@@ -39,11 +39,11 @@ var Global = function Global(_ref) {
|
|
|
39
39
|
queryExpressInterceptData: queryExpressInterceptData,
|
|
40
40
|
queryLogisticsAddressData: queryLogisticsAddressData,
|
|
41
41
|
queryPlatData: queryPlatData,
|
|
42
|
-
queryWdtAddressData: servers.queryWdtAddressData,
|
|
43
42
|
queryAllLogisticsCompany: queryAllLogisticsCompany,
|
|
43
|
+
queryLabel: queryLabel,
|
|
44
|
+
queryWdtAddressData: servers.queryWdtAddressData,
|
|
44
45
|
queryWdtLogisticsCompany: queryWdtLogisticsCompany,
|
|
45
|
-
queryWdtSendData: queryWdtSendData
|
|
46
|
-
queryLabel: queryLabel
|
|
46
|
+
queryWdtSendData: queryWdtSendData
|
|
47
47
|
};
|
|
48
48
|
mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
|
|
49
49
|
promises = [];
|
|
@@ -19,7 +19,12 @@ declare class Label implements ComponentInterface {
|
|
|
19
19
|
getComponentValue: (r: Record) => any;
|
|
20
20
|
editRender: (p: any) => React.JSX.Element;
|
|
21
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
showDetail: (value: Array<
|
|
22
|
+
showDetail: (value: Array<{
|
|
23
|
+
labelId: string;
|
|
24
|
+
labelName: string;
|
|
25
|
+
labelShowName: string;
|
|
26
|
+
openId: string;
|
|
27
|
+
}>) => React.JSX.Element;
|
|
23
28
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
24
29
|
renderLog: (r: Record) => React.JSX.Element;
|
|
25
30
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -12,6 +12,7 @@ import { LabelData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
14
|
var EditRenderItem = function EditRenderItem(props) {
|
|
15
|
+
var value = props.value;
|
|
15
16
|
var tagRender = function tagRender(prop) {
|
|
16
17
|
var _props$options, _props$options$find;
|
|
17
18
|
var label = prop.label,
|
|
@@ -36,6 +37,9 @@ var EditRenderItem = function EditRenderItem(props) {
|
|
|
36
37
|
}, label);
|
|
37
38
|
};
|
|
38
39
|
return /*#__PURE__*/React.createElement(Select, _extends({}, props, {
|
|
40
|
+
value: Array.from(new Set(value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
41
|
+
return item === null || item === void 0 ? void 0 : item.labelShowName;
|
|
42
|
+
}))),
|
|
39
43
|
mode: "multiple",
|
|
40
44
|
showArrow: true,
|
|
41
45
|
tagRender: tagRender
|
|
@@ -94,7 +98,7 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
94
98
|
}, Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
95
99
|
var _this$labelDateInstan;
|
|
96
100
|
var label = ((_this$labelDateInstan = _this.labelDateInstance.labelData) === null || _this$labelDateInstan === void 0 ? void 0 : _this$labelDateInstan.find(function (item) {
|
|
97
|
-
return item.value === v;
|
|
101
|
+
return item.value === (v === null || v === void 0 ? void 0 : v.labelShowName);
|
|
98
102
|
})) || {};
|
|
99
103
|
if (!isNull(label)) return /*#__PURE__*/React.createElement(Tag, {
|
|
100
104
|
color: label === null || label === void 0 ? void 0 : label.color
|
|
@@ -109,8 +113,10 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
109
113
|
return _this.renderPc(undefined, r);
|
|
110
114
|
});
|
|
111
115
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
112
|
-
var _record;
|
|
113
|
-
return record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : _record.
|
|
116
|
+
var _record, _record$map;
|
|
117
|
+
return record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_label")]) === null || _record === void 0 ? void 0 : (_record$map = _record.map(function (item) {
|
|
118
|
+
return item === null || item === void 0 ? void 0 : item.labelShowName;
|
|
119
|
+
})) === null || _record$map === void 0 ? void 0 : _record$map.join('、');
|
|
114
120
|
});
|
|
115
121
|
_defineProperty(this, "filterConfig", function (item) {
|
|
116
122
|
return [];
|
|
@@ -118,7 +124,7 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
118
124
|
this.name = options.name;
|
|
119
125
|
this.id = options.id;
|
|
120
126
|
this.sortField = options.id;
|
|
121
|
-
this.formField = options.id;
|
|
127
|
+
this.formField = "".concat(options.id, "_label");
|
|
122
128
|
this.type = options.type;
|
|
123
129
|
this.componentConfig = options.componentConfig;
|
|
124
130
|
this.rules = [];
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, 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, CommonInput, PaymentVoucherCode,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
3
|
export declare const factory: (type: string, options: PickOption) => AliPay | BsLogistics | BsReissue | JstLogistics | JstSendGood | Label | LogisticsInterception | WdtReissue | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | CommonInput | PaymentVoucherCode;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonInput, PaymentVoucherCode,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, Label, WdtReissue } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
package/dist/esm/service/api.js
CHANGED
|
@@ -10,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
12
|
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; }
|
|
13
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, WdtSendData, servers, WDT
|
|
13
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, WdtSendData, servers, WDT } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import get from "lodash/get";
|
|
15
15
|
import request from "./request";
|
|
16
16
|
// 重复校验
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6-rc.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^1.0.
|
|
24
|
-
"@kmkf-fe-packages/kmkf-utils": "^1.0.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^1.0.6-rc.0",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^1.0.6-rc.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "5b2c23c0d040d074e8e55d1fe90d81df1998afee",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|