@kmkf-fe-packages/services-components 2.2.44-beta.0 → 2.2.44-beta.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/Hooks/useColumnsConfig.js +2 -2
- 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/index.js +52 -19
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +2 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +4 -2
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +43 -8
- package/dist/esm/components/BS/common/BsHeaderPic.js +4 -1
- package/dist/esm/components/BS/common/BsMemo.js +3 -1
- package/dist/esm/components/BS/common/BsType.js +3 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +3 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +4 -3
- package/dist/esm/components/CommonHeaderGood/index.js +47 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PicturePro/index.d.ts +9 -0
- package/dist/esm/components/PicturePro/index.js +17 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -1
- package/dist/esm/components/Public/Goods/index.d.ts +9 -0
- package/dist/esm/components/Public/Goods/index.js +23 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +41 -5
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +8 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/service/api.js +1 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { AddressData } from
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = {
|
|
5
5
|
address?: (string | number)[];
|
|
6
6
|
detail?: string;
|
|
@@ -11,14 +11,15 @@ declare class BasicInput implements ComponentInterface {
|
|
|
11
11
|
sortField: string;
|
|
12
12
|
type: string;
|
|
13
13
|
rules: any[];
|
|
14
|
-
componentConfig: ComponentInterface[
|
|
15
|
-
effects: ComponentInterface[
|
|
14
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
15
|
+
effects: ComponentInterface['effects'];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
17
|
formField: string;
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
21
|
-
dataType: ComponentInterface[
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
22
|
+
compoundConfig: ComponentInterface['compoundConfig'];
|
|
22
23
|
constructor(options: PickOption);
|
|
23
24
|
render: (value: Value) => React.JSX.Element;
|
|
24
25
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -8,17 +8,17 @@ 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 { Address } from
|
|
13
|
-
import { AddressData } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Address } from '@kmkf-fe-packages/basic-components';
|
|
13
|
+
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
17
|
-
import every from
|
|
16
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import every from 'lodash/every';
|
|
18
18
|
import { queryWorkOrderDetail } from "../../service/api";
|
|
19
|
-
import copy from
|
|
20
|
-
import { message } from
|
|
21
|
-
import { CopyOutlined } from
|
|
19
|
+
import copy from 'copy-to-clipboard';
|
|
20
|
+
import { message } from 'antd';
|
|
21
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
22
22
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
23
23
|
var _this = this,
|
|
24
24
|
_this$componentConfig5;
|
|
@@ -36,13 +36,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
36
36
|
_defineProperty(this, "children", void 0);
|
|
37
37
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
38
38
|
_defineProperty(this, "dataType", void 0);
|
|
39
|
+
_defineProperty(this, "compoundConfig", void 0);
|
|
39
40
|
_defineProperty(this, "render", function (value) {
|
|
40
41
|
var _value$address;
|
|
41
42
|
return /*#__PURE__*/React.createElement("span", {
|
|
42
43
|
className: "pointer"
|
|
43
44
|
}, value === null || value === void 0 ? void 0 : (_value$address = value.address) === null || _value$address === void 0 ? void 0 : _value$address.map(function (suffix) {
|
|
44
45
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
45
|
-
}).join(
|
|
46
|
+
}).join(''), value === null || value === void 0 ? void 0 : value.detail);
|
|
46
47
|
});
|
|
47
48
|
_defineProperty(this, "transTextToNumber", function (value) {
|
|
48
49
|
return value ? +value : value;
|
|
@@ -66,10 +67,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
66
67
|
e.stopPropagation();
|
|
67
68
|
_context.prev = 1;
|
|
68
69
|
addressText = (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
|
|
69
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
70
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
70
71
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
71
|
-
}).join(
|
|
72
|
-
if (!(detail.indexOf(
|
|
72
|
+
}).join('');
|
|
73
|
+
if (!(detail.indexOf('*') > -1)) {
|
|
73
74
|
_context.next = 12;
|
|
74
75
|
break;
|
|
75
76
|
}
|
|
@@ -85,13 +86,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
85
86
|
success = _yield$queryWorkOrder.success;
|
|
86
87
|
if (success) {
|
|
87
88
|
copy("".concat(addressText).concat(data === null || data === void 0 ? void 0 : (_data$jsonMap = data.jsonMap) === null || _data$jsonMap === void 0 ? void 0 : _data$jsonMap["".concat(_this.id, "_address")]));
|
|
88
|
-
message.success(
|
|
89
|
+
message.success('复制成功');
|
|
89
90
|
}
|
|
90
91
|
_context.next = 14;
|
|
91
92
|
break;
|
|
92
93
|
case 12:
|
|
93
94
|
copy("".concat(addressText).concat(detail));
|
|
94
|
-
message.success(
|
|
95
|
+
message.success('复制成功');
|
|
95
96
|
case 14:
|
|
96
97
|
_context.next = 19;
|
|
97
98
|
break;
|
|
@@ -113,15 +114,15 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
113
114
|
className: "pointer",
|
|
114
115
|
onClick: function onClick(e) {
|
|
115
116
|
var _this$effects, _this$effects2;
|
|
116
|
-
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) ===
|
|
117
|
+
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
117
118
|
e.stopPropagation();
|
|
118
119
|
}
|
|
119
120
|
}, (_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function () {
|
|
120
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
121
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
121
122
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
122
|
-
}).join(
|
|
123
|
+
}).join(''), detail, ' ', /*#__PURE__*/React.createElement(CopyOutlined, {
|
|
123
124
|
style: {
|
|
124
|
-
color:
|
|
125
|
+
color: '#1B5BF3'
|
|
125
126
|
},
|
|
126
127
|
onClick: function onClick(e) {
|
|
127
128
|
return copyHandler(e, record);
|
|
@@ -136,9 +137,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
136
137
|
}) ? [] : address;
|
|
137
138
|
var detail = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")];
|
|
138
139
|
return "".concat((_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function () {
|
|
139
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
140
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
140
141
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
141
|
-
}).join(
|
|
142
|
+
}).join(''), " ").concat(detail || '');
|
|
142
143
|
});
|
|
143
144
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
144
145
|
return {
|
|
@@ -149,7 +150,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
149
150
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
150
151
|
var _address4;
|
|
151
152
|
if (record["".concat(_this.id, "_province")] === undefined) {
|
|
152
|
-
return
|
|
153
|
+
return '--';
|
|
153
154
|
}
|
|
154
155
|
var address = [_this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_province")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_city")]), _this.transTextToNumber(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_district")])];
|
|
155
156
|
address = every(address, function (item) {
|
|
@@ -157,9 +158,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
157
158
|
}) ? [] : address;
|
|
158
159
|
var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
|
|
159
160
|
return "".concat((_address4 = address) === null || _address4 === void 0 ? void 0 : _address4.map(function () {
|
|
160
|
-
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
161
|
+
var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
161
162
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
162
|
-
}).join(
|
|
163
|
+
}).join(''), " ").concat(detail || '');
|
|
163
164
|
});
|
|
164
165
|
_defineProperty(this, "renderClient", function (record) {
|
|
165
166
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -177,7 +178,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
177
178
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
178
179
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
179
180
|
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,
|
|
180
|
-
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 :
|
|
181
|
+
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 : '',
|
|
181
182
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
182
183
|
});
|
|
183
184
|
});
|
|
@@ -197,16 +198,29 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
197
198
|
validator: function validator(_, value) {
|
|
198
199
|
var _value$address2;
|
|
199
200
|
if (!(value !== null && value !== void 0 && (_value$address2 = value.address) !== null && _value$address2 !== void 0 && _value$address2.length)) {
|
|
200
|
-
return Promise.reject(new Error(
|
|
201
|
+
return Promise.reject(new Error('请选择地址'));
|
|
201
202
|
}
|
|
202
203
|
if (!(value !== null && value !== void 0 && value.detail)) {
|
|
203
|
-
return Promise.reject(new Error(
|
|
204
|
+
return Promise.reject(new Error('请填写详细地址'));
|
|
204
205
|
}
|
|
205
206
|
return Promise.resolve();
|
|
206
207
|
}
|
|
207
208
|
}] : [];
|
|
208
209
|
this.effects = options.effects;
|
|
209
210
|
this.addressDateInstance = AddressData.getInstance();
|
|
210
|
-
this.dataType =
|
|
211
|
+
this.dataType = 'object';
|
|
212
|
+
this.compoundConfig = [{
|
|
213
|
+
name: "\u7701",
|
|
214
|
+
id: "".concat(options.id, "_province")
|
|
215
|
+
}, {
|
|
216
|
+
name: "\u5E02",
|
|
217
|
+
id: "".concat(options.id, "_city")
|
|
218
|
+
}, {
|
|
219
|
+
name: "\u533A",
|
|
220
|
+
id: "".concat(options.id, "_district")
|
|
221
|
+
}, {
|
|
222
|
+
name: "\u8BE6\u7EC6\u5730\u5740",
|
|
223
|
+
id: "".concat(options.id, "_address")
|
|
224
|
+
}];
|
|
211
225
|
});
|
|
212
226
|
export default BasicInput;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, FlowOverallStatusSelect } from "./index";
|
|
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, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | JstSendGood | MsgStatus |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | BasicCascader | CommonMultiStatus | JstSendGood | KmExchange | Logistics | LogisticsMoreInterception | MsgStatus | Payment | BasicPicturePro | PublicGoods | PublicReissueGoods | ReturnWarehouse | ReceiverAddress | SubForm | BasicInput | BasicTypeInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | 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 | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, ErpTradeId, 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,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
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, FlowOverallStatusSelect } from "./index";
|
|
3
|
+
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, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -158,6 +158,8 @@ export var factory = function factory(type, options) {
|
|
|
158
158
|
case "JY_SEND_GOOD":
|
|
159
159
|
case "JKY_SEND_GOOD":
|
|
160
160
|
return new JstSendGood(options);
|
|
161
|
+
case "KM_RETURN_WAREHOUSE":
|
|
162
|
+
return new ReturnWarehouse(options);
|
|
161
163
|
case "BS_POSTING":
|
|
162
164
|
return new BsPosting(options);
|
|
163
165
|
case "BS_GOODS":
|
|
@@ -175,7 +177,9 @@ export var factory = function factory(type, options) {
|
|
|
175
177
|
return new PublicGoods(options);
|
|
176
178
|
case "JST_REISSUE_GOODS":
|
|
177
179
|
case "KM_REISSUE_GOODS":
|
|
180
|
+
case "KM_RETURN_GOODS":
|
|
178
181
|
case "JY_REISSUE_GOODS":
|
|
182
|
+
case "JKY_REISSUE_GOODS":
|
|
179
183
|
return new PublicReissueGoods(options);
|
|
180
184
|
case "BS_E3_REISSUE_GOODS":
|
|
181
185
|
return new BsE3Reissue(options);
|
|
@@ -183,6 +187,8 @@ export var factory = function factory(type, options) {
|
|
|
183
187
|
return new BsExchange(options);
|
|
184
188
|
case "WDT_EXCHANGE_GOODS":
|
|
185
189
|
return new WdtExchange(options);
|
|
190
|
+
case "KM_EXCHANGE_GOODS":
|
|
191
|
+
return new KmExchange(options);
|
|
186
192
|
case "JST_EXCHANGE_GOODS":
|
|
187
193
|
return new PublicExchange(options);
|
|
188
194
|
case "BS_REISSUE_GOODS":
|
|
@@ -239,6 +245,7 @@ export var factory = function factory(type, options) {
|
|
|
239
245
|
case "WAREHOUSING_STATUS":
|
|
240
246
|
case "BS_E3_WAREHOUSING_STATUS":
|
|
241
247
|
case "WDT_WAREHOUSING_STATUS":
|
|
248
|
+
case "JKY_WAREHOUSING_STATUS":
|
|
242
249
|
return new CommonMultiStatus(options);
|
|
243
250
|
case "MSG_STATUS":
|
|
244
251
|
return new MsgStatus(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -102,6 +102,8 @@ export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
104
|
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
|
|
106
|
+
export { default as KmExchange } from "./components/KM/KmExchange";
|
|
105
107
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
106
108
|
export { factory } from "./factory";
|
|
107
109
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
package/dist/esm/index.js
CHANGED
|
@@ -102,6 +102,8 @@ export { default as SkxIdInputSelect } from "./components/SKX/SkxIdInputSelect";
|
|
|
102
102
|
export { default as SkxGoods } from "./components/SKX/SkxGoods";
|
|
103
103
|
export { default as OrderSubForm } from "./components/OrderSubForm";
|
|
104
104
|
export { default as FlowOverallStatusSelect } from "./components/FlowOverallStatusSelect";
|
|
105
|
+
export { default as ReturnWarehouse } from "./components/Public/ReturnWarehouse";
|
|
106
|
+
export { default as KmExchange } from "./components/KM/KmExchange";
|
|
105
107
|
|
|
106
108
|
// TODO: ERP 打款工单使用
|
|
107
109
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
package/dist/esm/service/api.js
CHANGED
|
@@ -303,6 +303,7 @@ export var queryJYLogisticsCompany = function queryJYLogisticsCompany() {
|
|
|
303
303
|
};
|
|
304
304
|
export var queryJKYLogisticsCompany = function queryJKYLogisticsCompany() {
|
|
305
305
|
var instance = ExpressData.getInstance("jky");
|
|
306
|
+
console.log("queryJKYLogisticsCompany");
|
|
306
307
|
return servers.JKY.getLogisticsDataAsync().then(function (data) {
|
|
307
308
|
instance.expressData = data;
|
|
308
309
|
}).catch(console.log);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.44-beta.
|
|
3
|
+
"version": "2.2.44-beta.101",
|
|
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.2.44-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.44-beta.101",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.101",
|
|
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": "24fa14d0090629f05997a965173d224b59c543f1",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|