@kmkf-fe-packages/services-components 1.22.1-beta.43 → 1.22.1-beta.45

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.
@@ -20,7 +20,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
20
20
  import styles from "./index.module.less";
21
21
  import defaultImg from "./img/default-img.png";
22
22
  import CopyText from "../../commonComponents/CopyText";
23
- import { KM_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
23
+ import { KM_SYSTEM_ORDER_CONFIG, msgTypeCh } from "@kmkf-fe-packages/kmkf-utils";
24
24
  import { getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  var Paragraph = Typography.Paragraph;
26
26
  export var getFormItem = function getFormItem(_ref) {
@@ -1419,18 +1419,6 @@ export var MsgContent = function MsgContent(_ref14) {
1419
1419
  failValue = _ref14.failValue,
1420
1420
  _ref14$options = _ref14.options,
1421
1421
  options = _ref14$options === void 0 ? [] : _ref14$options;
1422
- var msgTypeCh = {
1423
- pdd: "拼多多",
1424
- ding: "钉钉",
1425
- wechat: "微信",
1426
- qq: "QQ消息 [RPA]",
1427
- qywx: "企业微信 [RPA]",
1428
- YZDKH: "邮政拦截",
1429
- YT: "圆通拦截",
1430
- feishu: "飞书",
1431
- xz_qywx: "企业微信 [接口]",
1432
- xz_qq: "QQ消息 [接口]"
1433
- };
1434
1422
  var getColorByStatus = function getColorByStatus(value) {
1435
1423
  var _options$find2;
1436
1424
  return ((_options$find2 = options.find(function (innerItem) {
@@ -1,19 +1,19 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class MsgStatus implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
11
  isCombinationComponent: boolean;
12
12
  formField: string;
13
13
  canSort: boolean;
14
14
  children: ComponentInterface[];
15
- dataType: ComponentInterface['dataType'];
16
- options: ComponentInterface['options'];
15
+ dataType: ComponentInterface["dataType"];
16
+ options: ComponentInterface["options"];
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
19
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -8,67 +8,57 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- import React from 'react';
12
- import some from 'lodash/some';
11
+ import React from "react";
12
+ import some from "lodash/some";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import { MsgContent } from "../Common";
15
- import { MsgStatus as Status } from '@kmkf-fe-packages/basic-components';
15
+ import { MsgStatus as Status } from "@kmkf-fe-packages/basic-components";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull, filterFn as _filterFn, msgTypeCh } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../constant";
19
19
  var typeMap = {
20
20
  MSG_STATUS: {
21
21
  options: [{
22
- oldValue: '发送成功',
23
- value: '执行成功',
24
- label: '执行成功',
25
- color: '#52c41a'
22
+ oldValue: "发送成功",
23
+ value: "执行成功",
24
+ label: "执行成功",
25
+ color: "#52c41a"
26
26
  }, {
27
- oldValue: '已发送',
28
- value: '执行中',
29
- label: '执行中',
30
- color: '#52c41a'
27
+ oldValue: "已发送",
28
+ value: "执行中",
29
+ label: "执行中",
30
+ color: "#52c41a"
31
31
  }, {
32
- oldValue: '发送失败',
33
- value: '执行失败',
34
- label: '执行失败',
35
- color: '#ff4d4f'
32
+ oldValue: "发送失败",
33
+ value: "执行失败",
34
+ label: "执行失败",
35
+ color: "#ff4d4f"
36
36
  }, {
37
- oldValue: '等待发送',
38
- value: '等待执行',
39
- label: '等待执行',
40
- color: '#e7780f'
37
+ oldValue: "等待发送",
38
+ value: "等待执行",
39
+ label: "等待执行",
40
+ color: "#e7780f"
41
41
  }, {
42
- oldValue: '不满足条件,无需执行',
43
- value: '不满足条件,无需执行',
44
- label: '不满足条件,无需执行',
45
- color: '#8A8A8A'
42
+ oldValue: "不满足条件,无需执行",
43
+ value: "不满足条件,无需执行",
44
+ label: "不满足条件,无需执行",
45
+ color: "#8A8A8A"
46
46
  }, {
47
- oldValue: '暂不满足条件,等待执行',
48
- value: '暂不满足条件,等待执行',
49
- label: '暂不满足条件,等待执行',
50
- color: '#4D90F7'
47
+ oldValue: "暂不满足条件,等待执行",
48
+ value: "暂不满足条件,等待执行",
49
+ label: "暂不满足条件,等待执行",
50
+ color: "#4D90F7"
51
51
  }],
52
- key: 'msgStatusValues',
53
- code: 'msgStatus4Search',
54
- name: '任务状态',
52
+ key: "msgStatusValues",
53
+ code: "msgStatus4Search",
54
+ name: "任务状态",
55
55
  type: 1,
56
- valueKey: 'status',
57
- idKey: 'systemOrderId',
56
+ valueKey: "status",
57
+ idKey: "systemOrderId",
58
58
  // 添加 发送失败 是为了兼容老数据
59
- failValue: ['执行失败', '发送失败']
59
+ failValue: ["执行失败", "发送失败"]
60
60
  }
61
61
  };
62
- var msgTypeCh = {
63
- pdd: '拼多多',
64
- ding: '钉钉',
65
- wechat: '微信',
66
- qq: 'QQ',
67
- qywx: '企业微信',
68
- YZDKH: '邮政拦截',
69
- YT: '圆通拦截',
70
- feishu: "飞书"
71
- };
72
62
  var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
73
63
  var _this = this,
74
64
  _typeMap$options$type,
@@ -139,9 +129,9 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
139
129
  var _typeMap$_this$type14;
140
130
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
141
131
  });
142
- var key = item.msgType || 'ding';
143
- return "".concat(msgTypeCh[key] || key, "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
144
- }).join(',');
132
+ var key = item.msgType || "ding";
133
+ return "".concat(msgTypeCh[key] || key, "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
134
+ }).join(",");
145
135
  });
146
136
  _defineProperty(this, "editRender", function (p) {
147
137
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type16;
@@ -152,7 +142,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
152
142
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
153
143
  display: p === null || p === void 0 ? void 0 : p.display,
154
144
  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,
155
- 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 : '',
145
+ 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 : "",
156
146
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
157
147
  type: (_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.type,
158
148
  failValue: typeMap[_this.type].failValue
@@ -166,12 +156,12 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
166
156
  type: item.type,
167
157
  id: "".concat(item.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.code),
168
158
  name: "".concat(_this.name),
169
- filterComponentType: 'MultipleSelect',
159
+ filterComponentType: "MultipleSelect",
170
160
  props: {
171
161
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
172
162
  fieldNames: {
173
- label: 'label',
174
- value: 'value'
163
+ label: "label",
164
+ value: "value"
175
165
  }
176
166
  },
177
167
  filterFn: function filterFn(value) {
@@ -193,7 +183,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
193
183
  this.isCombinationComponent = false;
194
184
  this.canSort = false;
195
185
  this.children = [];
196
- this.dataType = 'weakenArray';
186
+ this.dataType = "weakenArray";
197
187
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
198
188
  required: true,
199
189
  validator: function validator(_, value) {
@@ -208,7 +198,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
208
198
  return Promise.resolve();
209
199
  }
210
200
  }] : [];
211
- this.align = 'left';
201
+ this.align = "left";
212
202
  this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
213
203
  });
214
204
  export default MsgStatus;
@@ -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.43",
3
+ "version": "1.22.1-beta.45",
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.42",
25
- "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.41",
24
+ "@kmkf-fe-packages/basic-components": "1.22.1-beta.45",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.45",
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": "68c5bff4891210315cb13b8bda11161455bdcce8",
44
+ "gitHead": "50944b2e6bf7112f956f7bb10fd0a0a8d097d487",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }