@kmkf-fe-packages/services-components 1.0.9 → 1.0.10-rc.1

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryWdtSendData";
2
+ declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryWdtLogisticsCompany" | "queryWdtSendData" | "queryLabel";
3
3
  declare const Global: ({ children, requestList, repeatRequestList }: React.PropsWithChildren<{
4
4
  requestList?: RequestType[] | undefined;
5
5
  repeatRequestList?: Record<string, () => Promise<any>> | undefined;
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useEffect, useState } from "react";
17
17
  import { Skeleton, Result, Button } from "antd";
18
- import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryWdtSendData } from "../../service/api";
18
+ import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryWdtLogisticsCompany, queryWdtSendData, queryAllLogisticsCompany, queryLabel } from "../../service/api";
19
19
  import { servers } from '@kmkf-fe-packages/kmkf-utils';
20
20
  var Global = function Global(_ref) {
21
21
  var children = _ref.children,
@@ -16,10 +16,10 @@ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Ty
16
16
  import React, { useState, useMemo } from "react";
17
17
  import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { getAlipayBillReceipt } from "../../service/api";
19
- import { CopyToClipboard } from 'react-copy-to-clipboard';
19
+ import { CopyToClipboard } from "react-copy-to-clipboard";
20
+ import CopyText from "../../commonComponents/CopyText";
20
21
  import styles from "./index.module.less";
21
22
  import defaultImg from "./img/default-img.png";
22
- import CopyText from "../../commonComponents/CopyText";
23
23
  var Paragraph = Typography.Paragraph;
24
24
  export var getFormItem = function getFormItem(_ref) {
25
25
  var name = _ref.name,
@@ -13,6 +13,7 @@ declare class BasicInput implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface["dataType"];
15
15
  templateId?: string;
16
+ flowTemplateKey?: string;
16
17
  workOrderUniqueKey?: string;
17
18
  constructor(options: PickOption);
18
19
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -32,6 +32,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
32
32
  _defineProperty(this, "children", void 0);
33
33
  _defineProperty(this, "dataType", void 0);
34
34
  _defineProperty(this, "templateId", void 0);
35
+ _defineProperty(this, "flowTemplateKey", void 0);
35
36
  _defineProperty(this, "workOrderUniqueKey", void 0);
36
37
  _defineProperty(this, "renderPc", function (value, record) {
37
38
  var _record;
@@ -103,6 +104,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
103
104
  this.formField = "".concat(options.id, "_input");
104
105
  this.type = options.type;
105
106
  this.templateId = options.templateId;
107
+ this.flowTemplateKey = options.flowTemplateKey;
106
108
  this.componentConfig = options.componentConfig;
107
109
  this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
108
110
  this.rules = [{
@@ -167,6 +169,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
167
169
  break;
168
170
  }
169
171
  params = {
172
+ flowTemplateKey: _this.flowTemplateKey,
170
173
  templateId: _this.templateId,
171
174
  workOrderUniqueKey: _this.workOrderUniqueKey,
172
175
  needCheckComponentList: [{
@@ -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, 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 } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => CommonMultiStatus | CommonSystemOrder | StatusSelect | WdtExchange | WdtReturn | 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 | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | CommonInput | PaymentVoucherCode | Label;
3
+ export declare const factory: (type: string, options: PickOption) => AliPay | BsLogistics | BasicCascader | CommonInput | CommonMultiStatus | CommonSystemOrder | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | PaymentVoucherCode | Label;
@@ -139,6 +139,8 @@ export var factory = function factory(type, options) {
139
139
  return new BsPosting(options);
140
140
  case "BS_GOODS":
141
141
  return new BsGoods(options);
142
+ case "WDT_GOODS":
143
+ return new WdtGoods(options);
142
144
  case "BS_EXCHANGE_GOODS":
143
145
  return new BsExchange(options);
144
146
  case "WDT_EXCHANGE_GOODS":
@@ -201,9 +203,6 @@ export var factory = function factory(type, options) {
201
203
  return new CommonDataTime(options);
202
204
  case "FLOW_UPDATE_DATETIME":
203
205
  return new CommonDataTime(options);
204
- case "WDT_GOODS":
205
- // 万里牛商品
206
- return new WdtGoods(options);
207
206
  case "BUSINESS_ORDER_NO":
208
207
  return new CommonInput(options);
209
208
  case "PAYMENT_VOUCHER_CODE":
@@ -70,9 +70,9 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
70
70
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
71
71
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
72
72
  export { default as BsPosting } from "./components/BS/BsPosting";
73
- export { default as NodeInput } from "./components/NodeInput";
74
- export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
- export { default as MsgStatus } from "./components/MsgStatus";
73
+ export { default as NodeInput } from './components/NodeInput';
74
+ export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
75
+ export { default as MsgStatus } from './components/MsgStatus';
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
77
  export { default as WdtReissue } from "./components/WDT/WdtRessuie";
78
78
  export { default as WdtReturn } from "./components/WDT/WdtReturn";
@@ -51,6 +51,7 @@ export interface ComponentInterface {
51
51
  format?: "dateTime" | "date" | "time" | "cascader" | "shopInput" | "staffGroup";
52
52
  options?: Array<any>;
53
53
  templateId?: string;
54
+ flowTemplateKey?: string;
54
55
  workOrderUniqueKey?: string;
55
56
  platform?: PlatForm;
56
57
  parentName?: string;
@@ -168,7 +169,10 @@ export interface ComponentInterface {
168
169
  rulesOptions?: Array<any>;
169
170
  selectRules?: Array<string>;
170
171
  logistics?: string;
171
- belongType?: string;
172
+ repeatConfig?: {
173
+ repeatRange: string;
174
+ repeatComponents: any[];
175
+ };
172
176
  };
173
177
  effects?: {
174
178
  queryWorkOrderDetail?: (r: Record) => void;
@@ -237,7 +241,7 @@ export interface ComponentInterface {
237
241
  getComponentValue: (r: Record) => any;
238
242
  formDataTransform?: (r: any) => any;
239
243
  }
240
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width">;
244
+ export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId" | "workOrderUniqueKey" | "platform" | "parentName" | "width" | "flowTemplateKey">;
241
245
  export declare type ColumnConfig = {
242
246
  id: string;
243
247
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.0.9",
3
+ "version": "1.0.10-rc.1",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^1.0.9",
24
- "@kmkf-fe-packages/kmkf-utils": "^1.0.9"
23
+ "@kmkf-fe-packages/basic-components": "^1.0.10-rc.1",
24
+ "@kmkf-fe-packages/kmkf-utils": "^1.0.10-rc.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "86c8187a7c569e69e79ab2dc5bda21a2d4747441",
40
+ "gitHead": "8366453c2feec21cc0ab486be3ab76c5f2382603",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }