@bit-sun/business-component 3.1.10-alpha.5 → 3.1.10-alpha.6
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/index.esm.js
CHANGED
|
@@ -8323,13 +8323,7 @@ var hasDictSharingType = (_getDictionarySource = getDictionarySource$1('UC000013
|
|
|
8323
8323
|
var sharingTypeDataList = hasDictSharingType && getDictionarySource$1('UC000013') || sharingType;
|
|
8324
8324
|
function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hiddenFields) {
|
|
8325
8325
|
// 默认type === 'supplier' 供应商选择器
|
|
8326
|
-
var requestConfig = _objectSpread2({
|
|
8327
|
-
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8328
|
-
filter: 'qp-name,code-orGroup,like',
|
|
8329
|
-
otherParams: {
|
|
8330
|
-
sorter: 'desc-id'
|
|
8331
|
-
}
|
|
8332
|
-
}, requestConfigProp);
|
|
8326
|
+
var requestConfig = _objectSpread2({}, requestConfigProp);
|
|
8333
8327
|
/*
|
|
8334
8328
|
* 处理 格式化下拉框数据源
|
|
8335
8329
|
* reData 必传 promise返回响应的数据 格式为[{},{},{},...] Promise.all第一个参数数组有多少个数组长度就是多少,其中每个对象为每次请求的结果数据
|
|
@@ -8389,6 +8383,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8389
8383
|
tableColumns: []
|
|
8390
8384
|
}, modalTableBusProps);
|
|
8391
8385
|
var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
|
|
8386
|
+
//自定义 配置取外层传过来的
|
|
8387
|
+
if (type === 'custom') {
|
|
8388
|
+
modalTableProps = _objectSpread2({
|
|
8389
|
+
requestConfig: requestConfig
|
|
8390
|
+
}, modalTableBusProps);
|
|
8391
|
+
}
|
|
8392
8392
|
// 供应商选择器
|
|
8393
8393
|
if (type === 'supplier') {
|
|
8394
8394
|
tableSearchForm = [{
|
|
@@ -10818,7 +10818,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10818
10818
|
|
|
10819
10819
|
var MemoSearchSelect = /*#__PURE__*/React$1.memo(SearchSelect);
|
|
10820
10820
|
var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10821
|
-
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || '
|
|
10821
|
+
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'custom';
|
|
10822
10822
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
10823
10823
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
10824
10824
|
formSelectFix: handleDefaultPrefixUrl(businessType)
|
package/dist/index.js
CHANGED
|
@@ -8346,13 +8346,7 @@ var hasDictSharingType = (_getDictionarySource = getDictionarySource$1('UC000013
|
|
|
8346
8346
|
var sharingTypeDataList = hasDictSharingType && getDictionarySource$1('UC000013') || sharingType;
|
|
8347
8347
|
function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hiddenFields) {
|
|
8348
8348
|
// 默认type === 'supplier' 供应商选择器
|
|
8349
|
-
var requestConfig = _objectSpread2({
|
|
8350
|
-
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8351
|
-
filter: 'qp-name,code-orGroup,like',
|
|
8352
|
-
otherParams: {
|
|
8353
|
-
sorter: 'desc-id'
|
|
8354
|
-
}
|
|
8355
|
-
}, requestConfigProp);
|
|
8349
|
+
var requestConfig = _objectSpread2({}, requestConfigProp);
|
|
8356
8350
|
/*
|
|
8357
8351
|
* 处理 格式化下拉框数据源
|
|
8358
8352
|
* reData 必传 promise返回响应的数据 格式为[{},{},{},...] Promise.all第一个参数数组有多少个数组长度就是多少,其中每个对象为每次请求的结果数据
|
|
@@ -8412,6 +8406,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8412
8406
|
tableColumns: []
|
|
8413
8407
|
}, modalTableBusProps);
|
|
8414
8408
|
var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
|
|
8409
|
+
//自定义 配置取外层传过来的
|
|
8410
|
+
if (type === 'custom') {
|
|
8411
|
+
modalTableProps = _objectSpread2({
|
|
8412
|
+
requestConfig: requestConfig
|
|
8413
|
+
}, modalTableBusProps);
|
|
8414
|
+
}
|
|
8415
8415
|
// 供应商选择器
|
|
8416
8416
|
if (type === 'supplier') {
|
|
8417
8417
|
tableSearchForm = [{
|
|
@@ -10841,7 +10841,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
10841
10841
|
|
|
10842
10842
|
var MemoSearchSelect = /*#__PURE__*/React__default['default'].memo(SearchSelect);
|
|
10843
10843
|
var BusinessSearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
10844
|
-
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || '
|
|
10844
|
+
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'custom';
|
|
10845
10845
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
10846
10846
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
10847
10847
|
formSelectFix: handleDefaultPrefixUrl(businessType)
|
package/package.json
CHANGED
|
@@ -13,11 +13,11 @@ const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013'
|
|
|
13
13
|
export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: any, modalTableBusProps?:any, hiddenFields?:any) {
|
|
14
14
|
// 默认type === 'supplier' 供应商选择器
|
|
15
15
|
let requestConfig = {
|
|
16
|
-
url: `${prefixUrl.selectPrefix}/supplier`,
|
|
17
|
-
filter: 'qp-name,code-orGroup,like', // 过滤参数
|
|
18
|
-
otherParams: {
|
|
19
|
-
|
|
20
|
-
}, // 默认参数
|
|
16
|
+
// url: `${prefixUrl.selectPrefix}/supplier`,
|
|
17
|
+
// filter: 'qp-name,code-orGroup,like', // 过滤参数
|
|
18
|
+
// otherParams: {
|
|
19
|
+
// sorter: 'desc-id'
|
|
20
|
+
// }, // 默认参数
|
|
21
21
|
...requestConfigProp
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -74,6 +74,14 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
74
74
|
}
|
|
75
75
|
let needModalTable = modalTableBusProps?.needModalTable !== undefined ? modalTableBusProps?.needModalTable : true;
|
|
76
76
|
|
|
77
|
+
|
|
78
|
+
//自定义 配置取外层传过来的
|
|
79
|
+
if (type === 'custom') {
|
|
80
|
+
modalTableProps = {
|
|
81
|
+
requestConfig,
|
|
82
|
+
...modalTableBusProps,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
77
85
|
// 供应商选择器
|
|
78
86
|
if(type === 'supplier') {
|
|
79
87
|
tableSearchForm = [
|
|
@@ -13,7 +13,7 @@ import SearchSelect from '@/components/Functional/SearchSelect';
|
|
|
13
13
|
const MemoSearchSelect = React.memo(SearchSelect)
|
|
14
14
|
|
|
15
15
|
const BusinessSearchSelect = forwardRef((props: any, ref: any) => {
|
|
16
|
-
const businessType = props?.selectBusinessType || '
|
|
16
|
+
const businessType = props?.selectBusinessType || 'custom';
|
|
17
17
|
const prefixUrl = props?.prefixUrl || { selectPrefix: handleDefaultPrefixUrl(businessType), formSelectFix: handleDefaultPrefixUrl(businessType) };
|
|
18
18
|
const innerRef = useRef();
|
|
19
19
|
|