@kmkf-fe-packages/services-components 2.2.44-beta.5 → 2.2.44-beta.50
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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +11 -10
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +2 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +4 -2
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +43 -8
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +3 -2
- package/dist/esm/components/CommonHeaderGood/index.js +10 -2
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PicturePro/index.d.ts +9 -0
- package/dist/esm/components/PicturePro/index.js +17 -0
- package/dist/esm/components/Public/Goods/index.d.ts +8 -0
- package/dist/esm/components/Public/Goods/index.js +21 -2
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +1 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import LogisticsInterception from "../components/LogisticsInterception";
|
|
2
2
|
import LogisticsMoreInterception from "../components/LogisticsMoreInterception";
|
|
3
|
-
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/TradeId").default | import("../components/Input").default | import("../components/TypeInput").default | import("../components/Address").default | import("../components/Cascader").default | import("../components/Checkbox").default | import("../components/DataTime").default | import("../components/Select").default | import("../components/SelectOption").default | import("../components/Radio").default | import("../components/TextArea").default | import("../components/Picture").default | import("../components/PicturePro").default | import("../components/MultSelect").default | import("../components/Grade").default | import("../components/Rate").default | import("../components/File").default | import("../components/PostIng").default | import("../components/SubForm").default | import("../components/CommonDataTime").default | import("../components/ShopName").default | import("../components/BuyerNick").default | import("../components/ReceiverName").default | import("../components/ReceiverMobile").default | import("../components/ReceiverAddress").default | import("../components/TradeDateTime").default | import("../components/Logistics").default | import("../components/ReturnLogistics").default | import("../components/ActualPayment").default | import("../components/Remark").default | import("../components/Alipay").default | import("../components/EItemSelect").default | import("../components/EItemId").default | import("../components/EItemEnCode").default | import("../components/SystemOrderNo").default | import("../components/Ordinary").default | import("../components/ThirdItemSelect").default | import("../components/Payment").default | import("../components/Reissue/Logistics").default | import("../components/JST/JstItemSelect").default | import("../components/JST/JstSendGood").default | import("../components/JST/JstSupply").default | import("../components/BS/BsSystemOrder").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").default | import("../components/Public/Goods").default | import("../components/Public/ReissueGoods").default | import("../components/Public/Exchange").default | import("../components/BsE3/BsReissueE3").default | import("../components/BS/BsExchange").default | import("../components/BS/BsReissue").default | import("../components/BS/BsReturn").default | import("../components/FlowStatusSelect").default | import("../components/FlowMarkSelect").default | import("../components/FlowTag").default | import("../components/TemplateSelect").default | import("../components/WorkOrderId").default | LogisticsInterception | LogisticsMoreInterception | import("../components/LogisticsTrajectory").default | import("../components/LogisticsMoreTrajectory").default | import("../components/PlatForm").default | import("../components/ShopInput").default | import("../components/Submitter").default | import("../components/PrevSubmitter").default | import("../components/FlowCreator").default | import("../components/Handler").default | import("../components/CompletedUser").default | import("../components/FlowWorkOrderId").default | import("../components/StatusSelect").default | import("../components/Calculation").default | import("../components/CommonSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").default | import("../components/WLN/WlnGoods").default | import("../components/BS/BsPosting").default | import("../components/NodeInput").default | import("../components/FlowWorkOrderStatus").default | import("../components/MsgStatus").default | import("../components/WDT/WdtGoods").default | import("../components/WDT/WdtRessuie").default | import("../components/WDT/WdtReturn").default | import("../components/WDT/WdtExchange").default | import("../components/WDT/WdtShopSelect").default | import("../components/KM/KmVideo").default | import("../components/CommonInput").default | import("../components/PaymentVoucherCode").default | import("../components/Label").default | import("../components/MemberLevel").default | import("../components/AfterSalesOrderId").default | import("../components/GY/GyGoods").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/Public/AsyncSelect").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default;
|
|
4
4
|
export declare const useColumnsConfig: ({ queryWorkOrderDetail, flatTemplateList, shopList, sortState, onChangeSort, handleReset, handleSubmit, handleChangeSingleWorkOrderMark, userList, tbAppKey, isShare, openSingleColumnsFilter, openSingleColumnsSort, }: {
|
|
5
5
|
queryWorkOrderDetail?: ((p: any) => void) | undefined;
|
|
6
6
|
flatTemplateList?: any;
|
|
@@ -33,27 +33,28 @@ function useGetErpAddressData(reduxData, notJudgedErp) {
|
|
|
33
33
|
promises = [];
|
|
34
34
|
if (hasBs || notJudgedErp) promises.push(servers.queryBsAddressData);
|
|
35
35
|
if (hasWdt || notJudgedErp) promises.push(servers.queryWdtAddressData);
|
|
36
|
-
|
|
36
|
+
// JKY用的系统的地址,暂时不需要查询
|
|
37
|
+
// if (hasJky || notJudgedErp) promises.push(servers.queryJkyAddressData);
|
|
37
38
|
if (hasGy || notJudgedErp) promises.push(servers.queryGyAddressData);
|
|
38
39
|
if (hasJst || notJudgedErp) promises.push(servers.queryJstAddressData);
|
|
39
|
-
_context.prev =
|
|
40
|
-
_context.next =
|
|
40
|
+
_context.prev = 7;
|
|
41
|
+
_context.next = 10;
|
|
41
42
|
return Promise.all(promises.map(function (promise) {
|
|
42
43
|
return promise();
|
|
43
44
|
}));
|
|
44
|
-
case
|
|
45
|
+
case 10:
|
|
45
46
|
setGlobalState("success");
|
|
46
|
-
_context.next =
|
|
47
|
+
_context.next = 16;
|
|
47
48
|
break;
|
|
48
|
-
case
|
|
49
|
-
_context.prev =
|
|
50
|
-
_context.t0 = _context["catch"](
|
|
49
|
+
case 13:
|
|
50
|
+
_context.prev = 13;
|
|
51
|
+
_context.t0 = _context["catch"](7);
|
|
51
52
|
setGlobalState("failed");
|
|
52
|
-
case
|
|
53
|
+
case 16:
|
|
53
54
|
case "end":
|
|
54
55
|
return _context.stop();
|
|
55
56
|
}
|
|
56
|
-
}, _callee, null, [[
|
|
57
|
+
}, _callee, null, [[7, 13]]);
|
|
57
58
|
}));
|
|
58
59
|
return function asyncQueryData(_x2, _x3, _x4) {
|
|
59
60
|
return _ref.apply(this, arguments);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, interceptCompanyName, }: {
|
|
2
|
+
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, interceptCompanyName, shopUk, }: {
|
|
3
3
|
title?: string | undefined;
|
|
4
4
|
modelWidth?: string | number | undefined;
|
|
5
5
|
interceptCompany?: string | undefined;
|
|
6
6
|
interceptCode: string;
|
|
7
7
|
interceptSenderMobile?: string | number | undefined;
|
|
8
8
|
interceptCompanyName?: string | undefined;
|
|
9
|
+
shopUk?: string | undefined;
|
|
9
10
|
}) => React.JSX.Element;
|
|
10
11
|
export default QueryLogisticsTrack;
|
|
@@ -20,7 +20,8 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
20
20
|
interceptCompany = _ref.interceptCompany,
|
|
21
21
|
interceptCode = _ref.interceptCode,
|
|
22
22
|
interceptSenderMobile = _ref.interceptSenderMobile,
|
|
23
|
-
interceptCompanyName = _ref.interceptCompanyName
|
|
23
|
+
interceptCompanyName = _ref.interceptCompanyName,
|
|
24
|
+
shopUk = _ref.shopUk;
|
|
24
25
|
var _useState = useState(""),
|
|
25
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
27
|
inputVal = _useState2[0],
|
|
@@ -97,7 +98,8 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
97
98
|
mailNo: interceptCode,
|
|
98
99
|
cpCode: interceptCompany,
|
|
99
100
|
mobile: interceptSenderMobile || mobile,
|
|
100
|
-
cpName: interceptCompanyName
|
|
101
|
+
cpName: interceptCompanyName,
|
|
102
|
+
shopUk: shopUk
|
|
101
103
|
},
|
|
102
104
|
handleError: function handleError(msg) {
|
|
103
105
|
msg && message.error(msg);
|
|
@@ -13,7 +13,15 @@ declare class BsSystemOrder implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
+
sortChildField: {
|
|
17
|
+
name: string;
|
|
18
|
+
key: string;
|
|
19
|
+
dataType: string;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}[];
|
|
22
|
+
compoundConfig: ComponentInterface["compoundConfig"];
|
|
16
23
|
constructor(options: PickOption);
|
|
24
|
+
getSortChildFields: () => any;
|
|
17
25
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
26
|
renderPc: () => null;
|
|
19
27
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -2,6 +2,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
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; }
|
|
5
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -34,7 +40,9 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
34
40
|
_getSystemShowHead,
|
|
35
41
|
_typeMap$options$type,
|
|
36
42
|
_options$componentCon,
|
|
37
|
-
_this$
|
|
43
|
+
_this$componentConfig6,
|
|
44
|
+
_typeMap$options$type2,
|
|
45
|
+
_typeMap$options$type3;
|
|
38
46
|
_classCallCheck(this, BsSystemOrder);
|
|
39
47
|
_defineProperty(this, "name", void 0);
|
|
40
48
|
_defineProperty(this, "id", void 0);
|
|
@@ -48,15 +56,40 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
48
56
|
_defineProperty(this, "canSort", void 0);
|
|
49
57
|
_defineProperty(this, "dataType", void 0);
|
|
50
58
|
_defineProperty(this, "children", void 0);
|
|
59
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
60
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
61
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
62
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
|
|
63
|
+
return [{
|
|
64
|
+
name: "绑定订单号",
|
|
65
|
+
key: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.orderNo,
|
|
66
|
+
dataType: "string"
|
|
67
|
+
}, {
|
|
68
|
+
name: "选中系统订单号",
|
|
69
|
+
key: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.selectId,
|
|
70
|
+
dataType: "array"
|
|
71
|
+
}].concat(_toConsumableArray(getSystemShowHead({
|
|
72
|
+
columns: ((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.columns) || [],
|
|
73
|
+
showHeader: (_this === null || _this === void 0 ? void 0 : (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
74
|
+
}).filter(function (item) {
|
|
75
|
+
return !["picUrl"].includes(item.dataIndex);
|
|
76
|
+
}).map(function (item) {
|
|
77
|
+
return {
|
|
78
|
+
name: item.title,
|
|
79
|
+
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
80
|
+
dataType: "arrayObject"
|
|
81
|
+
};
|
|
82
|
+
})));
|
|
83
|
+
});
|
|
51
84
|
_defineProperty(this, "renderClient", function (record) {
|
|
52
|
-
var _this$
|
|
85
|
+
var _this$componentConfig2;
|
|
53
86
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
54
87
|
id: _this.id,
|
|
55
88
|
label: _this.name,
|
|
56
89
|
value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
57
90
|
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
|
|
58
91
|
type: _this.type,
|
|
59
|
-
showHeader: ((_this$
|
|
92
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
60
93
|
})
|
|
61
94
|
})) : null;
|
|
62
95
|
});
|
|
@@ -64,7 +97,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
64
97
|
return null;
|
|
65
98
|
});
|
|
66
99
|
_defineProperty(this, "renderLog", function (r) {
|
|
67
|
-
var _this$
|
|
100
|
+
var _this$componentConfig3;
|
|
68
101
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
|
|
69
102
|
return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
|
|
70
103
|
value: {
|
|
@@ -72,7 +105,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
72
105
|
selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
|
|
73
106
|
},
|
|
74
107
|
type: _this.type,
|
|
75
|
-
showHeader: ((_this$
|
|
108
|
+
showHeader: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || []
|
|
76
109
|
});
|
|
77
110
|
});
|
|
78
111
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
@@ -82,7 +115,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
82
115
|
return null;
|
|
83
116
|
});
|
|
84
117
|
_defineProperty(this, "editRender", function (p) {
|
|
85
|
-
var _this$
|
|
118
|
+
var _this$componentConfig4, _this$componentConfig5;
|
|
86
119
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
87
120
|
title: _this.name,
|
|
88
121
|
name: _this.id,
|
|
@@ -90,7 +123,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
90
123
|
required: false,
|
|
91
124
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
92
125
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
93
|
-
tooltip: (_this$
|
|
126
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
|
|
94
127
|
component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
|
|
95
128
|
onChange: p === null || p === void 0 ? void 0 : p.onChange,
|
|
96
129
|
type: _this.type
|
|
@@ -132,7 +165,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
132
165
|
}));
|
|
133
166
|
})) || [];
|
|
134
167
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
135
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
168
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
|
|
136
169
|
required: true,
|
|
137
170
|
validator: function validator(_, value) {
|
|
138
171
|
var _value$selectIds;
|
|
@@ -143,5 +176,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
143
176
|
}
|
|
144
177
|
}] : [];
|
|
145
178
|
this.dataType = "object";
|
|
179
|
+
this.sortChildField = this.getSortChildFields();
|
|
180
|
+
this.compoundConfig = (_typeMap$options$type2 = typeMap[options.type]) !== null && _typeMap$options$type2 !== void 0 && _typeMap$options$type2.compoundConfig ? (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.compoundConfig(options.id) : [];
|
|
146
181
|
});
|
|
147
182
|
export default BsSystemOrder;
|
|
@@ -1,19 +1,21 @@
|
|
|
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 BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
format: ComponentInterface[
|
|
16
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
format: ComponentInterface['format'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
17
|
+
exampleValue?: string;
|
|
18
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
/**
|
|
19
21
|
* 通过值计算展示内容
|
|
@@ -6,13 +6,13 @@ 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 { Cascader } from
|
|
11
|
-
import intersection from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Cascader } from 'antd';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
12
12
|
import GetFormItem from "../GetFormItem";
|
|
13
|
-
import { findLabelBySelectValue, transMultSelectOptions, tree } from
|
|
13
|
+
import { findLabelBySelectValue, transMultSelectOptions, tree } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
18
18
|
var _this = this,
|
|
@@ -31,11 +31,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
31
31
|
_defineProperty(this, "dataType", void 0);
|
|
32
32
|
_defineProperty(this, "format", void 0);
|
|
33
33
|
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
35
|
+
_defineProperty(this, "standardDateType", void 0);
|
|
34
36
|
_defineProperty(this, "getValues", function (value) {
|
|
35
37
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
36
38
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
37
39
|
return i.label;
|
|
38
|
-
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(
|
|
40
|
+
})) === null || _findLabelBySelectVal2 === void 0 ? void 0 : _findLabelBySelectVal2.join(',');
|
|
39
41
|
});
|
|
40
42
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
43
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -51,7 +53,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
51
53
|
}
|
|
52
54
|
return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
|
|
53
55
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
54
|
-
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(
|
|
56
|
+
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
|
|
55
57
|
// return (
|
|
56
58
|
// <span>
|
|
57
59
|
// {findLabelBySelectValue(
|
|
@@ -75,11 +77,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
75
77
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
78
|
var _ref2, _ref2$map;
|
|
77
79
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
|
|
78
|
-
return
|
|
80
|
+
return '--';
|
|
79
81
|
}
|
|
80
82
|
return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
|
|
81
83
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
82
|
-
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(
|
|
84
|
+
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
|
|
83
85
|
// return findLabelBySelectValue(
|
|
84
86
|
// (record?.[`${this.id}_multSelect`] || [])?.map(
|
|
85
87
|
// (item: any) => item.actived
|
|
@@ -98,14 +100,14 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
98
100
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
99
101
|
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
100
102
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
101
|
-
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip :
|
|
103
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
|
|
102
104
|
component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
|
|
103
105
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
104
106
|
options: transMultSelectOptions(((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || []),
|
|
105
107
|
fieldNames: {
|
|
106
|
-
label:
|
|
107
|
-
value:
|
|
108
|
-
children:
|
|
108
|
+
label: 'label',
|
|
109
|
+
value: 'actived',
|
|
110
|
+
children: 'children'
|
|
109
111
|
},
|
|
110
112
|
showSearch: true,
|
|
111
113
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
@@ -122,26 +124,26 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
122
124
|
// 过滤组件id
|
|
123
125
|
name: item.name,
|
|
124
126
|
// 过滤组件名称
|
|
125
|
-
filterComponentType:
|
|
127
|
+
filterComponentType: 'Cascader',
|
|
126
128
|
props: {
|
|
127
129
|
options: options,
|
|
128
130
|
multiple: true,
|
|
129
|
-
maxTagCount:
|
|
131
|
+
maxTagCount: 'responsive',
|
|
130
132
|
fieldNames: {
|
|
131
|
-
label:
|
|
132
|
-
value:
|
|
133
|
-
children:
|
|
133
|
+
label: 'label',
|
|
134
|
+
value: 'actived',
|
|
135
|
+
children: 'children'
|
|
134
136
|
}
|
|
135
137
|
},
|
|
136
138
|
filterFn: function filterFn(value) {
|
|
137
139
|
return function (i) {
|
|
138
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
140
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
139
141
|
};
|
|
140
142
|
},
|
|
141
143
|
formatFilterValue: function formatFilterValue(val) {
|
|
142
144
|
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
143
145
|
return val.map(function (item) {
|
|
144
|
-
var node = tree.findNodeByValue(options,
|
|
146
|
+
var node = tree.findNodeByValue(options, 'actived', item[item.length - 1]);
|
|
145
147
|
if (node) {
|
|
146
148
|
var label = node.label,
|
|
147
149
|
actived = node.actived;
|
|
@@ -165,9 +167,11 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
165
167
|
this.children = [];
|
|
166
168
|
this.isCombinationComponent = false;
|
|
167
169
|
this.canSort = true;
|
|
168
|
-
this.dataType =
|
|
169
|
-
this.format =
|
|
170
|
+
this.dataType = 'array';
|
|
171
|
+
this.format = 'cascader';
|
|
170
172
|
this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
|
|
173
|
+
this.standardDateType = 'Array';
|
|
174
|
+
this.exampleValue = '[{"label":"卖家补偿","actived":3},{"label":"麦基修改","actived":"3-1"}]';
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
/**
|
|
@@ -25,7 +25,7 @@ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: {
|
|
|
25
25
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
26
26
|
export declare const JstGoodImage: ({ list, type, platformType, logisticsCompanyFormType, }: any) => any;
|
|
27
27
|
export declare const BsExpressRender: ({ list, showField, platformType, logisticsCompanyFormType, }: any) => any;
|
|
28
|
-
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, }: any) => any;
|
|
28
|
+
export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, idKey, }: any) => any;
|
|
29
29
|
export declare const BsGoodImage: ({ item, index }: {
|
|
30
30
|
item: any;
|
|
31
31
|
index: number;
|
|
@@ -333,7 +333,8 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
333
333
|
_ref8$options = _ref8.options,
|
|
334
334
|
options = _ref8$options === void 0 ? [] : _ref8$options,
|
|
335
335
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
336
|
-
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover
|
|
336
|
+
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover,
|
|
337
|
+
idKey = _ref8.idKey;
|
|
337
338
|
var getContentData = function getContentData(item, index) {
|
|
338
339
|
if (item.platformId) return {
|
|
339
340
|
text: "平台售后单号",
|
|
@@ -345,7 +346,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
345
346
|
};
|
|
346
347
|
return {
|
|
347
348
|
text: "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
|
|
348
|
-
id: item.systemOrderId || item.systemOrderNo
|
|
349
|
+
id: item.systemOrderId || item.systemOrderNo || (item === null || item === void 0 ? void 0 : item[idKey])
|
|
349
350
|
};
|
|
350
351
|
};
|
|
351
352
|
var orderContent = function orderContent(item, index) {
|
|
@@ -2147,7 +2147,7 @@ var GoodHeaderMap = {
|
|
|
2147
2147
|
},
|
|
2148
2148
|
sellTotal: {
|
|
2149
2149
|
component: BsHeaderChild,
|
|
2150
|
-
name: "
|
|
2150
|
+
name: "总金额",
|
|
2151
2151
|
key: "sellTotal",
|
|
2152
2152
|
width: 150
|
|
2153
2153
|
},
|
|
@@ -2219,7 +2219,15 @@ var GoodHeaderMap = {
|
|
|
2219
2219
|
component: BsHeaderChild,
|
|
2220
2220
|
name: "是否预售货品",
|
|
2221
2221
|
key: "isPresell",
|
|
2222
|
-
width: 150
|
|
2222
|
+
width: 150,
|
|
2223
|
+
transformValue: function transformValue(val) {
|
|
2224
|
+
if (isNull(val)) return "--";
|
|
2225
|
+
return val === "1" ? "是" : "否";
|
|
2226
|
+
},
|
|
2227
|
+
renderExport: function renderExport(val) {
|
|
2228
|
+
if (isNull(val)) return "--";
|
|
2229
|
+
return val === "1" ? "是" : "否";
|
|
2230
|
+
}
|
|
2223
2231
|
},
|
|
2224
2232
|
brandName: {
|
|
2225
2233
|
component: BsHeaderChild,
|
|
@@ -133,6 +133,41 @@ var typeMap = {
|
|
|
133
133
|
idKey: "systemOrderId",
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
|
+
},
|
|
137
|
+
JKY_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "0",
|
|
140
|
+
label: "未收货",
|
|
141
|
+
color: "#ff4d4f"
|
|
142
|
+
}, {
|
|
143
|
+
value: "1",
|
|
144
|
+
label: "部分收货",
|
|
145
|
+
color: "#e7780f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "2",
|
|
148
|
+
label: "收货完成",
|
|
149
|
+
color: "#52c41a"
|
|
150
|
+
}, {
|
|
151
|
+
label: "收货完成-少收",
|
|
152
|
+
value: "3",
|
|
153
|
+
color: "#e7780f"
|
|
154
|
+
}, {
|
|
155
|
+
label: "收货完成-超收",
|
|
156
|
+
value: "4",
|
|
157
|
+
color: "#e7780f"
|
|
158
|
+
}, {
|
|
159
|
+
label: "无需收货",
|
|
160
|
+
value: "5",
|
|
161
|
+
color: "#52c41a"
|
|
162
|
+
}],
|
|
163
|
+
key: "jkyInStockStatusItemList",
|
|
164
|
+
code: "jkyInStockStatusList",
|
|
165
|
+
name: "商品入库状态(勿填)",
|
|
166
|
+
type: 2,
|
|
167
|
+
valueKey: "status",
|
|
168
|
+
idKey: "sourceTradeNo",
|
|
169
|
+
failValue: "失败",
|
|
170
|
+
dataType: "array_object"
|
|
136
171
|
}
|
|
137
172
|
};
|
|
138
173
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
@@ -158,7 +193,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
158
193
|
_defineProperty(this, "dataType", void 0);
|
|
159
194
|
_defineProperty(this, "isSingleValue", void 0);
|
|
160
195
|
_defineProperty(this, "renderClient", function (record) {
|
|
161
|
-
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
196
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
|
|
162
197
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
163
198
|
return !isNull(item);
|
|
164
199
|
}) : false;
|
|
@@ -167,16 +202,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
167
202
|
label: _this.name,
|
|
168
203
|
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
169
204
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
205
|
+
idKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.idKey,
|
|
206
|
+
valueKey: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.valueKey,
|
|
207
|
+
failValue: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.failValue,
|
|
208
|
+
options: (_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.options,
|
|
173
209
|
isShowPopover: !_this.isSingleValue
|
|
174
210
|
})
|
|
175
211
|
}) : null;
|
|
176
212
|
});
|
|
177
213
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
178
|
-
var _typeMap$_this$
|
|
179
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
214
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9;
|
|
215
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
|
|
180
216
|
//兼容多个商品
|
|
181
217
|
return /*#__PURE__*/React.createElement("span", {
|
|
182
218
|
onClick: function onClick(e) {
|
|
@@ -184,40 +220,41 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
184
220
|
}
|
|
185
221
|
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
186
222
|
list: list,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
223
|
+
idKey: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.idKey,
|
|
224
|
+
valueKey: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.valueKey,
|
|
225
|
+
failValue: (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.failValue,
|
|
226
|
+
options: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.options,
|
|
190
227
|
isShowPopover: !_this.isSingleValue
|
|
191
228
|
}));
|
|
192
229
|
});
|
|
193
230
|
_defineProperty(this, "renderLog", function (r) {
|
|
194
|
-
var _typeMap$_this$
|
|
195
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
231
|
+
var _typeMap$_this$type10;
|
|
232
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
196
233
|
if (isNull(list)) return null;
|
|
197
234
|
return _this.renderPc(undefined, r);
|
|
198
235
|
});
|
|
199
236
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
200
|
-
var _typeMap$_this$
|
|
201
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
237
|
+
var _typeMap$_this$type11;
|
|
238
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.key)];
|
|
202
239
|
});
|
|
203
240
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
204
|
-
var _typeMap$_this$
|
|
205
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
241
|
+
var _typeMap$_this$type12;
|
|
242
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key)];
|
|
206
243
|
return (list || []).map(function (item) {
|
|
207
|
-
var _typeMap$_this$
|
|
208
|
-
var currentOption = (_typeMap$_this$
|
|
209
|
-
var _typeMap$_this$
|
|
210
|
-
return item[(_typeMap$_this$
|
|
244
|
+
var _typeMap$_this$type13, _typeMap$_this$type14, _typeMap$_this$type15, _typeMap$_this$type18, _typeMap$_this$type19;
|
|
245
|
+
var currentOption = (_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : (_typeMap$_this$type14 = _typeMap$_this$type13.options) === null || _typeMap$_this$type14 === void 0 ? void 0 : (_typeMap$_this$type15 = _typeMap$_this$type14.find) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.call(_typeMap$_this$type14, function (option) {
|
|
246
|
+
var _typeMap$_this$type16;
|
|
247
|
+
return item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey] === option.value;
|
|
211
248
|
});
|
|
212
249
|
if (_this.isSingleValue) {
|
|
213
|
-
var _typeMap$_this$
|
|
214
|
-
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$
|
|
250
|
+
var _typeMap$_this$type17;
|
|
251
|
+
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.valueKey]) || "";
|
|
215
252
|
}
|
|
216
|
-
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$
|
|
253
|
+
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.valueKey]) || "");
|
|
217
254
|
}).join(",");
|
|
218
255
|
});
|
|
219
256
|
_defineProperty(this, "editRender", function (p) {
|
|
220
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$
|
|
257
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type20;
|
|
221
258
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
222
259
|
title: _this.name,
|
|
223
260
|
name: _this.id,
|
|
@@ -227,19 +264,19 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
227
264
|
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,
|
|
228
265
|
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 : "",
|
|
229
266
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
230
|
-
type: (_typeMap$_this$
|
|
267
|
+
type: (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.type,
|
|
231
268
|
failValue: typeMap[_this.type].failValue
|
|
232
269
|
}))
|
|
233
270
|
});
|
|
234
271
|
});
|
|
235
272
|
_defineProperty(this, "filterConfig", function (item) {
|
|
236
|
-
var _typeMap$_this$
|
|
273
|
+
var _typeMap$_this$type21, _item$templateConfig;
|
|
237
274
|
return {
|
|
238
|
-
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
275
|
+
searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
|
|
239
276
|
type: item.type,
|
|
240
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
277
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
241
278
|
name: "".concat(_this.name),
|
|
242
|
-
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
279
|
+
filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
|
|
243
280
|
props: {
|
|
244
281
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
245
282
|
fieldNames: {
|
|
@@ -250,11 +287,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
250
287
|
},
|
|
251
288
|
filterFn: function filterFn(value) {
|
|
252
289
|
return function (i) {
|
|
253
|
-
var _typeMap$_this$
|
|
254
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$
|
|
290
|
+
var _typeMap$_this$type22;
|
|
291
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
255
292
|
};
|
|
256
293
|
},
|
|
257
|
-
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
294
|
+
formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
|
|
258
295
|
if (value.type === "in") {
|
|
259
296
|
return value.keywords;
|
|
260
297
|
} else {
|
|
@@ -279,17 +316,17 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
279
316
|
required: true,
|
|
280
317
|
validator: function validator(_, value) {
|
|
281
318
|
var hasNo = (value || []).some(function (item) {
|
|
282
|
-
var _typeMap$_this$
|
|
283
|
-
return item[(_typeMap$_this$
|
|
319
|
+
var _typeMap$_this$type23;
|
|
320
|
+
return item[(_typeMap$_this$type23 = typeMap[_this.type]) === null || _typeMap$_this$type23 === void 0 ? void 0 : _typeMap$_this$type23.valueKey];
|
|
284
321
|
});
|
|
285
322
|
if (!hasNo) {
|
|
286
|
-
var _typeMap$_this$
|
|
287
|
-
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$
|
|
323
|
+
var _typeMap$_this$type24;
|
|
324
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type24 = typeMap[_this.type]) === null || _typeMap$_this$type24 === void 0 ? void 0 : _typeMap$_this$type24.name)));
|
|
288
325
|
}
|
|
289
326
|
return Promise.resolve();
|
|
290
327
|
}
|
|
291
328
|
}] : [];
|
|
292
329
|
this.align = "left";
|
|
293
|
-
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS";
|
|
330
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
|
|
294
331
|
});
|
|
295
332
|
export default CommonMultiStatus;
|
|
@@ -113,6 +113,7 @@ function Logistics(options) {
|
|
|
113
113
|
name: _this.id,
|
|
114
114
|
rules: _this.rules,
|
|
115
115
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
116
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
116
117
|
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,
|
|
117
118
|
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 : "",
|
|
118
119
|
component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import AlipayNick from
|
|
4
|
-
import AlipayNo from
|
|
5
|
-
import AlipayTime from
|
|
6
|
-
import BuyerNick from
|
|
7
|
-
import PaymentAmount from
|
|
8
|
-
import PaymentStatus from
|
|
9
|
-
import PaymentTid from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import AlipayNick from './AlipayNick';
|
|
4
|
+
import AlipayNo from './AlipayNo';
|
|
5
|
+
import AlipayTime from './AlipayTime';
|
|
6
|
+
import BuyerNick from './BuyerNick';
|
|
7
|
+
import PaymentAmount from './PaymentAmount';
|
|
8
|
+
import PaymentStatus from './PaymentStatus';
|
|
9
|
+
import PaymentTid from './PaymentTid';
|
|
10
10
|
declare class Logistics implements ComponentInterface {
|
|
11
11
|
name: string;
|
|
12
12
|
id: string;
|
|
13
13
|
sortField: string;
|
|
14
14
|
type: string;
|
|
15
15
|
rules: any[];
|
|
16
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
17
17
|
paymentTid: PaymentTid;
|
|
18
18
|
paymentStatus: PaymentStatus;
|
|
19
19
|
paymentAmount: PaymentAmount;
|
|
@@ -25,8 +25,9 @@ declare class Logistics implements ComponentInterface {
|
|
|
25
25
|
formField: string;
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
|
-
dataType: ComponentInterface[
|
|
29
|
-
effects: ComponentInterface[
|
|
28
|
+
dataType: ComponentInterface['dataType'];
|
|
29
|
+
effects: ComponentInterface['effects'];
|
|
30
|
+
compoundConfig: ComponentInterface['compoundConfig'];
|
|
30
31
|
constructor(options: PickOption);
|
|
31
32
|
renderClient: (record: any, params: any) => React.JSX.Element;
|
|
32
33
|
renderPc: () => null;
|
|
@@ -8,8 +8,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
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); }
|
|
11
|
-
import React from
|
|
12
|
-
import { Payment as ApaasPayment } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Payment as ApaasPayment } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import AlipayNick from "./AlipayNick";
|
|
15
15
|
import AlipayNo from "./AlipayNo";
|
|
@@ -40,6 +40,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
40
40
|
_defineProperty(this, "children", void 0);
|
|
41
41
|
_defineProperty(this, "dataType", void 0);
|
|
42
42
|
_defineProperty(this, "effects", void 0);
|
|
43
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
43
44
|
_defineProperty(this, "renderClient", function (record, params) {
|
|
44
45
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record, params), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
|
|
45
46
|
});
|
|
@@ -104,32 +105,51 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
104
105
|
validator: function validator(_, value) {
|
|
105
106
|
var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9;
|
|
106
107
|
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
|
|
107
|
-
return Promise.reject(new Error(
|
|
108
|
+
return Promise.reject(new Error('请输入打款金额'));
|
|
108
109
|
} else if (value !== null && value !== void 0 && value.enterprisePaymentRefundFee && !/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value === null || value === void 0 ? void 0 : value.enterprisePaymentRefundFee)) {
|
|
109
|
-
return Promise.reject(new Error(
|
|
110
|
+
return Promise.reject(new Error('打款金额最多2位小数'));
|
|
110
111
|
}
|
|
111
112
|
if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
|
|
112
|
-
return Promise.reject(new Error(
|
|
113
|
+
return Promise.reject(new Error('请输入订单编号'));
|
|
113
114
|
} else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
|
|
114
|
-
return Promise.reject(new Error(
|
|
115
|
+
return Promise.reject(new Error('请输入正确的订单编号'));
|
|
115
116
|
}
|
|
116
117
|
if ((_this$componentConfig8 = _this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
|
|
117
|
-
return Promise.reject(new Error(
|
|
118
|
+
return Promise.reject(new Error('请输入支付宝名称'));
|
|
118
119
|
}
|
|
119
120
|
if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
|
|
120
|
-
return Promise.reject(new Error(
|
|
121
|
+
return Promise.reject(new Error('请输入支付宝账号'));
|
|
121
122
|
} else if (value.enterprisePaymentAlipayNo && !/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value.enterprisePaymentAlipayNo)) {
|
|
122
|
-
return Promise.reject(new Error(
|
|
123
|
+
return Promise.reject(new Error('请输入正确的支付宝账号格式'));
|
|
123
124
|
}
|
|
124
125
|
//支付宝信息不能只填一个,否则不能打款
|
|
125
126
|
if (value !== null && value !== void 0 && value.enterprisePaymentAlipayNick || value !== null && value !== void 0 && value.enterprisePaymentAlipayNo) {
|
|
126
127
|
if (!(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick && value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
|
|
127
|
-
return Promise.reject(new Error(
|
|
128
|
+
return Promise.reject(new Error('支付宝姓名/账号都要填写'));
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
return Promise.resolve();
|
|
131
132
|
}
|
|
132
133
|
}];
|
|
133
|
-
this.dataType =
|
|
134
|
+
this.dataType = 'object';
|
|
135
|
+
this.compoundConfig = [{
|
|
136
|
+
name: "\u8BA2\u5355\u7F16\u53F7",
|
|
137
|
+
id: "".concat(options.id, "_enterprisePaymentTid")
|
|
138
|
+
}, {
|
|
139
|
+
name: "\u6253\u6B3E\u91D1\u989D",
|
|
140
|
+
id: "".concat(options.id, "_enterprisePaymentRefundFee")
|
|
141
|
+
}, {
|
|
142
|
+
name: "\u4E70\u5BB6\u6635\u79F0",
|
|
143
|
+
id: "".concat(options.id, "_enterprisePaymentBuyerNick")
|
|
144
|
+
}, {
|
|
145
|
+
name: "\u652F\u4ED8\u5B9D\u59D3\u540D",
|
|
146
|
+
id: "".concat(options.id, "_enterprisePaymentAlipayNick")
|
|
147
|
+
}, {
|
|
148
|
+
name: "\u652F\u4ED8\u5B9D\u8D26\u53F7",
|
|
149
|
+
id: "".concat(options.id, "_enterprisePaymentAlipayNo")
|
|
150
|
+
}, {
|
|
151
|
+
name: "\u6253\u6B3E\u72B6\u6001",
|
|
152
|
+
id: "".concat(options.id, "_enterprisePaymentStatus")
|
|
153
|
+
}];
|
|
134
154
|
});
|
|
135
155
|
export default Logistics;
|
|
@@ -18,8 +18,17 @@ declare class BasicPicturePro implements ComponentInterface {
|
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
dataType: ComponentInterface['dataType'];
|
|
20
20
|
currenEnv: ComponentInterface['platform'];
|
|
21
|
+
sortChildField: {
|
|
22
|
+
name: string;
|
|
23
|
+
key: string;
|
|
24
|
+
dataType: string;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}[];
|
|
27
|
+
exampleValue?: string;
|
|
28
|
+
standardDateType: ComponentInterface['standardDateType'];
|
|
21
29
|
constructor(options: PickOption);
|
|
22
30
|
formatPictures: (pictures: string) => string[];
|
|
31
|
+
getSortChildFields: () => any;
|
|
23
32
|
render: (value: Value) => React.JSX.Element | null;
|
|
24
33
|
renderPc: () => null;
|
|
25
34
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -36,11 +36,25 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
36
36
|
_defineProperty(this, "children", void 0);
|
|
37
37
|
_defineProperty(this, "dataType", void 0);
|
|
38
38
|
_defineProperty(this, "currenEnv", void 0);
|
|
39
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
40
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
41
|
+
_defineProperty(this, "standardDateType", void 0);
|
|
39
42
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
40
43
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
41
44
|
pictures = pictures.replace(/\s/g, '');
|
|
42
45
|
return pictures ? pictures.split(',') : [];
|
|
43
46
|
});
|
|
47
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
48
|
+
return [{
|
|
49
|
+
name: '图片名称',
|
|
50
|
+
key: "".concat(_this.id, "_name"),
|
|
51
|
+
dataType: 'arrayObject'
|
|
52
|
+
}, {
|
|
53
|
+
name: '图片链接',
|
|
54
|
+
key: "".concat(_this.id, "_url"),
|
|
55
|
+
dataType: 'arrayObject'
|
|
56
|
+
}];
|
|
57
|
+
});
|
|
44
58
|
_defineProperty(this, "render", function (value) {
|
|
45
59
|
var _document;
|
|
46
60
|
if (!(value !== null && value !== void 0 && value.length)) {
|
|
@@ -176,5 +190,8 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
176
190
|
}))];
|
|
177
191
|
this.dataType = 'object';
|
|
178
192
|
this.currenEnv = options === null || options === void 0 ? void 0 : (_options$effects = options.effects) === null || _options$effects === void 0 ? void 0 : _options$effects.env;
|
|
193
|
+
this.sortChildField = this.getSortChildFields();
|
|
194
|
+
this.exampleValue = '[{"name":"c.jpeg","url":"https://kefu.kuaimai.com/pic/c.jpeg"}]';
|
|
195
|
+
this.standardDateType = 'Array';
|
|
179
196
|
});
|
|
180
197
|
export default BasicPicturePro;
|
|
@@ -16,7 +16,15 @@ declare class PublicGoods implements ComponentInterface {
|
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
18
|
headers: CommonHeaderGoods;
|
|
19
|
+
exampleValue?: string;
|
|
20
|
+
sortChildField: {
|
|
21
|
+
name: string;
|
|
22
|
+
key: string;
|
|
23
|
+
dataType: string;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}[];
|
|
19
26
|
constructor(options: PickOption);
|
|
27
|
+
getSortChildFields: () => any;
|
|
20
28
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
29
|
renderPc: () => null;
|
|
22
30
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -15,6 +15,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
18
|
+
import { getColumnsMap } from "../../Common/constants/columnsBaseInfoMap";
|
|
18
19
|
import { SYMBOL } from "../../../constant";
|
|
19
20
|
var CONFIG_MAP = {
|
|
20
21
|
JST_GOODS: {
|
|
@@ -27,7 +28,8 @@ var CONFIG_MAP = {
|
|
|
27
28
|
},
|
|
28
29
|
JY_GOODS: {
|
|
29
30
|
name: "巨益",
|
|
30
|
-
key: "jyGoods"
|
|
31
|
+
key: "jyGoods",
|
|
32
|
+
exampleValue: '[{"gift":0,"bfit":false,"mallSkuId":"","specCode":"","sellTotal":0,"canEdit":false,"sellPrice":0,"mallProductName":"","oid":"","uuid":"","productName":"","skuName":"","canDelete":false,"divideOrderFee":0,"goodsName":"","mallSellingPrice":0,"productId":"","mallProductId":"","productCode":"","specName":"","mallSkuName":"","sellCount":0,"settlementPrice":0,"goodsCode":"","systemOrderNo":"","skuCode":""}]'
|
|
31
33
|
},
|
|
32
34
|
JKY_GOODS: {
|
|
33
35
|
name: "吉客云",
|
|
@@ -45,7 +47,8 @@ var CONFIG_MAP = {
|
|
|
45
47
|
var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
46
48
|
var _this = this,
|
|
47
49
|
_CONFIG_MAP$this$type,
|
|
48
|
-
_this$componentConfig6
|
|
50
|
+
_this$componentConfig6,
|
|
51
|
+
_CONFIG_MAP$this$type2;
|
|
49
52
|
_classCallCheck(this, PublicGoods);
|
|
50
53
|
_defineProperty(this, "name", void 0);
|
|
51
54
|
_defineProperty(this, "id", void 0);
|
|
@@ -60,6 +63,20 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
|
60
63
|
_defineProperty(this, "children", void 0);
|
|
61
64
|
_defineProperty(this, "dataType", void 0);
|
|
62
65
|
_defineProperty(this, "headers", void 0);
|
|
66
|
+
_defineProperty(this, "exampleValue", void 0);
|
|
67
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
68
|
+
_defineProperty(this, "getSortChildFields", function () {
|
|
69
|
+
var Columns = getColumnsMap();
|
|
70
|
+
return Columns[_this.type].filter(function (item) {
|
|
71
|
+
return !["picUrl"].includes(item.dataIndex);
|
|
72
|
+
}).map(function (item) {
|
|
73
|
+
return {
|
|
74
|
+
name: item.title,
|
|
75
|
+
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
76
|
+
dataType: "arrayObject"
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
});
|
|
63
80
|
_defineProperty(this, "renderClient", function (record) {
|
|
64
81
|
var _record, _CONFIG_MAP$_this$typ, _this$componentConfig;
|
|
65
82
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -150,5 +167,7 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
|
150
167
|
}
|
|
151
168
|
}] : [];
|
|
152
169
|
this.dataType = "object";
|
|
170
|
+
this.sortChildField = this.getSortChildFields();
|
|
171
|
+
this.exampleValue = ((_CONFIG_MAP$this$type2 = CONFIG_MAP[this.type]) === null || _CONFIG_MAP$this$type2 === void 0 ? void 0 : _CONFIG_MAP$this$type2.exampleValue) || "";
|
|
153
172
|
});
|
|
154
173
|
export default PublicGoods;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = {
|
|
5
5
|
address?: (string | number)[];
|
|
6
6
|
detail?: string;
|
|
@@ -11,14 +11,15 @@ declare class BasicInput implements ComponentInterface {
|
|
|
11
11
|
sortField: string;
|
|
12
12
|
type: string;
|
|
13
13
|
rules: any[];
|
|
14
|
-
componentConfig: ComponentInterface[
|
|
15
|
-
effects: ComponentInterface[
|
|
14
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
15
|
+
effects: ComponentInterface['effects'];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
17
|
formField: string;
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
21
|
-
dataType: ComponentInterface[
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
22
|
+
compoundConfig: ComponentInterface['compoundConfig'];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
render: (value: Value) => React.JSX.Element;
|
|
24
25
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -8,17 +8,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
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); }
|
|
11
|
-
import React from
|
|
12
|
-
import { Address } from
|
|
13
|
-
import { AddressData } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Address } from '@kmkf-fe-packages/basic-components';
|
|
13
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
17
|
-
import every from
|
|
16
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import every from 'lodash/every';
|
|
18
18
|
import { queryWorkOrderDetail } from "../../service/api";
|
|
19
|
-
import copy from
|
|
20
|
-
import { message } from
|
|
21
|
-
import { CopyOutlined } from
|
|
19
|
+
import copy from 'copy-to-clipboard';
|
|
20
|
+
import { message } from 'antd';
|
|
21
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
22
22
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
23
23
|
var _this = this,
|
|
24
24
|
_this$componentConfig5;
|
|
@@ -36,13 +36,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
36
36
|
_defineProperty(this, "children", void 0);
|
|
37
37
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
38
38
|
_defineProperty(this, "dataType", void 0);
|
|
39
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
39
40
|
_defineProperty(this, "render", function (value) {
|
|
40
41
|
var _value$address;
|
|
41
42
|
return /*#__PURE__*/React.createElement("span", {
|
|
42
43
|
className: "pointer"
|
|
43
44
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
44
45
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
45
|
-
}).join(
|
|
46
|
+
}).join(''), value === null || value === void 0 ? void 0 : value.detail);
|
|
46
47
|
});
|
|
47
48
|
_defineProperty(this, "transTextToNumber", function (value) {
|
|
48
49
|
return value ? +value : value;
|
|
@@ -66,10 +67,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
66
67
|
e.stopPropagation();
|
|
67
68
|
_context.prev = 1;
|
|
68
69
|
addressText = (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
69
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
70
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
70
71
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
71
|
-
}).join(
|
|
72
|
-
if (!(detail.indexOf(
|
|
72
|
+
}).join('');
|
|
73
|
+
if (!(detail.indexOf('*') > -1)) {
|
|
73
74
|
_context.next = 12;
|
|
74
75
|
break;
|
|
75
76
|
}
|
|
@@ -85,13 +86,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
85
86
|
success = _yield$queryWorkOrder.success;
|
|
86
87
|
if (success) {
|
|
87
88
|
copy("".concat(addressText).concat(data === null || data === void 0 ? void 0 : (_data$jsonMap = data.jsonMap) === null || _data$jsonMap === void 0 ? void 0 : _data$jsonMap["".concat(_this.id, "_address")]));
|
|
88
|
-
message.success(
|
|
89
|
+
message.success('复制成功');
|
|
89
90
|
}
|
|
90
91
|
_context.next = 14;
|
|
91
92
|
break;
|
|
92
93
|
case 12:
|
|
93
94
|
copy("".concat(addressText).concat(detail));
|
|
94
|
-
message.success(
|
|
95
|
+
message.success('复制成功');
|
|
95
96
|
case 14:
|
|
96
97
|
_context.next = 19;
|
|
97
98
|
break;
|
|
@@ -113,15 +114,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
113
114
|
className: "pointer",
|
|
114
115
|
onClick: function onClick(e) {
|
|
115
116
|
var _this$effects, _this$effects2;
|
|
116
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) ===
|
|
117
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
117
118
|
e.stopPropagation();
|
|
118
119
|
}
|
|
119
120
|
}, (_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function () {
|
|
120
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
121
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
121
122
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
122
|
-
}).join(
|
|
123
|
+
}).join(''), detail, ' ', /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
123
124
|
style: {
|
|
124
|
-
color:
|
|
125
|
+
color: '#1B5BF3'
|
|
125
126
|
},
|
|
126
127
|
onClick: function onClick(e) {
|
|
127
128
|
return copyHandler(e, record);
|
|
@@ -136,9 +137,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
136
137
|
}) ? [] : address;
|
|
137
138
|
var detail = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")];
|
|
138
139
|
return "".concat((_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function () {
|
|
139
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
140
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
140
141
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
141
|
-
}).join(
|
|
142
|
+
}).join(''), " ").concat(detail || '');
|
|
142
143
|
});
|
|
143
144
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
144
145
|
return {
|
|
@@ -149,7 +150,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
149
150
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
150
151
|
var _address4;
|
|
151
152
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
152
|
-
return
|
|
153
|
+
return '--';
|
|
153
154
|
}
|
|
154
155
|
var address = [_this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_province")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_city")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_district")])];
|
|
155
156
|
address = every(address, function (item) {
|
|
@@ -157,9 +158,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
157
158
|
}) ? [] : address;
|
|
158
159
|
var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
|
|
159
160
|
return "".concat((_address4 = address) === null || _address4 === void 0 ? void 0 : _address4.map(function () {
|
|
160
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
161
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
161
162
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
162
|
-
}).join(
|
|
163
|
+
}).join(''), " ").concat(detail || '');
|
|
163
164
|
});
|
|
164
165
|
_defineProperty(this, "renderClient", function (record) {
|
|
165
166
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -177,7 +178,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
177
178
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
178
179
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
179
180
|
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,
|
|
180
|
-
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 :
|
|
181
|
+
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 : '',
|
|
181
182
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
182
183
|
});
|
|
183
184
|
});
|
|
@@ -197,16 +198,29 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
197
198
|
validator: function validator(_, value) {
|
|
198
199
|
var _value$address2;
|
|
199
200
|
if (!(value !== null && value !== void 0 && (_value$address2 = value.address) !== null && _value$address2 !== void 0 && _value$address2.length)) {
|
|
200
|
-
return Promise.reject(new Error(
|
|
201
|
+
return Promise.reject(new Error('请选择地址'));
|
|
201
202
|
}
|
|
202
203
|
if (!(value !== null && value !== void 0 && value.detail)) {
|
|
203
|
-
return Promise.reject(new Error(
|
|
204
|
+
return Promise.reject(new Error('请填写详细地址'));
|
|
204
205
|
}
|
|
205
206
|
return Promise.resolve();
|
|
206
207
|
}
|
|
207
208
|
}] : [];
|
|
208
209
|
this.effects = options.effects;
|
|
209
210
|
this.addressDateInstance = AddressData.getInstance();
|
|
210
|
-
this.dataType =
|
|
211
|
+
this.dataType = 'object';
|
|
212
|
+
this.compoundConfig = [{
|
|
213
|
+
name: "\u7701",
|
|
214
|
+
id: "".concat(options.id, "_province")
|
|
215
|
+
}, {
|
|
216
|
+
name: "\u5E02",
|
|
217
|
+
id: "".concat(options.id, "_city")
|
|
218
|
+
}, {
|
|
219
|
+
name: "\u533A",
|
|
220
|
+
id: "".concat(options.id, "_district")
|
|
221
|
+
}, {
|
|
222
|
+
name: "\u8BE6\u7EC6\u5730\u5740",
|
|
223
|
+
id: "".concat(options.id, "_address")
|
|
224
|
+
}];
|
|
211
225
|
});
|
|
212
226
|
export default BasicInput;
|
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 |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BasicCascader | CommonMultiStatus | JstSendGood | MsgStatus | Payment | BasicPicturePro | PublicGoods | PublicReissueGoods | ReceiverAddress | BasicInput | BasicTypeInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -240,6 +240,7 @@ export var factory = function factory(type, options) {
|
|
|
240
240
|
case "WAREHOUSING_STATUS":
|
|
241
241
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
242
242
|
case "WDT_WAREHOUSING_STATUS":
|
|
243
|
+
case "JKY_WAREHOUSING_STATUS":
|
|
243
244
|
return new CommonMultiStatus(options);
|
|
244
245
|
case "MSG_STATUS":
|
|
245
246
|
return new MsgStatus(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.44-beta.
|
|
3
|
+
"version": "2.2.44-beta.50",
|
|
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.44-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.44-beta.50",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.50",
|
|
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": "867325f7f5c34a9c37415c74365e5be151e66952",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|