@kmkf-fe-packages/services-components 0.7.15-alpha.7 → 0.7.15-alpha.71
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.
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
- package/dist/esm/commonComponents/ShopList/index.d.ts +1 -1
- package/dist/esm/commonComponents/ShopList/index.js +4 -2
- package/dist/esm/components/ActualPayment/index.d.ts +5 -4
- package/dist/esm/components/ActualPayment/index.js +25 -21
- package/dist/esm/components/AlipayAccount/index.js +2 -1
- package/dist/esm/components/BS/BsExchange/index.d.ts +12 -6
- package/dist/esm/components/BS/BsExchange/index.js +233 -111
- package/dist/esm/components/BS/BsGoods/index.d.ts +11 -9
- package/dist/esm/components/BS/BsGoods/index.js +93 -60
- package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
- package/dist/esm/components/BS/BsReissue/index.js +110 -54
- package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderCode.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderCode.js} +28 -11
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +27 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +156 -0
- package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +29 -11
- package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderNumber.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderNumber.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +7 -6
- package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +36 -10
- package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +28 -11
- package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +5 -4
- package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +28 -11
- package/dist/esm/components/BS/common/BsMemo.d.ts +8 -7
- package/dist/esm/components/BS/common/BsMemo.js +55 -21
- package/dist/esm/components/BS/common/BsType.d.ts +8 -6
- package/dist/esm/components/BS/common/BsType.js +53 -17
- package/dist/esm/components/BS/common/index.d.ts +9 -8
- package/dist/esm/components/BS/common/index.js +9 -8
- package/dist/esm/components/BuyerNick/index.js +5 -1
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +3 -1
- package/dist/esm/components/Common/index.d.ts +6 -1
- package/dist/esm/components/Common/index.js +115 -20
- package/dist/esm/components/EItemEnCode/index.js +6 -2
- package/dist/esm/components/EItemId/index.d.ts +3 -3
- package/dist/esm/components/EItemId/index.js +14 -10
- package/dist/esm/components/EItemSelect/index.js +6 -2
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
- package/dist/esm/components/ErpTradeId/index.js +27 -4
- package/dist/esm/components/ExpressCode/index.d.ts +1 -1
- package/dist/esm/components/ExpressCode/index.js +2 -2
- package/dist/esm/components/File/index.d.ts +1 -1
- package/dist/esm/components/File/index.js +26 -5
- package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -1
- package/dist/esm/components/FlowStatusSelect/index.js +30 -24
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +33 -0
- package/dist/esm/components/FlowWorkOrderId/index.js +112 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +6 -2
- package/dist/esm/components/JST/JstLogistics/index.d.ts +19 -13
- package/dist/esm/components/JST/JstLogistics/index.js +71 -33
- package/dist/esm/components/JST/JstSendGood/index.d.ts +6 -0
- package/dist/esm/components/JST/JstSendGood/index.js +33 -13
- package/dist/esm/components/JST/JstSupply/index.js +6 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +5 -1
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +8 -9
- package/dist/esm/components/LogisticsTrajectory/index.js +12 -10
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +11 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +6 -6
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +8 -8
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +4 -10
- package/dist/esm/components/Payment/AlipayNick.js +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -3
- package/dist/esm/components/Payment/index.d.ts +1 -0
- package/dist/esm/components/Payment/index.js +9 -6
- package/dist/esm/components/Picture/index.js +3 -0
- package/dist/esm/components/PostIng/index.d.ts +1 -24
- package/dist/esm/components/PostIng/index.js +53 -52
- package/dist/esm/components/Rate/index.js +5 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +2 -1
- package/dist/esm/components/ReceiverName/index.js +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -2
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -14
- package/dist/esm/components/TradeDateTime/index.js +30 -25
- package/dist/esm/components/TradeId/index.d.ts +1 -0
- package/dist/esm/components/TradeId/index.js +27 -4
- package/dist/esm/components/WorkOrderId/index.js +5 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +6 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/type.d.ts +10 -2
- package/package.json +4 -4
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -50
- package/dist/esm/components/BS/BsLogistics/index.js +0 -115
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsExchangeImage.js +0 -126
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +0 -31
- package/dist/esm/components/BS/common/BsGoodImage.js +0 -88
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2
8
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
9
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
11
|
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; }
|
|
6
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
13
|
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
|
-
import React from
|
|
14
|
+
import React from 'react';
|
|
9
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
10
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
17
|
import { SYMBOL } from "../../../constant";
|
|
18
|
+
var componentType = {
|
|
19
|
+
BS_EXCHANGE_GOODS: 'bsExchangeType',
|
|
20
|
+
BS_REISSUE_GOODS: 'bsReissueType'
|
|
21
|
+
};
|
|
12
22
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
13
23
|
var _this = this;
|
|
14
24
|
_classCallCheck(this, BsType);
|
|
@@ -24,32 +34,52 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
24
34
|
_defineProperty(this, "canSort", void 0);
|
|
25
35
|
_defineProperty(this, "children", void 0);
|
|
26
36
|
_defineProperty(this, "dataType", void 0);
|
|
37
|
+
_defineProperty(this, "getParentId", function () {
|
|
38
|
+
var _this$id$split = _this.id.split('_'),
|
|
39
|
+
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
40
|
+
key = _this$id$split2[0],
|
|
41
|
+
name = _this$id$split2[1];
|
|
42
|
+
return "".concat(key, "_").concat(name);
|
|
43
|
+
});
|
|
27
44
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
|
-
|
|
45
|
+
var _record$key$component, _find, _this$componentConfig;
|
|
46
|
+
var _this$getParentId$spl = _this.getParentId().split('_'),
|
|
47
|
+
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
48
|
+
key = _this$getParentId$spl2[0];
|
|
49
|
+
if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
var text = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
53
|
+
var _record$key, _record$key$component2;
|
|
54
|
+
return item.value === ((_record$key = record[key]) === null || _record$key === void 0 ? void 0 : (_record$key$component2 = _record$key[componentType[_this.type]]) === null || _record$key$component2 === void 0 ? void 0 : _record$key$component2[0]);
|
|
55
|
+
})) === null || _find === void 0 ? void 0 : _find.label;
|
|
56
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[key]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
57
|
id: _this.id,
|
|
30
58
|
label: _this.name,
|
|
31
|
-
value:
|
|
59
|
+
value: text
|
|
32
60
|
}) : null;
|
|
33
61
|
});
|
|
34
62
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
63
|
var _this$getComponentVal;
|
|
36
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
64
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
37
65
|
});
|
|
38
66
|
_defineProperty(this, "renderLog", function (r) {
|
|
39
|
-
|
|
67
|
+
var id = _this.getParentId();
|
|
68
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[id])) return null;
|
|
40
69
|
return _this.renderPc(undefined, r);
|
|
41
70
|
});
|
|
42
71
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
72
|
+
var _r$id, _find2, _this$componentConfig2;
|
|
73
|
+
var id = _this.getParentId();
|
|
74
|
+
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : '';
|
|
75
|
+
var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
46
76
|
return item.value === type;
|
|
47
|
-
})) === null ||
|
|
77
|
+
})) === null || _find2 === void 0 ? void 0 : _find2.label;
|
|
48
78
|
return text;
|
|
49
79
|
});
|
|
50
80
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
81
|
var _this$getComponentVal2;
|
|
52
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
82
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
53
83
|
});
|
|
54
84
|
_defineProperty(this, "editRender", function () {
|
|
55
85
|
return null;
|
|
@@ -57,14 +87,20 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
57
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
58
88
|
var _item$config;
|
|
59
89
|
var subKey = item.subKey;
|
|
90
|
+
console.log('bsTypefilterConfig', item);
|
|
60
91
|
return {
|
|
61
|
-
searchDefaultConditions: SYMBOL.
|
|
92
|
+
searchDefaultConditions: SYMBOL.in,
|
|
62
93
|
type: item.type,
|
|
63
94
|
id: item.id,
|
|
64
95
|
name: "".concat(item.name, "-\u7C7B\u578B"),
|
|
65
|
-
filterComponentType:
|
|
96
|
+
filterComponentType: 'Cascader',
|
|
66
97
|
props: {
|
|
67
|
-
options: item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList
|
|
98
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
|
|
99
|
+
},
|
|
100
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
101
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
102
|
+
return val[val.length - 1];
|
|
103
|
+
}
|
|
68
104
|
},
|
|
69
105
|
filterFn: function filterFn(value) {
|
|
70
106
|
return function (i) {
|
|
@@ -79,11 +115,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
79
115
|
this.formField = options.id;
|
|
80
116
|
this.type = options.type;
|
|
81
117
|
this.componentConfig = options.componentConfig;
|
|
82
|
-
this.align =
|
|
118
|
+
this.align = 'left';
|
|
83
119
|
this.width = 200;
|
|
84
120
|
this.isCombinationComponent = false;
|
|
85
|
-
this.canSort =
|
|
86
|
-
this.dataType =
|
|
121
|
+
this.canSort = false;
|
|
122
|
+
this.dataType = 'string';
|
|
87
123
|
this.children = [];
|
|
88
124
|
});
|
|
89
125
|
export default BsType;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { default as BsType } from "./BsType";
|
|
2
2
|
export { default as BsMemo } from "./BsMemo";
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
3
|
+
export { default as BsHeaderPic } from "./BsHeaderPic";
|
|
4
|
+
export { default as BsHeaderName } from "./BsHeaderName";
|
|
5
|
+
export { default as BsHeaderCode } from "./BsHeaderCode";
|
|
6
|
+
export { default as BsHeaderSku } from "./BsHeaderSku";
|
|
7
|
+
export { default as BsHeaderMoney } from "./BsHeaderMoney";
|
|
8
|
+
export { default as BsHeaderNumber } from "./BsHeaderNumber";
|
|
9
|
+
export { default as BsHeaderShare } from "./BsHeaderShare";
|
|
10
|
+
export { default as BsHeaderType } from "./BsHeaderType";
|
|
11
|
+
export { default as BsHeaderGood } from "./BsHeaderGood";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { default as BsType } from "./BsType";
|
|
2
2
|
export { default as BsMemo } from "./BsMemo";
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
3
|
+
export { default as BsHeaderPic } from "./BsHeaderPic";
|
|
4
|
+
export { default as BsHeaderName } from "./BsHeaderName";
|
|
5
|
+
export { default as BsHeaderCode } from "./BsHeaderCode";
|
|
6
|
+
export { default as BsHeaderSku } from "./BsHeaderSku";
|
|
7
|
+
export { default as BsHeaderMoney } from "./BsHeaderMoney";
|
|
8
|
+
export { default as BsHeaderNumber } from "./BsHeaderNumber";
|
|
9
|
+
export { default as BsHeaderShare } from "./BsHeaderShare";
|
|
10
|
+
export { default as BsHeaderType } from "./BsHeaderType";
|
|
11
|
+
export { default as BsHeaderGood } from "./BsHeaderGood";
|
|
@@ -60,7 +60,11 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
60
60
|
if (buyerNick === undefined && buyerOpenUid === undefined) {
|
|
61
61
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
62
62
|
}
|
|
63
|
-
return /*#__PURE__*/React.createElement("span",
|
|
63
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
return e.stopPropagation();
|
|
66
|
+
}
|
|
67
|
+
}, buyerNick && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
64
68
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
65
69
|
buyerNick: buyerNick,
|
|
66
70
|
buyerOpenUid: buyerOpenUid,
|
|
@@ -28,6 +28,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
30
|
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
31
32
|
_defineProperty(this, "getValue", function (value) {
|
|
32
33
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
33
34
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
@@ -139,7 +140,8 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
139
140
|
this.children = [];
|
|
140
141
|
this.isCombinationComponent = false;
|
|
141
142
|
this.canSort = true;
|
|
142
|
-
this.dataType = '
|
|
143
|
+
this.dataType = 'array';
|
|
144
|
+
this.format = 'cascader';
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
/**
|
|
@@ -19,6 +19,11 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
19
19
|
item: any;
|
|
20
20
|
index: number;
|
|
21
21
|
}) => React.JSX.Element;
|
|
22
|
-
export declare const BsExchangeList: ({ list }: any) => React.JSX.Element;
|
|
22
|
+
export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
|
|
23
23
|
export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
|
|
24
|
+
export declare const BsGoodsTable: ({ list, showHeader, text, }: {
|
|
25
|
+
list: any[];
|
|
26
|
+
showHeader: string[];
|
|
27
|
+
text?: string | undefined;
|
|
28
|
+
}) => React.JSX.Element;
|
|
24
29
|
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
1
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { Form, Button, Modal, Tooltip, Space, Image, Popover } from "antd";
|
|
8
|
-
import React, { useState } from "react";
|
|
11
|
+
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table } from "antd";
|
|
12
|
+
import React, { useState, useMemo } from "react";
|
|
9
13
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
14
|
import styles from "./index.module.less";
|
|
11
15
|
import defaultImg from "./img/default-img.png";
|
|
@@ -111,7 +115,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
111
115
|
return setVisible(true);
|
|
112
116
|
}
|
|
113
117
|
}, "\u67E5\u770B\u5168\u90E8(".concat(total, ")")), /*#__PURE__*/React.createElement(Modal, {
|
|
114
|
-
|
|
118
|
+
visible: visible,
|
|
115
119
|
footer: null,
|
|
116
120
|
onCancel: function onCancel() {
|
|
117
121
|
return setVisible(false);
|
|
@@ -211,7 +215,10 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
211
215
|
var logisticsCompany = item.logisticsCompany;
|
|
212
216
|
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
213
217
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
214
|
-
content: content(item, index)
|
|
218
|
+
content: content(item, index),
|
|
219
|
+
overlayStyle: {
|
|
220
|
+
zIndex: 1080
|
|
221
|
+
}
|
|
215
222
|
}, /*#__PURE__*/React.createElement("span", {
|
|
216
223
|
key: index,
|
|
217
224
|
style: {
|
|
@@ -256,25 +263,20 @@ export var BsGoodImage = function BsGoodImage(_ref7) {
|
|
|
256
263
|
};
|
|
257
264
|
//bs换货 todo
|
|
258
265
|
export var BsExchangeList = function BsExchangeList(_ref8) {
|
|
259
|
-
var list = _ref8.list
|
|
266
|
+
var list = _ref8.list,
|
|
267
|
+
showHeader = _ref8.showHeader;
|
|
260
268
|
return /*#__PURE__*/React.createElement("div", {
|
|
261
269
|
className: styles.bsImgBox
|
|
262
270
|
}, list.map(function (item) {
|
|
263
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}, ((item === null || item === void 0 ? void 0 : item.returnGood) || []).map(function (t, i) {
|
|
273
|
-
return BsGoodImage({
|
|
274
|
-
item: t,
|
|
275
|
-
index: i
|
|
276
|
-
});
|
|
277
|
-
})));
|
|
271
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
272
|
+
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
273
|
+
showHeader: showHeader,
|
|
274
|
+
text: "退回"
|
|
275
|
+
}), BsGoodsTable({
|
|
276
|
+
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
277
|
+
showHeader: showHeader,
|
|
278
|
+
text: "换出"
|
|
279
|
+
}));
|
|
278
280
|
}));
|
|
279
281
|
};
|
|
280
282
|
//bs图片展示
|
|
@@ -285,4 +287,97 @@ export var BsGoodPic = function BsGoodPic(list) {
|
|
|
285
287
|
src: t
|
|
286
288
|
});
|
|
287
289
|
});
|
|
290
|
+
};
|
|
291
|
+
export var BsGoodsTable = function BsGoodsTable(_ref9) {
|
|
292
|
+
var list = _ref9.list,
|
|
293
|
+
showHeader = _ref9.showHeader,
|
|
294
|
+
_ref9$text = _ref9.text,
|
|
295
|
+
text = _ref9$text === void 0 ? "" : _ref9$text;
|
|
296
|
+
//商品信息
|
|
297
|
+
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
298
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
299
|
+
return [{
|
|
300
|
+
dataIndex: "pic",
|
|
301
|
+
title: "\u56FE\u7247",
|
|
302
|
+
align: "center",
|
|
303
|
+
ellipsis: true,
|
|
304
|
+
width: 100,
|
|
305
|
+
render: function render(val) {
|
|
306
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
307
|
+
width: 60,
|
|
308
|
+
src: val
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}, {
|
|
312
|
+
dataIndex: "name",
|
|
313
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
314
|
+
align: "center",
|
|
315
|
+
ellipsis: true,
|
|
316
|
+
width: 100
|
|
317
|
+
}, {
|
|
318
|
+
dataIndex: "code",
|
|
319
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
320
|
+
align: "center",
|
|
321
|
+
ellipsis: true,
|
|
322
|
+
width: 100
|
|
323
|
+
}, {
|
|
324
|
+
dataIndex: "sku",
|
|
325
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
326
|
+
align: "center",
|
|
327
|
+
ellipsis: true,
|
|
328
|
+
width: 100
|
|
329
|
+
}, {
|
|
330
|
+
dataIndex: "money",
|
|
331
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
332
|
+
align: "center",
|
|
333
|
+
ellipsis: true,
|
|
334
|
+
width: 100
|
|
335
|
+
}, {
|
|
336
|
+
dataIndex: "number",
|
|
337
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
338
|
+
align: "center",
|
|
339
|
+
ellipsis: true,
|
|
340
|
+
width: 100
|
|
341
|
+
}, {
|
|
342
|
+
dataIndex: "share",
|
|
343
|
+
title: "\u5206\u644A\u4EF7",
|
|
344
|
+
align: "center",
|
|
345
|
+
ellipsis: true,
|
|
346
|
+
width: 70
|
|
347
|
+
}, {
|
|
348
|
+
dataIndex: "type",
|
|
349
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
350
|
+
align: "center",
|
|
351
|
+
ellipsis: true,
|
|
352
|
+
width: 100
|
|
353
|
+
}];
|
|
354
|
+
};
|
|
355
|
+
var newColumns = useMemo(function () {
|
|
356
|
+
var columnList = [{
|
|
357
|
+
dataIndex: "",
|
|
358
|
+
title: "序号",
|
|
359
|
+
align: "center",
|
|
360
|
+
ellipsis: true,
|
|
361
|
+
width: 50,
|
|
362
|
+
render: function render(val, record, index) {
|
|
363
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
364
|
+
}
|
|
365
|
+
}].concat(_toConsumableArray(GOODS_INFO_COLUMNS(text).filter(function (t) {
|
|
366
|
+
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
367
|
+
})));
|
|
368
|
+
return columnList;
|
|
369
|
+
}, [showHeader, list]);
|
|
370
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
371
|
+
columns: newColumns,
|
|
372
|
+
dataSource: list,
|
|
373
|
+
rowKey: "uuid",
|
|
374
|
+
size: "small",
|
|
375
|
+
pagination: false,
|
|
376
|
+
scroll: {
|
|
377
|
+
x: "100%"
|
|
378
|
+
},
|
|
379
|
+
locale: {
|
|
380
|
+
emptyText: "暂无数据"
|
|
381
|
+
}
|
|
382
|
+
});
|
|
288
383
|
};
|
|
@@ -44,10 +44,14 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
44
44
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
45
45
|
}
|
|
46
46
|
//兼容多个商品
|
|
47
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
|
+
return e.stopPropagation();
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
48
52
|
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")],
|
|
49
53
|
type: "itemCode"
|
|
50
|
-
});
|
|
54
|
+
}));
|
|
51
55
|
});
|
|
52
56
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
57
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class EItemId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,7 +12,7 @@ declare class EItemId implements ComponentInterface {
|
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -6,12 +6,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
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
|
-
import React from
|
|
9
|
+
import React from "react";
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemId from "./ItemId";
|
|
12
12
|
import { GoodImage } from "../Common";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
17
17
|
var _this = this,
|
|
@@ -44,10 +44,14 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
44
44
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
45
45
|
}
|
|
46
46
|
//兼容多个商品
|
|
47
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
|
+
return e.stopPropagation();
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
48
52
|
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")],
|
|
49
53
|
type: "itemId"
|
|
50
|
-
});
|
|
54
|
+
}));
|
|
51
55
|
});
|
|
52
56
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
57
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
@@ -60,7 +64,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
60
64
|
var _ref;
|
|
61
65
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
|
|
62
66
|
return i.numIid;
|
|
63
|
-
}).join(
|
|
67
|
+
}).join("\n");
|
|
64
68
|
});
|
|
65
69
|
_defineProperty(this, "editRender", function (p) {
|
|
66
70
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
@@ -86,11 +90,11 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
86
90
|
// 过滤组件id
|
|
87
91
|
name: item.name,
|
|
88
92
|
// 过滤组件名称
|
|
89
|
-
filterComponentType:
|
|
93
|
+
filterComponentType: "Input",
|
|
90
94
|
filterFn: function filterFn(value) {
|
|
91
95
|
return function (i) {
|
|
92
96
|
var _ref2;
|
|
93
|
-
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
97
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "itemList") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
94
98
|
var _String;
|
|
95
99
|
return item !== null && item !== void 0 && item.numIid ? (_String = String(item === null || item === void 0 ? void 0 : item.numIid)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
96
100
|
});
|
|
@@ -112,17 +116,17 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
112
116
|
required: true,
|
|
113
117
|
validator: function validator(_, value) {
|
|
114
118
|
if (!value || !value.length) {
|
|
115
|
-
return Promise.reject(new Error(
|
|
119
|
+
return Promise.reject(new Error("请选择宝贝"));
|
|
116
120
|
}
|
|
117
121
|
var hasNotId = (value || []).some(function (item) {
|
|
118
122
|
return !item.numIid;
|
|
119
123
|
});
|
|
120
124
|
if (hasNotId) {
|
|
121
|
-
return Promise.reject(new Error(
|
|
125
|
+
return Promise.reject(new Error("请输入商品ID"));
|
|
122
126
|
}
|
|
123
127
|
return Promise.resolve();
|
|
124
128
|
}
|
|
125
129
|
}] : [];
|
|
126
|
-
this.dataType =
|
|
130
|
+
this.dataType = "object";
|
|
127
131
|
});
|
|
128
132
|
export default EItemId;
|
|
@@ -40,9 +40,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
40
40
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) === undefined) {
|
|
41
41
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
42
|
}
|
|
43
|
-
return /*#__PURE__*/React.createElement(
|
|
43
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
onClick: function onClick(e) {
|
|
45
|
+
return e.stopPropagation();
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/React.createElement(GoodImage, {
|
|
44
48
|
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]
|
|
45
|
-
});
|
|
49
|
+
}));
|
|
46
50
|
});
|
|
47
51
|
_defineProperty(this, "renderLog", function (r) {
|
|
48
52
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
@@ -14,7 +14,8 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
14
14
|
dataType: ComponentInterface['dataType'];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
|
-
|
|
17
|
+
copyHandle: (text: string) => void;
|
|
18
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -7,6 +7,9 @@ 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 { TradeId } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import copy from 'copy-to-clipboard';
|
|
11
|
+
import { message } from 'antd';
|
|
12
|
+
import { CopyOutlined } from '@ant-design/icons';
|
|
10
13
|
import GetFormItem from "../GetFormItem";
|
|
11
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -32,9 +35,29 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
32
35
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
36
|
}) : null;
|
|
34
37
|
});
|
|
38
|
+
_defineProperty(this, "copyHandle", function (text) {
|
|
39
|
+
copy(text);
|
|
40
|
+
message.success('复制成功');
|
|
41
|
+
});
|
|
35
42
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) === undefined) {
|
|
44
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
47
|
+
onClick: function onClick(e) {
|
|
48
|
+
return e.stopPropagation();
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")], /*#__PURE__*/React.createElement("span", {
|
|
51
|
+
onClick: function onClick(e) {
|
|
52
|
+
_this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
53
|
+
e.stopPropagation();
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
56
|
+
style: {
|
|
57
|
+
paddingLeft: '4px',
|
|
58
|
+
cursor: 'pointer'
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
|
|
38
61
|
});
|
|
39
62
|
_defineProperty(this, "renderLog", function (r) {
|
|
40
63
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
@@ -44,8 +67,8 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
44
67
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
|
|
45
68
|
});
|
|
46
69
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
-
var
|
|
48
|
-
return (
|
|
70
|
+
var _record;
|
|
71
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--';
|
|
49
72
|
});
|
|
50
73
|
_defineProperty(this, "editRender", function (p) {
|
|
51
74
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -19,7 +19,7 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
19
19
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
21
|
getComponentValue: (r: Record) => any;
|
|
22
|
-
renderExport: (value: string, record: Record) =>
|
|
22
|
+
renderExport: (value: string, record: Record) => string;
|
|
23
23
|
editRender: (p: any) => React.JSX.Element;
|
|
24
24
|
filterConfig: (item: ColumnConfig) => {
|
|
25
25
|
searchDefaultConditions: "like";
|
|
@@ -47,8 +47,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
47
47
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
|
-
var
|
|
51
|
-
return (
|
|
50
|
+
var _ref;
|
|
51
|
+
return (_ref = "".concat(record === null || record === void 0 ? void 0 : record[_this.id])) !== null && _ref !== void 0 ? _ref : "--";
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function (p) {
|
|
54
54
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
@@ -17,7 +17,7 @@ declare class BasicFile implements ComponentInterface {
|
|
|
17
17
|
renderLog: (r: Record) => any;
|
|
18
18
|
getComponentValue: (r: Record) => any;
|
|
19
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
20
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @returns
|