@kmkf-fe-packages/services-components 0.7.15-alpha.4 → 0.7.15-alpha.42

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 (55) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
  2. package/dist/esm/components/BS/BsExchange/index.js +166 -93
  3. package/dist/esm/components/BS/BsGoods/index.d.ts +4 -4
  4. package/dist/esm/components/BS/BsGoods/index.js +68 -54
  5. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -7
  6. package/dist/esm/components/BS/BsLogistics/index.js +14 -14
  7. package/dist/esm/components/BS/BsReissue/index.d.ts +3 -0
  8. package/dist/esm/components/BS/BsReissue/index.js +72 -41
  9. package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +4 -4
  10. package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +7 -7
  11. package/dist/esm/components/BS/common/BsMemo.js +3 -3
  12. package/dist/esm/components/BS/common/BsType.js +3 -2
  13. package/dist/esm/components/BS/common/index.d.ts +10 -10
  14. package/dist/esm/components/BS/common/index.js +8 -8
  15. package/dist/esm/components/Cascader/index.d.ts +1 -0
  16. package/dist/esm/components/Cascader/index.js +3 -1
  17. package/dist/esm/components/Common/index.d.ts +5 -0
  18. package/dist/esm/components/Common/index.js +102 -2
  19. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  20. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  21. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  22. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  23. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  24. package/dist/esm/components/File/index.js +2 -2
  25. package/dist/esm/components/JST/JstLogistics/index.js +25 -8
  26. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
  27. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +5 -4
  28. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
  29. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
  30. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  31. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
  32. package/dist/esm/components/Payment/BuyerNick.js +1 -2
  33. package/dist/esm/components/Payment/index.d.ts +1 -0
  34. package/dist/esm/components/Payment/index.js +9 -6
  35. package/dist/esm/components/Popover/index.d.ts +2 -2
  36. package/dist/esm/components/PostIng/index.js +2 -2
  37. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  38. package/dist/esm/factory.d.ts +2 -2
  39. package/dist/esm/factory.js +2 -3
  40. package/dist/esm/type.d.ts +3 -1
  41. package/package.json +4 -4
  42. /package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderCode.d.ts} +0 -0
  43. /package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderCode.js} +0 -0
  44. /package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +0 -0
  45. /package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +0 -0
  46. /package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +0 -0
  47. /package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +0 -0
  48. /package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderNumber.d.ts} +0 -0
  49. /package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderNumber.js} +0 -0
  50. /package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +0 -0
  51. /package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +0 -0
  52. /package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +0 -0
  53. /package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +0 -0
  54. /package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +0 -0
  55. /package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +0 -0
@@ -15,8 +15,20 @@ import { JstGoods } from "@kmkf-fe-packages/basic-components";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL } from "../../../constant";
18
+ var typeMap = {
19
+ JST_LOGISTICS: {
20
+ key: "jstItemList",
21
+ name: "jst"
22
+ },
23
+ BS_LOGISTICS: {
24
+ key: "bsLogisticsList",
25
+ name: "bs"
26
+ }
27
+ };
18
28
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
19
29
  var _this = this,
30
+ _typeMap$options$type,
31
+ _typeMap$options$type2,
20
32
  _this$componentConfig3;
21
33
  _classCallCheck(this, JstLogistics);
22
34
  _defineProperty(this, "name", void 0);
@@ -46,7 +58,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
46
58
  }) : null;
47
59
  });
48
60
  _defineProperty(this, "renderPc", function (value, record) {
49
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
61
+ var _typeMap$_this$type;
62
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
50
63
  //兼容多个商品
51
64
  return /*#__PURE__*/React.createElement(JstGoodImage, {
52
65
  list: list,
@@ -54,15 +67,18 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
54
67
  });
55
68
  });
56
69
  _defineProperty(this, "renderLog", function (r) {
57
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
70
+ var _typeMap$_this$type2;
71
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
58
72
  if (isNull(list)) return null;
59
73
  return _this.renderPc(undefined, r);
60
74
  });
61
75
  _defineProperty(this, "getComponentValue", function (r) {
62
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
76
+ var _typeMap$_this$type3;
77
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
63
78
  });
64
79
  _defineProperty(this, "renderExport", function (value, record) {
65
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
80
+ var _typeMap$_this$type4;
81
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
66
82
  return (list || []).map(function (item) {
67
83
  return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
68
84
  }).join(",");
@@ -82,11 +98,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
82
98
  });
83
99
  });
84
100
  _defineProperty(this, "filterConfig", function (item) {
101
+ var _typeMap$_this$type5, _typeMap$_this$type6;
85
102
  return [{
86
103
  searchDefaultConditions: SYMBOL.like,
87
104
  type: item.type,
88
105
  id: "".concat(item.id, "_logisticsCode"),
89
- name: "jst\u7269\u6D41\u5355\u53F7",
106
+ name: "".concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name, "\u7269\u6D41\u5355\u53F7"),
90
107
  filterComponentType: "Input",
91
108
  filterFn: function filterFn(value) {
92
109
  return function (i) {
@@ -97,7 +114,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
97
114
  searchDefaultConditions: SYMBOL.in,
98
115
  type: item.type,
99
116
  id: "".concat(item.id, "_logisticsCompany"),
100
- name: "jst\u7269\u6D41\u516C\u53F8",
117
+ name: "".concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.name, "\u7269\u6D41\u516C\u53F8"),
101
118
  filterComponentType: "MultipleSelect",
102
119
  props: {
103
120
  options: _this.expressDateInstance.getExpressData() || []
@@ -116,8 +133,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
116
133
  });
117
134
  this.name = options.name;
118
135
  this.id = options.id;
119
- this.sortField = "".concat(options.id, "_jstItemList");
120
- this.formField = "".concat(options.id, "_jstItemList");
136
+ this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
137
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
121
138
  this.type = options.type;
122
139
  this.componentConfig = options.componentConfig;
123
140
  this.isCombinationComponent = false;
@@ -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;
@@ -31,12 +31,14 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
31
31
  _defineProperty(this, "renderCode", function (record) {
32
32
  var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
33
33
  var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
34
+ var mobile = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryPhone")];
34
35
  var code = record === null || record === void 0 ? void 0 : record[_this.id];
35
36
  return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
37
+ title: code,
36
38
  modelWidth: w,
37
39
  interceptCompany: company,
38
40
  interceptCode: code,
39
- interceptSenderMobile: ""
41
+ interceptSenderMobile: mobile
40
42
  }) : "--");
41
43
  });
42
44
  _defineProperty(this, "renderClient", function (record) {
@@ -64,16 +66,15 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
64
66
  return null;
65
67
  });
66
68
  _defineProperty(this, "filterConfig", function (item) {
67
- var subKey = item.subKey;
68
69
  return {
69
70
  searchDefaultConditions: SYMBOL.like,
70
71
  type: item.type,
71
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
72
+ id: "".concat(item.id, "_trajectoryCode"),
72
73
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
73
74
  filterComponentType: "Input",
74
75
  filterFn: function filterFn(value) {
75
76
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
77
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
77
78
  };
78
79
  }
79
80
  };
@@ -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;
@@ -52,11 +52,10 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
52
52
  }, record === null || record === void 0 ? void 0 : record[_this.id]));
53
53
  });
54
54
  _defineProperty(this, "renderClient", function (record, params) {
55
- var _record$_this$id;
56
55
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
57
56
  id: _this.id,
58
57
  label: _this.name,
59
- value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick
58
+ value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : record[_this.id]
60
59
  }) : null;
61
60
  });
62
61
  _defineProperty(this, "editRender", function (p) {
@@ -26,6 +26,7 @@ declare class Logistics implements ComponentInterface {
26
26
  canSort: boolean;
27
27
  children: ComponentInterface[];
28
28
  dataType: ComponentInterface['dataType'];
29
+ effects: ComponentInterface["effects"];
29
30
  constructor(options: PickOption);
30
31
  renderClient: (record: any, params: any) => React.JSX.Element;
31
32
  renderPc: () => null;
@@ -39,6 +39,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
39
39
  _defineProperty(this, "canSort", void 0);
40
40
  _defineProperty(this, "children", void 0);
41
41
  _defineProperty(this, "dataType", void 0);
42
+ _defineProperty(this, "effects", void 0);
42
43
  _defineProperty(this, "renderClient", function (record, params) {
43
44
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record, params), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
44
45
  });
@@ -63,7 +64,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
63
64
  return null;
64
65
  });
65
66
  _defineProperty(this, "editRender", function (p) {
66
- var _this$componentConfig, _this$componentConfig2;
67
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
67
68
  return /*#__PURE__*/React.createElement(GetFormItem, {
68
69
  title: _this.name,
69
70
  name: _this.id,
@@ -71,6 +72,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
71
72
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
72
73
  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,
73
74
  component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
75
+ disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
74
76
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur
75
77
  }))
76
78
  });
@@ -93,24 +95,25 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
93
95
  this.payTime = new AlipayTime(options);
94
96
  this.isCombinationComponent = true;
95
97
  this.canSort = false;
98
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
96
99
  this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
97
100
  this.rules = [{
98
101
  validator: function validator(_, value) {
99
- var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
100
- if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
102
+ var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
103
+ if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
101
104
  return Promise.reject(new Error('请输入打款金额'));
102
105
  } else if (value !== null && value !== void 0 && value.enterprisePaymentRefundFee && !/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value === null || value === void 0 ? void 0 : value.enterprisePaymentRefundFee)) {
103
106
  return Promise.reject(new Error('打款金额最多2位小数'));
104
107
  }
105
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
108
+ if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
106
109
  return Promise.reject(new Error('请输入订单编号'));
107
110
  } else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
108
111
  return Promise.reject(new Error('请输入正确的订单编号'));
109
112
  }
110
- if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
113
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
111
114
  return Promise.reject(new Error('请输入支付宝名称'));
112
115
  }
113
- if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
116
+ if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
114
117
  return Promise.reject(new Error('请输入支付宝账号'));
115
118
  } else if (value.enterprisePaymentAlipayNo && !/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value.enterprisePaymentAlipayNo)) {
116
119
  return Promise.reject(new Error('请输入正确的支付宝账号格式'));
@@ -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;
@@ -11,7 +11,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
14
- import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { AddressData, BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { SYMBOL } from "../../constant";
16
16
  var typeMap = {
17
17
  POSTING: {
@@ -199,7 +199,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
199
199
  this.canSort = true;
200
200
  this.children = [];
201
201
  this.dataType = "string";
202
- this.addressDateInstance = AddressData.getInstance();
202
+ this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
203
203
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
204
204
  validator: function validator(_, value) {
205
205
  var _value$postingAddress;
@@ -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
- 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";
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, BsGoods, BsExchange, BsReissue } from "./index";
2
2
  import { PickOption } from "./type";
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;
3
+ export declare const factory: (type: string, options: PickOption) => BasicCascader | JstLogistics | BasicPosting | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
@@ -1,4 +1,4 @@
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";
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, BsGoods, BsExchange, BsReissue } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -62,8 +62,6 @@ export var factory = function factory(type, options) {
62
62
  return new TradeDateTime(options);
63
63
  case "EXPRESS_LOGISTICS_SELECT":
64
64
  return new Logistics(options);
65
- case "BS_LOGISTICS":
66
- return new BsLogistics(options);
67
65
  case "RETURN_LOGISTICS_SELECT":
68
66
  return new ReturnLogistics(options);
69
67
  case "ACTUAL_PAYMENT":
@@ -106,6 +104,7 @@ export var factory = function factory(type, options) {
106
104
  case "TEMPLATE_ID_INPUT":
107
105
  return new TemplateSelect(options);
108
106
  case "JST_LOGISTICS":
107
+ case "BS_LOGISTICS":
109
108
  return new JstLogistics(options);
110
109
  case "JST_ITEM_SELECT_THIRD":
111
110
  return new JstItemSelect(options);
@@ -33,7 +33,7 @@ export interface ComponentInterface {
33
33
  width?: number;
34
34
  align?: ALignType;
35
35
  dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
36
- format?: "dateTime" | "date" | "time";
36
+ format?: "dateTime" | "date" | "time" | "cascader";
37
37
  options?: Array<any>;
38
38
  /**
39
39
  * @description 组件下标
@@ -137,7 +137,9 @@ export interface ComponentInterface {
137
137
  * @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
138
138
  */
139
139
  erpFlag?: boolean;
140
+ showHeader?: string[];
140
141
  reasonList?: any[];
142
+ disabled?: boolean;
141
143
  };
142
144
  effects?: {
143
145
  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.4",
3
+ "version": "0.7.15-alpha.42",
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.4",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.3"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.42",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.42"
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": "52277258146a461cd2fdcb41f672d825a88ef295"
43
+ "gitHead": "76ad2144cdbee64aaa196879a8d3553015700999"
44
44
  }