@kmkf-fe-packages/services-components 0.13.0-alpha.20 → 0.13.0-alpha.21

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.
@@ -21,11 +21,18 @@ declare class CommonMultiStatus implements ComponentInterface {
21
21
  renderExport: (value: any, record: any) => any;
22
22
  editRender: (p: any) => React.JSX.Element;
23
23
  filterConfig: (item: ColumnConfig) => {
24
- searchDefaultConditions: "like";
24
+ searchDefaultConditions: "like" | "in";
25
25
  type: string;
26
26
  id: string;
27
27
  name: string;
28
- filterComponentType: "Input";
28
+ filterComponentType: "MultipleSelect" | "Input";
29
+ props: {
30
+ options: any[] | undefined;
31
+ fieldNames: {
32
+ label: string;
33
+ value: string;
34
+ };
35
+ };
29
36
  filterFn: (value: string) => (i: Record) => boolean;
30
37
  };
31
38
  }
@@ -45,8 +45,8 @@ var typeMap = {
45
45
  label: '失败',
46
46
  color: '#ff4d4f'
47
47
  }],
48
- key: 'bsExchangeReason',
49
- code: 'bsExchangeStatusValue',
48
+ key: 'exchangeReason',
49
+ code: 'exchangeStatusValue',
50
50
  name: '退货状态',
51
51
  type: 1,
52
52
  valueKey: 'status',
@@ -55,15 +55,15 @@ var typeMap = {
55
55
  },
56
56
  WAREHOUSING_STATUS: {
57
57
  options: [{
58
- value: 2,
58
+ value: '2',
59
59
  label: '已入库',
60
60
  color: '#52c41a'
61
61
  }, {
62
- value: 1,
62
+ value: '1',
63
63
  label: '部分入库',
64
64
  color: '#e7780f'
65
65
  }, {
66
- value: 0,
66
+ value: '0',
67
67
  label: '未入库',
68
68
  color: '#ff4d4f'
69
69
  }],
@@ -144,7 +144,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
144
144
  var _typeMap$_this$type14;
145
145
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
146
146
  });
147
- return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? currentOption.label : item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]);
147
+ return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]) || '');
148
148
  }).join(',');
149
149
  });
150
150
  _defineProperty(this, "editRender", function (p) {
@@ -162,13 +162,20 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
162
162
  });
163
163
  });
164
164
  _defineProperty(this, "filterConfig", function (item) {
165
- var _typeMap$_this$type18;
165
+ var _typeMap$_this$type18, _item$templateConfig;
166
166
  return {
167
- searchDefaultConditions: SYMBOL.like,
167
+ searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
168
168
  type: item.type,
169
169
  id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
170
170
  name: "".concat(_this.name),
171
- filterComponentType: 'Input',
171
+ filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : "Input",
172
+ props: {
173
+ options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
174
+ fieldNames: {
175
+ label: "label",
176
+ value: "value"
177
+ }
178
+ },
172
179
  filterFn: function filterFn(value) {
173
180
  return function (i) {
174
181
  var _typeMap$_this$type19;
@@ -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, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } 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, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicAddress | BsSystemOrder | BasicCascader | BasicCheckbox | CommonDataTime | BasicDataTime | BasicInput | PrevSubmitter | Submitter | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting;
3
+ export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | FlowTag | BasicRadio | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicTextArea | BasicPicture | BasicMultSelect | 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 | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting;
@@ -1,4 +1,6 @@
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, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } 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, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
+ // CommonTradeId,
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
4
  export var factory = function factory(type, options) {
3
5
  var _options$componentCon;
4
6
  switch (type) {
@@ -136,7 +138,7 @@ export var factory = function factory(type, options) {
136
138
  return new BsReissue(options);
137
139
  case "BS_RETURN_GOODS":
138
140
  return new BsReturn(options);
139
- // case 'REISSUE_TRADE_ID':
141
+ case 'REISSUE_TRADE_ID':
140
142
  case "BS_DELIVERY_NO":
141
143
  case "RETURN_GOODS_TRADE_ID":
142
144
  case "EXCHANGE_TRADE_ID":
@@ -157,9 +159,9 @@ export var factory = function factory(type, options) {
157
159
  case "EXCHANGE_STATUS":
158
160
  case "WAREHOUSING_STATUS":
159
161
  return new CommonMultiStatus(options);
160
- case "REISSUE_TRADE_ID":
161
- // case 'EXCHANGE_TRADE_ID':
162
- return new CommonTradeId(options);
162
+ // case "REISSUE_TRADE_ID":
163
+ // case 'EXCHANGE_TRADE_ID':
164
+ // return new CommonTradeId(options);
163
165
  case "NUMERICAL_CALCULATION":
164
166
  return new Calculation(options);
165
167
  case "NODE_DEAD_LINE_INPUT":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.13.0-alpha.20",
3
+ "version": "0.13.0-alpha.21",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.20",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.20"
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.21",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.21"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "fea106f2b37b8b288b4ac231723ec0b08a736c76"
43
+ "gitHead": "fbeb98f026a1e5e5afbfd113179bbe85271213d6"
44
44
  }