@kmkf-fe-packages/services-components 2.0.79-beta.24 → 2.0.79-beta.25
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/components/AfterSalesOrderId/index.d.ts +10 -4
- package/dist/esm/components/AfterSalesOrderId/index.js +13 -10
- package/dist/esm/components/BS/common/expressCode.d.ts +10 -4
- package/dist/esm/components/BS/common/expressCode.js +22 -19
- package/dist/esm/components/BuyerNick/index.d.ts +18 -8
- package/dist/esm/components/BuyerNick/index.js +27 -14
- package/dist/esm/components/CommonMultiStatus/index.d.ts +8 -4
- package/dist/esm/components/CommonMultiStatus/index.js +79 -78
- package/dist/esm/components/Input/index.d.ts +14 -5
- package/dist/esm/components/Input/index.js +24 -18
- package/dist/esm/components/ReceiverName/index.d.ts +14 -4
- package/dist/esm/components/ReceiverName/index.js +16 -3
- package/dist/esm/components/Remark/index.d.ts +16 -6
- package/dist/esm/components/Remark/index.js +29 -16
- package/dist/esm/components/ShopName/index.d.ts +13 -3
- package/dist/esm/components/ShopName/index.js +16 -3
- package/dist/esm/components/TextArea/index.d.ts +16 -6
- package/dist/esm/components/TextArea/index.js +23 -10
- package/dist/esm/constant.d.ts +9 -0
- package/dist/esm/constant.js +25 -1
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/type.d.ts +17 -17
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
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 AfterSalesOrderId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
templateId?: string;
|
|
16
16
|
workOrderUniqueKey?: string;
|
|
17
17
|
suffixKey: string;
|
|
@@ -28,6 +28,12 @@ declare class AfterSalesOrderId implements ComponentInterface {
|
|
|
28
28
|
id: string;
|
|
29
29
|
name: string;
|
|
30
30
|
filterComponentType: "SelectInput";
|
|
31
|
+
props: {
|
|
32
|
+
filterOptions: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
31
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
38
|
formatFilterValue: (value: any) => any;
|
|
33
39
|
};
|
|
@@ -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
|
|
10
|
-
import { ApaasInput } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull, filterFn as _filterFn } from
|
|
14
|
-
import { SYMBOL, batchInput } from "../../constant";
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL, batchInput, SEARCH_OPTIONS_V2 } from "../../constant";
|
|
15
15
|
var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(options) {
|
|
16
16
|
var _this = this;
|
|
17
17
|
_classCallCheck(this, AfterSalesOrderId);
|
|
@@ -31,7 +31,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
|
|
|
31
31
|
_defineProperty(this, "suffixKey", void 0);
|
|
32
32
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
33
33
|
var _record;
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record :
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : '--');
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderLog", function (r) {
|
|
37
37
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
|
|
@@ -42,7 +42,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
|
|
|
42
42
|
});
|
|
43
43
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
44
44
|
var _record2;
|
|
45
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 :
|
|
45
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(this, "renderClient", function (record) {
|
|
48
48
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -59,7 +59,7 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
|
|
|
59
59
|
rules: _this.rules,
|
|
60
60
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
61
61
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
62
|
-
validateTrigger: [
|
|
62
|
+
validateTrigger: ['onBlur', 'onChange'],
|
|
63
63
|
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,
|
|
64
64
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
65
65
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
@@ -75,14 +75,17 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
|
|
|
75
75
|
// 过滤组件id
|
|
76
76
|
name: item.name,
|
|
77
77
|
// 过滤组件名称
|
|
78
|
-
filterComponentType:
|
|
78
|
+
filterComponentType: 'SelectInput',
|
|
79
|
+
props: {
|
|
80
|
+
filterOptions: SEARCH_OPTIONS_V2
|
|
81
|
+
},
|
|
79
82
|
filterFn: function filterFn(value) {
|
|
80
83
|
return function (i) {
|
|
81
84
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey)).includes(value);
|
|
82
85
|
};
|
|
83
86
|
},
|
|
84
87
|
formatFilterValue: function formatFilterValue(value) {
|
|
85
|
-
if (value.type ===
|
|
88
|
+
if (value.type === 'in') {
|
|
86
89
|
return batchInput(value.keywords);
|
|
87
90
|
} else {
|
|
88
91
|
return value;
|
|
@@ -103,6 +106,6 @@ var AfterSalesOrderId = /*#__PURE__*/_createClass(function AfterSalesOrderId(opt
|
|
|
103
106
|
this.isCombinationComponent = false;
|
|
104
107
|
this.canSort = true;
|
|
105
108
|
this.children = [];
|
|
106
|
-
this.dataType =
|
|
109
|
+
this.dataType = 'string';
|
|
107
110
|
});
|
|
108
111
|
export default AfterSalesOrderId;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ExpressCode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
formField: string;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
17
|
parentName: string;
|
|
18
18
|
constructor(options: PickOption);
|
|
19
19
|
renderClient: () => null;
|
|
@@ -28,6 +28,12 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
28
28
|
id: string;
|
|
29
29
|
name: string;
|
|
30
30
|
filterComponentType: "SelectInput";
|
|
31
|
+
props: {
|
|
32
|
+
filterOptions: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
31
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
38
|
formatFilterValue: (value: any) => any;
|
|
33
39
|
};
|
|
@@ -11,31 +11,31 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from 'react';
|
|
15
15
|
import { BsExpressRender } from "../../Common";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
17
|
-
import { SYMBOL, batchInput } from "../../../constant";
|
|
16
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { SEARCH_OPTIONS_V2, SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
19
|
BS_LOGISTICS: {
|
|
20
|
-
key:
|
|
20
|
+
key: 'bsLogisticsItem'
|
|
21
21
|
},
|
|
22
22
|
BS_E3_LOGISTICS: {
|
|
23
|
-
key:
|
|
23
|
+
key: 'bsE3LogisticsItem'
|
|
24
24
|
},
|
|
25
25
|
WLN_LOGISTICS: {
|
|
26
|
-
key:
|
|
26
|
+
key: 'wlnLogisticsItem'
|
|
27
27
|
},
|
|
28
28
|
WDT_LOGISTICS: {
|
|
29
|
-
key:
|
|
29
|
+
key: 'wdtLogisticsItem'
|
|
30
30
|
},
|
|
31
31
|
JST_LOGISTICS: {
|
|
32
|
-
key:
|
|
32
|
+
key: 'jstLogisticsItem'
|
|
33
33
|
},
|
|
34
34
|
KM_LOGISTICS: {
|
|
35
|
-
key:
|
|
35
|
+
key: 'kmLogisticsItem'
|
|
36
36
|
},
|
|
37
37
|
GY_LOGISTICS: {
|
|
38
|
-
key:
|
|
38
|
+
key: 'gyLogisticsItem'
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -60,7 +60,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
60
60
|
return null;
|
|
61
61
|
});
|
|
62
62
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
63
|
-
var _this$id$split = _this.id.split(
|
|
63
|
+
var _this$id$split = _this.id.split('_'),
|
|
64
64
|
_this$id$split2 = _slicedToArray(_this$id$split, 3),
|
|
65
65
|
key = _this$id$split2[0],
|
|
66
66
|
parentKey = _this$id$split2[1],
|
|
@@ -70,7 +70,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
70
70
|
}
|
|
71
71
|
return /*#__PURE__*/React.createElement(BsExpressRender, {
|
|
72
72
|
list: record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat(typeMap[_this.type].key)],
|
|
73
|
-
showField:
|
|
73
|
+
showField: 'code'
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -82,7 +82,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
82
82
|
});
|
|
83
83
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
84
84
|
var _record;
|
|
85
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record :
|
|
85
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
86
86
|
});
|
|
87
87
|
_defineProperty(this, "editRender", function () {
|
|
88
88
|
return null;
|
|
@@ -94,14 +94,17 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
94
94
|
type: item.type,
|
|
95
95
|
id: "".concat(item.id, "_").concat(subKey),
|
|
96
96
|
name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
|
|
97
|
-
filterComponentType:
|
|
97
|
+
filterComponentType: 'SelectInput',
|
|
98
|
+
props: {
|
|
99
|
+
filterOptions: SEARCH_OPTIONS_V2
|
|
100
|
+
},
|
|
98
101
|
filterFn: function filterFn(value) {
|
|
99
102
|
return function (i) {
|
|
100
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
103
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
|
|
101
104
|
};
|
|
102
105
|
},
|
|
103
106
|
formatFilterValue: function formatFilterValue(value) {
|
|
104
|
-
if (value.type ===
|
|
107
|
+
if (value.type === 'in') {
|
|
105
108
|
return batchInput(value.keywords);
|
|
106
109
|
} else {
|
|
107
110
|
return value;
|
|
@@ -120,14 +123,14 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
120
123
|
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
121
124
|
return Promise.resolve();
|
|
122
125
|
}
|
|
123
|
-
return Promise.reject(new Error(
|
|
126
|
+
return Promise.reject(new Error('只能输入数字和字母'));
|
|
124
127
|
}
|
|
125
128
|
}] : [];
|
|
126
|
-
this.align =
|
|
129
|
+
this.align = 'left';
|
|
127
130
|
this.width = (options === null || options === void 0 ? void 0 : options.width) || 150;
|
|
128
131
|
this.isCombinationComponent = false;
|
|
129
132
|
this.canSort = false;
|
|
130
|
-
this.dataType =
|
|
133
|
+
this.dataType = 'string';
|
|
131
134
|
this.children = [];
|
|
132
135
|
this.parentName = options === null || options === void 0 ? void 0 : options.parentName;
|
|
133
136
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
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 EBuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
16
|
-
compoundConfig: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
compoundConfig: ComponentInterface["compoundConfig"];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
19
19
|
renderClient: (record: any, params: any) => React.JSX.Element | null;
|
|
@@ -26,12 +26,22 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
26
26
|
renderExport: (value: any, record: any) => any;
|
|
27
27
|
editRender: (p: any) => React.JSX.Element;
|
|
28
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
|
-
searchDefaultConditions:
|
|
29
|
+
searchDefaultConditions: {
|
|
30
|
+
in: "in";
|
|
31
|
+
anylike: "anylike";
|
|
32
|
+
};
|
|
30
33
|
type: string;
|
|
31
34
|
id: string;
|
|
32
35
|
name: string;
|
|
33
|
-
filterComponentType: "
|
|
36
|
+
filterComponentType: "SelectInput";
|
|
37
|
+
props: {
|
|
38
|
+
filterOptions: {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
34
43
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
44
|
+
formatFilterValue: (value: any) => any;
|
|
35
45
|
};
|
|
36
46
|
}
|
|
37
47
|
export default EBuyerNick;
|
|
@@ -6,13 +6,13 @@ 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
|
|
10
|
-
import { BuyerNick } from
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { BuyerNick } from "@kmkf-fe-packages/basic-components";
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
-
import { SYMBOL } from "../../constant";
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
|
|
16
16
|
import wangImg from "../../commonComponents/Wangwang/img/wang.gif";
|
|
17
17
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
18
18
|
var _this = this,
|
|
@@ -36,7 +36,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
36
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
37
37
|
onClick: function onClick() {
|
|
38
38
|
var _record$_this$id, _record$_this$id2;
|
|
39
|
-
typeof params.openWangWang ===
|
|
39
|
+
typeof params.openWangWang === "function" && params.openWangWang(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, record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.buyerOpenUid);
|
|
40
40
|
}
|
|
41
41
|
}, /*#__PURE__*/React.createElement("img", {
|
|
42
42
|
alt: "\u8BF7\u70B9\u51FB\u76F4\u63A5\u8BBF\u95EE",
|
|
@@ -50,7 +50,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
50
50
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
51
51
|
id: _this.id,
|
|
52
52
|
label: _this.name,
|
|
53
|
-
value: (params === null || params === void 0 ? void 0 : params.platform) ===
|
|
53
|
+
value: (params === null || params === void 0 ? void 0 : params.platform) === "tb" ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.buyerNick
|
|
54
54
|
}) : null;
|
|
55
55
|
});
|
|
56
56
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -94,7 +94,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
94
94
|
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,
|
|
95
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
97
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
97
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
98
98
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
99
99
|
shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
|
|
100
100
|
shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
|
|
@@ -104,17 +104,30 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
104
104
|
});
|
|
105
105
|
_defineProperty(this, "filterConfig", function (item) {
|
|
106
106
|
return {
|
|
107
|
-
searchDefaultConditions:
|
|
107
|
+
searchDefaultConditions: {
|
|
108
|
+
in: SYMBOL.in,
|
|
109
|
+
anylike: SYMBOL.anylike
|
|
110
|
+
},
|
|
108
111
|
type: item.type,
|
|
109
112
|
id: "".concat(item.id, "_buyerNick"),
|
|
110
113
|
// 过滤组件id
|
|
111
114
|
name: item.name,
|
|
112
115
|
// 过滤组件名称
|
|
113
|
-
filterComponentType:
|
|
116
|
+
filterComponentType: "SelectInput",
|
|
117
|
+
props: {
|
|
118
|
+
filterOptions: SEARCH_OPTIONS
|
|
119
|
+
},
|
|
114
120
|
filterFn: function filterFn(value) {
|
|
115
121
|
return function (i) {
|
|
116
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
122
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "buyerNick")).includes(value);
|
|
117
123
|
};
|
|
124
|
+
},
|
|
125
|
+
formatFilterValue: function formatFilterValue(value) {
|
|
126
|
+
if (["in", "anylike"].includes(value.type)) {
|
|
127
|
+
return batchInput(value.keywords);
|
|
128
|
+
} else {
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
118
131
|
}
|
|
119
132
|
};
|
|
120
133
|
});
|
|
@@ -126,13 +139,13 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
126
139
|
this.isCombinationComponent = false;
|
|
127
140
|
this.canSort = true;
|
|
128
141
|
this.children = [];
|
|
129
|
-
this.dataType =
|
|
142
|
+
this.dataType = "string";
|
|
130
143
|
this.componentConfig = options.componentConfig;
|
|
131
144
|
this.effects = options.effects;
|
|
132
145
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
133
146
|
validator: function validator(_, value) {
|
|
134
147
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
135
|
-
return Promise.reject(new Error(
|
|
148
|
+
return Promise.reject(new Error("请输入买家昵称"));
|
|
136
149
|
}
|
|
137
150
|
return Promise.resolve();
|
|
138
151
|
}
|
|
@@ -140,11 +153,11 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
140
153
|
this.compoundConfig = [{
|
|
141
154
|
name: options.name,
|
|
142
155
|
id: "".concat(options.id, "_buyerNick"),
|
|
143
|
-
standardDateType:
|
|
156
|
+
standardDateType: "String"
|
|
144
157
|
}, {
|
|
145
158
|
name: "".concat(options.name, "(id)"),
|
|
146
159
|
id: "".concat(options.id, "_buyerOpenUid"),
|
|
147
|
-
standardDateType:
|
|
160
|
+
standardDateType: "String"
|
|
148
161
|
}];
|
|
149
162
|
}
|
|
150
163
|
// 渲染淘宝端的时候需要亮灯
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class CommonMultiStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
align: ALignType;
|
|
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
|
isSingleValue: boolean;
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -33,6 +33,10 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
33
33
|
label: string;
|
|
34
34
|
value: string;
|
|
35
35
|
};
|
|
36
|
+
filterOptions: {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
36
40
|
};
|
|
37
41
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
42
|
formatFilterValue: ((value: any) => any) | null;
|