@kmkf-fe-packages/services-components 2.12.0 → 2.12.1
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/Hooks/useGoodsSourceFormat.js +5 -9
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +0 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -3
- package/dist/esm/commonComponents/OperationLog/index.js +0 -2
- package/dist/esm/components/BS/BsGoods/index.js +0 -1
- package/dist/esm/components/Common/index.js +0 -1
- package/dist/esm/components/ErpTradeId/components/OrderNum/communication.js +0 -2
- package/dist/esm/components/PicturePro/PictureName.js +1 -3
- package/dist/esm/components/PicturePro/index.js +1 -3
- package/dist/esm/components/PostIng/index.d.ts +1 -1
- package/dist/esm/components/Public/AsyncSelect/index.js +5 -8
- package/dist/esm/components/ReceiverAddress/index.js +2 -3
- package/dist/esm/components/Select/index.js +0 -1
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/service/api.js +12 -18
- package/dist/esm/service/request.js +1 -4
- 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/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/JST/JstSendGood").default | import("../components/
|
|
3
|
+
export declare const newRenderColumnItem: (effects: any) => (item: any) => import("../components/BS/BsLogistics").default | import("../components/BS/BsSystemOrder").default | import("../components/CommonMultiStatus").default | import("../components/JST/JstSendGood").default | LogisticsInterception | LogisticsMoreInterception | import("../components/Public/AsyncSelect").default | import("../components/Public/Goods").default | import("../components/Remark").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/TradeId").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/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/JstSupply").default | import("../components/BS/BsGoods").default | import("../components/BsE3/BsGoods").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 | 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/NodeDeadLine").default | import("../components/HandlerDeadLine").default | import("../components/NodeStayDuration").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/DXD/DxdShopSelect").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/Public/ReturnWarehouse").default | import("../components/GY/GyGoods").default | import("../components/KM/KmExchange").default | import("../components/GY/GyReissue").default | import("../components/GY/GyReturn").default | import("../components/SKX/SkxIdInputSelect").default | import("../components/SKX/SkxGoods").default | import("../components/OrderSubForm").default | import("../components/FlowOverallStatusSelect").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;
|
|
@@ -311,7 +311,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
311
311
|
getShopList().then(function (_ref5) {
|
|
312
312
|
var data = _ref5.data;
|
|
313
313
|
setShopList(data);
|
|
314
|
-
}).catch(
|
|
314
|
+
}).catch(function () {});
|
|
315
315
|
queryCompanyUserSimpleInfoList().then(function (_ref6) {
|
|
316
316
|
var data = _ref6.data;
|
|
317
317
|
setUserList((data || []).map(function (_ref7) {
|
|
@@ -322,7 +322,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
322
322
|
value: userKey
|
|
323
323
|
};
|
|
324
324
|
}));
|
|
325
|
-
}).catch(
|
|
325
|
+
}).catch(function () {});
|
|
326
326
|
getGroupList().then(function (_ref8) {
|
|
327
327
|
var data = _ref8.data;
|
|
328
328
|
setGroupList((data || []).map(function (_ref9) {
|
|
@@ -335,7 +335,7 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
335
335
|
relationUserList: relationUserList
|
|
336
336
|
};
|
|
337
337
|
}));
|
|
338
|
-
}).catch(
|
|
338
|
+
}).catch(function () {});
|
|
339
339
|
|
|
340
340
|
// return () => {
|
|
341
341
|
// setShopList(void 0);
|
|
@@ -419,13 +419,9 @@ export var useGoodsSourceFormat = function useGoodsSourceFormat(goodsSource) {
|
|
|
419
419
|
// newFilterItems,
|
|
420
420
|
// allTableColumns,
|
|
421
421
|
// });
|
|
422
|
-
}).catch(function (error) {
|
|
423
|
-
console.log("**** 获取表头信息 error", error);
|
|
424
|
-
});
|
|
422
|
+
}).catch(function (error) {});
|
|
425
423
|
}
|
|
426
|
-
}).catch(function (error) {
|
|
427
|
-
console.log("**** in 获取流程数据 error", error);
|
|
428
|
-
});
|
|
424
|
+
}).catch(function (error) {});
|
|
429
425
|
}
|
|
430
426
|
}, [shopList, userList, groupList]);
|
|
431
427
|
return {
|
|
@@ -62,9 +62,7 @@ var Global = function Global(_ref) {
|
|
|
62
62
|
}
|
|
63
63
|
setUserInfo(_userInfo);
|
|
64
64
|
localStorage.setItem("reduxData_userInfo", JSON.stringify(_userInfo));
|
|
65
|
-
} catch (e) {
|
|
66
|
-
console.error(e);
|
|
67
|
-
}
|
|
65
|
+
} catch (e) {}
|
|
68
66
|
}, [JSON.stringify(reduxData)]);
|
|
69
67
|
useEffect(function () {
|
|
70
68
|
initDataSource();
|
|
@@ -29,7 +29,6 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
29
29
|
beforeList = JSON.parse(before);
|
|
30
30
|
afterList = JSON.parse(after);
|
|
31
31
|
} catch (e) {
|
|
32
|
-
console.log(e);
|
|
33
32
|
beforeList = [];
|
|
34
33
|
afterList = [];
|
|
35
34
|
}
|
|
@@ -136,7 +135,6 @@ var OperationLog = function OperationLog(_ref) {
|
|
|
136
135
|
}
|
|
137
136
|
return /*#__PURE__*/React.createElement("div", null, content);
|
|
138
137
|
} catch (e) {
|
|
139
|
-
console.error("日志信息JSON转换异常", e);
|
|
140
138
|
return /*#__PURE__*/React.createElement("div", null, content);
|
|
141
139
|
}
|
|
142
140
|
};
|
|
@@ -153,7 +153,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
153
153
|
required: true,
|
|
154
154
|
validator: function validator(_, value) {
|
|
155
155
|
var _value$bsGoods3;
|
|
156
|
-
console.log("111");
|
|
157
156
|
if (!value || !(value !== null && value !== void 0 && (_value$bsGoods3 = value.bsGoods) !== null && _value$bsGoods3 !== void 0 && _value$bsGoods3.length)) {
|
|
158
157
|
return Promise.reject(new Error("请选择bs商品"));
|
|
159
158
|
}
|
|
@@ -314,7 +314,6 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
314
314
|
var logisticsCompany = item.logisticsCompany,
|
|
315
315
|
logisticsCompanyName = item.logisticsCompanyName;
|
|
316
316
|
var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
|
|
317
|
-
console.log("00001--", [platformType, logisticsCompany, ExpressData.getInstance(platformType), ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany]);
|
|
318
317
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
319
318
|
content: content(item, index),
|
|
320
319
|
overlayStyle: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// 查询订单详情
|
|
2
2
|
export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
3
3
|
var _window, _window$parent;
|
|
4
|
-
console.log('请求ERP订单详情', tid);
|
|
5
4
|
(_window = window) === null || _window === void 0 ? void 0 : (_window$parent = _window.parent) === null || _window$parent === void 0 ? void 0 : _window$parent.postMessage({
|
|
6
5
|
method: 'queryOrder',
|
|
7
6
|
data: {
|
|
@@ -13,7 +12,6 @@ export var queryOrderDetail = function queryOrderDetail(tid) {
|
|
|
13
12
|
// 查询抖店openId
|
|
14
13
|
export var queryDouDianOpenId = function queryDouDianOpenId(originTid) {
|
|
15
14
|
var _window2, _window2$parent;
|
|
16
|
-
console.log('查询抖音店铺买家id', originTid);
|
|
17
15
|
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$parent = _window2.parent) === null || _window2$parent === void 0 ? void 0 : _window2$parent.postMessage({
|
|
18
16
|
method: 'queryDouDianOpenId',
|
|
19
17
|
data: {
|
|
@@ -74,9 +74,7 @@ var PictureName = /*#__PURE__*/_createClass(function PictureName(options) {
|
|
|
74
74
|
document.body.removeChild(a);
|
|
75
75
|
window.URL.revokeObjectURL(url);
|
|
76
76
|
});
|
|
77
|
-
} catch (error) {
|
|
78
|
-
console.error(error);
|
|
79
|
-
}
|
|
77
|
+
} catch (error) {}
|
|
80
78
|
};
|
|
81
79
|
return /*#__PURE__*/React.createElement(Space, {
|
|
82
80
|
className: "pictruePc"
|
|
@@ -92,9 +92,7 @@ var BasicPicturePro = /*#__PURE__*/_createClass(function BasicPicturePro(options
|
|
|
92
92
|
document.body.removeChild(a);
|
|
93
93
|
window.URL.revokeObjectURL(url);
|
|
94
94
|
});
|
|
95
|
-
} catch (error) {
|
|
96
|
-
console.error(error);
|
|
97
|
-
}
|
|
95
|
+
} catch (error) {}
|
|
98
96
|
} else {
|
|
99
97
|
copy("".concat(hostUrl, "/").concat(item.url));
|
|
100
98
|
message.success('图片链接复制成功');
|
|
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
31
31
|
sortColumns: SortColumnsField;
|
|
32
32
|
headerProvince: boolean;
|
|
33
33
|
constructor(options: PickOption);
|
|
34
|
-
getChildren: () => (
|
|
34
|
+
getChildren: () => (City | Detail | District | Province | ReceiverMobile | ReceiverName | undefined)[];
|
|
35
35
|
getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
|
|
36
36
|
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
37
37
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -45,16 +45,14 @@ var typeMap = {
|
|
|
45
45
|
};
|
|
46
46
|
var getWdtVersion = function getWdtVersion() {
|
|
47
47
|
try {
|
|
48
|
-
var _userInfo$companyUser, _companyUserConfig, _companyUserConfig$pl,
|
|
48
|
+
var _userInfo$companyUser, _companyUserConfig, _companyUserConfig$pl, _companyUserConfig$pl2;
|
|
49
49
|
var userInfo = JSON.parse(localStorage.getItem("reduxData_userInfo") || "{}");
|
|
50
50
|
var companyUserConfig = (_userInfo$companyUser = userInfo === null || userInfo === void 0 ? void 0 : userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 ? _userInfo$companyUser : {};
|
|
51
51
|
if (typeof companyUserConfig === "string") {
|
|
52
52
|
companyUserConfig = JSON.parse(companyUserConfig);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
return ((_companyUserConfig2 = companyUserConfig) === null || _companyUserConfig2 === void 0 ? void 0 : (_companyUserConfig2$p = _companyUserConfig2.plugins) === null || _companyUserConfig2$p === void 0 ? void 0 : (_companyUserConfig2$p2 = _companyUserConfig2$p.wdt) === null || _companyUserConfig2$p2 === void 0 ? void 0 : _companyUserConfig2$p2.version) || "flagship";
|
|
54
|
+
return ((_companyUserConfig = companyUserConfig) === null || _companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl = _companyUserConfig.plugins) === null || _companyUserConfig$pl === void 0 ? void 0 : (_companyUserConfig$pl2 = _companyUserConfig$pl.wdt) === null || _companyUserConfig$pl2 === void 0 ? void 0 : _companyUserConfig$pl2.version) || "flagship";
|
|
56
55
|
} catch (error) {
|
|
57
|
-
console.error(error);
|
|
58
56
|
return "flagship";
|
|
59
57
|
}
|
|
60
58
|
};
|
|
@@ -230,15 +228,14 @@ var AsyncSelect = /*#__PURE__*/function () {
|
|
|
230
228
|
componentConfig: this.componentConfig
|
|
231
229
|
});
|
|
232
230
|
}
|
|
233
|
-
_context.next =
|
|
231
|
+
_context.next = 13;
|
|
234
232
|
break;
|
|
235
233
|
case 11:
|
|
236
234
|
_context.prev = 11;
|
|
237
235
|
_context.t1 = _context["catch"](1);
|
|
238
|
-
|
|
239
|
-
case 14:
|
|
236
|
+
case 13:
|
|
240
237
|
return _context.abrupt("return", options);
|
|
241
|
-
case
|
|
238
|
+
case 14:
|
|
242
239
|
case "end":
|
|
243
240
|
return _context.stop();
|
|
244
241
|
}
|
|
@@ -94,13 +94,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
94
94
|
copy("".concat(addressText).concat(detail));
|
|
95
95
|
message.success('复制成功');
|
|
96
96
|
case 14:
|
|
97
|
-
_context.next =
|
|
97
|
+
_context.next = 18;
|
|
98
98
|
break;
|
|
99
99
|
case 16:
|
|
100
100
|
_context.prev = 16;
|
|
101
101
|
_context.t0 = _context["catch"](1);
|
|
102
|
-
|
|
103
|
-
case 19:
|
|
102
|
+
case 18:
|
|
104
103
|
case "end":
|
|
105
104
|
return _context.stop();
|
|
106
105
|
}
|
|
@@ -83,7 +83,6 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
83
83
|
});
|
|
84
84
|
_defineProperty(this, "renderClient", function (record) {
|
|
85
85
|
var _this$optionsMap;
|
|
86
|
-
console.log("renderClient", record, _this.getIsValue());
|
|
87
86
|
// 特殊自定义组件为平台状态时匹配出label
|
|
88
87
|
var label = _this.getIsValue() ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
|
|
89
88
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
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, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BasicSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelectOption | 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 | 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 | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -237,9 +237,7 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
instance.statusConditionOptions = tempList;
|
|
240
|
-
}).catch(function (e) {
|
|
241
|
-
console.log(e);
|
|
242
|
-
});
|
|
240
|
+
}).catch(function (e) {});
|
|
243
241
|
};
|
|
244
242
|
export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
245
243
|
return request({
|
|
@@ -250,9 +248,7 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
|
250
248
|
var data = res.data;
|
|
251
249
|
var instance = LogisticsAddressData.getInstance();
|
|
252
250
|
instance.addressData = data;
|
|
253
|
-
}).catch(function (e) {
|
|
254
|
-
console.log(e);
|
|
255
|
-
});
|
|
251
|
+
}).catch(function (e) {});
|
|
256
252
|
};
|
|
257
253
|
export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
258
254
|
return request({
|
|
@@ -275,62 +271,61 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
|
|
|
275
271
|
var instance = ExpressData.getInstance("wdt");
|
|
276
272
|
return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
|
|
277
273
|
instance.expressData = data;
|
|
278
|
-
}).catch(
|
|
274
|
+
}).catch(function () {});
|
|
279
275
|
};
|
|
280
276
|
export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
281
277
|
var instance = ExpressData.getInstance("bsE3");
|
|
282
278
|
return servers.BSE3.getLogisticsDataAsync().then(function (data) {
|
|
283
279
|
instance.expressData = data;
|
|
284
|
-
}).catch(
|
|
280
|
+
}).catch(function () {});
|
|
285
281
|
};
|
|
286
282
|
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
287
283
|
var instance = ExpressData.getInstance("jst");
|
|
288
284
|
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
289
285
|
instance.expressData = data;
|
|
290
|
-
}).catch(
|
|
286
|
+
}).catch(function () {});
|
|
291
287
|
};
|
|
292
288
|
export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
|
|
293
289
|
var instance = ExpressData.getInstance("gy");
|
|
294
290
|
return servers.GY.getLogisticsDataAsync().then(function (data) {
|
|
295
291
|
instance.expressData = data;
|
|
296
|
-
}).catch(
|
|
292
|
+
}).catch(function () {});
|
|
297
293
|
};
|
|
298
294
|
export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
299
295
|
var instance = ExpressData.getInstance("jy");
|
|
300
296
|
return servers.JY.getLogisticsDataAsync().then(function (data) {
|
|
301
297
|
instance.expressData = data;
|
|
302
|
-
}).catch(
|
|
298
|
+
}).catch(function () {});
|
|
303
299
|
};
|
|
304
300
|
export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
|
|
305
301
|
var instance = ExpressData.getInstance("jky");
|
|
306
|
-
console.log("queryJKYLogisticsCompany");
|
|
307
302
|
return servers.JKY.getLogisticsDataAsync().then(function (data) {
|
|
308
303
|
instance.expressData = data;
|
|
309
|
-
}).catch(
|
|
304
|
+
}).catch(function () {});
|
|
310
305
|
};
|
|
311
306
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
312
307
|
var instance = ExpressData.getInstance("wln");
|
|
313
308
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
314
309
|
instance.expressData = data;
|
|
315
|
-
}).catch(
|
|
310
|
+
}).catch(function () {});
|
|
316
311
|
};
|
|
317
312
|
export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
|
|
318
313
|
var instance = ExpressData.getInstance("km");
|
|
319
314
|
return servers.KM.getLogisticsDataAsync().then(function (data) {
|
|
320
315
|
instance.expressData = data;
|
|
321
|
-
}).catch(
|
|
316
|
+
}).catch(function () {});
|
|
322
317
|
};
|
|
323
318
|
export var queryDXDLogisticsCompany = function queryDXDLogisticsCompany() {
|
|
324
319
|
var instance = ExpressData.getInstance("dxd");
|
|
325
320
|
return servers.DXD.getLogisticsDataAsync().then(function (data) {
|
|
326
321
|
instance.expressData = data;
|
|
327
|
-
}).catch(
|
|
322
|
+
}).catch(function () {});
|
|
328
323
|
};
|
|
329
324
|
export var queryTTXLogisticsCompany = function queryTTXLogisticsCompany() {
|
|
330
325
|
var instance = ExpressData.getInstance("ttx");
|
|
331
326
|
return servers.TTX.getLogisticsDataAsync().then(function (data) {
|
|
332
327
|
instance.expressData = data;
|
|
333
|
-
}).catch(
|
|
328
|
+
}).catch(function () {});
|
|
334
329
|
};
|
|
335
330
|
// 获取支付宝电子回单
|
|
336
331
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
@@ -354,7 +349,6 @@ export var queryLabel = function queryLabel() {
|
|
|
354
349
|
var finalData = JSON.parse(data);
|
|
355
350
|
instance.labelData = finalData;
|
|
356
351
|
} catch (e) {
|
|
357
|
-
console.error("转换标签数据数据异常");
|
|
358
352
|
instance.labelData = [];
|
|
359
353
|
}
|
|
360
354
|
});
|
|
@@ -52,13 +52,10 @@ var requestApi = function requestApi(_ref) {
|
|
|
52
52
|
message.warn(res.message);
|
|
53
53
|
} else if (infoLevel === 'error') {
|
|
54
54
|
message.error(res.message);
|
|
55
|
-
} else {
|
|
56
|
-
console.log(res.message);
|
|
57
|
-
}
|
|
55
|
+
} else {}
|
|
58
56
|
reject(res);
|
|
59
57
|
}
|
|
60
58
|
}).catch(function (e) {
|
|
61
|
-
console.error('请求错误', e);
|
|
62
59
|
reject(e);
|
|
63
60
|
});
|
|
64
61
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
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.12.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.12.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.12.1",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.12.1",
|
|
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": "8c77a699e29a220f96f35968e95194a5a9c6e195",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|