@kmkf-fe-packages/services-components 0.12.0-alpha.1 → 0.12.0-alpha.2

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.
@@ -270,6 +270,9 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
270
270
  var color = ((_options$find = options.find(function (item) {
271
271
  return item[valueKey] === failValue;
272
272
  })) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
273
+ var currentOption = options.find(function (option) {
274
+ return item[valueKey] === option.value;
275
+ });
273
276
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
274
277
  content: orderContent(item, index),
275
278
  overlayStyle: {
@@ -285,7 +288,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
285
288
  style: {
286
289
  color: color
287
290
  }
288
- }, (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
291
+ }, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
289
292
  className: "c-red"
290
293
  }, item.reason));
291
294
  }) : null;
@@ -52,6 +52,28 @@ var typeMap = {
52
52
  valueKey: 'status',
53
53
  idKey: 'systemOrderId',
54
54
  failValue: '失败'
55
+ },
56
+ WAREHOUSING_STATUS: {
57
+ options: [{
58
+ value: 2,
59
+ label: '已入库',
60
+ color: '#52c41a'
61
+ }, {
62
+ value: 1,
63
+ label: '部分入库',
64
+ color: '#e7780f'
65
+ }, {
66
+ value: 0,
67
+ label: '未入库',
68
+ color: '#ff4d4f'
69
+ }],
70
+ key: 'inStockStatusList',
71
+ code: 'inStockStatusItemList',
72
+ name: '退货入库状态',
73
+ type: 2,
74
+ valueKey: 'status',
75
+ idKey: 'systemOrderId',
76
+ failValue: '失败'
55
77
  }
56
78
  };
57
79
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -1,3 +1,3 @@
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
2
2
  import { PickOption } from './type';
3
- export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | 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 | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BsExchange | BsLogistics | BsReissue | CommonMultiStatus | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | 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 | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -151,6 +151,7 @@ export var factory = function factory(type, options) {
151
151
  return new StatusSelect(options);
152
152
  case 'RETURN_GOODS_STATUS':
153
153
  case 'EXCHANGE_STATUS':
154
+ case 'WAREHOUSING_STATUS':
154
155
  return new CommonMultiStatus(options);
155
156
  // case 'REISSUE_TRADE_ID':
156
157
  // case 'EXCHANGE_TRADE_ID':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.12.0-alpha.1",
3
+ "version": "0.12.0-alpha.2",
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.12.0-alpha.0",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.12.0-alpha.0"
29
+ "@kmkf-fe-packages/basic-components": "^0.12.0-alpha.2",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.12.0-alpha.2"
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": "dacb2b0d1a63e567725fefa01677383a21678756"
43
+ "gitHead": "c5701df104256c82fd72607ed5e92d77ff2a717d"
44
44
  }