@kmkf-fe-packages/services-components 2.0.3 → 2.0.8

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.
Files changed (32) hide show
  1. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  2. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +3 -0
  3. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +55 -0
  4. package/dist/esm/commonComponents/GlobalContext/index.d.ts +3 -2
  5. package/dist/esm/commonComponents/GlobalContext/index.js +109 -30
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  8. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +1 -0
  9. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +1 -0
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +3 -0
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +79 -0
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +3 -0
  13. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +80 -0
  14. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +3 -0
  15. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +78 -0
  16. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  17. package/dist/esm/components/BS/BsLogistics/index.js +22 -9
  18. package/dist/esm/components/BS/common/expressCode.js +3 -0
  19. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  20. package/dist/esm/components/Common/dist/index.js +1019 -0
  21. package/dist/esm/components/PostIng/index.js +10 -18
  22. package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -0
  23. package/dist/esm/components/Reissue/Logistics/index.js +6 -2
  24. package/dist/esm/components/StatusSelect/constants.d.ts +18 -0
  25. package/dist/esm/components/StatusSelect/constants.js +23 -0
  26. package/dist/esm/components/StatusSelect/index.d.ts +10 -6
  27. package/dist/esm/components/StatusSelect/index.js +49 -110
  28. package/dist/esm/factory.d.ts +1 -1
  29. package/dist/esm/factory.js +3 -0
  30. package/dist/esm/service/api.d.ts +1 -1
  31. package/dist/esm/service/api.js +52 -66
  32. package/package.json +4 -4
@@ -1,7 +1,4 @@
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); }); }; }
5
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; }
6
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; }
7
4
  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; }
@@ -13,40 +10,40 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
10
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
11
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
12
  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; }
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';
13
+ import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, servers } from "@kmkf-fe-packages/kmkf-utils";
14
+ import get from "lodash/get";
18
15
  import request from "./request";
19
16
  // 重复校验
20
17
  export var replaceCheck = function replaceCheck(data) {
21
18
  return request({
22
- url: '/qy/gdfw/workOrder/repeatCheck',
23
- method: 'post',
19
+ url: "/qy/gdfw/workOrder/repeatCheck",
20
+ method: "post",
24
21
  data: data
25
22
  });
26
23
  };
27
24
  export var queryAddressData = function queryAddressData() {
28
25
  return request({
29
- url: '/qy/gdfw/template/queryAreas/noLogin',
30
- method: 'get',
26
+ url: "/qy/gdfw/template/queryAreas/noLogin",
27
+ method: "get",
31
28
  data: {}
32
29
  }).then(function (resp) {
33
30
  var map = {};
34
31
  var res = {};
35
32
  var list = resp.data;
36
33
  for (var i = 0; i < list.length; i++) {
37
- res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
38
- map[list[i]['name']] = list[i]['id'];
34
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
35
+ map[list[i]["name"]] = list[i]["id"];
39
36
  }
40
37
  var instance = AddressData.getInstance();
41
38
  instance.addrData = res;
42
39
  instance.addrNameMap = map;
43
- instance.addressOptions = get(toTree(list, 0), '0.children', []);
40
+ instance.addressOptions = get(toTree(list, 0), "0.children", []);
44
41
  });
45
42
  };
46
43
  export var queryBsAddressData = function queryBsAddressData() {
47
44
  return request({
48
- url: '/qy/gdfw/template/queryBsAreas/noLogin',
49
- method: 'get',
45
+ url: "/qy/gdfw/template/queryBsAreas/noLogin",
46
+ method: "get",
50
47
  data: {}
51
48
  }).then(function (resp) {
52
49
  var map = {};
@@ -54,8 +51,8 @@ export var queryBsAddressData = function queryBsAddressData() {
54
51
  var _resp$data = resp.data,
55
52
  list = _resp$data === void 0 ? [] : _resp$data;
56
53
  for (var i = 0; i < list.length; i++) {
57
- res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
58
- map[list[i]['name']] = list[i]['id'];
54
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
55
+ map[list[i]["name"]] = list[i]["id"];
59
56
  }
60
57
  var instance = BsAddressData.getInstance();
61
58
  instance.addrData = res;
@@ -65,8 +62,8 @@ export var queryBsAddressData = function queryBsAddressData() {
65
62
  };
66
63
  export var queryWdtAddressData = function queryWdtAddressData() {
67
64
  return request({
68
- url: '/qy/gdfw/template/queryWdtAreas/noLogin',
69
- method: 'get',
65
+ url: "/qy/gdfw/template/queryWdtAreas/noLogin",
66
+ method: "get",
70
67
  data: {}
71
68
  }).then(function (resp) {
72
69
  var map = {};
@@ -74,8 +71,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
74
71
  var _resp$data2 = resp.data,
75
72
  list = _resp$data2 === void 0 ? [] : _resp$data2;
76
73
  for (var i = 0; i < list.length; i++) {
77
- res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
78
- map[list[i]['name']] = list[i]['id'];
74
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
75
+ map[list[i]["name"]] = list[i]["id"];
79
76
  }
80
77
  var instance = WdtAddressData.getInstance();
81
78
  instance.addrData = res;
@@ -85,8 +82,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
85
82
  };
86
83
  export var queryPlatData = function queryPlatData() {
87
84
  return request({
88
- url: '/qy/platform/listPlatform/noLogin',
89
- method: 'get',
85
+ url: "/qy/platform/listPlatform/noLogin",
86
+ method: "get",
90
87
  data: {}
91
88
  }).then(function (res) {
92
89
  if (res.success) {
@@ -113,8 +110,8 @@ export var queryPlatData = function queryPlatData() {
113
110
  };
114
111
  export var queryExpressInterceptData = function queryExpressInterceptData() {
115
112
  return request({
116
- url: '/qy/logistics/listLogisticsWithInterceptInfo/noLogin',
117
- method: 'get',
113
+ url: "/qy/logistics/listLogisticsWithInterceptInfo/noLogin",
114
+ method: "get",
118
115
  data: {
119
116
  platformType: 118
120
117
  }
@@ -122,10 +119,10 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
122
119
  var data = res.data;
123
120
  var instance = ExpressInterceptData.getInstance();
124
121
  var companyTypeMap = {
125
- SF: '顺丰',
126
- ZTO: '中通',
127
- JT: '极兔',
128
- DEFAULT: ''
122
+ SF: "顺丰",
123
+ ZTO: "中通",
124
+ JT: "极兔",
125
+ DEFAULT: ""
129
126
  };
130
127
  var expressList = data.map(function (item) {
131
128
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -190,26 +187,26 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
190
187
  instance.typeOptions = Object.keys(typeObj).map(function (key) {
191
188
  return {
192
189
  label: key,
193
- value: _toConsumableArray(typeObj[key]).join(',')
190
+ value: _toConsumableArray(typeObj[key]).join(",")
194
191
  };
195
192
  });
196
193
  instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
197
- var type = key.split('|')[0];
194
+ var type = key.split("|")[0];
198
195
  return {
199
- label: "".concat(companyTypeMap[type] || '').concat(instance.typeNameMap[key]),
196
+ label: "".concat(companyTypeMap[type] || "").concat(instance.typeNameMap[key]),
200
197
  value: key
201
198
  };
202
199
  });
203
200
  instance.statusOptions = Object.keys(statusObj).map(function (key) {
204
201
  return {
205
202
  label: key,
206
- value: _toConsumableArray(statusObj[key]).join(',')
203
+ value: _toConsumableArray(statusObj[key]).join(",")
207
204
  };
208
205
  });
209
206
  var tempList = [];
210
207
  var tempObj = {};
211
208
  Object.keys(instance.statusNameMap).forEach(function (key) {
212
- var type = key.split('|')[1];
209
+ var type = key.split("|")[1];
213
210
  if (!tempObj[type]) {
214
211
  tempList.push({
215
212
  label: instance.statusNameMap[key],
@@ -226,8 +223,8 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
226
223
  };
227
224
  export var queryLogisticsAddressData = function queryLogisticsAddressData() {
228
225
  return request({
229
- url: '/qy/userConfig/listLogisticsAddress',
230
- method: 'get',
226
+ url: "/qy/userConfig/listLogisticsAddress",
227
+ method: "get",
231
228
  data: {}
232
229
  }).then(function (res) {
233
230
  var data = res.data;
@@ -239,8 +236,8 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
239
236
  };
240
237
  export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
241
238
  return request({
242
- url: '/qy/logistics/company/getAllLogisticsCompany/noLogin',
243
- method: 'get',
239
+ url: "/qy/logistics/company/getAllLogisticsCompany/noLogin",
240
+ method: "get",
244
241
  data: {}
245
242
  }).then(function (res) {
246
243
  var data = res.data;
@@ -255,60 +252,49 @@ export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
255
252
  });
256
253
  };
257
254
  export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
258
- var instance = ExpressData.getInstance('wdt');
255
+ var instance = ExpressData.getInstance("wdt");
259
256
  return servers.getWdtSellerLogisticsCompanyRelation().then(function (data) {
260
257
  instance.expressData = data;
261
258
  }).catch(console.log);
262
259
  };
263
260
  export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
264
- var instance = ExpressData.getInstance('bsE3');
261
+ var instance = ExpressData.getInstance("bsE3");
265
262
  return servers.BSE3.getLogisticsDataAsync().then(function (data) {
266
263
  instance.expressData = data;
267
264
  }).catch(console.log);
268
265
  };
269
266
  export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
270
- var instance = ExpressData.getInstance('jst');
267
+ var instance = ExpressData.getInstance("jst");
271
268
  return servers.JST.getLogisticsDataAsync().then(function (data) {
272
269
  instance.expressData = data;
273
270
  }).catch(console.log);
274
271
  };
275
272
  export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
276
- var instance = ExpressData.getInstance('wln');
273
+ var instance = ExpressData.getInstance("wln");
277
274
  return servers.WLN.getLogisticsDataAsync().then(function (data) {
278
275
  instance.expressData = data;
279
276
  }).catch(console.log);
280
277
  };
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
- }();
278
+ export var queryKMLogisticsCompany = function queryKMLogisticsCompany() {
279
+ var instance = ExpressData.getInstance("km");
280
+ return servers.KM.getLogisticsDataAsync().then(function (data) {
281
+ instance.expressData = data;
282
+ }).catch(console.log);
283
+ };
298
284
  // 获取支付宝电子回单
299
285
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
300
286
  return request({
301
- url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
302
- method: 'post',
287
+ url: "/qy/payment/paymentOrder/getAlipayBillReceipt",
288
+ method: "post",
303
289
  data: data
304
290
  });
305
291
  };
306
292
  export var queryLabel = function queryLabel() {
307
293
  return request({
308
- url: '/qy/diamond/getConfigInfo',
309
- method: 'get',
294
+ url: "/qy/diamond/getConfigInfo",
295
+ method: "get",
310
296
  data: {
311
- key: 'RISK_WARING_LABEL_LIST'
297
+ key: "RISK_WARING_LABEL_LIST"
312
298
  }
313
299
  }).then(function (res) {
314
300
  var data = res.data;
@@ -317,7 +303,7 @@ export var queryLabel = function queryLabel() {
317
303
  var finalData = JSON.parse(data);
318
304
  instance.labelData = finalData;
319
305
  } catch (e) {
320
- console.error('转换标签数据数据异常');
306
+ console.error("转换标签数据数据异常");
321
307
  instance.labelData = [];
322
308
  }
323
309
  });
@@ -326,8 +312,8 @@ export var queryLabel = function queryLabel() {
326
312
  //查询工单
327
313
  export var queryWorkOrderDetail = function queryWorkOrderDetail(data) {
328
314
  return request({
329
- url: '/qy/gdfw/workOrder/queryWorkOrderDetail',
330
- method: 'post',
315
+ url: "/qy/gdfw/workOrder/queryWorkOrderDetail",
316
+ method: "post",
331
317
  data: data
332
318
  });
333
319
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.0.3",
3
+ "version": "2.0.8",
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.3",
25
- "@kmkf-fe-packages/kmkf-utils": "2.0.3",
24
+ "@kmkf-fe-packages/basic-components": "2.0.8",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.0.8",
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": "aa31a2e04d138c77174134e787caa36bb295d5a9",
44
+ "gitHead": "f94fe4c385c51f26f5e7e32659c26bb773e5b95a",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }