@kmkf-fe-packages/services-components 1.8.0-beta.6 → 1.8.0-beta.8

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.
@@ -1072,37 +1072,47 @@ export var MsgContent = function MsgContent(_ref14) {
1072
1072
  var _item$msgReceivers;
1073
1073
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
1074
1074
  style: {
1075
- textAlign: 'left'
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, index) {
1078
1078
  return /*#__PURE__*/React.createElement("div", {
1079
+ key: index,
1079
1080
  style: {
1080
1081
  color: getColorByStatus(msgItem.status)
1081
1082
  }
1082
1083
  }, msgItem.failReason ? "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, "\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A").concat(msgItem.failReason) : "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, ";"));
1083
- })));
1084
+ }) : item.failReason && /*#__PURE__*/React.createElement("div", {
1085
+ style: {
1086
+ color: getColorByStatus(item.status)
1087
+ }
1088
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", item.failReason)));
1084
1089
  };
1085
1090
  return /*#__PURE__*/React.createElement(Space, {
1086
1091
  direction: !horizontal ? 'vertical' : 'horizontal'
1087
1092
  }, Array.isArray(list) ? (list || []).map(function (item, index) {
1093
+ var _item$msgReceivers2;
1088
1094
  var color = getColorByStatus(item[valueKey]);
1089
1095
  var currentOption = options.find(function (option) {
1090
1096
  return item[valueKey] === option.value;
1091
1097
  });
1092
1098
  var key = item.msgType || 'ding';
1099
+ var formatMsgContent = /*#__PURE__*/React.createElement("span", {
1100
+ key: index
1101
+ }, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
1093
1102
  return /*#__PURE__*/React.createElement("div", {
1103
+ key: "wrap_".concat(index),
1094
1104
  style: {
1095
1105
  color: color,
1096
- cursor: 'pointer'
1106
+ cursor: "pointer"
1097
1107
  }
1098
- }, /*#__PURE__*/React.createElement(Popover, {
1108
+ }, (_item$msgReceivers2 = item.msgReceivers) !== null && _item$msgReceivers2 !== void 0 && _item$msgReceivers2.some(function (msgItem) {
1109
+ return (msgItem === null || msgItem === void 0 ? void 0 : msgItem.status) === failValue;
1110
+ }) || item.failReason ? /*#__PURE__*/React.createElement(Popover, {
1099
1111
  content: detailContent(item),
1100
1112
  overlayStyle: {
1101
1113
  zIndex: 9999
1102
1114
  }
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]) || '')));
1115
+ }, formatMsgContent) : formatMsgContent);
1106
1116
  }) : null);
1107
1117
  };
1108
1118
  //获取付款凭证
@@ -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.6",
3
+ "version": "1.8.0-beta.8",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "04b97d0e42072c5fe31ec0cf0a7751768ff13aa9",
42
+ "gitHead": "8c26ba1cf0927ea9ef615cab934852aa76298223",
43
43
  "gitHooks": {
44
44
  "pre-commit": "lint-staged"
45
45
  }