@kmkf-fe-packages/services-components 1.22.1-beta.39 → 1.22.1-beta.40

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,6 +1,7 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
2
  import React from "react";
3
3
  import { BsHeaderGood } from "../BS/common/index";
4
+ import type { ShowHeaderObjType } from "../../type";
4
5
  declare class EItemEncode implements ComponentInterface {
5
6
  name: string;
6
7
  id: string;
@@ -15,7 +16,7 @@ declare class EItemEncode implements ComponentInterface {
15
16
  children: ComponentInterface[];
16
17
  goods: BsHeaderGood;
17
18
  dataType: ComponentInterface["dataType"];
18
- showHeader: string[];
19
+ showHeader: (string | ShowHeaderObjType)[];
19
20
  platform?: ComponentInterface["platform"];
20
21
  sortChildField: {
21
22
  name: string;
@@ -16,6 +16,7 @@ import { BsHeaderGood } from "../BS/common/index";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
17
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../constant";
19
+ import { columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
19
20
  var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
20
21
  var _this = this,
21
22
  _this$componentConfig3,
@@ -38,22 +39,32 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
38
39
  _defineProperty(this, "platform", void 0);
39
40
  _defineProperty(this, "sortChildField", void 0);
40
41
  _defineProperty(this, "getSortChildFields", function () {
41
- var mapping = {
42
- title: '商品名称',
43
- outerId: '商品编码',
44
- numIid: '商品id',
45
- skuId: 'skuId',
46
- outerSkuId: 'sku编码',
47
- propertiesName: 'sku信息'
48
- };
49
- return Object.keys(mapping).map(function (item) {
42
+ // const mapping = {
43
+ // title: "商品名称",
44
+ // outerId: "商品编码",
45
+ // numIid: "商品id",
46
+ // skuId: "skuId",
47
+ // outerSkuId: "sku编码",
48
+ // propertiesName: "sku信息",
49
+ // };
50
+ return columnsGoodsList.filter(function (item) {
51
+ return item.dataIndex !== "picUrl";
52
+ }).map(function (item) {
50
53
  return {
51
- name: mapping[item],
52
- key: "".concat(_this.id, "_").concat(item),
54
+ name: item.title,
55
+ key: "".concat(_this.id, "_").concat(item.dataIndex),
53
56
  dataType: "arrayObject",
54
- disabled: !_this.showHeader.includes(item)
57
+ disabled: !_this.showHeader.includes(item.dataIndex)
55
58
  };
56
59
  });
60
+ // return Object.keys(mapping).map((item) => {
61
+ // return {
62
+ // name: mapping[item as keyof typeof mapping],
63
+ // key: `${this.id}_${item}`,
64
+ // dataType: "arrayObject",
65
+ // disabled: !this.showHeader.includes(item),
66
+ // };
67
+ // });
57
68
  });
58
69
  _defineProperty(this, "renderClient", function (record) {
59
70
  if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) return null;
@@ -105,9 +116,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
105
116
  required: false,
106
117
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
107
118
  display: p === null || p === void 0 ? void 0 : p.display,
108
- tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : '',
119
+ tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
109
120
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({
110
- isSingleRow: _this.platform !== 'pc'
121
+ isSingleRow: _this.platform !== "pc"
111
122
  }, _this.componentConfig, {
112
123
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
113
124
  shopList: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList,
@@ -134,21 +145,9 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
134
145
  this.type = options.type;
135
146
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
136
147
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
137
- this.showHeader = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || ["title",
138
- // 商品名称
139
- "outerId",
140
- // 商品编码
141
- "picUrl",
142
- // 图片
143
- "numIid",
144
- // 商品id
145
- "skuId",
146
- // skuId
147
- "outerSkuId",
148
- // sku编码
149
- "propertiesName" // sku 信息
150
- ];
151
-
148
+ this.showHeader = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || columnsGoodsList.map(function (item) {
149
+ return item.dataIndex;
150
+ });
152
151
  this.isCombinationComponent = true;
153
152
  this.canSort = false;
154
153
  this.goods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, 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, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonSystemOrder | JstSendGood | MsgStatus | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | 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 | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonSystemOrder | ItemEnCode | JstSendGood | MsgStatus | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.22.1-beta.39",
3
+ "version": "1.22.1-beta.40",
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": "1.22.1-beta.39",
25
- "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.38",
24
+ "@kmkf-fe-packages/basic-components": "1.22.1-beta.40",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.40",
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": "9e437f40a3d69cebe8f152d63b8454a09db6f2c5",
44
+ "gitHead": "caa912596f663c9d3725775c83f455a5edd4b977",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }