@kmkf-fe-packages/services-components 1.0.4-rc.2 → 1.0.4-rc.3

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.
@@ -47,7 +47,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
47
47
  _typeMap$_options$typ5,
48
48
  _typeMap$_options$typ6,
49
49
  _this$componentConfig3,
50
- _this$componentConfig4;
50
+ _this$componentConfig5;
51
51
  _classCallCheck(this, BsLogistics);
52
52
  _defineProperty(this, "name", void 0);
53
53
  _defineProperty(this, "id", void 0);
@@ -74,7 +74,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
74
74
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
75
75
  list: record === null || record === void 0 ? void 0 : record[_this.id],
76
76
  type: 1,
77
- componentType: _this.type
77
+ platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
78
78
  })
79
79
  }) : null;
80
80
  });
@@ -122,7 +122,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
122
122
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
123
123
  list: list,
124
124
  type: 1,
125
- componentType: _this.type
125
+ platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
126
126
  }));
127
127
  });
128
128
  _defineProperty(this, "renderLog", function (r) {
@@ -149,7 +149,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
149
149
  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,
150
150
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
151
151
  type: 1,
152
- componentType: _this.type,
152
+ platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default',
153
153
  options: _this.expressDateInstance.getExpressData(),
154
154
  onChange: p === null || p === void 0 ? void 0 : p.onChange
155
155
  }))
@@ -175,7 +175,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
175
175
  name: "物流公司",
176
176
  parentName: this.name,
177
177
  id: "".concat(_options.id, "_").concat((_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.key, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.company),
178
- width: 200
178
+ width: 200,
179
+ platformType: this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
179
180
  }));
180
181
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
181
182
  name: "物流单号",
@@ -188,7 +189,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
188
189
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
189
190
  required: true,
190
191
  validator: function validator(_, value) {
191
- var showField = _this.componentConfig.showField;
192
+ var _this$componentConfig4;
193
+ var showField = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField;
192
194
  var hasNo = (value || []).some(function (item) {
193
195
  if (showField === "logisticsCompany") {
194
196
  return item.logisticsCompany;
@@ -205,6 +207,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
205
207
  }
206
208
  }] : [];
207
209
  this.expressDateInstance = ExpressData.getInstance(this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
208
- this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "", _options);
210
+ this.sortChildField = this.getSortChildFields(((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) || "", _options);
209
211
  });
210
212
  export default BsLogistics;
@@ -18,7 +18,10 @@ declare class Express implements ComponentInterface {
18
18
  dataType: ComponentInterface["dataType"];
19
19
  options: ComponentInterface["options"];
20
20
  parentName: string;
21
- constructor(options: PickOption);
21
+ platformType?: string;
22
+ constructor(options: PickOption & {
23
+ platformType: string;
24
+ });
22
25
  renderClient: () => null;
23
26
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
24
27
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -46,6 +46,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
46
46
  _defineProperty(this, "dataType", void 0);
47
47
  _defineProperty(this, "options", void 0);
48
48
  _defineProperty(this, "parentName", void 0);
49
+ _defineProperty(this, "platformType", void 0);
49
50
  _defineProperty(this, "renderClient", function () {
50
51
  return null;
51
52
  });
@@ -62,7 +63,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
62
63
  return /*#__PURE__*/React.createElement(BsExpressRender, {
63
64
  list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)],
64
65
  showField: "company",
65
- componentType: _this.type
66
+ platformType: _this.platformType
66
67
  });
67
68
  });
68
69
  _defineProperty(this, "renderLog", function (r) {
@@ -109,7 +110,8 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
109
110
  this.componentConfig = options.componentConfig;
110
111
  this.rules = [];
111
112
  this.align = "left";
112
- this.expressDateInstance = ExpressData.getInstance(options.type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
113
+ this.platformType = options.platformType;
114
+ this.expressDateInstance = ExpressData.getInstance(this.platformType);
113
115
  this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
114
116
  this.isCombinationComponent = false;
115
117
  this.canSort = false;
@@ -15,8 +15,8 @@ export declare const showImage: ({ item, type, index, showHeader, }: {
15
15
  }) => React.JSX.Element;
16
16
  export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: any) => React.JSX.Element;
17
17
  export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
18
- export declare const JstGoodImage: ({ list, type, componentType }: any) => any;
19
- export declare const BsExpressRender: ({ list, showField, componentType }: any) => any;
18
+ export declare const JstGoodImage: ({ list, type, platformType }: any) => any;
19
+ export declare const BsExpressRender: ({ list, showField, platformType }: any) => any;
20
20
  export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
21
21
  export declare const BsGoodImage: ({ item, index }: {
22
22
  item: any;
@@ -256,11 +256,11 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
256
256
  var _ref6$list = _ref6.list,
257
257
  list = _ref6$list === void 0 ? [] : _ref6$list,
258
258
  type = _ref6.type,
259
- _ref6$componentType = _ref6.componentType,
260
- componentType = _ref6$componentType === void 0 ? '' : _ref6$componentType;
259
+ _ref6$platformType = _ref6.platformType,
260
+ platformType = _ref6$platformType === void 0 ? 'default' : _ref6$platformType;
261
261
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
262
262
  var logisticsCompany = item.logisticsCompany;
263
- var company = ExpressData.getInstance(componentType === 'WDT_LOGISTICS' ? 'wdt' : 'default').getExpressNameByCode(logisticsCompany);
263
+ var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
264
264
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
265
265
  content: content(item, index),
266
266
  overlayStyle: {
@@ -276,7 +276,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
276
276
  text: item.logisticsCode
277
277
  })) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
278
278
  text: item.logisticsCode
279
- }) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, componentType === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName].join("/") : item.sendId ? item.sendId : componentType === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
279
+ }) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, platformType === 'wdt' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName].join("/") : item.sendId ? item.sendId : platformType === 'wdt' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
280
280
  }) : null;
281
281
  };
282
282
  export var BsExpressRender = function BsExpressRender(_ref7) {
@@ -284,11 +284,11 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
284
284
  list = _ref7$list === void 0 ? [] : _ref7$list,
285
285
  _ref7$showField = _ref7.showField,
286
286
  showField = _ref7$showField === void 0 ? "" : _ref7$showField,
287
- _ref7$componentType = _ref7.componentType,
288
- componentType = _ref7$componentType === void 0 ? "" : _ref7$componentType;
287
+ _ref7$platformType = _ref7.platformType,
288
+ platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType;
289
289
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
290
290
  var logisticsCompany = item.logisticsCompany;
291
- var company = ExpressData.getInstance(componentType === 'WDT_LOGISTICS' ? 'wdt' : 'default').getExpressNameByCode(logisticsCompany);
291
+ var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
292
292
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
293
293
  content: content(item, index),
294
294
  overlayStyle: {
@@ -33,8 +33,9 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
33
33
  var _this = this,
34
34
  _typeMap$_options$typ,
35
35
  _typeMap$_options$typ2,
36
- _this$componentConfig3,
37
- _this$componentConfig4;
36
+ _this$componentConfig6,
37
+ _this$componentConfig7,
38
+ _this$componentConfig8;
38
39
  _classCallCheck(this, JstLogistics);
39
40
  _defineProperty(this, "name", void 0);
40
41
  _defineProperty(this, "id", void 0);
@@ -84,6 +85,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
84
85
  return [];
85
86
  });
86
87
  _defineProperty(this, "renderClient", function (record) {
88
+ var _this$componentConfig;
87
89
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
88
90
  return !isNull(item);
89
91
  }) : false;
@@ -92,12 +94,13 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
92
94
  label: _this.name,
93
95
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
94
96
  list: record === null || record === void 0 ? void 0 : record[_this.id],
95
- type: 1
97
+ type: 1,
98
+ platformType: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.logistics
96
99
  })
97
100
  }) : null;
98
101
  });
99
102
  _defineProperty(this, "renderPc", function (value, record) {
100
- var _typeMap$_this$type;
103
+ var _typeMap$_this$type, _this$componentConfig2;
101
104
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
102
105
  //兼容多个商品
103
106
  return /*#__PURE__*/React.createElement("span", {
@@ -106,7 +109,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
106
109
  }
107
110
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
108
111
  list: list,
109
- type: 1
112
+ type: 1,
113
+ platformType: (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.logistics
110
114
  }));
111
115
  });
112
116
  _defineProperty(this, "renderLog", function (r) {
@@ -127,17 +131,18 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
127
131
  }).join(",");
128
132
  });
129
133
  _defineProperty(this, "editRender", function (p) {
130
- var _this$componentConfig, _this$componentConfig2;
134
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
131
135
  return /*#__PURE__*/React.createElement(GetFormItem, {
132
136
  title: _this.name,
133
137
  name: _this.id,
134
138
  rules: _this.rules,
135
139
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
136
140
  display: p === null || p === void 0 ? void 0 : p.display,
137
- 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,
141
+ required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
138
142
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
139
143
  type: 1,
140
- options: _this.expressDateInstance.getExpressData()
144
+ options: _this.expressDateInstance.getExpressData(),
145
+ platformType: (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.logistics
141
146
  }))
142
147
  });
143
148
  });
@@ -199,7 +204,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
199
204
  this.canSort = false;
200
205
  this.children = [];
201
206
  this.dataType = "object";
202
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
207
+ this.rules = (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
203
208
  required: true,
204
209
  validator: function validator(_, value) {
205
210
  var hasNo = (value || []).some(function (item) {
@@ -212,7 +217,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
212
217
  }
213
218
  }] : [];
214
219
  this.align = "left";
215
- this.expressDateInstance = ExpressData.getInstance();
216
- this.sortChildField = this.getSortChildFields(((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "", _options);
220
+ this.expressDateInstance = ExpressData.getInstance((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.logistics);
221
+ this.sortChildField = this.getSortChildFields(((_this$componentConfig8 = this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) || "", _options);
217
222
  });
218
223
  export default JstLogistics;
@@ -101,7 +101,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
101
101
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
102
102
  list: record === null || record === void 0 ? void 0 : record[_this.id],
103
103
  type: 3,
104
- componentType: _this.type
104
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
105
105
  })
106
106
  }) : null;
107
107
  });
@@ -116,7 +116,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
116
116
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
117
117
  list: list,
118
118
  type: 3,
119
- componentType: _this.type
119
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
120
120
  }));
121
121
  });
122
122
  _defineProperty(this, "renderLog", function (r) {
@@ -146,7 +146,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
146
146
  display: p === null || p === void 0 ? void 0 : p.display,
147
147
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
148
148
  type: 3,
149
- componentType: _this.type
149
+ platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
150
150
  }))
151
151
  });
152
152
  });
@@ -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, 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) => BsLogistics | BsReissue | JstSendGood | LogisticsInterception | WdtReissue | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | CommonInput | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | JstLogistics | JstSendGood | LogisticsInterception | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | 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 | CommonInput | PaymentVoucherCode;
@@ -53,6 +53,7 @@ export interface ComponentInterface {
53
53
  templateId?: string;
54
54
  workOrderUniqueKey?: string;
55
55
  platform?: PlatForm;
56
+ parentName?: string;
56
57
  /**
57
58
  * @description 组件下标
58
59
  * @deprecated 已弃用字段,后续版本不在使用
@@ -78,7 +79,7 @@ export interface ComponentInterface {
78
79
  /**
79
80
  * @description 显示字段名称
80
81
  */
81
- showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder";
82
+ showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode";
82
83
  /**
83
84
  * @description 是否选择SKU
84
85
  */
@@ -166,6 +167,7 @@ export interface ComponentInterface {
166
167
  config?: any;
167
168
  rulesOptions?: Array<any>;
168
169
  selectRules?: Array<string>;
170
+ logistics?: string;
169
171
  };
170
172
  effects?: {
171
173
  queryWorkOrderDetail?: (r: Record) => void;
@@ -234,7 +236,7 @@ export interface ComponentInterface {
234
236
  getComponentValue: (r: Record) => any;
235
237
  formDataTransform?: (r: any) => any;
236
238
  }
237
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform">;
239
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width">;
238
240
  export declare type ColumnConfig = {
239
241
  id: string;
240
242
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.4-rc.2",
3
+ "version": "1.0.4-rc.3",
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": "^1.0.4-rc.2",
24
- "@kmkf-fe-packages/kmkf-utils": "^1.0.4-rc.2"
23
+ "@kmkf-fe-packages/basic-components": "^1.0.4-rc.3",
24
+ "@kmkf-fe-packages/kmkf-utils": "^1.0.4-rc.3"
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": "0cc6d4c478c778b020149a7d0e0ccf1abd05d20b",
40
+ "gitHead": "d0d723090eb2e1976673518a8a0af3ccda08845c",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }