@kmkf-fe-packages/services-components 1.22.0 → 1.22.1-beta.3
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/BS/BsSystemOrder/index.js +3 -1
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +1 -0
- package/dist/esm/components/BS/common/BsHeaderChild.js +7 -1
- package/dist/esm/components/Common/index.js +5 -1
- package/dist/esm/components/JST/JstLogistics/index.js +3 -3
- package/dist/esm/components/JST/JstSendGood/index.js +7 -0
- package/dist/esm/components/MsgStatus/index.js +8 -2
- package/dist/esm/components/Picture/index.d.ts +1 -1
- package/dist/esm/components/Picture/index.js +3 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +5 -4
- package/dist/esm/type.d.ts +2 -1
- package/package.json +6 -6
|
@@ -11,7 +11,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from
|
|
14
|
+
import { isNull, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP, KM_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
@@ -50,6 +50,7 @@ var typeMap = {
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
|
|
53
|
+
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
|
|
53
54
|
WLN_SYSTEM_ORDER: {
|
|
54
55
|
key: 'wlnSystemShowOrder',
|
|
55
56
|
name: '万里牛',
|
|
@@ -246,6 +247,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
246
247
|
this.canSort = false;
|
|
247
248
|
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) {
|
|
248
249
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
250
|
+
transformValue: column.render,
|
|
249
251
|
name: column.title,
|
|
250
252
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex),
|
|
251
253
|
width: column.width || 150
|
|
@@ -13,6 +13,7 @@ declare class BsHeaderChild implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
|
+
transformValue: (val: any) => any;
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
getParentId: () => string;
|
|
18
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -29,6 +29,9 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
33
|
+
return val;
|
|
34
|
+
});
|
|
32
35
|
_defineProperty(this, "getParentId", function () {
|
|
33
36
|
var _this$id$split = _this.id.split('_'),
|
|
34
37
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
@@ -54,7 +57,7 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
54
57
|
return _this.renderPc(undefined, r);
|
|
55
58
|
});
|
|
56
59
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
60
|
+
return _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
58
61
|
});
|
|
59
62
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
60
63
|
var _this$getComponentVal2;
|
|
@@ -79,5 +82,8 @@ var BsHeaderChild = /*#__PURE__*/_createClass(function BsHeaderChild(options) {
|
|
|
79
82
|
this.canSort = false;
|
|
80
83
|
this.dataType = 'string';
|
|
81
84
|
this.children = [];
|
|
85
|
+
if (options.transformValue) {
|
|
86
|
+
this.transformValue = options.transformValue;
|
|
87
|
+
}
|
|
82
88
|
});
|
|
83
89
|
export default BsHeaderChild;
|
|
@@ -20,6 +20,7 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
+
import { KM_SYSTEM_ORDER_CONFIG } from '@kmkf-fe-packages/kmkf-utils';
|
|
23
24
|
var Paragraph = Typography.Paragraph;
|
|
24
25
|
export var getFormItem = function getFormItem(_ref) {
|
|
25
26
|
var name = _ref.name,
|
|
@@ -1149,6 +1150,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1149
1150
|
// },
|
|
1150
1151
|
],
|
|
1151
1152
|
|
|
1153
|
+
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1152
1154
|
WLN_SYSTEM_ORDER: [{
|
|
1153
1155
|
dataIndex: 'billType',
|
|
1154
1156
|
title: '单据类型'
|
|
@@ -1239,6 +1241,7 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1239
1241
|
};
|
|
1240
1242
|
var rowKeyMap = {
|
|
1241
1243
|
BS_SYSTEM_ORDER: 'billNo',
|
|
1244
|
+
KM_SYSTEM_ORDER: 'billNo',
|
|
1242
1245
|
WLN_SYSTEM_ORDER: 'billNo',
|
|
1243
1246
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
1244
1247
|
BS_E3_SYSTEM_ORDER: 'orderSn'
|
|
@@ -1289,6 +1292,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1289
1292
|
_ref14$options = _ref14.options,
|
|
1290
1293
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1291
1294
|
var msgTypeCh = {
|
|
1295
|
+
pdd: '拼多多',
|
|
1292
1296
|
ding: '钉钉',
|
|
1293
1297
|
wechat: '微信',
|
|
1294
1298
|
qq: 'QQ',
|
|
@@ -1333,7 +1337,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1333
1337
|
var key = item.msgType || 'ding';
|
|
1334
1338
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
1335
1339
|
key: index
|
|
1336
|
-
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
1340
|
+
}, msgTypeCh[key] || key, "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
1337
1341
|
return /*#__PURE__*/React.createElement("div", {
|
|
1338
1342
|
key: "wrap_".concat(index),
|
|
1339
1343
|
style: {
|
|
@@ -57,12 +57,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
57
57
|
name: "物流公司",
|
|
58
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
59
|
options: _this.expressDateInstance.getExpressData(),
|
|
60
|
-
dataType: "
|
|
60
|
+
dataType: "arrayObject",
|
|
61
61
|
disabled: type === "logisticsCode"
|
|
62
62
|
}, {
|
|
63
63
|
name: "物流单号",
|
|
64
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: "
|
|
65
|
+
dataType: "arrayObject",
|
|
66
66
|
disabled: type === "logisticsCompany"
|
|
67
67
|
}];
|
|
68
68
|
});
|
|
@@ -121,7 +121,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
121
121
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
122
122
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
123
123
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
124
|
-
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip :
|
|
124
|
+
tooltip: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.showTooltip ? (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip : "",
|
|
125
125
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
126
126
|
type: 1,
|
|
127
127
|
options: _this.expressDateInstance.getExpressData(),
|
|
@@ -43,6 +43,13 @@ var typeMap = {
|
|
|
43
43
|
sendName: "wlnSendName",
|
|
44
44
|
platformType: 'default'
|
|
45
45
|
},
|
|
46
|
+
KM_SEND_GOOD: {
|
|
47
|
+
key: "kmSendGood",
|
|
48
|
+
name: "km",
|
|
49
|
+
sendId: "kmSendId",
|
|
50
|
+
sendName: "kmSendName",
|
|
51
|
+
platformType: 'km'
|
|
52
|
+
},
|
|
46
53
|
WDT_SEND_GOOD: {
|
|
47
54
|
key: "wdtSendGood",
|
|
48
55
|
name: "wdt",
|
|
@@ -39,10 +39,15 @@ var typeMap = {
|
|
|
39
39
|
label: '等待执行',
|
|
40
40
|
color: '#e7780f'
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: '
|
|
42
|
+
oldValue: '不满足条件,无需执行',
|
|
43
43
|
value: '不满足条件,无需执行',
|
|
44
44
|
label: '不满足条件,无需执行',
|
|
45
45
|
color: '#8A8A8A'
|
|
46
|
+
}, {
|
|
47
|
+
oldValue: '暂不满足条件,等待执行',
|
|
48
|
+
value: '暂不满足条件,等待执行',
|
|
49
|
+
label: '暂不满足条件,等待执行',
|
|
50
|
+
color: '#4D90F7'
|
|
46
51
|
}],
|
|
47
52
|
key: 'msgStatusValues',
|
|
48
53
|
code: 'msgStatus4Search',
|
|
@@ -55,6 +60,7 @@ var typeMap = {
|
|
|
55
60
|
}
|
|
56
61
|
};
|
|
57
62
|
var msgTypeCh = {
|
|
63
|
+
pdd: '拼多多',
|
|
58
64
|
ding: '钉钉',
|
|
59
65
|
wechat: '微信',
|
|
60
66
|
qq: 'QQ',
|
|
@@ -134,7 +140,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
134
140
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
135
141
|
});
|
|
136
142
|
var key = item.msgType || 'ding';
|
|
137
|
-
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
|
|
143
|
+
return "".concat(msgTypeCh[key] || key, "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
|
|
138
144
|
}).join(',');
|
|
139
145
|
});
|
|
140
146
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -13,7 +13,7 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
-
currenEnv: ComponentInterface[
|
|
16
|
+
currenEnv: ComponentInterface["platform"];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
formatPictures: (pictures: string) => string[];
|
|
19
19
|
render: (value: Value) => React.JSX.Element | null;
|
|
@@ -41,9 +41,9 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Image.PreviewGroup, {
|
|
44
|
-
preview: _this.currenEnv ===
|
|
45
|
-
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById(
|
|
46
|
-
} :
|
|
44
|
+
preview: _this.currenEnv === "ks" ? {
|
|
45
|
+
getContainer: (_document = document) === null || _document === void 0 ? void 0 : _document.getElementById("root")
|
|
46
|
+
} : true
|
|
47
47
|
}, value === null || value === void 0 ? void 0 : value.map(function (pic) {
|
|
48
48
|
return /*#__PURE__*/React.createElement("div", {
|
|
49
49
|
style: {
|
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, 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,
|
|
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, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | BasicCascader | JstSendGood |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | BasicCascader | ItemEnCode | BasicInput | JstLogistics | JstSendGood | MsgStatus | BasicPicture | BasicSelect | BasicAddress | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
|
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, 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,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -130,6 +130,7 @@ export var factory = function factory(type, options) {
|
|
|
130
130
|
case "JST_SUPPLY":
|
|
131
131
|
return new JstSupply(options);
|
|
132
132
|
case "BS_SYSTEM_ORDER":
|
|
133
|
+
case "KM_SYSTEM_ORDER":
|
|
133
134
|
case "WLN_SYSTEM_ORDER":
|
|
134
135
|
case "WDT_SYSTEM_ORDER":
|
|
135
136
|
case "BS_E3_SYSTEM_ORDER":
|
|
@@ -139,6 +140,7 @@ export var factory = function factory(type, options) {
|
|
|
139
140
|
case "BS_E3_SEND_GOOD":
|
|
140
141
|
case "WLN_SEND_GOOD":
|
|
141
142
|
case "WDT_SEND_GOOD":
|
|
143
|
+
case "KM_SEND_GOOD":
|
|
142
144
|
return new JstSendGood(options);
|
|
143
145
|
case "BS_POSTING":
|
|
144
146
|
return new BsPosting(options);
|
|
@@ -222,9 +224,8 @@ export var factory = function factory(type, options) {
|
|
|
222
224
|
return new PaymentVoucherCode(options);
|
|
223
225
|
case "LABEL":
|
|
224
226
|
return new Label(options);
|
|
225
|
-
case "KM_SEND_GOOD":
|
|
226
|
-
|
|
227
|
-
return new KmErpSendGood(options);
|
|
227
|
+
// case "KM_SEND_GOOD": // 快麦ERP发货仓
|
|
228
|
+
// return new KmErpSendGood(options);
|
|
228
229
|
case "AFTER_SALES_ORDER_ID":
|
|
229
230
|
// 售后单ID
|
|
230
231
|
return new AfterSalesOrderId(options);
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare type FilterConfigType = {
|
|
|
29
29
|
};
|
|
30
30
|
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate" | "SelectInput";
|
|
31
31
|
export interface ComponentInterface {
|
|
32
|
+
transformValue?: (val: any) => any;
|
|
32
33
|
id: string;
|
|
33
34
|
sortField: string;
|
|
34
35
|
sortChildField?: {
|
|
@@ -269,7 +270,7 @@ export interface ComponentInterface {
|
|
|
269
270
|
getComponentValue: (r: Record) => any;
|
|
270
271
|
formDataTransform?: (r: any) => any;
|
|
271
272
|
}
|
|
272
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey">;
|
|
273
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue">;
|
|
273
274
|
export declare type ColumnConfig = {
|
|
274
275
|
id: string;
|
|
275
276
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.1-beta.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"sync": "yarn build && yalc push",
|
|
11
10
|
"build": "yarn run lint && father build",
|
|
12
11
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
13
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
12
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'",
|
|
13
|
+
"sync": "yarn build && yalc push"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.22.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.1-beta.3",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.3",
|
|
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": "e29f0ae6aa1a63efec0cc0032560e56755a81cfb",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|