@kmkf-fe-packages/services-components 2.2.11 → 2.2.13-beta.0
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/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +3 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +10 -9
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsLogistics/index.js +9 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
- package/dist/esm/components/BS/common/expressCode.js +4 -2
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
- package/dist/esm/components/Common/index.js +5 -3
- package/dist/esm/components/CommonHeaderGood/index.js +216 -6
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -9
- package/dist/esm/components/JST/JstSendGood/index.js +9 -1
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/MsgStatus/index.js +6 -1
- package/dist/esm/components/OrderSubForm/index.js +4 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Public/Goods/index.d.ts +3 -0
- package/dist/esm/components/Public/Goods/index.js +3 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +86 -6
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +4 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +6 -0
- package/package.json +3 -3
|
@@ -0,0 +1,116 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
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; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
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; }
|
|
12
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
+
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); }
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Image } from "antd";
|
|
16
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
17
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
var HeaderChildPic = /*#__PURE__*/_createClass(function HeaderChildPic(options) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
_classCallCheck(this, HeaderChildPic);
|
|
21
|
+
_defineProperty(this, "name", void 0);
|
|
22
|
+
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "type", void 0);
|
|
25
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
+
_defineProperty(this, "align", void 0);
|
|
27
|
+
_defineProperty(this, "width", void 0);
|
|
28
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
30
|
+
_defineProperty(this, "canSort", void 0);
|
|
31
|
+
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "parentName", void 0);
|
|
34
|
+
_defineProperty(this, "transformValue", function (val) {
|
|
35
|
+
return val;
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "export", function (val) {
|
|
38
|
+
return val;
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "getParentId", function () {
|
|
41
|
+
var _this$id$split = _this.id.split("_"),
|
|
42
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
43
|
+
key = _this$id$split2[0],
|
|
44
|
+
name = _this$id$split2[1],
|
|
45
|
+
code = _this$id$split2[2];
|
|
46
|
+
return "".concat(key, "_").concat(name);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
49
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
|
+
id: _this.id,
|
|
51
|
+
label: _this.name,
|
|
52
|
+
value: _this.getComponentValue(record)
|
|
53
|
+
}) : null;
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
56
|
+
var picList = _this.getComponentValue(record);
|
|
57
|
+
if (!picList.length) {
|
|
58
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
59
|
+
}
|
|
60
|
+
return picList.map(function (t) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
62
|
+
width: 30,
|
|
63
|
+
src: t,
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
71
|
+
var id = _this.getParentId();
|
|
72
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
73
|
+
return _this.renderPc(undefined, r);
|
|
74
|
+
});
|
|
75
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
76
|
+
var picList = (r === null || r === void 0 ? void 0 : r[_this.id]) || [];
|
|
77
|
+
return picList === null || picList === void 0 ? void 0 : picList.map(function (url) {
|
|
78
|
+
return url.startsWith("http") ? url : url.startsWith("/") ? "https://kefu.kuaimai.com".concat(url) : "https://kefu.kuaimai.com/".concat(url);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "getComponentExport", function (r) {
|
|
82
|
+
return _this.export(r === null || r === void 0 ? void 0 : r[_this.id], r, _this.parentName);
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
85
|
+
var picList = _this.getComponentValue(record);
|
|
86
|
+
return picList.join(",");
|
|
87
|
+
});
|
|
88
|
+
_defineProperty(this, "editRender", function () {
|
|
89
|
+
return null;
|
|
90
|
+
});
|
|
91
|
+
_defineProperty(this, "filterConfig", function () {
|
|
92
|
+
return [];
|
|
93
|
+
});
|
|
94
|
+
this.name = options.name;
|
|
95
|
+
this.id = options.id;
|
|
96
|
+
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
98
|
+
this.type = options.type;
|
|
99
|
+
if (options.parentName) {
|
|
100
|
+
this.parentName = options.parentName;
|
|
101
|
+
}
|
|
102
|
+
this.componentConfig = options.componentConfig;
|
|
103
|
+
this.align = "left";
|
|
104
|
+
this.width = (options === null || options === void 0 ? void 0 : options.width) || 100;
|
|
105
|
+
this.isCombinationComponent = false;
|
|
106
|
+
this.canSort = false;
|
|
107
|
+
this.dataType = "string";
|
|
108
|
+
this.children = [];
|
|
109
|
+
if (options.transformValue) {
|
|
110
|
+
this.transformValue = options.transformValue;
|
|
111
|
+
}
|
|
112
|
+
if (options.renderExport) {
|
|
113
|
+
this.export = options.renderExport;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export default HeaderChildPic;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
var _excluded = ["component"];
|
|
1
2
|
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); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
5
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
6
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
7
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -16,13 +19,82 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
16
19
|
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); }
|
|
17
20
|
import React from "react";
|
|
18
21
|
import { Table } from "antd";
|
|
19
|
-
import { SubForm as SubFormComponent } from "@kmkf-fe-packages/basic-components";
|
|
20
|
-
import BsHeaderChild from "../BS/common
|
|
22
|
+
import { SubForm as SubFormComponent, renderMap } from "@kmkf-fe-packages/basic-components";
|
|
23
|
+
import { BsHeaderChild } from "../BS/common";
|
|
24
|
+
import HeaderChildFile from "./children/HeaderChildFile";
|
|
25
|
+
import HeaderChildPic from "./children/HeaderChildPic";
|
|
21
26
|
import GetFormItem from "../GetFormItem";
|
|
22
27
|
import ItemView from "../../commonComponents/ItemView";
|
|
23
28
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
-
import { difference } from
|
|
29
|
+
import { difference } from "lodash";
|
|
25
30
|
import { SYMBOL } from "../../constant";
|
|
31
|
+
var ChildrenMap = {
|
|
32
|
+
INPUT: {
|
|
33
|
+
component: BsHeaderChild
|
|
34
|
+
},
|
|
35
|
+
TEXTAREA: {
|
|
36
|
+
component: BsHeaderChild
|
|
37
|
+
},
|
|
38
|
+
SELECT: {
|
|
39
|
+
component: BsHeaderChild
|
|
40
|
+
},
|
|
41
|
+
RADIO: {
|
|
42
|
+
component: BsHeaderChild
|
|
43
|
+
// transformValue: (value: any) => {
|
|
44
|
+
// if (!value?.value) return null;
|
|
45
|
+
// return `${value?.value}
|
|
46
|
+
// ${
|
|
47
|
+
// value?.value &&
|
|
48
|
+
// typeof value.value === "string" &&
|
|
49
|
+
// value?.value?.indexOf("其他") > -1 &&
|
|
50
|
+
// value?.other
|
|
51
|
+
// ? `(${value?.other})`
|
|
52
|
+
// : ""
|
|
53
|
+
// }`;
|
|
54
|
+
// },
|
|
55
|
+
// renderExport: (value: any) => {
|
|
56
|
+
// if (!value?.value) return null;
|
|
57
|
+
// return `${value?.value}
|
|
58
|
+
// ${
|
|
59
|
+
// value?.value &&
|
|
60
|
+
// typeof value.value === "string" &&
|
|
61
|
+
// value?.value?.indexOf("其他") > -1 &&
|
|
62
|
+
// value?.other
|
|
63
|
+
// ? `(${value?.other})`
|
|
64
|
+
// : ""
|
|
65
|
+
// }`;
|
|
66
|
+
// },
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
CHECKBOX: {
|
|
70
|
+
component: BsHeaderChild,
|
|
71
|
+
transformValue: function transformValue(value) {
|
|
72
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
73
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
74
|
+
},
|
|
75
|
+
renderExport: function renderExport(value) {
|
|
76
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
77
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
BASIC_MULT_SELECT: {
|
|
81
|
+
component: BsHeaderChild,
|
|
82
|
+
transformValue: function transformValue(value) {
|
|
83
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
84
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
85
|
+
},
|
|
86
|
+
renderExport: function renderExport(value) {
|
|
87
|
+
if (!(value !== null && value !== void 0 && value.length)) return null;
|
|
88
|
+
return value === null || value === void 0 ? void 0 : value.join(",");
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
PICTURE: {
|
|
92
|
+
component: HeaderChildPic
|
|
93
|
+
},
|
|
94
|
+
FILE: {
|
|
95
|
+
component: HeaderChildFile
|
|
96
|
+
}
|
|
97
|
+
};
|
|
26
98
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
27
99
|
var _this = this;
|
|
28
100
|
_classCallCheck(this, SubForm);
|
|
@@ -80,7 +152,12 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
80
152
|
ellipsis: true,
|
|
81
153
|
width: item.width,
|
|
82
154
|
render: function render(val) {
|
|
83
|
-
return /*#__PURE__*/React.createElement("
|
|
155
|
+
return renderMap[item.workOrderComponentType] ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
style: {
|
|
157
|
+
width: "100%",
|
|
158
|
+
overflow: "auto"
|
|
159
|
+
}
|
|
160
|
+
}, renderMap[item.workOrderComponentType](val)) : /*#__PURE__*/React.createElement("span", null, val);
|
|
84
161
|
}
|
|
85
162
|
};
|
|
86
163
|
})) || []));
|
|
@@ -191,10 +268,13 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
191
268
|
this.isCombinationComponent = true;
|
|
192
269
|
this.canSort = false;
|
|
193
270
|
this.children = (this.getNewTableHeader() || []).map(function (item) {
|
|
194
|
-
|
|
271
|
+
var _ChildrenMap$item$wor = ChildrenMap[item.workOrderComponentType],
|
|
272
|
+
component = _ChildrenMap$item$wor.component,
|
|
273
|
+
other = _objectWithoutProperties(_ChildrenMap$item$wor, _excluded);
|
|
274
|
+
return new component(_objectSpread(_objectSpread({}, options), {}, {
|
|
195
275
|
name: item.name,
|
|
196
276
|
id: "".concat(options.id, "_productList_").concat(item.key)
|
|
197
|
-
}));
|
|
277
|
+
}, other));
|
|
198
278
|
});
|
|
199
279
|
this.dataType = "object";
|
|
200
280
|
});
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BasicFile | JstSendGood | LogisticsInterception | MsgStatus | PublicGoods | SubForm | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
|
package/dist/esm/factory.js
CHANGED
|
@@ -142,6 +142,7 @@ export var factory = function factory(type, options) {
|
|
|
142
142
|
case "BS_E3_SYSTEM_ORDER":
|
|
143
143
|
case "GY_SYSTEM_ORDER":
|
|
144
144
|
case "JST_SYSTEM_ORDER":
|
|
145
|
+
case "JY_SYSTEM_ORDER":
|
|
145
146
|
return new BsSystemOrder(options);
|
|
146
147
|
case "JST_SEND_GOOD":
|
|
147
148
|
case "BS_SEND_GOOD":
|
|
@@ -150,6 +151,7 @@ export var factory = function factory(type, options) {
|
|
|
150
151
|
case "WDT_SEND_GOOD":
|
|
151
152
|
case "KM_SEND_GOOD":
|
|
152
153
|
case "GY_SEND_GOOD":
|
|
154
|
+
case "JY_SEND_GOOD":
|
|
153
155
|
return new JstSendGood(options);
|
|
154
156
|
case "BS_POSTING":
|
|
155
157
|
return new BsPosting(options);
|
|
@@ -159,6 +161,7 @@ export var factory = function factory(type, options) {
|
|
|
159
161
|
return new BsE3Goods(options);
|
|
160
162
|
case "GY_GOODS":
|
|
161
163
|
return new GyGoods(options);
|
|
164
|
+
case "JY_GOODS":
|
|
162
165
|
case "KM_GOODS":
|
|
163
166
|
case "JST_GOODS":
|
|
164
167
|
return new PublicGoods(options);
|
|
@@ -200,6 +203,7 @@ export var factory = function factory(type, options) {
|
|
|
200
203
|
case "JST_LOGISTICS":
|
|
201
204
|
case "KM_LOGISTICS":
|
|
202
205
|
case "GY_LOGISTICS":
|
|
206
|
+
case "JY_LOGISTICS":
|
|
203
207
|
case "SKX_LOGISTICS":
|
|
204
208
|
case "SKX_RETURN_LOGISTICS":
|
|
205
209
|
return new BsLogistics(options);
|
|
@@ -10,6 +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 queryGYLogisticsCompany: () => Promise<void>;
|
|
13
|
+
export declare const queryJYLogisticsCompany: () => Promise<void>;
|
|
13
14
|
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
14
15
|
export declare const queryKMLogisticsCompany: () => Promise<void>;
|
|
15
16
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -275,6 +275,12 @@ export var queryGYLogisticsCompany = function queryGYLogisticsCompany() {
|
|
|
275
275
|
instance.expressData = data;
|
|
276
276
|
}).catch(console.log);
|
|
277
277
|
};
|
|
278
|
+
export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
279
|
+
var instance = ExpressData.getInstance("jy");
|
|
280
|
+
return servers.JY.getLogisticsDataAsync().then(function (data) {
|
|
281
|
+
instance.expressData = data;
|
|
282
|
+
}).catch(console.log);
|
|
283
|
+
};
|
|
278
284
|
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
279
285
|
var instance = ExpressData.getInstance("wln");
|
|
280
286
|
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13-beta.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.13-beta.0",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "2.2.11",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "78391ac3335d8498a1315527ea1bd5ff9a3ae098",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|