@kmkf-fe-packages/services-components 2.0.67 → 2.0.69
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.
|
@@ -42,18 +42,12 @@ var Global = function Global(_ref) {
|
|
|
42
42
|
loading = _useState4[0],
|
|
43
43
|
setLoading = _useState4[1];
|
|
44
44
|
var reduxDataMap = useMemo(function () {
|
|
45
|
-
try {
|
|
46
|
-
var _ref2, _ref3, _reduxData$main$userI, _reduxData$main, _reduxData$main$userI2, _reduxData$workOrder, _reduxData$workOrder$, _reduxData$global, _reduxData$global$use;
|
|
47
|
-
sessionStorage.setItem("companyKey_test", (_ref2 = (_ref3 = (_reduxData$main$userI = reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : (_reduxData$main$userI2 = _reduxData$main.userInfo) === null || _reduxData$main$userI2 === void 0 ? void 0 : _reduxData$main$userI2.companyKey) !== null && _reduxData$main$userI !== void 0 ? _reduxData$main$userI : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : (_reduxData$workOrder$ = _reduxData$workOrder.userInfo) === null || _reduxData$workOrder$ === void 0 ? void 0 : _reduxData$workOrder$.companyKey) !== null && _ref3 !== void 0 ? _ref3 : reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : (_reduxData$global$use = _reduxData$global.userInfo) === null || _reduxData$global$use === void 0 ? void 0 : _reduxData$global$use.companyKey) !== null && _ref2 !== void 0 ? _ref2 : "");
|
|
48
|
-
} catch (error) {
|
|
49
|
-
console.log("companyKey_test_error", error);
|
|
50
|
-
}
|
|
51
45
|
return reduxData;
|
|
52
46
|
}, [JSON.stringify(reduxData)]);
|
|
53
47
|
useEffect(function () {
|
|
54
48
|
try {
|
|
55
|
-
var _reduxData$
|
|
56
|
-
var userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$
|
|
49
|
+
var _reduxData$main, _reduxData$workOrder, _reduxData$global;
|
|
50
|
+
var userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) || {};
|
|
57
51
|
localStorage.setItem("reduxData_userInfo", JSON.stringify(userInfo));
|
|
58
52
|
} catch (e) {
|
|
59
53
|
console.error(e);
|
|
@@ -93,7 +87,7 @@ var Global = function Global(_ref) {
|
|
|
93
87
|
return "success";
|
|
94
88
|
}, [globalState, logisticsCompanyState, sendDataState, addressDataState, requestState]);
|
|
95
89
|
var reloadData = /*#__PURE__*/function () {
|
|
96
|
-
var
|
|
90
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
97
91
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
98
92
|
while (1) switch (_context.prev = _context.next) {
|
|
99
93
|
case 0:
|
|
@@ -147,11 +141,11 @@ var Global = function Global(_ref) {
|
|
|
147
141
|
}, _callee);
|
|
148
142
|
}));
|
|
149
143
|
return function reloadData() {
|
|
150
|
-
return
|
|
144
|
+
return _ref2.apply(this, arguments);
|
|
151
145
|
};
|
|
152
146
|
}();
|
|
153
147
|
var initDataSource = /*#__PURE__*/function () {
|
|
154
|
-
var
|
|
148
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
155
149
|
var mapping, mergeMapping, promises, _Object$keys, _Object$keys2, _Object$keys2$filter, _promises;
|
|
156
150
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
157
151
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -199,7 +193,7 @@ var Global = function Global(_ref) {
|
|
|
199
193
|
}, _callee2, null, [[4, 10]]);
|
|
200
194
|
}));
|
|
201
195
|
return function initDataSource() {
|
|
202
|
-
return
|
|
196
|
+
return _ref3.apply(this, arguments);
|
|
203
197
|
};
|
|
204
198
|
}();
|
|
205
199
|
if (allState === "loading") {
|
|
@@ -126,6 +126,8 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
126
126
|
this.canSort = true;
|
|
127
127
|
this.children = [];
|
|
128
128
|
this.dataType = "string";
|
|
129
|
+
this.componentConfig = options.componentConfig;
|
|
130
|
+
this.effects = options.effects;
|
|
129
131
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
130
132
|
validator: function validator(_, value) {
|
|
131
133
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
@@ -134,8 +136,6 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
134
136
|
return Promise.resolve();
|
|
135
137
|
}
|
|
136
138
|
}] : [];
|
|
137
|
-
this.componentConfig = options.componentConfig;
|
|
138
|
-
this.effects = options.effects;
|
|
139
139
|
}
|
|
140
140
|
// 渲染淘宝端的时候需要亮灯
|
|
141
141
|
);
|
|
@@ -108,7 +108,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
108
108
|
return null;
|
|
109
109
|
});
|
|
110
110
|
_defineProperty(this, "editRender", function (p) {
|
|
111
|
-
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
111
|
+
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2, _this$effects3;
|
|
112
112
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
113
113
|
title: _this.name,
|
|
114
114
|
name: _this.id,
|
|
@@ -122,7 +122,8 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
122
122
|
}, _this.componentConfig, {
|
|
123
123
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
124
124
|
shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
|
|
125
|
-
width: "90%"
|
|
125
|
+
width: "90%",
|
|
126
|
+
form: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.form
|
|
126
127
|
}))
|
|
127
128
|
});
|
|
128
129
|
});
|
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 } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BuyerNick |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BuyerNick | CommonSystemOrder | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.69",
|
|
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.0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.69",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.69",
|
|
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": "849c6b27a93834b71ca0c08e426b60e62a9085ef",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|