@kmkf-fe-packages/services-components 1.8.0-beta.5 → 1.8.0-beta.7

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.
@@ -1074,7 +1074,7 @@ export var MsgContent = function MsgContent(_ref14) {
1074
1074
  style: {
1075
1075
  textAlign: 'left'
1076
1076
  }
1077
- }, ((_item$msgReceivers = item.msgReceivers) === null || _item$msgReceivers === void 0 ? void 0 : _item$msgReceivers.length) && item.msgReceivers.map(function (msgItem) {
1077
+ }, !!((_item$msgReceivers = item.msgReceivers) !== null && _item$msgReceivers !== void 0 && _item$msgReceivers.length) && item.msgReceivers.map(function (msgItem) {
1078
1078
  return /*#__PURE__*/React.createElement("div", {
1079
1079
  style: {
1080
1080
  color: getColorByStatus(msgItem.status)
@@ -1085,24 +1085,28 @@ export var MsgContent = function MsgContent(_ref14) {
1085
1085
  return /*#__PURE__*/React.createElement(Space, {
1086
1086
  direction: !horizontal ? 'vertical' : 'horizontal'
1087
1087
  }, Array.isArray(list) ? (list || []).map(function (item, index) {
1088
+ var _item$msgReceivers2;
1088
1089
  var color = getColorByStatus(item[valueKey]);
1089
1090
  var currentOption = options.find(function (option) {
1090
1091
  return item[valueKey] === option.value;
1091
1092
  });
1092
1093
  var key = item.msgType || 'ding';
1094
+ var formatMsgContent = /*#__PURE__*/React.createElement("span", {
1095
+ key: index
1096
+ }, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
1093
1097
  return /*#__PURE__*/React.createElement("div", {
1094
1098
  style: {
1095
1099
  color: color,
1096
- cursor: 'pointer'
1100
+ cursor: "pointer"
1097
1101
  }
1098
- }, /*#__PURE__*/React.createElement(Popover, {
1102
+ }, (_item$msgReceivers2 = item.msgReceivers) !== null && _item$msgReceivers2 !== void 0 && _item$msgReceivers2.some(function (msgItem) {
1103
+ return (msgItem === null || msgItem === void 0 ? void 0 : msgItem.status) === failValue;
1104
+ }) ? /*#__PURE__*/React.createElement(Popover, {
1099
1105
  content: detailContent(item),
1100
1106
  overlayStyle: {
1101
1107
  zIndex: 9999
1102
1108
  }
1103
- }, /*#__PURE__*/React.createElement("span", {
1104
- key: index
1105
- }, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
1109
+ }, formatMsgContent) : formatMsgContent);
1106
1110
  }) : null);
1107
1111
  };
1108
1112
  //获取付款凭证
@@ -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 } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AfterSalesOrderId | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicDataTime | ItemEnCode | ItemId | ItemSelect | TradeId | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label | KmErpSendGood;
3
+ export declare const factory: (type: string, options: PickOption) => PaymentVoucherCode | SubForm | 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 | JstSendGood | JstSupply | BsSystemOrder | BsGoods | 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 | Label | KmErpSendGood | AfterSalesOrderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.8.0-beta.5",
3
+ "version": "1.8.0-beta.7",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.8.0-beta.5",
24
+ "@kmkf-fe-packages/basic-components": "1.8.0-beta.6",
25
25
  "@kmkf-fe-packages/kmkf-utils": "1.8.0-beta.0",
26
26
  "react-pdf-js": "^5.1.0"
27
27
  },
@@ -39,7 +39,7 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "5c56eac97a0751ea896a86f3f095b60f8403f078",
42
+ "gitHead": "a98c1522bc5766e5fcd10469421394c04f6e8290",
43
43
  "gitHooks": {
44
44
  "pre-commit": "lint-staged"
45
45
  }