@kmkf-fe-packages/services-components 1.22.1-beta.3 → 1.22.1-beta.30

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.
Files changed (33) hide show
  1. package/dist/esm/commonComponents/ShopList/index.d.ts +2 -1
  2. package/dist/esm/commonComponents/ShopList/index.js +5 -5
  3. package/dist/esm/components/BS/BsGoods/dist/index.js +113 -0
  4. package/dist/esm/components/BS/BsGoods/index.js +6 -2
  5. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
  6. package/dist/esm/components/BS/BsSystemOrder/index.js +37 -15
  7. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
  8. package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
  9. package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
  10. package/dist/esm/components/BS/common/BsHeaderGood.js +178 -101
  11. package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
  12. package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
  13. package/dist/esm/components/Common/dist/index.js +1525 -0
  14. package/dist/esm/components/Common/index.d.ts +6 -5
  15. package/dist/esm/components/Common/index.js +502 -361
  16. package/dist/esm/components/CommonHeaderGood/index copy.d.ts +27 -0
  17. package/dist/esm/components/CommonHeaderGood/index copy.js +659 -0
  18. package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
  19. package/dist/esm/components/CommonHeaderGood/index.js +126 -93
  20. package/dist/esm/components/CommonMultiStatus/index.d.ts +1 -0
  21. package/dist/esm/components/CommonMultiStatus/index.js +43 -14
  22. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  23. package/dist/esm/components/MemberLevel/index.d.ts +35 -0
  24. package/dist/esm/components/MemberLevel/index.js +119 -0
  25. package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
  26. package/dist/esm/components/Payment/PaymentAmount.js +0 -4
  27. package/dist/esm/components/Radio/index.js +3 -2
  28. package/dist/esm/factory.d.ts +2 -2
  29. package/dist/esm/factory.js +4 -1
  30. package/dist/esm/index.d.ts +1 -0
  31. package/dist/esm/index.js +1 -0
  32. package/dist/esm/type.d.ts +7 -2
  33. package/package.json +4 -4
@@ -61,7 +61,8 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
61
61
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) === undefined) {
62
62
  return "--";
63
63
  }
64
- return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])], " ").concat(get(record, "".concat(_this.id, "_").concat(typeMap[type], "Other"), ""));
64
+ var other = get(record, "".concat(_this.id, "_").concat(typeMap[type], "Other"), "");
65
+ return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]).concat(other ? " " + other : "");
65
66
  });
66
67
  _defineProperty(this, "getKeyByComponentType", function (type) {
67
68
  return typeMap[type] || "";
@@ -82,7 +83,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
82
83
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
84
  display: p === null || p === void 0 ? void 0 : p.display,
84
85
  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,
85
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
86
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
86
87
  component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
87
88
  onChange: p === null || p === void 0 ? void 0 : p.onChange
88
89
  }))
@@ -1,3 +1,3 @@
1
- import { JstLogistics, 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 } from "./index";
1
+ import { JstLogistics, 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) => ActualPayment | BsLogistics | BsSystemOrder | BsE3Reissue | BasicCascader | ItemEnCode | BasicInput | JstLogistics | JstSendGood | MsgStatus | BasicPicture | BasicSelect | BasicAddress | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => JstSendGood | MemberLevel | MsgStatus | 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 | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | 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 | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
@@ -1,6 +1,6 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, 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, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -187,6 +187,7 @@ export var factory = function factory(type, options) {
187
187
  case "RETURN_GOODS_STATUS":
188
188
  case "EXCHANGE_STATUS":
189
189
  case "WAREHOUSING_STATUS":
190
+ case "BS_E3_WAREHOUSING_STATUS":
190
191
  return new CommonMultiStatus(options);
191
192
  case "MSG_STATUS":
192
193
  return new MsgStatus(options);
@@ -229,6 +230,8 @@ export var factory = function factory(type, options) {
229
230
  case "AFTER_SALES_ORDER_ID":
230
231
  // 售后单ID
231
232
  return new AfterSalesOrderId(options);
233
+ case "MEMBER_LEVEL":
234
+ return new MemberLevel(options);
232
235
  default:
233
236
  return new BasicInput(options);
234
237
  }
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
83
83
  export { default as CommonInput } from "./components/CommonInput";
84
84
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
85
85
  export { default as Label } from "./components/Label";
86
+ export { default as MemberLevel } from "./components/MemberLevel";
86
87
  export { default as KmErpSendGood } from "./components/KmErpSendGood";
87
88
  export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
88
89
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
package/dist/esm/index.js CHANGED
@@ -83,6 +83,7 @@ export { default as WdtExchange } from "./components/WDT/WdtExchange";
83
83
  export { default as CommonInput } from "./components/CommonInput";
84
84
  export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
85
85
  export { default as Label } from "./components/Label";
86
+ export { default as MemberLevel } from "./components/MemberLevel";
86
87
  export { default as KmErpSendGood } from "./components/KmErpSendGood";
87
88
  export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
88
89
  // TODO: ERP 打款工单使用
@@ -1,6 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import type { FormInstance } from "antd";
3
3
  import { SYMBOL } from "./constant";
4
+ export declare type ShowHeaderObjType = {
5
+ title: string;
6
+ dataIndex: string;
7
+ show?: boolean;
8
+ };
4
9
  export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
5
10
  export declare type ALignType = "left" | "right" | "center";
6
11
  export declare type QuerySymbol = keyof typeof SYMBOL;
@@ -176,7 +181,7 @@ export interface ComponentInterface {
176
181
  */
177
182
  erpFlag?: boolean;
178
183
  reissueFlag?: boolean;
179
- showHeader?: string[];
184
+ showHeader?: (ShowHeaderObjType | string)[];
180
185
  reasonList?: any[];
181
186
  disabled?: boolean;
182
187
  config?: any;
@@ -270,7 +275,7 @@ export interface ComponentInterface {
270
275
  getComponentValue: (r: Record) => any;
271
276
  formDataTransform?: (r: any) => any;
272
277
  }
273
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue">;
278
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey" | "transformValue" | "renderExport">;
274
279
  export declare type ColumnConfig = {
275
280
  id: string;
276
281
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.22.1-beta.3",
3
+ "version": "1.22.1-beta.30",
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.3",
25
- "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.3",
24
+ "@kmkf-fe-packages/basic-components": "1.22.1-beta.30",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.29",
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": "e29f0ae6aa1a63efec0cc0032560e56755a81cfb",
44
+ "gitHead": "8d26bee7020e95ce43b335b77a2fea827b739c53",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }