@kmkf-fe-packages/services-components 0.27.1-test.2 → 0.27.1-test.4

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.
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CompletedUser | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | HandlerDeadLine | LogisticsMoreInterception | LogisticsMoreTrajectory | BasicMultSelect | NodeDeadLine | NodeInput | PlatForm | ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeStayDuration | WlnGoods | BsPosting | MsgStatus | WdtGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BsReissue | BuyerNick | CommonInput | JstSendGood | LogisticsMoreTrajectory | LogisticsTrajectory | PaymentVoucherCode | BasicSelect | WdtReissue | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods;
@@ -1,6 +1,6 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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 } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode, WdtReissue } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -30,6 +30,7 @@ export var factory = function factory(type, options) {
30
30
  return new BasicDataTime(options);
31
31
  case "SELECT":
32
32
  case "BUYER_MESSAGE_NOTICE":
33
+ case "NEW_PAYMENT_STATUS":
33
34
  return new BasicSelect(options);
34
35
  case "PICTURE":
35
36
  return new BasicPicture(options);
@@ -141,8 +142,9 @@ export var factory = function factory(type, options) {
141
142
  case "BS_EXCHANGE_GOODS":
142
143
  return new BsExchange(options);
143
144
  case "BS_REISSUE_GOODS":
144
- case "WDT_REISSUE_GOODS":
145
145
  return new BsReissue(options);
146
+ case "WDT_REISSUE_GOODS":
147
+ return new WdtReissue(options);
146
148
  case "BS_RETURN_GOODS":
147
149
  return new BsReturn(options);
148
150
  case "REISSUE_TRADE_ID":
@@ -195,9 +197,13 @@ export var factory = function factory(type, options) {
195
197
  return new CommonDataTime(options);
196
198
  case "FLOW_UPDATE_DATETIME":
197
199
  return new CommonDataTime(options);
198
- case 'WDT_GOODS':
200
+ case "WDT_GOODS":
199
201
  // 万里牛商品
200
202
  return new WdtGoods(options);
203
+ case "BUSINESS_ORDER_NO":
204
+ return new CommonInput(options);
205
+ case "PAYMENT_VOUCHER_CODE":
206
+ return new PaymentVoucherCode(options);
201
207
  default:
202
208
  return new BasicInput(options);
203
209
  }
@@ -70,10 +70,13 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
70
70
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
71
71
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
72
72
  export { default as BsPosting } from "./components/BS/BsPosting";
73
- export { default as NodeInput } from './components/NodeInput';
74
- export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
75
- export { default as MsgStatus } from './components/MsgStatus';
73
+ export { default as NodeInput } from "./components/NodeInput";
74
+ export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
+ export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
+ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
78
+ export { default as CommonInput } from "./components/CommonInput";
79
+ export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
77
80
  export { factory } from "./factory";
78
81
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
79
82
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -74,6 +74,9 @@ export { default as NodeInput } from "./components/NodeInput";
74
74
  export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
75
  export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
+ export { default as WdtReissue } from "./components/WDT/WdtRessuie";
78
+ export { default as CommonInput } from "./components/CommonInput";
79
+ export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
77
80
  export { factory } from "./factory";
78
81
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
79
82
  export { default as SelectMark } from "./commonComponents/SelectMark";
@@ -1,5 +1,9 @@
1
1
  export declare const replaceCheck: (data: any) => Promise<any>;
2
+ export declare const queryAddressData: () => Promise<void>;
3
+ export declare const queryBsAddressData: () => Promise<void>;
4
+ export declare const queryWdtAddressData: () => Promise<void>;
2
5
  export declare const queryPlatData: () => Promise<void>;
3
6
  export declare const queryExpressInterceptData: () => Promise<void>;
4
7
  export declare const queryLogisticsAddressData: () => Promise<void>;
5
8
  export declare const queryAllLogisticsCompany: () => Promise<void>;
9
+ export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
@@ -10,16 +10,76 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
11
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
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; }
13
- import { PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData } from "@kmkf-fe-packages/kmkf-utils";
14
+ import get from "lodash/get";
14
15
  import request from "./request";
15
16
  // 重复校验
16
17
  export var replaceCheck = function replaceCheck(data) {
17
18
  return request({
18
- url: '/qy/gdfw/workOrder/repeatCheck',
19
- method: 'post',
19
+ url: "/qy/gdfw/workOrder/repeatCheck",
20
+ method: "post",
20
21
  data: data
21
22
  });
22
23
  };
24
+ export var queryAddressData = function queryAddressData() {
25
+ return request({
26
+ url: "/qy/gdfw/template/queryAreas/noLogin",
27
+ method: "get",
28
+ data: {}
29
+ }).then(function (resp) {
30
+ var map = {};
31
+ var res = {};
32
+ var list = resp.data;
33
+ for (var i = 0; i < list.length; i++) {
34
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
35
+ map[list[i]["name"]] = list[i]["id"];
36
+ }
37
+ var instance = AddressData.getInstance();
38
+ instance.addrData = res;
39
+ instance.addrNameMap = map;
40
+ instance.addressOptions = get(toTree(list, 0), "0.children", []);
41
+ });
42
+ };
43
+ export var queryBsAddressData = function queryBsAddressData() {
44
+ return request({
45
+ url: "/qy/gdfw/template/queryBsAreas/noLogin",
46
+ method: "get",
47
+ data: {}
48
+ }).then(function (resp) {
49
+ var map = {};
50
+ var res = {};
51
+ var _resp$data = resp.data,
52
+ list = _resp$data === void 0 ? [] : _resp$data;
53
+ for (var i = 0; i < list.length; i++) {
54
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
55
+ map[list[i]["name"]] = list[i]["id"];
56
+ }
57
+ var instance = BsAddressData.getInstance();
58
+ instance.addrData = res;
59
+ instance.addrNameMap = map;
60
+ instance.addressOptions = toTree(list, 1);
61
+ });
62
+ };
63
+ export var queryWdtAddressData = function queryWdtAddressData() {
64
+ return request({
65
+ url: "/qy/gdfw/template/queryWdtAreas/noLogin",
66
+ method: "get",
67
+ data: {}
68
+ }).then(function (resp) {
69
+ var map = {};
70
+ var res = {};
71
+ var _resp$data2 = resp.data,
72
+ list = _resp$data2 === void 0 ? [] : _resp$data2;
73
+ for (var i = 0; i < list.length; i++) {
74
+ res[list[i]["id"]] = [list[i]["name"], list[i]["parentId"]];
75
+ map[list[i]["name"]] = list[i]["id"];
76
+ }
77
+ var instance = WdtAddressData.getInstance();
78
+ instance.addrData = res;
79
+ instance.addrNameMap = map;
80
+ instance.addressOptions = toTree(list, 1);
81
+ });
82
+ };
23
83
  export var queryPlatData = function queryPlatData() {
24
84
  return request({
25
85
  url: "/qy/platform/listPlatform/noLogin",
@@ -50,8 +110,8 @@ export var queryPlatData = function queryPlatData() {
50
110
  };
51
111
  export var queryExpressInterceptData = function queryExpressInterceptData() {
52
112
  return request({
53
- url: '/qy/logistics/listLogisticsWithInterceptInfo/noLogin',
54
- method: 'get',
113
+ url: "/qy/logistics/listLogisticsWithInterceptInfo/noLogin",
114
+ method: "get",
55
115
  data: {
56
116
  platformType: 118
57
117
  }
@@ -59,10 +119,10 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
59
119
  var data = res.data;
60
120
  var instance = ExpressInterceptData.getInstance();
61
121
  var companyTypeMap = {
62
- SF: '顺丰',
63
- ZTO: '中通',
64
- JT: '极兔',
65
- DEFAULT: ''
122
+ SF: "顺丰",
123
+ ZTO: "中通",
124
+ JT: "极兔",
125
+ DEFAULT: ""
66
126
  };
67
127
  var expressList = data.map(function (item) {
68
128
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -125,26 +185,26 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
125
185
  instance.typeOptions = Object.keys(typeObj).map(function (key) {
126
186
  return {
127
187
  label: key,
128
- value: _toConsumableArray(typeObj[key]).join(',')
188
+ value: _toConsumableArray(typeObj[key]).join(",")
129
189
  };
130
190
  });
131
191
  instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
132
- var type = key.split('|')[0];
192
+ var type = key.split("|")[0];
133
193
  return {
134
- label: "".concat(companyTypeMap[type] || '').concat(instance.typeNameMap[key]),
194
+ label: "".concat(companyTypeMap[type] || "").concat(instance.typeNameMap[key]),
135
195
  value: key
136
196
  };
137
197
  });
138
198
  instance.statusOptions = Object.keys(statusObj).map(function (key) {
139
199
  return {
140
200
  label: key,
141
- value: _toConsumableArray(statusObj[key]).join(',')
201
+ value: _toConsumableArray(statusObj[key]).join(",")
142
202
  };
143
203
  });
144
204
  var tempList = [];
145
205
  var tempObj = {};
146
206
  Object.keys(instance.statusNameMap).forEach(function (key) {
147
- var type = key.split('|')[1];
207
+ var type = key.split("|")[1];
148
208
  if (!tempObj[type]) {
149
209
  tempList.push({
150
210
  label: instance.statusNameMap[key],
@@ -187,4 +247,12 @@ export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
187
247
  });
188
248
  instance.expressData = expressList;
189
249
  });
250
+ };
251
+ // 获取支付宝电子回单
252
+ export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
253
+ return request({
254
+ url: "/qy/payment/paymentOrder/getAlipayBillReceipt",
255
+ method: "post",
256
+ data: data
257
+ });
190
258
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.27.1-test.2",
3
+ "version": "0.27.1-test.4",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.27.1-test.2",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.27.1-test.2"
23
+ "@kmkf-fe-packages/basic-components": "^0.27.1-test.4",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.27.1-test.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "57768fef91fbcc11dc24f7156ba16cc1555aa90a",
40
+ "gitHead": "156d314130701c3e3fd39a375bea1456b569591e",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }