@kmkf-fe-packages/services-components 0.26.1-beta.2 → 0.26.1-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +2 -1
- package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +2 -2
- package/dist/esm/components/MultSelect/index.d.ts +4 -4
- package/dist/esm/components/MultSelect/index.js +13 -13
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +3 -3
|
@@ -52,12 +52,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
54
|
var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
|
|
55
|
+
console.log('renderExport', record["".concat(_this.originId, "_logisticsInterceptList")]);
|
|
55
56
|
return logisticsInterceptList.reduce(function (prv, item) {
|
|
56
57
|
var _item$interceptAddres2;
|
|
57
58
|
var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
|
|
58
59
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
59
60
|
}).join('');
|
|
60
|
-
prv.push("".concat(addressText).concat(item.interceptDetail, "\n ").concat(item.interceptReceiverName, "\n ").concat(item.interceptReceiverMobile));
|
|
61
|
+
prv.push("".concat(addressText).concat(item.interceptDetail || '', "\n ").concat((item === null || item === void 0 ? void 0 : item.interceptReceiverName) || '', "\n ").concat((item === null || item === void 0 ? void 0 : item.interceptReceiverMobile) || ''));
|
|
61
62
|
return prv;
|
|
62
63
|
}, []).join(',');
|
|
63
64
|
});
|
|
@@ -38,7 +38,7 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "renderStatus", function (record) {
|
|
40
40
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
41
|
-
var statusList = record[_this.
|
|
41
|
+
var statusList = record["".concat(_this.parentId, "_logisticsInterceptList")] || [];
|
|
42
42
|
if (isNull(statusList)) return '--';
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", null, statusList.map(function (item, index) {
|
|
44
44
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -107,10 +107,10 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
107
107
|
var hasNoCode = value.some(function (item) {
|
|
108
108
|
return !item.trajectoryCode;
|
|
109
109
|
});
|
|
110
|
-
if (
|
|
110
|
+
if (hasNoCompany) {
|
|
111
111
|
return Promise.reject(new Error("请选择物流公司"));
|
|
112
112
|
}
|
|
113
|
-
if (
|
|
113
|
+
if (hasNoCode) {
|
|
114
114
|
return Promise.reject(new Error("请输入物流单号"));
|
|
115
115
|
}
|
|
116
116
|
return Promise.resolve();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BasicMultSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,8 +11,8 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
|
+
options: ComponentInterface["options"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -6,12 +6,12 @@ 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 intersection from
|
|
11
|
-
import { ApaasMultipleSelect } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import intersection from "lodash/intersection";
|
|
11
|
+
import { ApaasMultipleSelect } from "@kmkf-fe-packages/basic-components";
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
|
|
17
17
|
var _this = this,
|
|
@@ -34,15 +34,15 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
34
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
35
|
id: _this.id,
|
|
36
36
|
label: _this.name,
|
|
37
|
-
value: record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.join(
|
|
37
|
+
value: record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.join(",")
|
|
38
38
|
}) : null;
|
|
39
39
|
});
|
|
40
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
41
41
|
var _record;
|
|
42
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])
|
|
42
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])) {
|
|
43
43
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
44
44
|
}
|
|
45
|
-
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_basicMultSelect")]) === null || _record === void 0 ? void 0 : _record.join(
|
|
45
|
+
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_basicMultSelect")]) === null || _record === void 0 ? void 0 : _record.join(","));
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderLog", function (r) {
|
|
48
48
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicMultSelect")])) return null;
|
|
@@ -53,10 +53,10 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
53
53
|
});
|
|
54
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
55
|
var _record2;
|
|
56
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])
|
|
57
|
-
return
|
|
56
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])) {
|
|
57
|
+
return "--";
|
|
58
58
|
}
|
|
59
|
-
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(
|
|
59
|
+
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(",");
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(this, "editRender", function (p) {
|
|
62
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -81,13 +81,13 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
81
81
|
// 过滤组件id
|
|
82
82
|
name: item.name,
|
|
83
83
|
// 过滤组件名称
|
|
84
|
-
filterComponentType:
|
|
84
|
+
filterComponentType: "MultipleSelect",
|
|
85
85
|
props: {
|
|
86
86
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
87
87
|
},
|
|
88
88
|
filterFn: function filterFn(value) {
|
|
89
89
|
return function (i) {
|
|
90
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
90
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "basicMultSelect")).length > 0;
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
};
|
|
@@ -102,7 +102,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
102
102
|
this.isCombinationComponent = false;
|
|
103
103
|
this.canSort = true;
|
|
104
104
|
this.children = [];
|
|
105
|
-
this.dataType =
|
|
105
|
+
this.dataType = "array";
|
|
106
106
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
107
107
|
});
|
|
108
108
|
export default BasicMultSelect;
|
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, 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, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | BasicGrade | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsMoreTrajectory | LogisticsTrajectory | MsgStatus | BasicMultSelect | Ordinary | Payment | PaymentVoucherCode | BasicPicture | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopName | StatusSelect | SystemOrderNo | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WdtGoods | WlnGoods | WorkOrderId
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowCreator | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | MsgStatus | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | PaymentVoucherCode | BasicPicture | PlatForm | BasicPosting | PrevSubmitter | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WdtGoods | WlnGoods | WorkOrderId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.26.1-beta.
|
|
3
|
+
"version": "0.26.1-beta.6",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/basic-components": "^0.26.1-beta.
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.26.1-beta.5",
|
|
24
24
|
"@kmkf-fe-packages/kmkf-utils": "^0.26.1-beta.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "7b1bdbb4586e1f95f6fea9abbdaf1bffd96cb3d9",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|