@kmkf-fe-packages/services-components 2.7.0-rc.0 → 2.9.0-rc.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.
@@ -34,18 +34,21 @@ declare class BsLogistics implements ComponentInterface {
34
34
  renderExport: () => null;
35
35
  editRender: (p: any) => React.JSX.Element;
36
36
  filterConfig: (item: ColumnConfig) => ({
37
+ searchDefaultConditions: "in";
37
38
  filterComponentType: "MultipleSelect";
38
39
  props: {
39
40
  options: any[];
40
41
  filterOptions?: undefined;
41
42
  };
42
43
  filterFn: (value: string) => (i: Record) => any;
43
- searchDefaultConditions: "in";
44
44
  type: string;
45
45
  id: string;
46
46
  name: string;
47
47
  } | {
48
- searchDefaultConditions: "in";
48
+ searchDefaultConditions: {
49
+ in: "in";
50
+ anylike: "anylike";
51
+ };
49
52
  type: string;
50
53
  id: string;
51
54
  name: string;
@@ -91,6 +91,16 @@ var typeMap = {
91
91
  companyDataType: "like",
92
92
  companyCodeType: "like",
93
93
  logisticsCompanyFormType: "input"
94
+ },
95
+ SKX_RETURN_LOGISTICS: {
96
+ key: "skxReturnLogistics",
97
+ name: "斯凯奇退货",
98
+ company: "skxReturnLogisticsCompany",
99
+ code: "skxReturnLogisticsCode",
100
+ platformType: "skx",
101
+ companyDataType: "like",
102
+ companyCodeType: "like",
103
+ logisticsCompanyFormType: "input"
94
104
  }
95
105
  };
96
106
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -157,6 +167,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
157
167
  _defineProperty(this, "renderPc", function (value, record) {
158
168
  var _typeMap$_this$type2, _typeMap$_this$type3;
159
169
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
170
+ console.log("\uD83D\uDE80 ~ index.tsx:234 ~ list:", list);
160
171
  //兼容多个商品
161
172
  return /*#__PURE__*/React.createElement("span", {
162
173
  onClick: function onClick(e) {
@@ -26,7 +26,10 @@ declare class ExpressCode implements ComponentInterface {
26
26
  renderExport: (value: string, record: Record) => any;
27
27
  editRender: () => null;
28
28
  filterConfig: (item: ColumnConfig) => {
29
- searchDefaultConditions: "in";
29
+ searchDefaultConditions: {
30
+ in: "in";
31
+ anylike: "anylike";
32
+ };
30
33
  type: string;
31
34
  id: string;
32
35
  name: string;
@@ -14,7 +14,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
14
14
  import React from "react";
15
15
  import { BsExpressRender } from "../../Common";
16
16
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
- import { SEARCH_OPTIONS_V2, SYMBOL, batchInput } from "../../../constant";
17
+ import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
18
18
  var typeMap = {
19
19
  BS_LOGISTICS: {
20
20
  key: "bsLogisticsItem"
@@ -39,6 +39,9 @@ var typeMap = {
39
39
  },
40
40
  SKX_LOGISTICS: {
41
41
  key: "skxLogisticsItem"
42
+ },
43
+ SKX_RETURN_LOGISTICS: {
44
+ key: "skxReturnLogisticsItem"
42
45
  }
43
46
  };
44
47
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
@@ -95,13 +98,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
95
98
  _defineProperty(this, "filterConfig", function (item) {
96
99
  var subKey = item.subKey;
97
100
  return {
98
- searchDefaultConditions: SYMBOL.in,
101
+ searchDefaultConditions: {
102
+ in: SYMBOL.in,
103
+ anylike: SYMBOL.anylike
104
+ },
99
105
  type: item.type,
100
106
  id: "".concat(item.id, "_").concat(subKey),
101
107
  name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
102
108
  filterComponentType: "SelectInput",
103
109
  props: {
104
- filterOptions: SEARCH_OPTIONS_V2
110
+ filterOptions: SEARCH_OPTIONS
105
111
  },
106
112
  filterFn: function filterFn(value) {
107
113
  return function (i) {
@@ -109,7 +115,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
109
115
  };
110
116
  },
111
117
  formatFilterValue: function formatFilterValue(value) {
112
- if (value.type === "in") {
118
+ if (["in", "anylike"].includes(value.type)) {
113
119
  return batchInput(value.keywords);
114
120
  } else {
115
121
  return value;
@@ -31,6 +31,10 @@ declare class Express implements ComponentInterface {
31
31
  renderExport: (value: string, record: Record) => any;
32
32
  editRender: () => null;
33
33
  filterConfig: (item: ColumnConfig) => {
34
+ searchDefaultConditions: {
35
+ in: "in";
36
+ anylike: "anylike";
37
+ };
34
38
  filterComponentType: "SelectInput";
35
39
  props: {
36
40
  filterOptions: {
@@ -41,18 +45,17 @@ declare class Express implements ComponentInterface {
41
45
  };
42
46
  filterFn: (value: string) => (i: Record) => boolean;
43
47
  formatFilterValue: (value: any) => any;
44
- searchDefaultConditions: "in";
45
48
  type: string;
46
49
  id: string;
47
50
  name: string;
48
51
  } | {
52
+ searchDefaultConditions: "in";
49
53
  filterComponentType: "MultipleSelect";
50
54
  props: {
51
55
  options: any[];
52
56
  filterOptions?: undefined;
53
57
  };
54
58
  filterFn: (value: string) => (i: Record) => any;
55
- searchDefaultConditions: "in";
56
59
  type: string;
57
60
  id: string;
58
61
  name: string;
@@ -17,7 +17,7 @@ import React from "react";
17
17
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { BsExpressRender } from "../../Common";
19
19
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
20
- import { SEARCH_OPTIONS_V2, SYMBOL, batchInput } from "../../../constant";
20
+ import { SEARCH_OPTIONS, SYMBOL, batchInput } from "../../../constant";
21
21
  var typeMap = {
22
22
  BS_LOGISTICS: {
23
23
  key: "bsLogisticsItem"
@@ -42,6 +42,9 @@ var typeMap = {
42
42
  },
43
43
  SKX_LOGISTICS: {
44
44
  key: "skxLogisticsItem"
45
+ },
46
+ SKX_RETURN_LOGISTICS: {
47
+ key: "skxReturnLogisticsItem"
45
48
  }
46
49
  };
47
50
  var Express = /*#__PURE__*/_createClass(function Express(options) {
@@ -104,14 +107,17 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
104
107
  var _this$expressDateInst3;
105
108
  var subKey = item.subKey;
106
109
  return _objectSpread({
107
- searchDefaultConditions: SYMBOL.in,
108
110
  type: item.type,
109
111
  id: "".concat(item.id, "_").concat(subKey),
110
112
  name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8")
111
113
  }, _this.logisticsCompanyFormType === "input" ? {
114
+ searchDefaultConditions: {
115
+ in: SYMBOL.in,
116
+ anylike: SYMBOL.anylike
117
+ },
112
118
  filterComponentType: "SelectInput",
113
119
  props: {
114
- filterOptions: SEARCH_OPTIONS_V2
120
+ filterOptions: SEARCH_OPTIONS
115
121
  },
116
122
  filterFn: function filterFn(value) {
117
123
  return function (i) {
@@ -119,13 +125,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
119
125
  };
120
126
  },
121
127
  formatFilterValue: function formatFilterValue(value) {
122
- if (value.type === "in") {
128
+ if (["in", "anylike"].includes(value.type)) {
123
129
  return batchInput(value.keywords);
124
130
  } else {
125
131
  return value;
126
132
  }
127
133
  }
128
134
  } : {
135
+ searchDefaultConditions: SYMBOL.in,
129
136
  filterComponentType: "MultipleSelect",
130
137
  props: {
131
138
  options: ((_this$expressDateInst3 = _this.expressDateInstance) === null || _this$expressDateInst3 === void 0 ? void 0 : _this$expressDateInst3.getExpressData()) || []
@@ -1368,6 +1368,22 @@ var GoodHeaderMap = {
1368
1368
  width: 200
1369
1369
  }
1370
1370
  }
1371
+ },
1372
+ SKX_RETURN_GOODS: {
1373
+ headerMap: {
1374
+ returnSkuEcode: {
1375
+ name: "[SKX]退货单明细-returnSkuEcode",
1376
+ width: 200
1377
+ },
1378
+ returnSubOrderId: {
1379
+ name: "[SKX]退货单-子订单号",
1380
+ width: 300
1381
+ },
1382
+ returnBillNo: {
1383
+ name: "[SKX]TH退换货单号",
1384
+ width: 200
1385
+ }
1386
+ }
1371
1387
  }
1372
1388
  };
1373
1389
  GoodHeaderMap["WDT_REISSUE_GOODS"] = GoodHeaderMap["WDT_GOODS"];
@@ -20,6 +20,10 @@ var typeMap = {
20
20
  SKX_GOODS: {
21
21
  name: "[SKX]商品信息(ON)",
22
22
  key: "skxGoods"
23
+ },
24
+ SKX_RETURN_GOODS: {
25
+ name: "[SKX]退货商品信息(TH)",
26
+ key: "skxReturnGoods"
23
27
  }
24
28
  };
25
29
  var SkxGoods = /*#__PURE__*/_createClass(function SkxGoods(options) {
@@ -16,6 +16,10 @@ var typeMap = {
16
16
  SKX_OUTBOUND_NOTICE_NO: {
17
17
  key: "skxOutboundNoticeNo",
18
18
  blurType: "skxOutboundNoticeNo"
19
+ },
20
+ SKX_RETURN_BILL_NO: {
21
+ key: "skxReturnBillNo",
22
+ blurType: "skxReturnBillNo"
19
23
  }
20
24
  };
21
25
  var SkxIdInputSelect = /*#__PURE__*/_createClass(function SkxIdInputSelect(options) {
@@ -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 | FlowTag | GyGoods | GyReissue | GyReturn | JstSendGood | MsgStatus | PublicGoods | SkxGoods | SkxIdInputSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | 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 | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | 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 | AsyncSelect | OrderSubForm;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | TradeId | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm;
@@ -201,6 +201,7 @@ export var factory = function factory(type, options) {
201
201
  case "KM_LOGISTICS":
202
202
  case "GY_LOGISTICS":
203
203
  case "SKX_LOGISTICS":
204
+ case "SKX_RETURN_LOGISTICS":
204
205
  return new BsLogistics(options);
205
206
  case "FLOW_WORK_ORDER_ID_INPUT":
206
207
  return new FlowWorkOrderId(options);
@@ -276,6 +277,7 @@ export var factory = function factory(type, options) {
276
277
  case "WDT_TAGS":
277
278
  return new AsyncSelect(options);
278
279
  case "SKX_OUTBOUND_NOTICE_NO":
280
+ case "SKX_RETURN_BILL_NO":
279
281
  return new SkxIdInputSelect(options);
280
282
  case "SKX_ORDER_TYPE":
281
283
  return new BasicSelectOption(options);
@@ -284,8 +286,11 @@ export var factory = function factory(type, options) {
284
286
  case "SKX_SHOP_NAME":
285
287
  case "SKX_WAREHOUSE":
286
288
  case "SKX_ORDER_STATUS":
289
+ case "SKX_REFUND_BILL_NO":
290
+ case "SKX_RETURN_ORDER_STATUS":
287
291
  return new BasicTypeInput(options);
288
292
  case "SKX_GOODS":
293
+ case "SKX_RETURN_GOODS":
289
294
  return new SkxGoods(options);
290
295
  case "ORDER_SUBFORM":
291
296
  return new OrderSubForm(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "2.7.0-rc.0",
3
+ "version": "2.9.0-rc.0",
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.7.0-rc.0",
25
- "@kmkf-fe-packages/kmkf-utils": "2.5.0-rc.0",
24
+ "@kmkf-fe-packages/basic-components": "2.9.0-rc.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "2.9.0-rc.0",
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": "37a143fed0f8a760f5821f1609a2c86ab7d98286",
44
+ "gitHead": "b42dfb960ac3f140a6668c37243674aa5b4b444b",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }