@kmkf-fe-packages/services-components 1.19.9 → 1.19.11

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.
@@ -25,7 +25,7 @@ declare class BasicCascader implements ComponentInterface {
25
25
  renderPc: (value: any, record: Record) => React.JSX.Element;
26
26
  renderLog: (r: Record) => React.JSX.Element | null;
27
27
  getComponentValue: (r: Record) => any;
28
- renderExport: (value: any, record: Record) => string;
28
+ renderExport: (value: any, record: Record) => any;
29
29
  editRender: (p: any) => React.JSX.Element;
30
30
  filterConfig: (item: ColumnConfig) => {
31
31
  searchDefaultConditions: "in";
@@ -16,7 +16,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../constant";
17
17
  var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
18
18
  var _this = this,
19
- _this$componentConfig9;
19
+ _this$componentConfig7;
20
20
  _classCallCheck(this, BasicCascader);
21
21
  _defineProperty(this, "name", void 0);
22
22
  _defineProperty(this, "id", void 0);
@@ -45,15 +45,25 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
45
45
  }) : null;
46
46
  });
47
47
  _defineProperty(this, "renderPc", function (value, record) {
48
- var _findLabelBySelectVal3, _findLabelBySelectVal4, _ref, _this$componentConfig2;
48
+ var _ref, _ref$map;
49
49
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
50
50
  return /*#__PURE__*/React.createElement("span", null, "--");
51
51
  }
52
- return /*#__PURE__*/React.createElement("span", null, (_findLabelBySelectVal3 = findLabelBySelectValue((_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
53
- return item.actived;
54
- }), ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.options) || [])) === null || _findLabelBySelectVal3 === void 0 ? void 0 : (_findLabelBySelectVal4 = _findLabelBySelectVal3.map(function (i) {
55
- return i.label;
56
- })) === null || _findLabelBySelectVal4 === void 0 ? void 0 : _findLabelBySelectVal4.join(","));
52
+ return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
53
+ return item === null || item === void 0 ? void 0 : item.label;
54
+ })) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
55
+ // return (
56
+ // <span>
57
+ // {findLabelBySelectValue(
58
+ // (record?.[`${this.id}_multSelect`] || [])?.map(
59
+ // (item: any) => item.actived
60
+ // ),
61
+ // this.componentConfig?.options || []
62
+ // )
63
+ // ?.map((i: { label: string; actived: boolean }) => i.label)
64
+ // ?.join(",")}
65
+ // </span>
66
+ // );
57
67
  });
58
68
  _defineProperty(this, "renderLog", function (r) {
59
69
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")])) return null;
@@ -63,29 +73,35 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
63
73
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")];
64
74
  });
65
75
  _defineProperty(this, "renderExport", function (value, record) {
66
- var _findLabelBySelectVal5, _findLabelBySelectVal6, _ref2, _this$componentConfig3;
76
+ var _ref2, _ref2$map;
67
77
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
68
78
  return "--";
69
79
  }
70
- return (_findLabelBySelectVal5 = findLabelBySelectValue((_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item) {
71
- return item.actived;
72
- }), ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [])) === null || _findLabelBySelectVal5 === void 0 ? void 0 : (_findLabelBySelectVal6 = _findLabelBySelectVal5.map(function (i) {
73
- return i.label;
74
- })) === null || _findLabelBySelectVal6 === void 0 ? void 0 : _findLabelBySelectVal6.join(",");
80
+ return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
81
+ return item === null || item === void 0 ? void 0 : item.label;
82
+ })) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
83
+ // return findLabelBySelectValue(
84
+ // (record?.[`${this.id}_multSelect`] || [])?.map(
85
+ // (item: any) => item.actived
86
+ // ),
87
+ // this.componentConfig?.options || []
88
+ // )
89
+ // ?.map((i: { label: string; actived: boolean }) => i.label)
90
+ // ?.join(",");
75
91
  });
76
92
  _defineProperty(this, "editRender", function (p) {
77
- var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _this$componentConfig8;
93
+ var _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
78
94
  return /*#__PURE__*/React.createElement(GetFormItem, {
79
95
  title: _this.name,
80
96
  name: _this.id,
81
97
  rules: _this.rules,
82
98
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
- required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
99
+ required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
84
100
  display: p === null || p === void 0 ? void 0 : p.display,
85
- tooltip: (_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.showTooltip ? (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.tooltip : "",
101
+ tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : "",
86
102
  component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
87
103
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
88
- options: transMultSelectOptions(((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.options) || []),
104
+ options: transMultSelectOptions(((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || []),
89
105
  fieldNames: {
90
106
  label: "label",
91
107
  value: "actived",
@@ -151,7 +167,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
151
167
  this.canSort = true;
152
168
  this.dataType = "array";
153
169
  this.format = "cascader";
154
- this.options = ((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.options) || [];
170
+ this.options = ((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.options) || [];
155
171
  }
156
172
 
157
173
  /**
@@ -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, 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, KmErpSendGood, AfterSalesOrderId, BsE3Goods } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicPicture | BasicSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | BasicCascader | BasicSelect | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | 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 | JstSendGood | JstSupply | BsGoods | BsE3Goods | 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 | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | KmErpSendGood | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.19.9",
3
+ "version": "1.19.11",
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.19.9",
25
- "@kmkf-fe-packages/kmkf-utils": "1.19.9",
24
+ "@kmkf-fe-packages/basic-components": "1.19.11",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.19.11",
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": "52c6c608475e773efc5dc82fae41a7ebdacf8d04",
44
+ "gitHead": "81c37f939a9b0f174e4bb43cbd430340a42a232f",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }