@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.
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
- package/dist/esm/components/BS/BsExchange/index.js +166 -93
- package/dist/esm/components/BS/BsGoods/index.d.ts +4 -4
- package/dist/esm/components/BS/BsGoods/index.js +68 -54
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -7
- package/dist/esm/components/BS/BsLogistics/index.js +14 -14
- package/dist/esm/components/BS/BsReissue/index.d.ts +3 -0
- package/dist/esm/components/BS/BsReissue/index.js +72 -41
- package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +4 -4
- package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +7 -7
- package/dist/esm/components/BS/common/BsMemo.js +3 -3
- package/dist/esm/components/BS/common/BsType.js +3 -2
- package/dist/esm/components/BS/common/index.d.ts +10 -10
- package/dist/esm/components/BS/common/index.js +8 -8
- 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 +5 -0
- package/dist/esm/components/Common/index.js +102 -2
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/File/index.js +2 -2
- package/dist/esm/components/JST/JstLogistics/index.js +25 -8
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +5 -4
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
- package/dist/esm/components/Payment/BuyerNick.js +1 -2
- package/dist/esm/components/Payment/index.d.ts +1 -0
- package/dist/esm/components/Payment/index.js +9 -6
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/PostIng/index.js +2 -2
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +2 -3
- package/dist/esm/type.d.ts +3 -1
- package/package.json +4 -4
- /package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderCode.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderCode.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderNumber.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderNumber.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +0 -0
|
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import { ExpressData } from
|
|
13
|
-
import { ExpressLogistics } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { ExpressLogistics } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import Express from "../../Express";
|
|
15
15
|
import ExpressCode from "../../ExpressCode";
|
|
16
16
|
import GetFormItem from "../../GetFormItem";
|
|
@@ -66,9 +66,9 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
66
66
|
});
|
|
67
67
|
_defineProperty(this, "filterConfig", function (item) {
|
|
68
68
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
69
|
-
subKey:
|
|
69
|
+
subKey: 'bsLogisticsCompany'
|
|
70
70
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
71
|
-
subKey:
|
|
71
|
+
subKey: 'bsLogisticsCode'
|
|
72
72
|
}))];
|
|
73
73
|
});
|
|
74
74
|
this.name = options.name;
|
|
@@ -79,33 +79,33 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
79
79
|
this.componentConfig = options.componentConfig;
|
|
80
80
|
this.expressDateInstance = ExpressData.getInstance();
|
|
81
81
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
82
|
-
name:
|
|
82
|
+
name: '快递物流公司',
|
|
83
83
|
id: "".concat(this.id, "_bsLogisticsCompany")
|
|
84
84
|
}));
|
|
85
85
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
|
-
name:
|
|
86
|
+
name: '快递物流单号',
|
|
87
87
|
id: "".concat(this.id, "_bsLogisticsCode")
|
|
88
88
|
}));
|
|
89
89
|
this.isCombinationComponent = true;
|
|
90
90
|
this.canSort = false;
|
|
91
|
-
this.dataType =
|
|
91
|
+
this.dataType = 'object';
|
|
92
92
|
this.children = [this.express, this.expressCode];
|
|
93
93
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
94
94
|
validator: function validator(_, value) {
|
|
95
95
|
var _this$componentConfig4;
|
|
96
96
|
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
|
|
97
97
|
var _this$componentConfig5, _this$componentConfig6;
|
|
98
|
-
if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.
|
|
99
|
-
return Promise.reject(new Error(
|
|
100
|
-
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.
|
|
101
|
-
return Promise.reject(new Error(
|
|
98
|
+
if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showHeader) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
|
|
99
|
+
return Promise.reject(new Error('请选择物流公司'));
|
|
100
|
+
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showHeader) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
|
|
101
|
+
return Promise.reject(new Error('请输入物流单号'));
|
|
102
102
|
}
|
|
103
103
|
} else {
|
|
104
104
|
if (!(value !== null && value !== void 0 && value.company)) {
|
|
105
|
-
return Promise.reject(new Error(
|
|
105
|
+
return Promise.reject(new Error('请选择物流公司'));
|
|
106
106
|
}
|
|
107
107
|
if (!(value !== null && value !== void 0 && value.order)) {
|
|
108
|
-
return Promise.reject(new Error(
|
|
108
|
+
return Promise.reject(new Error('请输入物流单号'));
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return Promise.resolve();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { BsType, BsMemo } from "../common/index";
|
|
3
4
|
declare class BsReissue implements ComponentInterface {
|
|
4
5
|
name: string;
|
|
5
6
|
id: string;
|
|
@@ -13,6 +14,8 @@ declare class BsReissue implements ComponentInterface {
|
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
dataType: ComponentInterface["dataType"];
|
|
17
|
+
bsType: BsType;
|
|
18
|
+
bsMemo: BsMemo;
|
|
16
19
|
constructor(options: PickOption);
|
|
17
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
21
|
renderPc: () => null;
|
|
@@ -1,4 +1,10 @@
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
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."); }
|
|
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
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; }
|
|
2
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
10
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -10,15 +16,50 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
10
16
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
17
|
import React from "react";
|
|
12
18
|
import GetFormItem from "../../GetFormItem";
|
|
13
|
-
import { GoodImage } from "../../Common";
|
|
14
19
|
import ItemView from "../../../commonComponents/ItemView";
|
|
15
20
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
21
|
import { BsReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
17
22
|
import { SYMBOL } from "../../../constant";
|
|
18
|
-
import {
|
|
23
|
+
import { BsGoodsTable } from "../../Common";
|
|
24
|
+
import { BsType, BsMemo, BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
|
|
25
|
+
var childHeaderMap = {
|
|
26
|
+
pic: {
|
|
27
|
+
component: BsHeaderPic,
|
|
28
|
+
name: "图片"
|
|
29
|
+
},
|
|
30
|
+
name: {
|
|
31
|
+
component: BsHeaderName,
|
|
32
|
+
name: "名称"
|
|
33
|
+
},
|
|
34
|
+
code: {
|
|
35
|
+
component: BsHeaderCode,
|
|
36
|
+
name: "编码"
|
|
37
|
+
},
|
|
38
|
+
sku: {
|
|
39
|
+
component: BsHeaderSku,
|
|
40
|
+
name: "sku编码"
|
|
41
|
+
},
|
|
42
|
+
money: {
|
|
43
|
+
component: BsHeaderMoney,
|
|
44
|
+
name: "实付金额"
|
|
45
|
+
},
|
|
46
|
+
number: {
|
|
47
|
+
component: BsHeaderNumber,
|
|
48
|
+
name: "数量"
|
|
49
|
+
},
|
|
50
|
+
share: {
|
|
51
|
+
component: BsHeaderShare,
|
|
52
|
+
name: "分摊价"
|
|
53
|
+
},
|
|
54
|
+
type: {
|
|
55
|
+
component: BsHeaderType,
|
|
56
|
+
name: "赠品类型"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
19
59
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
20
60
|
var _this = this,
|
|
21
|
-
|
|
61
|
+
_options$componentCon,
|
|
62
|
+
_this$componentConfig3;
|
|
22
63
|
_classCallCheck(this, BsReissue);
|
|
23
64
|
_defineProperty(this, "name", void 0);
|
|
24
65
|
_defineProperty(this, "id", void 0);
|
|
@@ -32,15 +73,19 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
32
73
|
_defineProperty(this, "canSort", void 0);
|
|
33
74
|
_defineProperty(this, "children", void 0);
|
|
34
75
|
_defineProperty(this, "dataType", void 0);
|
|
76
|
+
_defineProperty(this, "bsType", void 0);
|
|
77
|
+
_defineProperty(this, "bsMemo", void 0);
|
|
35
78
|
_defineProperty(this, "renderClient", function (record) {
|
|
36
|
-
|
|
79
|
+
var _this$componentConfig;
|
|
80
|
+
console.log("bsreissue", record);
|
|
81
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), /*#__PURE__*/React.createElement(ItemView, {
|
|
37
82
|
id: _this.id,
|
|
38
83
|
label: _this.name,
|
|
39
|
-
value: /*#__PURE__*/React.createElement(
|
|
40
|
-
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
41
|
-
|
|
84
|
+
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
85
|
+
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].bsReissueGoods) || [],
|
|
86
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
42
87
|
})
|
|
43
|
-
}) : null;
|
|
88
|
+
})) : null;
|
|
44
89
|
});
|
|
45
90
|
_defineProperty(this, "renderPc", function () {
|
|
46
91
|
return null;
|
|
@@ -55,7 +100,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
55
100
|
return null;
|
|
56
101
|
});
|
|
57
102
|
_defineProperty(this, "editRender", function (p) {
|
|
58
|
-
var _this$
|
|
103
|
+
var _this$componentConfig2, _this$effects, _this$effects2;
|
|
59
104
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
105
|
title: _this.name,
|
|
61
106
|
name: _this.id,
|
|
@@ -63,7 +108,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
63
108
|
required: false,
|
|
64
109
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
110
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
66
|
-
maxLength: ((_this$
|
|
111
|
+
maxLength: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.maxLength) || 20,
|
|
67
112
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
68
113
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
69
114
|
width: "90%"
|
|
@@ -100,41 +145,27 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
100
145
|
this.formField = "".concat(options.id);
|
|
101
146
|
this.type = options.type;
|
|
102
147
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
|
-
this.isCombinationComponent =
|
|
148
|
+
this.isCombinationComponent = true;
|
|
104
149
|
this.canSort = false;
|
|
105
|
-
this.
|
|
106
|
-
id: "".concat(options.id
|
|
150
|
+
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
151
|
+
id: "".concat(options.id),
|
|
107
152
|
name: "补发类型"
|
|
108
|
-
}))
|
|
109
|
-
|
|
153
|
+
}));
|
|
154
|
+
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
155
|
+
id: "".concat(options.id),
|
|
110
156
|
name: "补发备注"
|
|
111
|
-
}))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
name: "sku编码",
|
|
122
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
123
|
-
})), new BsChildMoney(_objectSpread(_objectSpread({}, options), {}, {
|
|
124
|
-
name: "实付金额",
|
|
125
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
126
|
-
})), new BsChildNumber(_objectSpread(_objectSpread({}, options), {}, {
|
|
127
|
-
name: "数量",
|
|
128
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
129
|
-
})), new BsChildShare(_objectSpread(_objectSpread({}, options), {}, {
|
|
130
|
-
name: "分摊价",
|
|
131
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
132
|
-
})), new BsChildType(_objectSpread(_objectSpread({}, options), {}, {
|
|
133
|
-
name: "赠品类型",
|
|
134
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
135
|
-
}))];
|
|
157
|
+
}));
|
|
158
|
+
this.children = [this.bsType, this.bsMemo].concat(_toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
|
|
159
|
+
if (childHeaderMap[next]) {
|
|
160
|
+
prv.push(new childHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
161
|
+
name: childHeaderMap[next].name,
|
|
162
|
+
id: "".concat(options.id, "_bsReissueGoods")
|
|
163
|
+
})));
|
|
164
|
+
}
|
|
165
|
+
return prv;
|
|
166
|
+
}, [])));
|
|
136
167
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
137
|
-
this.rules = this !== null && this !== void 0 && (_this$
|
|
168
|
+
this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
138
169
|
required: true,
|
|
139
170
|
validator: function validator(_, value) {
|
|
140
171
|
var _value$bsReissueGoods;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BsChildPic implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
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[];
|
|
@@ -5,10 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
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
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
-
import React from
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import ItemView from "../../../commonComponents/ItemView";
|
|
10
10
|
import { BsGoodPic } from "../../Common";
|
|
11
|
-
import { isNull } from
|
|
11
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
13
13
|
var _this = this;
|
|
14
14
|
_classCallCheck(this, BsChildPic);
|
|
@@ -33,7 +33,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
33
33
|
});
|
|
34
34
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
35
|
var _BsGoodPic;
|
|
36
|
-
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic :
|
|
36
|
+
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "renderLog", function (r) {
|
|
39
39
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -41,14 +41,14 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
43
|
var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
|
|
44
|
-
next[
|
|
44
|
+
next['pic'] && prv.push(next['pic']);
|
|
45
45
|
return prv;
|
|
46
46
|
}, []);
|
|
47
47
|
return list;
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
50
|
var _this$getComponentVal;
|
|
51
|
-
return (_this$getComponentVal = _this.getComponentValue(record).join(
|
|
51
|
+
return (_this$getComponentVal = _this.getComponentValue(record).join(',')) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function () {
|
|
54
54
|
return null;
|
|
@@ -62,11 +62,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
62
62
|
this.formField = options.id;
|
|
63
63
|
this.type = options.type;
|
|
64
64
|
this.componentConfig = options.componentConfig;
|
|
65
|
-
this.align =
|
|
65
|
+
this.align = 'left';
|
|
66
66
|
this.width = 200;
|
|
67
67
|
this.isCombinationComponent = false;
|
|
68
68
|
this.canSort = true;
|
|
69
|
-
this.dataType =
|
|
69
|
+
this.dataType = 'string';
|
|
70
70
|
this.children = [];
|
|
71
71
|
});
|
|
72
72
|
export default BsChildPic;
|
|
@@ -39,9 +39,9 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
39
39
|
return _this.renderPc(undefined, r);
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
42
|
-
var _find, _this$componentConfig;
|
|
43
|
-
var type = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][0] : "";
|
|
44
|
-
var memo = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][1] : "";
|
|
42
|
+
var _ref, _r$_this$id, _r$_this$id2, _ref2, _r$_this$id3, _r$_this$id4, _find, _this$componentConfig;
|
|
43
|
+
var type = r !== null && r !== void 0 && r[_this.id] ? (_ref = (r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.bsReissueType) || (r === null || r === void 0 ? void 0 : (_r$_this$id2 = r[_this.id]) === null || _r$_this$id2 === void 0 ? void 0 : _r$_this$id2.bsExchangeType)) === null || _ref === void 0 ? void 0 : _ref[0] : "";
|
|
44
|
+
var memo = r !== null && r !== void 0 && r[_this.id] ? (_ref2 = (r === null || r === void 0 ? void 0 : (_r$_this$id3 = r[_this.id]) === null || _r$_this$id3 === void 0 ? void 0 : _r$_this$id3.bsReissueType) || (r === null || r === void 0 ? void 0 : (_r$_this$id4 = r[_this.id]) === null || _r$_this$id4 === void 0 ? void 0 : _r$_this$id4.bsExchangeType)) === null || _ref2 === void 0 ? void 0 : _ref2[1] : "";
|
|
45
45
|
var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
46
46
|
return item.value === type;
|
|
47
47
|
})) === null || _find === void 0 ? void 0 : _find.children;
|
|
@@ -40,8 +40,9 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
40
40
|
return _this.renderPc(undefined, r);
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
|
-
var _find, _this$componentConfig;
|
|
44
|
-
var type = r !== null && r !== void 0 && r[_this.id] ? r === null || r === void 0 ? void 0 : r[_this.id][0] : "";
|
|
43
|
+
var _ref, _r$_this$id, _r$_this$id2, _find, _this$componentConfig;
|
|
44
|
+
var type = r !== null && r !== void 0 && r[_this.id] ? (_ref = (r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.bsReissueType) || (r === null || r === void 0 ? void 0 : (_r$_this$id2 = r[_this.id]) === null || _r$_this$id2 === void 0 ? void 0 : _r$_this$id2.bsExchangeType)) === null || _ref === void 0 ? void 0 : _ref[0] : "";
|
|
45
|
+
console.log("bstype", r, _this.id, type);
|
|
45
46
|
var text = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
46
47
|
return item.value === type;
|
|
47
48
|
})) === null || _find === void 0 ? void 0 : _find.label;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { default as BsType } from
|
|
2
|
-
export { default as BsMemo } from
|
|
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
|
|
1
|
+
export { default as BsType } from './BsType';
|
|
2
|
+
export { default as BsMemo } from './BsMemo';
|
|
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';
|
|
@@ -1,10 +1,10 @@
|
|
|
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";
|
|
@@ -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
|
/**
|
|
@@ -21,4 +21,9 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
21
21
|
}) => React.JSX.Element;
|
|
22
22
|
export declare const BsExchangeList: ({ list }: 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";
|
|
@@ -285,4 +289,100 @@ export var BsGoodPic = function BsGoodPic(list) {
|
|
|
285
289
|
src: t
|
|
286
290
|
});
|
|
287
291
|
});
|
|
292
|
+
};
|
|
293
|
+
export var BsGoodsTable = function BsGoodsTable(_ref9) {
|
|
294
|
+
var list = _ref9.list,
|
|
295
|
+
showHeader = _ref9.showHeader,
|
|
296
|
+
_ref9$text = _ref9.text,
|
|
297
|
+
text = _ref9$text === void 0 ? "" : _ref9$text;
|
|
298
|
+
//商品信息
|
|
299
|
+
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
300
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
301
|
+
return [{
|
|
302
|
+
dataIndex: "pic",
|
|
303
|
+
title: "\u56FE\u7247",
|
|
304
|
+
align: "center",
|
|
305
|
+
ellipsis: true,
|
|
306
|
+
width: 100,
|
|
307
|
+
render: function render(val) {
|
|
308
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
309
|
+
width: 60,
|
|
310
|
+
src: val
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
dataIndex: "name",
|
|
315
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
316
|
+
align: "center",
|
|
317
|
+
ellipsis: true,
|
|
318
|
+
width: 100
|
|
319
|
+
}, {
|
|
320
|
+
dataIndex: "code",
|
|
321
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
322
|
+
align: "center",
|
|
323
|
+
ellipsis: true,
|
|
324
|
+
width: 100
|
|
325
|
+
}, {
|
|
326
|
+
dataIndex: "sku",
|
|
327
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
328
|
+
align: "center",
|
|
329
|
+
ellipsis: true,
|
|
330
|
+
width: 100
|
|
331
|
+
}, {
|
|
332
|
+
dataIndex: "money",
|
|
333
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
334
|
+
align: "center",
|
|
335
|
+
ellipsis: true,
|
|
336
|
+
width: 100
|
|
337
|
+
}, {
|
|
338
|
+
dataIndex: "number",
|
|
339
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
340
|
+
align: "center",
|
|
341
|
+
ellipsis: true,
|
|
342
|
+
width: 100,
|
|
343
|
+
render: function render(val, record, index) {
|
|
344
|
+
return /*#__PURE__*/React.createElement("span", null, val);
|
|
345
|
+
}
|
|
346
|
+
}, {
|
|
347
|
+
dataIndex: "share",
|
|
348
|
+
title: "\u5206\u644A\u4EF7",
|
|
349
|
+
align: "center",
|
|
350
|
+
ellipsis: true,
|
|
351
|
+
width: 70
|
|
352
|
+
}, {
|
|
353
|
+
dataIndex: "type",
|
|
354
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
355
|
+
align: "center",
|
|
356
|
+
ellipsis: true,
|
|
357
|
+
width: 100
|
|
358
|
+
}];
|
|
359
|
+
};
|
|
360
|
+
var newColumns = useMemo(function () {
|
|
361
|
+
var columnList = [{
|
|
362
|
+
dataIndex: "",
|
|
363
|
+
title: "序号",
|
|
364
|
+
align: "center",
|
|
365
|
+
ellipsis: true,
|
|
366
|
+
width: 50,
|
|
367
|
+
render: function render(val, record, index) {
|
|
368
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
369
|
+
}
|
|
370
|
+
}].concat(_toConsumableArray(GOODS_INFO_COLUMNS(text).filter(function (t) {
|
|
371
|
+
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
372
|
+
})));
|
|
373
|
+
return columnList;
|
|
374
|
+
}, [showHeader, list]);
|
|
375
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
376
|
+
columns: newColumns,
|
|
377
|
+
dataSource: list,
|
|
378
|
+
rowKey: "id",
|
|
379
|
+
size: "small",
|
|
380
|
+
pagination: false,
|
|
381
|
+
scroll: {
|
|
382
|
+
x: "100%"
|
|
383
|
+
},
|
|
384
|
+
locale: {
|
|
385
|
+
emptyText: "暂无数据"
|
|
386
|
+
}
|
|
387
|
+
});
|
|
288
388
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
|
|
3
3
|
export declare type ButtonType = typeof DateType[number];
|
|
4
4
|
export interface ApaasDate {
|
|
5
5
|
dateType?: ButtonType;
|
|
6
6
|
[propName: string]: any;
|
|
7
7
|
}
|
|
8
|
-
declare const Date: (props: ApaasDate) => JSX.Element;
|
|
8
|
+
declare const Date: (props: ApaasDate) => React.JSX.Element;
|
|
9
9
|
export default Date;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
|
|
3
3
|
export default ItemEncode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExpressCompany: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExpressCompany: (props: any) => React.JSX.Element;
|
|
3
3
|
export default ExpressCompany;
|
|
@@ -26,7 +26,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
27
|
_defineProperty(this, "dataType", void 0);
|
|
28
28
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
29
|
-
var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id
|
|
29
|
+
var fileList = (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || [];
|
|
30
30
|
if (!fileList.length) {
|
|
31
31
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
32
32
|
}
|
|
@@ -47,7 +47,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
47
47
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_file")]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
48
48
|
id: _this.id,
|
|
49
49
|
label: _this.name,
|
|
50
|
-
value: _this.renderPc(null, record
|
|
50
|
+
value: _this.renderPc(null, record)
|
|
51
51
|
}) : null;
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function () {
|