@kmkf-fe-packages/services-components 0.7.15-alpha.2 → 0.7.15-alpha.21

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.
Files changed (57) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +4 -4
  2. package/dist/esm/components/BS/BsExchange/index.d.ts +22 -6
  3. package/dist/esm/components/BS/BsExchange/index.js +175 -39
  4. package/dist/esm/components/BS/BsGoods/index.d.ts +4 -5
  5. package/dist/esm/components/BS/BsGoods/index.js +43 -29
  6. package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
  7. package/dist/esm/components/BS/BsReissue/index.js +61 -34
  8. package/dist/esm/components/BS/common/BsChildCode.d.ts +25 -0
  9. package/dist/esm/components/BS/common/BsChildCode.js +71 -0
  10. package/dist/esm/components/BS/common/BsChildMoney.d.ts +25 -0
  11. package/dist/esm/components/BS/common/BsChildMoney.js +71 -0
  12. package/dist/esm/components/BS/common/BsChildName.d.ts +25 -0
  13. package/dist/esm/components/BS/common/BsChildName.js +71 -0
  14. package/dist/esm/components/BS/common/BsChildNumber.d.ts +25 -0
  15. package/dist/esm/components/BS/common/BsChildNumber.js +71 -0
  16. package/dist/esm/components/BS/common/BsChildPic.d.ts +25 -0
  17. package/dist/esm/components/BS/common/BsChildPic.js +72 -0
  18. package/dist/esm/components/BS/common/BsChildShare.d.ts +25 -0
  19. package/dist/esm/components/BS/common/BsChildShare.js +71 -0
  20. package/dist/esm/components/BS/common/BsChildSku.d.ts +25 -0
  21. package/dist/esm/components/BS/common/BsChildSku.js +71 -0
  22. package/dist/esm/components/BS/common/BsChildType.d.ts +25 -0
  23. package/dist/esm/components/BS/common/BsChildType.js +71 -0
  24. package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
  25. package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
  26. package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
  27. package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
  28. package/dist/esm/components/BS/common/BsMemo.d.ts +25 -0
  29. package/dist/esm/components/BS/common/BsMemo.js +76 -0
  30. package/dist/esm/components/BS/common/BsType.d.ts +35 -0
  31. package/dist/esm/components/BS/common/{BsPic.js → BsType.js} +40 -49
  32. package/dist/esm/components/BS/common/index.d.ts +10 -0
  33. package/dist/esm/components/BS/common/index.js +10 -0
  34. package/dist/esm/components/Common/index.d.ts +12 -6
  35. package/dist/esm/components/Common/index.js +115 -50
  36. package/dist/esm/components/Common/index.module.less +8 -0
  37. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  38. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  39. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  40. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  41. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  42. package/dist/esm/components/File/index.d.ts +7 -8
  43. package/dist/esm/components/File/index.js +18 -47
  44. package/dist/esm/components/Input/index.js +3 -0
  45. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
  46. package/dist/esm/components/LogisticsTrajectory/index.js +6 -16
  47. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +3 -3
  48. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
  49. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
  50. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  51. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
  52. package/dist/esm/components/Popover/index.d.ts +2 -2
  53. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  54. package/dist/esm/factory.d.ts +1 -1
  55. package/dist/esm/type.d.ts +1 -0
  56. package/package.json +4 -4
  57. package/dist/esm/components/BS/common/BsPic.d.ts +0 -43
@@ -1,32 +1,31 @@
1
1
  import { ComponentInterface, PickOption, Record } from "../../type";
2
2
  import React from "react";
3
- declare type Value = string[] | undefined;
4
3
  declare class BasicFile implements ComponentInterface {
5
4
  name: string;
6
5
  id: string;
7
6
  sortField: string;
7
+ formField: string;
8
8
  type: string;
9
9
  rules: any[];
10
10
  componentConfig: ComponentInterface["componentConfig"];
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface["dataType"];
14
15
  constructor(options: PickOption);
15
- formatPictures: (pictures: string) => string[];
16
- render: (value: Value) => React.JSX.Element | null;
17
- renderPc: (value: any, record: Record) => React.JSX.Element | React.JSX.Element[];
18
- renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
16
+ renderPc: (value: any, record: Record) => any;
17
+ renderLog: (r: Record) => any;
19
18
  getComponentValue: (r: Record) => any;
20
19
  renderClient: (record: any) => React.JSX.Element | null;
21
20
  editRender: () => React.JSX.Element;
22
21
  /**
23
22
  *
24
- * @returns 图片类型的导出需要在导出时单独处理
23
+ * @returns
25
24
  */
26
- renderExport: () => null;
25
+ renderExport: (value: any, record: any) => any;
27
26
  /**
28
27
  *
29
- * @returns 图片不支持过滤
28
+ * @returns 文件不支持过滤
30
29
  */
31
30
  filterConfig: () => never[];
32
31
  }
@@ -7,9 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  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); }
9
9
  import React from "react";
10
- import { Image } from "antd";
11
10
  import { ApaasUploadFile } from "@kmkf-fe-packages/basic-components";
12
- import { imgResize } from "@kmkf-fe-packages/kmkf-utils";
13
11
  import GetFormItem from "../GetFormItem";
14
12
  import ItemView from "../../commonComponents/ItemView";
15
13
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
@@ -19,56 +17,23 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
19
17
  _defineProperty(this, "name", void 0);
20
18
  _defineProperty(this, "id", void 0);
21
19
  _defineProperty(this, "sortField", void 0);
20
+ _defineProperty(this, "formField", void 0);
22
21
  _defineProperty(this, "type", void 0);
23
22
  _defineProperty(this, "rules", void 0);
24
23
  _defineProperty(this, "componentConfig", void 0);
25
24
  _defineProperty(this, "isCombinationComponent", void 0);
26
25
  _defineProperty(this, "canSort", void 0);
27
26
  _defineProperty(this, "children", void 0);
28
- _defineProperty(this, "formatPictures", function (pictures) {
29
- pictures = pictures.replace(/[\[\]]/g, "");
30
- pictures = pictures.replace(/\s/g, "");
31
- return pictures ? pictures.split(",") : [];
32
- });
33
- _defineProperty(this, "render", function (value) {
34
- if (!(value !== null && value !== void 0 && value.length)) {
35
- return null;
36
- }
37
- return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (pic) {
38
- return /*#__PURE__*/React.createElement("div", {
39
- style: {
40
- marginRight: "5px",
41
- display: "inline-block"
42
- }
43
- }, /*#__PURE__*/React.createElement(Image, {
44
- width: 32,
45
- src: imgResize(pic || ""),
46
- preview: {
47
- src: imgResize(pic || "", 0, 0)
48
- }
49
- }));
50
- }));
51
- });
27
+ _defineProperty(this, "dataType", void 0);
52
28
  _defineProperty(this, "renderPc", function (value, record) {
53
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) === undefined) {
29
+ var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) || [];
30
+ if (!fileList.length) {
54
31
  return /*#__PURE__*/React.createElement("span", null, "--");
55
32
  }
56
- var finalPictures = _this.formatPictures(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]).map(function (item) {
57
- return "".concat(window.location.origin, "/").concat(item);
58
- });
59
- return finalPictures === null || finalPictures === void 0 ? void 0 : finalPictures.map(function (pic) {
60
- return /*#__PURE__*/React.createElement("div", {
61
- style: {
62
- marginRight: "5px",
63
- display: "inline-block"
64
- }
65
- }, /*#__PURE__*/React.createElement(Image, {
66
- width: 32,
67
- src: "".concat(pic, "?x-oss-process=image/resize,m_pad,h_40,w_40"),
68
- preview: {
69
- src: pic
70
- }
71
- }));
33
+ return fileList === null || fileList === void 0 ? void 0 : fileList.map(function (file) {
34
+ return /*#__PURE__*/React.createElement("a", {
35
+ href: file.url
36
+ }, file.name);
72
37
  });
73
38
  });
74
39
  _defineProperty(this, "renderLog", function (r) {
@@ -79,10 +44,10 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
79
44
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_file")];
80
45
  });
81
46
  _defineProperty(this, "renderClient", function (record) {
82
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
47
+ return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) ? /*#__PURE__*/React.createElement(ItemView, {
83
48
  id: _this.id,
84
49
  label: _this.name,
85
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
50
+ value: _this.renderPc(null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")])
86
51
  }) : null;
87
52
  });
88
53
  _defineProperty(this, "editRender", function () {
@@ -98,8 +63,12 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
98
63
  }))
99
64
  });
100
65
  });
101
- _defineProperty(this, "renderExport", function () {
102
- return null;
66
+ _defineProperty(this, "renderExport", function (value, record) {
67
+ var textArr = ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_rate")]) || []).reduce(function (prv, next) {
68
+ prv.push(next.url);
69
+ return prv;
70
+ }, []);
71
+ return textArr === null || textArr === void 0 ? void 0 : textArr.join(",");
103
72
  });
104
73
  _defineProperty(this, "filterConfig", function () {
105
74
  return [];
@@ -107,11 +76,13 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
107
76
  this.name = options.name;
108
77
  this.id = options.id;
109
78
  this.sortField = "".concat(options.id, "_file");
79
+ this.formField = "".concat(options.id, "_file");
110
80
  this.type = options.type;
111
81
  this.componentConfig = options.componentConfig;
112
82
  this.rules = [];
113
83
  this.isCombinationComponent = false;
114
84
  this.canSort = false;
115
85
  this.children = [];
86
+ this.dataType = "array";
116
87
  });
117
88
  export default BasicFile;
@@ -87,6 +87,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
87
87
  this.rules = [{
88
88
  validator: function validator(_, value) {
89
89
  var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
90
+ if (!value) {
91
+ return Promise.resolve();
92
+ }
90
93
  var number = /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/;
91
94
  var mail = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/;
92
95
  var phone = /^1\d{10}$/;
@@ -40,14 +40,12 @@ declare class LogisticsTrajectory implements ComponentInterface {
40
40
  props: {
41
41
  options: any[];
42
42
  };
43
- filterFn: (value: string) => (i: Record) => boolean;
44
43
  } | {
45
44
  searchDefaultConditions: "like";
46
45
  type: string;
47
46
  id: string;
48
47
  name: string;
49
48
  filterComponentType: "Input";
50
- filterFn: (value: string) => (i: Record) => boolean;
51
49
  })[];
52
50
  }
53
51
  export default LogisticsTrajectory;
@@ -91,24 +91,14 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
91
91
  this.isCombinationComponent = true;
92
92
  this.canSort = false;
93
93
  this.dataType = "object";
94
- this.children = [this.express, this.expressCode];
94
+ this.children = [this.express, this.expressCode, this.expressSnapshot];
95
95
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
96
96
  validator: function validator(_, value) {
97
- var _this$componentConfig4;
98
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
99
- var _this$componentConfig5, _this$componentConfig6;
100
- if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
101
- return Promise.reject(new Error("请选择物流公司"));
102
- } else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
103
- return Promise.reject(new Error("请输入物流单号"));
104
- }
105
- } else {
106
- if (!(value !== null && value !== void 0 && value.company)) {
107
- return Promise.reject(new Error("请选择物流公司"));
108
- }
109
- if (!(value !== null && value !== void 0 && value.order)) {
110
- return Promise.reject(new Error("请输入物流单号"));
111
- }
97
+ if (!value.trajectoryCompany) {
98
+ return Promise.reject(new Error("请选择物流公司"));
99
+ }
100
+ if (!value.trajectoryCode) {
101
+ return Promise.reject(new Error("请输入物流单号"));
112
102
  }
113
103
  return Promise.resolve();
114
104
  }
@@ -33,6 +33,7 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
33
33
  var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
34
34
  var code = record === null || record === void 0 ? void 0 : record[_this.id];
35
35
  return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
36
+ title: code,
36
37
  modelWidth: w,
37
38
  interceptCompany: company,
38
39
  interceptCode: code,
@@ -64,16 +65,15 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
64
65
  return null;
65
66
  });
66
67
  _defineProperty(this, "filterConfig", function (item) {
67
- var subKey = item.subKey;
68
68
  return {
69
69
  searchDefaultConditions: SYMBOL.like,
70
70
  type: item.type,
71
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
71
+ id: "".concat(item.id, "_trajectoryCode"),
72
72
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
73
73
  filterComponentType: "Input",
74
74
  filterFn: function filterFn(value) {
75
75
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
76
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
77
77
  };
78
78
  }
79
79
  };
@@ -33,7 +33,6 @@ declare class TrajectoryCompany implements ComponentInterface {
33
33
  props: {
34
34
  options: any[];
35
35
  };
36
- filterFn: (value: string) => (i: Record) => boolean;
37
36
  };
38
37
  }
39
38
  export default TrajectoryCompany;
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from "react";
9
9
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import ItemView from "../../commonComponents/ItemView";
11
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
12
12
  import { SYMBOL } from "../../constant";
13
13
  var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
14
14
  var _this = this;
@@ -55,20 +55,14 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
55
55
  return null;
56
56
  });
57
57
  _defineProperty(this, "filterConfig", function (item) {
58
- var subKey = item.subKey;
59
58
  return {
60
59
  searchDefaultConditions: SYMBOL.in,
61
60
  type: item.type,
62
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
61
+ id: item.id,
63
62
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
64
63
  filterComponentType: "MultipleSelect",
65
64
  props: {
66
65
  options: _this.expressDateInstance.getExpressData() || []
67
- },
68
- filterFn: function filterFn(value) {
69
- return function (i) {
70
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
71
- };
72
66
  }
73
67
  };
74
68
  });
@@ -26,7 +26,6 @@ declare class TrajectorySnapshot implements ComponentInterface {
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
- filterFn: (value: string) => (i: Record) => boolean;
30
29
  };
31
30
  }
32
31
  export default TrajectorySnapshot;
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  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); }
8
8
  import React from "react";
9
9
  import ItemView from "../../commonComponents/ItemView";
10
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
11
  import { SYMBOL } from "../../constant";
12
12
  var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
13
13
  var _this = this;
@@ -50,18 +50,12 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
50
50
  return null;
51
51
  });
52
52
  _defineProperty(this, "filterConfig", function (item) {
53
- var subKey = item.subKey;
54
53
  return {
55
54
  searchDefaultConditions: SYMBOL.like,
56
55
  type: item.type,
57
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
56
+ id: item.id,
58
57
  name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
59
- filterComponentType: "Input",
60
- filterFn: function filterFn(value) {
61
- return function (i) {
62
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
63
- };
64
- }
58
+ filterComponentType: "Input"
65
59
  };
66
60
  });
67
61
  this.name = options.name;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const Popover: ({ Overlay, ShowComponent }: any) => React.JSX.Element;
3
3
  export default Popover;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemEncode;
@@ -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, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsLogistics, BsGoods, BsExchange, BsReissue } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsLogistics | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
3
+ export declare const factory: (type: string, options: PickOption) => ActualPayment | BsExchange | BsGoods | BsLogistics | BsReissue | BasicFile | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsTrajectory | BasicPosting | BasicDataTime | TradeDateTime | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
@@ -137,6 +137,7 @@ export interface ComponentInterface {
137
137
  * @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
138
138
  */
139
139
  erpFlag?: boolean;
140
+ reasonList?: any[];
140
141
  };
141
142
  effects?: {
142
143
  queryWorkOrderDetail?: (r: Record) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.15-alpha.2",
3
+ "version": "0.7.15-alpha.21",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.2",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.0"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.21",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.21"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "5ff2e36f84708b964271ed5e61c7ced26e266bd5"
43
+ "gitHead": "59a6403612e5a40684708eed9ff255d8e1928027"
44
44
  }
@@ -1,43 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
- import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
3
- declare class BsPic implements ComponentInterface {
4
- name: string;
5
- parentId: string;
6
- id: string;
7
- sortField: string;
8
- type: string;
9
- rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
11
- effects: ComponentInterface["effects"];
12
- align: ALignType;
13
- width: number;
14
- isCombinationComponent: boolean;
15
- formField: string;
16
- canSort: boolean;
17
- children: ComponentInterface[];
18
- expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
19
- dataType: ComponentInterface["dataType"];
20
- constructor(options: PickOption);
21
- getComponentValue: (r: Record) => any;
22
- renderClient: (record: any) => null;
23
- renderPc: (value: any, record: Record) => null;
24
- renderLog: (r: Record) => any;
25
- renderExport: (value: any, record: Record) => any;
26
- editRender: () => null;
27
- filterConfig: (item: ColumnConfig) => {
28
- searchDefaultConditions: "in";
29
- type: string;
30
- id: string;
31
- name: string;
32
- filterComponentType: "MultipleSelect";
33
- props: {
34
- options: {
35
- label: string;
36
- value: string;
37
- }[];
38
- };
39
- formatFilterValue: (value: string[]) => string[];
40
- filterFn: (value: string[]) => (i: Record) => boolean;
41
- };
42
- }
43
- export default BsPic;