@kmkf-fe-packages/services-components 2.0.2-beta.8 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +2 -3
- package/dist/esm/commonComponents/GlobalContext/index.js +30 -109
- package/dist/esm/components/BS/BsLogistics/index.js +9 -22
- package/dist/esm/components/BS/common/expressCode.js +0 -3
- package/dist/esm/components/BS/common/expressCompany.js +0 -3
- package/dist/esm/components/Common/index.js +1 -1
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Reissue/Logistics/index.d.ts +0 -1
- package/dist/esm/components/Reissue/Logistics/index.js +2 -6
- package/dist/esm/components/StatusSelect/index.d.ts +6 -10
- package/dist/esm/components/StatusSelect/index.js +109 -48
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -3
- package/dist/esm/service/api.d.ts +1 -1
- package/dist/esm/service/api.js +66 -52
- package/package.json +6 -6
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +0 -3
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +0 -55
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +0 -1
- package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +0 -1
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +0 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +0 -79
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +0 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +0 -80
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +0 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +0 -78
- package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
- package/dist/esm/components/Common/dist/index.js +0 -1019
- package/dist/esm/components/StatusSelect/constants.d.ts +0 -18
- package/dist/esm/components/StatusSelect/constants.js +0 -23
|
@@ -8,51 +8,112 @@ 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 { CommonStatus } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { CommonStatus } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
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
|
+
// const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
|
|
18
18
|
var selectTypeMap = {
|
|
19
|
-
REISSUE_STATUS:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
19
|
+
REISSUE_STATUS: {
|
|
20
|
+
options: [{
|
|
21
|
+
value: '成功',
|
|
22
|
+
label: '成功',
|
|
23
|
+
color: '#52c41a'
|
|
24
|
+
}, {
|
|
25
|
+
value: '失败',
|
|
26
|
+
label: '失败',
|
|
27
|
+
color: '#ff4d4f'
|
|
28
|
+
}],
|
|
29
|
+
key: 'reissueStatusValue',
|
|
30
|
+
info: 'reissueReason',
|
|
31
|
+
failValue: '失败'
|
|
32
|
+
},
|
|
33
|
+
ADJUST_WORK_ORDER_STATUS: {
|
|
34
|
+
options: [{
|
|
35
|
+
value: '成功',
|
|
36
|
+
label: '成功',
|
|
37
|
+
color: '#52c41a'
|
|
38
|
+
}, {
|
|
39
|
+
value: '失败',
|
|
40
|
+
label: '失败',
|
|
41
|
+
color: '#ff4d4f'
|
|
42
|
+
}],
|
|
43
|
+
key: 'adjustWorkOrderStatusValue',
|
|
44
|
+
info: 'adjustWorkOrderReason',
|
|
45
|
+
failValue: '失败'
|
|
46
|
+
},
|
|
47
|
+
CREATE_STATUS: {
|
|
48
|
+
options: [{
|
|
49
|
+
value: '成功',
|
|
50
|
+
label: '成功',
|
|
51
|
+
color: '#52c41a'
|
|
52
|
+
}, {
|
|
53
|
+
value: '失败',
|
|
54
|
+
label: '失败',
|
|
55
|
+
color: '#ff4d4f'
|
|
56
|
+
}],
|
|
57
|
+
key: 'createStatusValue',
|
|
58
|
+
info: 'createReason',
|
|
59
|
+
failValue: '失败'
|
|
60
|
+
},
|
|
61
|
+
INVOICE_STATUS: {
|
|
62
|
+
options: [{
|
|
63
|
+
value: '成功',
|
|
64
|
+
label: '成功',
|
|
65
|
+
color: '#52c41a'
|
|
66
|
+
}, {
|
|
67
|
+
value: '失败',
|
|
68
|
+
label: '失败',
|
|
69
|
+
color: '#ff4d4f'
|
|
70
|
+
}],
|
|
71
|
+
key: 'invoiceStatusValue',
|
|
72
|
+
info: 'invoiceReason',
|
|
73
|
+
failValue: '失败'
|
|
74
|
+
},
|
|
75
|
+
AGREE_REFUND_STATUS: {
|
|
76
|
+
options: [{
|
|
77
|
+
value: '成功',
|
|
78
|
+
label: '成功',
|
|
79
|
+
color: '#52c41a'
|
|
80
|
+
}, {
|
|
81
|
+
value: '失败',
|
|
82
|
+
label: '失败',
|
|
83
|
+
color: '#ff4d4f'
|
|
84
|
+
}],
|
|
85
|
+
key: 'agreeRefundStatusValue',
|
|
86
|
+
info: 'agreeRefundStatusReason',
|
|
87
|
+
failValue: '失败'
|
|
88
|
+
},
|
|
89
|
+
REJECT_REFUND_STATUS: {
|
|
90
|
+
options: [{
|
|
91
|
+
value: '成功',
|
|
92
|
+
label: '成功',
|
|
93
|
+
color: '#52c41a'
|
|
94
|
+
}, {
|
|
95
|
+
value: '失败',
|
|
96
|
+
label: '失败',
|
|
97
|
+
color: '#ff4d4f'
|
|
98
|
+
}],
|
|
99
|
+
key: 'rejectRefundStatusValue',
|
|
100
|
+
info: 'rejectRefundStatusReason',
|
|
101
|
+
failValue: '失败'
|
|
102
|
+
},
|
|
103
|
+
INVOICING_STATUS: {
|
|
104
|
+
options: [{
|
|
105
|
+
value: '开票成功',
|
|
106
|
+
label: '开票成功',
|
|
107
|
+
color: '#52c41a'
|
|
108
|
+
}, {
|
|
109
|
+
value: '开票失败',
|
|
110
|
+
label: '开票失败',
|
|
111
|
+
color: '#ff4d4f'
|
|
112
|
+
}],
|
|
113
|
+
key: 'invoicingStatusValue',
|
|
114
|
+
info: 'invoicingReason',
|
|
115
|
+
failValue: '开票失败'
|
|
116
|
+
}
|
|
56
117
|
};
|
|
57
118
|
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
58
119
|
var _this = this;
|
|
@@ -78,7 +139,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
78
139
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
140
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
141
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
81
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
142
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
82
143
|
component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
|
|
83
144
|
style: {
|
|
84
145
|
width: 200
|
|
@@ -93,7 +154,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
93
154
|
var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
|
|
94
155
|
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
95
156
|
return item.value === status;
|
|
96
|
-
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) ||
|
|
157
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
|
|
97
158
|
return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
98
159
|
id: _this.id,
|
|
99
160
|
label: _this.name,
|
|
@@ -103,7 +164,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
103
164
|
}
|
|
104
165
|
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", {
|
|
105
166
|
className: "c-red"
|
|
106
|
-
}, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) ||
|
|
167
|
+
}, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
|
|
107
168
|
}) : null;
|
|
108
169
|
});
|
|
109
170
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -111,14 +172,14 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
111
172
|
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
112
173
|
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
113
174
|
return item.value === status;
|
|
114
|
-
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) ||
|
|
175
|
+
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
|
|
115
176
|
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
116
177
|
style: {
|
|
117
178
|
color: statusColor
|
|
118
179
|
}
|
|
119
180
|
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", {
|
|
120
181
|
className: "c-red"
|
|
121
|
-
}, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) ||
|
|
182
|
+
}, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
|
|
122
183
|
});
|
|
123
184
|
_defineProperty(this, "renderLog", function (r) {
|
|
124
185
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
@@ -138,7 +199,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
138
199
|
// 过滤组件id
|
|
139
200
|
name: item.name,
|
|
140
201
|
// 过滤组件名称
|
|
141
|
-
filterComponentType:
|
|
202
|
+
filterComponentType: 'MultipleSelect',
|
|
142
203
|
props: {
|
|
143
204
|
options: selectTypeMap[_this.type].options
|
|
144
205
|
},
|
|
@@ -161,7 +222,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
161
222
|
this.isCombinationComponent = false;
|
|
162
223
|
this.canSort = true;
|
|
163
224
|
this.children = [];
|
|
164
|
-
this.dataType =
|
|
225
|
+
this.dataType = 'string';
|
|
165
226
|
this.options = selectTypeMap[options.type].options;
|
|
166
227
|
});
|
|
167
228
|
export default StatusSelect;
|
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, 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, GyGoods, BsE3Reissue, MemberLevel } 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) => BsLogistics | JstSendGood | MsgStatus | ReissueLogistics | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | 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 | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
|
package/dist/esm/factory.js
CHANGED
|
@@ -177,7 +177,6 @@ export var factory = function factory(type, options) {
|
|
|
177
177
|
case "WLN_LOGISTICS":
|
|
178
178
|
case "WDT_LOGISTICS":
|
|
179
179
|
case "JST_LOGISTICS":
|
|
180
|
-
case "KM_LOGISTICS":
|
|
181
180
|
return new BsLogistics(options);
|
|
182
181
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
183
182
|
return new FlowWorkOrderId(options);
|
|
@@ -190,8 +189,6 @@ export var factory = function factory(type, options) {
|
|
|
190
189
|
case "INVOICING_STATUS":
|
|
191
190
|
case "AGREE_REFUND_STATUS":
|
|
192
191
|
case "REJECT_REFUND_STATUS":
|
|
193
|
-
case "AGREE_RETURN_GOODS_STATUS":
|
|
194
|
-
case "REJECT_RETURN_GOODS_STATUS":
|
|
195
192
|
return new StatusSelect(options);
|
|
196
193
|
case "RETURN_GOODS_STATUS":
|
|
197
194
|
case "EXCHANGE_STATUS":
|
|
@@ -10,7 +10,7 @@ export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
|
10
10
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
11
|
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
12
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const querySendData: () => Promise<void>;
|
|
14
14
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
15
15
|
export declare const queryLabel: () => Promise<any>;
|
|
16
16
|
export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
2
5
|
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
6
|
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
7
|
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; }
|
|
@@ -10,40 +13,40 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
13
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
14
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
15
|
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; }
|
|
13
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers } from
|
|
14
|
-
import get from
|
|
16
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, SendDataCenter, servers } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import get from 'lodash/get';
|
|
15
18
|
import request from "./request";
|
|
16
19
|
// 重复校验
|
|
17
20
|
export var replaceCheck = function replaceCheck(data) {
|
|
18
21
|
return request({
|
|
19
|
-
url:
|
|
20
|
-
method:
|
|
22
|
+
url: '/qy/gdfw/workOrder/repeatCheck',
|
|
23
|
+
method: 'post',
|
|
21
24
|
data: data
|
|
22
25
|
});
|
|
23
26
|
};
|
|
24
27
|
export var queryAddressData = function queryAddressData() {
|
|
25
28
|
return request({
|
|
26
|
-
url:
|
|
27
|
-
method:
|
|
29
|
+
url: '/qy/gdfw/template/queryAreas/noLogin',
|
|
30
|
+
method: 'get',
|
|
28
31
|
data: {}
|
|
29
32
|
}).then(function (resp) {
|
|
30
33
|
var map = {};
|
|
31
34
|
var res = {};
|
|
32
35
|
var list = resp.data;
|
|
33
36
|
for (var i = 0; i < list.length; i++) {
|
|
34
|
-
res[list[i][
|
|
35
|
-
map[list[i][
|
|
37
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
38
|
+
map[list[i]['name']] = list[i]['id'];
|
|
36
39
|
}
|
|
37
40
|
var instance = AddressData.getInstance();
|
|
38
41
|
instance.addrData = res;
|
|
39
42
|
instance.addrNameMap = map;
|
|
40
|
-
instance.addressOptions = get(toTree(list, 0),
|
|
43
|
+
instance.addressOptions = get(toTree(list, 0), '0.children', []);
|
|
41
44
|
});
|
|
42
45
|
};
|
|
43
46
|
export var queryBsAddressData = function queryBsAddressData() {
|
|
44
47
|
return request({
|
|
45
|
-
url:
|
|
46
|
-
method:
|
|
48
|
+
url: '/qy/gdfw/template/queryBsAreas/noLogin',
|
|
49
|
+
method: 'get',
|
|
47
50
|
data: {}
|
|
48
51
|
}).then(function (resp) {
|
|
49
52
|
var map = {};
|
|
@@ -51,8 +54,8 @@ export var queryBsAddressData = function queryBsAddressData() {
|
|
|
51
54
|
var _resp$data = resp.data,
|
|
52
55
|
list = _resp$data === void 0 ? [] : _resp$data;
|
|
53
56
|
for (var i = 0; i < list.length; i++) {
|
|
54
|
-
res[list[i][
|
|
55
|
-
map[list[i][
|
|
57
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
58
|
+
map[list[i]['name']] = list[i]['id'];
|
|
56
59
|
}
|
|
57
60
|
var instance = BsAddressData.getInstance();
|
|
58
61
|
instance.addrData = res;
|
|
@@ -62,8 +65,8 @@ export var queryBsAddressData = function queryBsAddressData() {
|
|
|
62
65
|
};
|
|
63
66
|
export var queryWdtAddressData = function queryWdtAddressData() {
|
|
64
67
|
return request({
|
|
65
|
-
url:
|
|
66
|
-
method:
|
|
68
|
+
url: '/qy/gdfw/template/queryWdtAreas/noLogin',
|
|
69
|
+
method: 'get',
|
|
67
70
|
data: {}
|
|
68
71
|
}).then(function (resp) {
|
|
69
72
|
var map = {};
|
|
@@ -71,8 +74,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
71
74
|
var _resp$data2 = resp.data,
|
|
72
75
|
list = _resp$data2 === void 0 ? [] : _resp$data2;
|
|
73
76
|
for (var i = 0; i < list.length; i++) {
|
|
74
|
-
res[list[i][
|
|
75
|
-
map[list[i][
|
|
77
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
78
|
+
map[list[i]['name']] = list[i]['id'];
|
|
76
79
|
}
|
|
77
80
|
var instance = WdtAddressData.getInstance();
|
|
78
81
|
instance.addrData = res;
|
|
@@ -82,8 +85,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
82
85
|
};
|
|
83
86
|
export var queryPlatData = function queryPlatData() {
|
|
84
87
|
return request({
|
|
85
|
-
url:
|
|
86
|
-
method:
|
|
88
|
+
url: '/qy/platform/listPlatform/noLogin',
|
|
89
|
+
method: 'get',
|
|
87
90
|
data: {}
|
|
88
91
|
}).then(function (res) {
|
|
89
92
|
if (res.success) {
|
|
@@ -110,8 +113,8 @@ export var queryPlatData = function queryPlatData() {
|
|
|
110
113
|
};
|
|
111
114
|
export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
112
115
|
return request({
|
|
113
|
-
url:
|
|
114
|
-
method:
|
|
116
|
+
url: '/qy/logistics/listLogisticsWithInterceptInfo/noLogin',
|
|
117
|
+
method: 'get',
|
|
115
118
|
data: {
|
|
116
119
|
platformType: 118
|
|
117
120
|
}
|
|
@@ -119,10 +122,10 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
119
122
|
var data = res.data;
|
|
120
123
|
var instance = ExpressInterceptData.getInstance();
|
|
121
124
|
var companyTypeMap = {
|
|
122
|
-
SF:
|
|
123
|
-
ZTO:
|
|
124
|
-
JT:
|
|
125
|
-
DEFAULT:
|
|
125
|
+
SF: '顺丰',
|
|
126
|
+
ZTO: '中通',
|
|
127
|
+
JT: '极兔',
|
|
128
|
+
DEFAULT: ''
|
|
126
129
|
};
|
|
127
130
|
var expressList = data.map(function (item) {
|
|
128
131
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -187,26 +190,26 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
187
190
|
instance.typeOptions = Object.keys(typeObj).map(function (key) {
|
|
188
191
|
return {
|
|
189
192
|
label: key,
|
|
190
|
-
value: _toConsumableArray(typeObj[key]).join(
|
|
193
|
+
value: _toConsumableArray(typeObj[key]).join(',')
|
|
191
194
|
};
|
|
192
195
|
});
|
|
193
196
|
instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
|
|
194
|
-
var type = key.split(
|
|
197
|
+
var type = key.split('|')[0];
|
|
195
198
|
return {
|
|
196
|
-
label: "".concat(companyTypeMap[type] ||
|
|
199
|
+
label: "".concat(companyTypeMap[type] || '').concat(instance.typeNameMap[key]),
|
|
197
200
|
value: key
|
|
198
201
|
};
|
|
199
202
|
});
|
|
200
203
|
instance.statusOptions = Object.keys(statusObj).map(function (key) {
|
|
201
204
|
return {
|
|
202
205
|
label: key,
|
|
203
|
-
value: _toConsumableArray(statusObj[key]).join(
|
|
206
|
+
value: _toConsumableArray(statusObj[key]).join(',')
|
|
204
207
|
};
|
|
205
208
|
});
|
|
206
209
|
var tempList = [];
|
|
207
210
|
var tempObj = {};
|
|
208
211
|
Object.keys(instance.statusNameMap).forEach(function (key) {
|
|
209
|
-
var type = key.split(
|
|
212
|
+
var type = key.split('|')[1];
|
|
210
213
|
if (!tempObj[type]) {
|
|
211
214
|
tempList.push({
|
|
212
215
|
label: instance.statusNameMap[key],
|
|
@@ -223,8 +226,8 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
223
226
|
};
|
|
224
227
|
export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
225
228
|
return request({
|
|
226
|
-
url:
|
|
227
|
-
method:
|
|
229
|
+
url: '/qy/userConfig/listLogisticsAddress',
|
|
230
|
+
method: 'get',
|
|
228
231
|
data: {}
|
|
229
232
|
}).then(function (res) {
|
|
230
233
|
var data = res.data;
|
|
@@ -236,8 +239,8 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
|
236
239
|
};
|
|
237
240
|
export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
238
241
|
return request({
|
|
239
|
-
url:
|
|
240
|
-
method:
|
|
242
|
+
url: '/qy/logistics/company/getAllLogisticsCompany/noLogin',
|
|
243
|
+
method: 'get',
|
|
241
244
|
data: {}
|
|
242
245
|
}).then(function (res) {
|
|
243
246
|
var data = res.data;
|
|
@@ -252,49 +255,60 @@ export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
|
252
255
|
});
|
|
253
256
|
};
|
|
254
257
|
export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
|
|
255
|
-
var instance = ExpressData.getInstance(
|
|
258
|
+
var instance = ExpressData.getInstance('wdt');
|
|
256
259
|
return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
|
|
257
260
|
instance.expressData = data;
|
|
258
261
|
}).catch(console.log);
|
|
259
262
|
};
|
|
260
263
|
export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
261
|
-
var instance = ExpressData.getInstance(
|
|
264
|
+
var instance = ExpressData.getInstance('bsE3');
|
|
262
265
|
return servers.BSE3.getLogisticsDataAsync().then(function (data) {
|
|
263
266
|
instance.expressData = data;
|
|
264
267
|
}).catch(console.log);
|
|
265
268
|
};
|
|
266
269
|
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
267
|
-
var instance = ExpressData.getInstance(
|
|
270
|
+
var instance = ExpressData.getInstance('jst');
|
|
268
271
|
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
269
272
|
instance.expressData = data;
|
|
270
273
|
}).catch(console.log);
|
|
271
274
|
};
|
|
272
275
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
273
|
-
var instance = ExpressData.getInstance(
|
|
276
|
+
var instance = ExpressData.getInstance('wln');
|
|
274
277
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
275
278
|
instance.expressData = data;
|
|
276
279
|
}).catch(console.log);
|
|
277
280
|
};
|
|
278
|
-
export var
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
export var querySendData = /*#__PURE__*/function () {
|
|
282
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
283
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
284
|
+
while (1) switch (_context.prev = _context.next) {
|
|
285
|
+
case 0:
|
|
286
|
+
_context.next = 2;
|
|
287
|
+
return SendDataCenter.fetchData();
|
|
288
|
+
case 2:
|
|
289
|
+
case "end":
|
|
290
|
+
return _context.stop();
|
|
291
|
+
}
|
|
292
|
+
}, _callee);
|
|
293
|
+
}));
|
|
294
|
+
return function querySendData() {
|
|
295
|
+
return _ref.apply(this, arguments);
|
|
296
|
+
};
|
|
297
|
+
}();
|
|
284
298
|
// 获取支付宝电子回单
|
|
285
299
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
286
300
|
return request({
|
|
287
|
-
url:
|
|
288
|
-
method:
|
|
301
|
+
url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
|
|
302
|
+
method: 'post',
|
|
289
303
|
data: data
|
|
290
304
|
});
|
|
291
305
|
};
|
|
292
306
|
export var queryLabel = function queryLabel() {
|
|
293
307
|
return request({
|
|
294
|
-
url:
|
|
295
|
-
method:
|
|
308
|
+
url: '/qy/diamond/getConfigInfo',
|
|
309
|
+
method: 'get',
|
|
296
310
|
data: {
|
|
297
|
-
key:
|
|
311
|
+
key: 'RISK_WARING_LABEL_LIST'
|
|
298
312
|
}
|
|
299
313
|
}).then(function (res) {
|
|
300
314
|
var data = res.data;
|
|
@@ -303,7 +317,7 @@ export var queryLabel = function queryLabel() {
|
|
|
303
317
|
var finalData = JSON.parse(data);
|
|
304
318
|
instance.labelData = finalData;
|
|
305
319
|
} catch (e) {
|
|
306
|
-
console.error(
|
|
320
|
+
console.error('转换标签数据数据异常');
|
|
307
321
|
instance.labelData = [];
|
|
308
322
|
}
|
|
309
323
|
});
|
|
@@ -312,8 +326,8 @@ export var queryLabel = function queryLabel() {
|
|
|
312
326
|
//查询工单
|
|
313
327
|
export var queryWorkOrderDetail = function queryWorkOrderDetail(data) {
|
|
314
328
|
return request({
|
|
315
|
-
url:
|
|
316
|
-
method:
|
|
329
|
+
url: '/qy/gdfw/workOrder/queryWorkOrderDetail',
|
|
330
|
+
method: 'post',
|
|
317
331
|
data: data
|
|
318
332
|
});
|
|
319
333
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.2
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
+
"sync": "yarn build && yalc push",
|
|
10
11
|
"build": "yarn run lint && father build",
|
|
11
12
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
12
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
13
|
-
"sync": "yarn build && yalc push"
|
|
13
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.0.2
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.2
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.2",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.2",
|
|
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": "69533ff0a1d42934389b3d669922933b9751828a",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|