@kmkf-fe-packages/services-components 2.2.39-beta.26 → 2.2.39-beta.29
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.
|
@@ -13,6 +13,8 @@ declare class BsChildPic implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
|
+
transformValue?: (val: any, record?: any, parentName?: string) => any;
|
|
17
|
+
export?: (val: any, record?: any, parentName?: string) => any;
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
getParentId: () => string;
|
|
18
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -30,6 +30,12 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
30
30
|
_defineProperty(this, "canSort", void 0);
|
|
31
31
|
_defineProperty(this, "children", void 0);
|
|
32
32
|
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
34
|
+
return val;
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "export", function (val) {
|
|
37
|
+
return val;
|
|
38
|
+
});
|
|
33
39
|
_defineProperty(this, "getParentId", function () {
|
|
34
40
|
var _this$id$split = _this.id.split("_"),
|
|
35
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
@@ -56,7 +62,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
56
62
|
return _this.renderPc(undefined, r);
|
|
57
63
|
});
|
|
58
64
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
59
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
65
|
+
return _this.transformValue ? _this.transformValue(r === null || r === void 0 ? void 0 : r[_this.id]) : r === null || r === void 0 ? void 0 : r[_this.id];
|
|
60
66
|
});
|
|
61
67
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
62
68
|
var _this$getComponentVal;
|
|
@@ -80,5 +86,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
80
86
|
this.canSort = false;
|
|
81
87
|
this.dataType = "string";
|
|
82
88
|
this.children = [];
|
|
89
|
+
if (options.transformValue) {
|
|
90
|
+
this.transformValue = options === null || options === void 0 ? void 0 : options.transformValue;
|
|
91
|
+
}
|
|
92
|
+
if (options.renderExport) {
|
|
93
|
+
this.export = options === null || options === void 0 ? void 0 : options.renderExport;
|
|
94
|
+
}
|
|
83
95
|
});
|
|
84
96
|
export default BsChildPic;
|
|
@@ -1515,7 +1515,10 @@ var GoodHeaderMap = {
|
|
|
1515
1515
|
sysPicPath: {
|
|
1516
1516
|
name: "商品图片",
|
|
1517
1517
|
width: 100,
|
|
1518
|
-
component: BsHeaderPic
|
|
1518
|
+
component: BsHeaderPic,
|
|
1519
|
+
transformValue: function transformValue(val) {
|
|
1520
|
+
return val !== null && val !== void 0 && val.startsWith("http") ? val : "https://erp.superboss.cc".concat(val);
|
|
1521
|
+
}
|
|
1519
1522
|
},
|
|
1520
1523
|
num: {
|
|
1521
1524
|
name: "数量",
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, 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, FlowOverallStatusSelect } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonInput |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonInput | JstSendGood | MsgStatus | PublicGoods | StatusSelect | SubForm | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.39-beta.
|
|
3
|
+
"version": "2.2.39-beta.29",
|
|
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.39-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.39-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.39-beta.29",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.39-beta.29",
|
|
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": "cecacd9fac188da37798f96329ca637b33ed9aa9",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|