@kmkf-fe-packages/services-components 2.2.31-beta.25 → 2.2.32
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/README.md +1 -1
- package/dist/esm/components/BS/BsLogistics/index.js +9 -9
- package/dist/esm/components/BS/common/expressCode.js +2 -1
- package/dist/esm/components/CommonHeaderGood/index.js +4 -4
- package/dist/esm/components/CommonInput/index.js +1 -9
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MsgStatus/index.js +1 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/StatusSelect/index.js +0 -4
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -82,15 +82,6 @@ var typeMap = {
|
|
|
82
82
|
companyDataType: "string",
|
|
83
83
|
companyCodeType: "arrayObject"
|
|
84
84
|
},
|
|
85
|
-
JY_LOGISTICS: {
|
|
86
|
-
key: "jyLogisticsList",
|
|
87
|
-
name: "巨益",
|
|
88
|
-
company: "jyLogisticsCompany",
|
|
89
|
-
code: "jyLogisticsCode",
|
|
90
|
-
platformType: "jy",
|
|
91
|
-
companyDataType: "arrayObject",
|
|
92
|
-
companyCodeType: "arrayObject"
|
|
93
|
-
},
|
|
94
85
|
SKX_LOGISTICS: {
|
|
95
86
|
key: "skxLogisticsList",
|
|
96
87
|
name: "斯凯奇",
|
|
@@ -110,6 +101,15 @@ var typeMap = {
|
|
|
110
101
|
companyDataType: "like",
|
|
111
102
|
companyCodeType: "like",
|
|
112
103
|
logisticsCompanyFormType: "input"
|
|
104
|
+
},
|
|
105
|
+
JY_LOGISTICS: {
|
|
106
|
+
key: "jyLogisticsList",
|
|
107
|
+
name: "巨益",
|
|
108
|
+
company: "jyLogisticsCompany",
|
|
109
|
+
code: "jyLogisticsCode",
|
|
110
|
+
platformType: "jy",
|
|
111
|
+
companyDataType: "string",
|
|
112
|
+
companyCodeType: "arrayObject"
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -80,7 +80,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
80
80
|
}
|
|
81
81
|
return /*#__PURE__*/React.createElement(BsExpressRender, {
|
|
82
82
|
list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
|
|
83
|
-
showField: "code"
|
|
83
|
+
showField: "code",
|
|
84
|
+
logisticsCompanyFormType: _this.logisticsCompanyFormType || "select"
|
|
84
85
|
});
|
|
85
86
|
});
|
|
86
87
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -1152,11 +1152,11 @@ var GoodHeaderMap = {
|
|
|
1152
1152
|
name: "总金额",
|
|
1153
1153
|
transformValue: function transformValue(val, record, parentName) {
|
|
1154
1154
|
if (!record) return "--";
|
|
1155
|
-
return (
|
|
1155
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1156
1156
|
},
|
|
1157
1157
|
renderExport: function renderExport(val, record, parentName) {
|
|
1158
1158
|
if (!record) return "--";
|
|
1159
|
-
return (
|
|
1159
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1160
1160
|
}
|
|
1161
1161
|
},
|
|
1162
1162
|
batchId: "批次号",
|
|
@@ -1264,11 +1264,11 @@ var GoodHeaderMap = {
|
|
|
1264
1264
|
name: "总金额",
|
|
1265
1265
|
transformValue: function transformValue(val, record, parentName) {
|
|
1266
1266
|
if (!record) return "--";
|
|
1267
|
-
return (
|
|
1267
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1268
1268
|
},
|
|
1269
1269
|
renderExport: function renderExport(val, record, parentName) {
|
|
1270
1270
|
if (!record) return "--";
|
|
1271
|
-
return (
|
|
1271
|
+
return (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1272
1272
|
}
|
|
1273
1273
|
},
|
|
1274
1274
|
batchId: "批次号",
|
|
@@ -17,14 +17,6 @@ var INPUT_MAP = {
|
|
|
17
17
|
key: "businessOrderNo",
|
|
18
18
|
disabled: true,
|
|
19
19
|
placeholder: "自动获取无需填写"
|
|
20
|
-
},
|
|
21
|
-
REPAIR_ORDER_SN: {
|
|
22
|
-
key: "repairOrderSn",
|
|
23
|
-
placeholder: "请输入维修单编号"
|
|
24
|
-
},
|
|
25
|
-
REPAIR_ORDER_ID: {
|
|
26
|
-
key: "repairOrderId",
|
|
27
|
-
placeholder: "请输入维修单id"
|
|
28
20
|
}
|
|
29
21
|
};
|
|
30
22
|
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
@@ -78,7 +70,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
78
70
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
71
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
72
|
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 :
|
|
73
|
+
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
74
|
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
83
75
|
placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
84
76
|
disabled: INPUT_MAP[_this.type].disabled
|
|
@@ -184,7 +184,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
184
184
|
});
|
|
185
185
|
_defineProperty(this, "filterConfig", function (item) {
|
|
186
186
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
187
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "
|
|
187
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD"].includes(_this.type) ? {
|
|
188
188
|
searchDefaultConditions: SYMBOL.in,
|
|
189
189
|
type: item.type,
|
|
190
190
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -39,15 +39,10 @@ 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"
|
|
51
46
|
}],
|
|
52
47
|
key: "msgStatusValues",
|
|
53
48
|
code: "msgStatus4Search",
|
|
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
+
formDataTransform: (value: string) => string | number;
|
|
39
40
|
}
|
|
40
41
|
export default PaymentAmount;
|
|
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
+
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
+
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
+
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
+
});
|
|
135
139
|
this.name = '打款金额';
|
|
136
140
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
137
141
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -36,10 +36,6 @@ var selectTypeMap = {
|
|
|
36
36
|
key: "agreeRefundStatusValue",
|
|
37
37
|
info: "agreeRefundStatusReason"
|
|
38
38
|
}),
|
|
39
|
-
REPAIR_ORDER_STATUS: getSelectTypeAttribute({
|
|
40
|
-
key: "repairOrderStatusValue",
|
|
41
|
-
info: "repairOrderStatusReason"
|
|
42
|
-
}),
|
|
43
39
|
REJECT_REFUND_STATUS: getSelectTypeAttribute({
|
|
44
40
|
key: "rejectRefundStatusValue",
|
|
45
41
|
info: "rejectRefundStatusReason"
|
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) => CommonInput |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BsE3Reissue | CommonDataTime | CommonInput | BasicFile | FlowOverallStatusSelect | JstSendGood | MsgStatus | BasicPicture | BasicPicturePro | PublicGoods | PublicReissueGoods | ERemark | ReturnLogistics | BasicSelect | ShopInput | StatusSelect | WdtReissue | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelectOption | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | SubForm | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
|
package/dist/esm/factory.js
CHANGED
|
@@ -228,7 +228,6 @@ export var factory = function factory(type, options) {
|
|
|
228
228
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
229
229
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
230
230
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
231
|
-
case "REPAIR_ORDER_STATUS":
|
|
232
231
|
return new StatusSelect(options);
|
|
233
232
|
case "RETURN_GOODS_STATUS":
|
|
234
233
|
case "EXCHANGE_STATUS":
|
|
@@ -265,8 +264,6 @@ export var factory = function factory(type, options) {
|
|
|
265
264
|
// 万里牛商品
|
|
266
265
|
return new WdtGoods(options);
|
|
267
266
|
case "BUSINESS_ORDER_NO":
|
|
268
|
-
case "REPAIR_ORDER_SN":
|
|
269
|
-
case "REPAIR_ORDER_ID":
|
|
270
267
|
return new CommonInput(options);
|
|
271
268
|
case "PAYMENT_VOUCHER_CODE":
|
|
272
269
|
return new PaymentVoucherCode(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32",
|
|
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.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.32",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.32",
|
|
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": "7f51024d94cfdccb5e1d8fe2b1e6fb02c8ad9a00",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|