@bit-sun/business-component 4.0.13-alpha.8 → 4.2.0-aiwei-alpha.1
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/.umirc.ts +21 -10
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +11 -8
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -6
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -0
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/ModalUtils/index.d.ts +8 -0
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/utils.d.ts +4 -2
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +9 -8
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +21 -4
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +22 -5
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +15 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +3 -3
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -4
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +4206 -2108
- package/dist/index.js +4215 -2106
- package/dist/plugin/TableColumnSetting/index.d.ts +6 -5
- package/dist/utils/RequestCacheManager.d.ts +82 -0
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/cachedRequest.d.ts +76 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/utils.d.ts +41 -0
- package/package.json +16 -14
- package/src/assets/btn-cancel.svg +3 -0
- package/src/assets/btn-copy.svg +3 -0
- package/src/assets/btn-delete.svg +2 -29
- package/src/assets/btn-edit.svg +2 -19
- package/src/assets/btn-hangUp.svg +3 -0
- package/src/assets/btn-print.svg +3 -0
- package/src/assets/btn-refresh.svg +3 -0
- package/src/assets/btn-unhook.svg +3 -0
- package/src/components/Business/AddSelectBusiness/index.md +8 -2
- package/src/components/Business/AddSelectBusiness/index.tsx +4 -1
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +1 -1
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +1 -1
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +2 -2
- package/src/components/Business/BsLayouts/service.ts +1 -1
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +6 -5
- package/src/components/Business/BsSulaQueryTable/index.less +5 -3
- package/src/components/Business/BsSulaQueryTable/index.md +45 -32
- package/src/components/Business/BsSulaQueryTable/index.tsx +154 -76
- package/src/components/Business/BsSulaQueryTable/setting.tsx +47 -11
- package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
- package/src/components/Business/BsSulaQueryTable/utils.tsx +15 -12
- package/src/components/Business/CommodityEntry/index.md +1 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/DetailPageWrapper/index.less +1 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
- package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/JsonQueryTable/function.ts +1 -1
- package/src/components/Business/JsonQueryTable/index.tsx +1 -1
- package/src/components/Business/ModalUtils/index.tsx +45 -0
- package/src/components/Business/PropertyModal/index.tsx +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +625 -76
- package/src/components/Business/SearchSelect/index.md +4 -4
- package/src/components/Business/SearchSelect/utils.ts +27 -5
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/components/Business/columnSettingTable/columnSetting.tsx +28 -12
- package/src/components/Business/columnSettingTable/index.less +5 -3
- package/src/components/Business/columnSettingTable/index.md +200 -136
- package/src/components/Business/columnSettingTable/index.tsx +168 -39
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +188 -56
- package/src/components/Functional/AddSelect/helps.ts +1 -1
- package/src/components/Functional/AddSelect/index.tsx +132 -13
- package/src/components/Functional/BillEntry/index.less +3 -0
- package/src/components/Functional/BillEntry/index.tsx +1 -1
- package/src/components/Functional/DataImport/index.tsx +1 -1
- package/src/components/Functional/DataValidation/index.md +1 -0
- package/src/components/Functional/DataValidation/index.tsx +161 -27
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +1 -1
- package/src/components/Functional/QueryMutipleInput/index.tsx +12 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +3 -2
- package/src/components/Functional/SearchSelect/index.less +4 -0
- package/src/components/Functional/SearchSelect/index.tsx +68 -24
- package/src/components/Functional/SearchSelect/utils.tsx +17 -11
- package/src/components/Functional/TreeSearchSelect/index.tsx +3 -2
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +1 -0
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +11 -2
- package/src/components/Solution/RuleComponent/index.js +75 -4
- package/src/components/Solution/RuleComponent/ruleFiled.js +26 -2
- package/src/components/Solution/RuleComponent/services.ts +1 -1
- package/src/components/Solution/RuleSetter/service.js +1 -1
- package/src/index.ts +3 -0
- package/src/plugin/TableColumnSetting/index.less +5 -3
- package/src/plugin/TableColumnSetting/index.tsx +80 -13
- package/src/styles/bsDefault.less +9 -3
- package/src/utils/RequestCacheManager.ts +213 -0
- package/src/utils/RequestCache_Examples.md +137 -0
- package/src/utils/RequestCache_README.md +170 -0
- package/src/utils/TableUtils.less +1 -1
- package/src/utils/cachedRequest.ts +288 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/request.ts +8 -4
- package/src/utils/requestUtils.ts +1 -1
- package/src/utils/utils.ts +41 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// 此文件用于 处理业务组件 所用到的公共方法
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status, employeeType, orgType, nodeType, personDataSourceType } from './common';
|
|
4
|
-
import { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleHiddenFields, handleHiddenFieldsRequest, getFieldIndex } from './utils';
|
|
4
|
+
import { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleHiddenFields, handleHiddenFieldsRequest, getFieldIndex, getQueryHeadersList, getQueryHeadersItem } from './utils';
|
|
5
5
|
import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/components/Business/BsSulaQueryTable/utils';
|
|
6
6
|
import { getSkuImg } from '@/utils/TableUtils';
|
|
7
7
|
import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8
8
|
import { Image } from 'antd';
|
|
9
|
+
import { isBoolean } from 'lodash';
|
|
9
10
|
|
|
10
11
|
const hasDictSharingType = getDictionarySource('UC000013')?.length;
|
|
11
12
|
const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
|
|
12
13
|
|
|
13
14
|
export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
14
15
|
const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
|
|
15
|
-
|
|
16
|
+
|
|
16
17
|
// 默认type === 'supplier' 供应商选择器
|
|
17
18
|
let requestConfig = {
|
|
18
19
|
init: true,
|
|
@@ -42,29 +43,40 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
// 格式化树选择器数据源
|
|
45
|
-
const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any) => {
|
|
46
|
-
const haveChildren = Array.isArray(treeDataItem
|
|
46
|
+
const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any, childrenKey?: any) => {
|
|
47
|
+
const haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
|
|
47
48
|
return {
|
|
48
49
|
title: treeDataItem[resKeyValue[1]],
|
|
49
50
|
value: treeDataItem[resKeyValue[0]],
|
|
50
51
|
parentId: treeDataItem.parent,
|
|
51
52
|
data: { ...treeDataItem },
|
|
52
53
|
isLeaf: !haveChildren,
|
|
53
|
-
disabled: disabledJudge!==undefined? disabledJudge : haveChildren,
|
|
54
|
-
children: haveChildren ? treeDataItem.
|
|
54
|
+
disabled: disabledJudge !== undefined ? isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
|
|
55
|
+
children: haveChildren ? treeDataItem[childrenKey].map((i: any) => mapSearchTree(i, resKeyValue, disabledJudge, childrenKey)) : [],
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
|
-
const formatTreeDataSource = (
|
|
58
|
+
const formatTreeDataSource = (
|
|
59
|
+
reData: any,
|
|
60
|
+
position: number,
|
|
61
|
+
changePosition: number,
|
|
62
|
+
changeSearchForm: any,
|
|
63
|
+
resKeyValue=['id', 'name'],
|
|
64
|
+
childrenKey = 'children',
|
|
65
|
+
nodeDisabledJudge?: (data: any) => boolean, // 树节点能不能选 函数判断
|
|
66
|
+
) => {
|
|
58
67
|
let data = reData && reData[position]?.data;
|
|
59
68
|
let disabledJudge;
|
|
60
69
|
if(data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
|
|
61
70
|
data = [data];
|
|
62
71
|
disabledJudge=false
|
|
63
72
|
}
|
|
73
|
+
if(nodeDisabledJudge) {
|
|
74
|
+
disabledJudge = nodeDisabledJudge;
|
|
75
|
+
}
|
|
64
76
|
const formatData = (data &&
|
|
65
77
|
Array.isArray(data) &&
|
|
66
78
|
data.length &&
|
|
67
|
-
data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge))) ||
|
|
79
|
+
data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey))) ||
|
|
68
80
|
[]
|
|
69
81
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
70
82
|
}
|
|
@@ -78,6 +90,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
78
90
|
}
|
|
79
91
|
let needModalTable = modalTableBusProps?.needModalTable !== undefined ? modalTableBusProps?.needModalTable : true;
|
|
80
92
|
|
|
93
|
+
const extralHeaders = requestConfigProp?.extralHeaders; // 拿到业务方设置的-选择器的额外请求头 不传则无,传了选择器查询接口传。
|
|
94
|
+
let querySelectHeadersList = modalTableBusProps?.querySelectHeadersList||[]; // 控制 选择器弹窗中查询条件额外请求头的列表--isOpen 是否开启, 设置true,默认取选择器的请求头;false则没有请求头。extralHeaders:当设置且isOpen为true时,取设置的请求头。queryKey为查询条件的key值。
|
|
95
|
+
|
|
81
96
|
// 供应商选择器
|
|
82
97
|
if(type === 'supplier') {
|
|
83
98
|
selectProps = {
|
|
@@ -141,21 +156,22 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
141
156
|
} },
|
|
142
157
|
{ name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
|
|
143
158
|
]
|
|
159
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
144
160
|
Promise.all([
|
|
145
161
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
146
162
|
pageSize: 5000,
|
|
147
163
|
currentPage: 1,
|
|
148
164
|
'qp-companyType-eq': '30',
|
|
149
|
-
}),
|
|
165
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
150
166
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
151
167
|
pageSize: 5000,
|
|
152
168
|
currentPage: 1,
|
|
153
|
-
}),
|
|
169
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
154
170
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
155
171
|
pageSize: 5000,
|
|
156
172
|
currentPage: 1,
|
|
157
173
|
'qp-companyType-eq': '20',
|
|
158
|
-
})
|
|
174
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in'))
|
|
159
175
|
]).then((x: any)=>{
|
|
160
176
|
formatSource(x,0, 2, tableSearchForm);
|
|
161
177
|
formatSource(x,1, 3, tableSearchForm);
|
|
@@ -251,8 +267,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
251
267
|
},
|
|
252
268
|
} },
|
|
253
269
|
]
|
|
270
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
254
271
|
Promise.all([
|
|
255
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`,
|
|
272
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`,{},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
256
273
|
]).then((x: any)=>{
|
|
257
274
|
const firstElement = x?.[0];
|
|
258
275
|
const allList = firstElement && [firstElement, firstElement];
|
|
@@ -327,7 +344,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
327
344
|
}
|
|
328
345
|
tableSearchForm = [
|
|
329
346
|
{ name: 'qp-skuCode-in', label: 'SKU编码', field: {
|
|
330
|
-
type:'multipleQuerySearchSelect',
|
|
347
|
+
type:'multipleQuerySearchSelect',
|
|
331
348
|
props: {
|
|
332
349
|
selectProps: {
|
|
333
350
|
mode: "multiple",
|
|
@@ -349,7 +366,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
349
366
|
} },
|
|
350
367
|
{ name: 'qp-skuName-like', label: 'SKU名称' },
|
|
351
368
|
{ name: 'qp-itemCode-in', label: 'SPU编码', field: {
|
|
352
|
-
type:'multipleQuerySearchSelect',
|
|
369
|
+
type:'multipleQuerySearchSelect',
|
|
353
370
|
props: {
|
|
354
371
|
selectProps: {
|
|
355
372
|
placeholder: '请输入SPU编码查询'
|
|
@@ -368,12 +385,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
368
385
|
},
|
|
369
386
|
}
|
|
370
387
|
} },
|
|
371
|
-
{ name: 'qp-eancode-in', label: '商品条码', field: {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}},
|
|
388
|
+
// { name: 'qp-eancode-in', label: '商品条码', field: {
|
|
389
|
+
// type: 'multipleQueryInput',
|
|
390
|
+
// props: {
|
|
391
|
+
// ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
|
|
392
|
+
// },
|
|
393
|
+
// }},
|
|
377
394
|
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
378
395
|
type: 'select',
|
|
379
396
|
props: {
|
|
@@ -410,19 +427,27 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
410
427
|
type: 'proppertySelector',
|
|
411
428
|
} },
|
|
412
429
|
]
|
|
430
|
+
const defaultQSHL = [
|
|
431
|
+
{
|
|
432
|
+
isOpen: true,
|
|
433
|
+
queryKey: 'qp-brandId-in',
|
|
434
|
+
},
|
|
435
|
+
]
|
|
436
|
+
const queryHeaderParams = getQueryHeadersList({defaultQSHL, querySelectHeadersList, extralHeaders});
|
|
437
|
+
|
|
413
438
|
Promise.all([
|
|
414
439
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
415
440
|
pageSize: 5000,
|
|
416
441
|
currentPage: 1,
|
|
417
442
|
'ctl-withAuth': true
|
|
418
|
-
}),
|
|
443
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
419
444
|
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
420
445
|
pageSize: 5000,
|
|
421
446
|
currentPage: 1,
|
|
422
|
-
}),
|
|
447
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
423
448
|
]).then((x: any)=>{
|
|
424
|
-
formatSource(x,0,
|
|
425
|
-
formatTreeDataSource(x,1,
|
|
449
|
+
formatSource(x,0, 3, tableSearchForm,['id','name'])
|
|
450
|
+
formatTreeDataSource(x,1, 4, tableSearchForm)
|
|
426
451
|
})
|
|
427
452
|
modalTableProps = {
|
|
428
453
|
modalTableTitle: '选择SKU',
|
|
@@ -494,6 +519,143 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
494
519
|
|
|
495
520
|
// 商品选择器spu
|
|
496
521
|
if(type === 'spuCommodity') {
|
|
522
|
+
selectProps = {
|
|
523
|
+
placeholder: '输入商品(SPU)编码或名称',
|
|
524
|
+
renderTableColumns: [
|
|
525
|
+
{
|
|
526
|
+
title: 'SPU编码',
|
|
527
|
+
dataIndex: 'itemCode',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
title: 'SPU名称',
|
|
531
|
+
dataIndex: 'name',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
...selectConfigProps,
|
|
535
|
+
}
|
|
536
|
+
requestConfig = {
|
|
537
|
+
url: `${prefixUrl.selectPrefix}/item`,
|
|
538
|
+
filter: 'qp-itemCode,name-orGroup,like', // 过滤参数
|
|
539
|
+
mappingTextField: 'name',
|
|
540
|
+
mappingValueField: 'itemCode',
|
|
541
|
+
otherParams: {
|
|
542
|
+
'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
543
|
+
sorter: 'desc-id',
|
|
544
|
+
...(requestConfigProp?.addOtherParams || {}),
|
|
545
|
+
}, // 默认参数
|
|
546
|
+
sourceName: 'itemCode',
|
|
547
|
+
...requestConfigProp,
|
|
548
|
+
}
|
|
549
|
+
tableSearchForm = [
|
|
550
|
+
{ name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
|
|
551
|
+
{ name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
|
|
552
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
553
|
+
type: 'select',
|
|
554
|
+
props: {
|
|
555
|
+
mode: 'multiple',
|
|
556
|
+
notFoundContent: '暂无数据',
|
|
557
|
+
allowClear: true,
|
|
558
|
+
showSearch: true,
|
|
559
|
+
showArrow: true,
|
|
560
|
+
maxTagCount: 1,
|
|
561
|
+
optionFilterProp: 'children',
|
|
562
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
563
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
564
|
+
},
|
|
565
|
+
} },
|
|
566
|
+
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
567
|
+
type: 'treeSelect',
|
|
568
|
+
props: {
|
|
569
|
+
treeData: [],
|
|
570
|
+
treeCheckable: true,
|
|
571
|
+
showSearch: true,
|
|
572
|
+
allowClear: true,
|
|
573
|
+
showArrow: true,
|
|
574
|
+
treeNodeFilterProp: 'title',
|
|
575
|
+
treeDefaultExpandAll: true,
|
|
576
|
+
maxTagCount: 1,
|
|
577
|
+
placeholder: '请选择',
|
|
578
|
+
style: {
|
|
579
|
+
width: '100%',
|
|
580
|
+
},
|
|
581
|
+
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
582
|
+
},
|
|
583
|
+
} },
|
|
584
|
+
{ name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
585
|
+
type: 'select',
|
|
586
|
+
props: {
|
|
587
|
+
mode: 'multiple',
|
|
588
|
+
notFoundContent: '暂无数据',
|
|
589
|
+
allowClear: true,
|
|
590
|
+
showSearch: true,
|
|
591
|
+
showArrow: true,
|
|
592
|
+
maxTagCount: 1,
|
|
593
|
+
optionFilterProp: 'children',
|
|
594
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
595
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
596
|
+
},
|
|
597
|
+
} },
|
|
598
|
+
]
|
|
599
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
600
|
+
Promise.all([
|
|
601
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
602
|
+
pageSize: 5000,
|
|
603
|
+
currentPage: 1,
|
|
604
|
+
'ctl-withAuth': true
|
|
605
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
606
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
607
|
+
pageSize: 5000,
|
|
608
|
+
currentPage: 1,
|
|
609
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
610
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
|
|
611
|
+
pageSize: 5000,
|
|
612
|
+
currentPage: 1,
|
|
613
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
|
|
614
|
+
]).then((x: any)=>{
|
|
615
|
+
formatSource(x,0, 2, tableSearchForm,['id','name']);
|
|
616
|
+
formatTreeDataSource(x,1, 3, tableSearchForm);
|
|
617
|
+
formatSource(x,2, 4, tableSearchForm,['id','name']);
|
|
618
|
+
})
|
|
619
|
+
modalTableProps = {
|
|
620
|
+
modalTableTitle: '选择商品(SPU) ',
|
|
621
|
+
tableSearchForm,
|
|
622
|
+
tableColumns: [
|
|
623
|
+
{
|
|
624
|
+
title: '序号',
|
|
625
|
+
dataIndex: 'keyIndex',
|
|
626
|
+
defaultSort: 0,
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
title: 'SPU编码',
|
|
630
|
+
dataIndex: 'itemCode',
|
|
631
|
+
defaultSort: 1,
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
title: 'SPU名称',
|
|
635
|
+
dataIndex: 'name',
|
|
636
|
+
defaultSort: 2,
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
title: '品牌',
|
|
640
|
+
dataIndex: 'brandName',
|
|
641
|
+
defaultSort: 3,
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
title: '类目',
|
|
645
|
+
dataIndex: 'categoryText',
|
|
646
|
+
defaultSort: 4,
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
title: '品类',
|
|
650
|
+
dataIndex: 'className',
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
...modalTableBusProps
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// 新库存商品选择器spu
|
|
658
|
+
if(type === 'spuCommodityWithProperty') {
|
|
497
659
|
selectProps = {
|
|
498
660
|
placeholder: '输入spu编码或名称',
|
|
499
661
|
renderTableColumns: [
|
|
@@ -509,12 +671,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
509
671
|
...selectConfigProps,
|
|
510
672
|
}
|
|
511
673
|
requestConfig = {
|
|
512
|
-
url:
|
|
674
|
+
url: `/stock/item/doItemPageAll`,
|
|
675
|
+
method: 'POST',
|
|
513
676
|
filter: 'qp-itemCode,name-orGroup,like', // 过滤参数
|
|
514
677
|
mappingTextField: 'name',
|
|
515
678
|
mappingValueField: 'itemCode',
|
|
516
679
|
otherParams: {
|
|
517
|
-
'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
680
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
518
681
|
sorter: 'desc-id',
|
|
519
682
|
...(requestConfigProp?.addOtherParams || {}),
|
|
520
683
|
}, // 默认参数
|
|
@@ -522,8 +685,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
522
685
|
...requestConfigProp,
|
|
523
686
|
}
|
|
524
687
|
tableSearchForm = [
|
|
525
|
-
{ name: '
|
|
526
|
-
{ name: '
|
|
688
|
+
{ name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
|
|
689
|
+
{ name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
|
|
527
690
|
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
528
691
|
type: 'select',
|
|
529
692
|
props: {
|
|
@@ -570,21 +733,77 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
570
733
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
571
734
|
},
|
|
572
735
|
} },
|
|
736
|
+
{
|
|
737
|
+
name: 'qp-year-in',
|
|
738
|
+
label: '年份',
|
|
739
|
+
field: {
|
|
740
|
+
type: 'itemPropertySelector',
|
|
741
|
+
props: {
|
|
742
|
+
propertyCode: 'SX0000114',
|
|
743
|
+
mode: 'multiple',
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
name: 'qp-season-in',
|
|
749
|
+
label: '季节',
|
|
750
|
+
field: {
|
|
751
|
+
type: 'itemPropertySelector',
|
|
752
|
+
props: {
|
|
753
|
+
propertyCode: 'SX0000070',
|
|
754
|
+
mode: 'multiple',
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
name: 'qp-zzdlbm-in',
|
|
760
|
+
label: '大类',
|
|
761
|
+
field: {
|
|
762
|
+
type: 'itemPropertySelector',
|
|
763
|
+
props: {
|
|
764
|
+
propertyCode: 'SX0000071',
|
|
765
|
+
mode: 'multiple',
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: 'qp-zzzlbm-in',
|
|
771
|
+
label: '中类',
|
|
772
|
+
field: {
|
|
773
|
+
type: 'itemPropertySelector',
|
|
774
|
+
props: {
|
|
775
|
+
propertyCode: 'SX0000072',
|
|
776
|
+
mode: 'multiple',
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
name: 'qp-zzxlbm-in',
|
|
782
|
+
label: '小类',
|
|
783
|
+
field: {
|
|
784
|
+
type: 'itemPropertySelector',
|
|
785
|
+
props: {
|
|
786
|
+
propertyCode: 'SX0000110',
|
|
787
|
+
mode: 'multiple',
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
573
791
|
]
|
|
792
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
574
793
|
Promise.all([
|
|
575
794
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
576
795
|
pageSize: 5000,
|
|
577
796
|
currentPage: 1,
|
|
578
797
|
'ctl-withAuth': true
|
|
579
|
-
}),
|
|
798
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
580
799
|
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
581
800
|
pageSize: 5000,
|
|
582
801
|
currentPage: 1,
|
|
583
|
-
}),
|
|
802
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
584
803
|
loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
|
|
585
804
|
pageSize: 5000,
|
|
586
805
|
currentPage: 1,
|
|
587
|
-
}),
|
|
806
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
|
|
588
807
|
]).then((x: any)=>{
|
|
589
808
|
formatSource(x,0, 2, tableSearchForm,['id','name']);
|
|
590
809
|
formatTreeDataSource(x,1, 3, tableSearchForm);
|
|
@@ -624,6 +843,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
624
843
|
dataIndex: 'className',
|
|
625
844
|
},
|
|
626
845
|
],
|
|
846
|
+
noEmptySearchField: true,
|
|
627
847
|
...modalTableBusProps
|
|
628
848
|
}
|
|
629
849
|
}
|
|
@@ -709,6 +929,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
709
929
|
},
|
|
710
930
|
} },
|
|
711
931
|
], hiddenFields);
|
|
932
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
712
933
|
const fieldsRequest = handleHiddenFieldsRequest(
|
|
713
934
|
[
|
|
714
935
|
{
|
|
@@ -717,21 +938,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
717
938
|
pageSize: 10000,
|
|
718
939
|
currentPage: 1,
|
|
719
940
|
type: 2, // 类型:1尺码;2颜色
|
|
720
|
-
}
|
|
941
|
+
},
|
|
942
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-colorName-in')
|
|
721
943
|
},
|
|
722
944
|
{
|
|
723
945
|
url: `${prefixUrl.formSelectFix}/category/queryCategoryTree`,
|
|
724
946
|
params: {
|
|
725
947
|
pageSize: 5000,
|
|
726
948
|
currentPage: 1,
|
|
727
|
-
}
|
|
949
|
+
},
|
|
950
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')
|
|
728
951
|
},
|
|
729
952
|
{
|
|
730
953
|
url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
731
954
|
params: {
|
|
732
955
|
pageSize: 5000,
|
|
733
956
|
currentPage: 1,
|
|
734
|
-
}
|
|
957
|
+
},
|
|
958
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
735
959
|
},
|
|
736
960
|
{
|
|
737
961
|
url: `${prefixUrl.formSelectFix}/brand/queryBrandList`,
|
|
@@ -739,13 +963,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
739
963
|
pageSize: 5000,
|
|
740
964
|
currentPage: 1,
|
|
741
965
|
'ctl-withAuth': true
|
|
742
|
-
}
|
|
966
|
+
},
|
|
967
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')
|
|
743
968
|
}
|
|
744
969
|
],
|
|
745
970
|
['colorName', 'categoryId', 'classId', 'brandId'],
|
|
746
971
|
hiddenFields,
|
|
747
972
|
);
|
|
748
|
-
const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params));
|
|
973
|
+
const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params, i.options));
|
|
749
974
|
requestConfig = {
|
|
750
975
|
url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
|
|
751
976
|
filter: 'qp-code,name-orGroup,like', // 过滤参数
|
|
@@ -758,7 +983,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
758
983
|
sourceName: 'qp-skcCode-eq',
|
|
759
984
|
...requestConfigProp,
|
|
760
985
|
}
|
|
761
|
-
tableSearchForm,
|
|
762
986
|
Promise.all(fieldLoadSource).then((x: any)=>{
|
|
763
987
|
formatSource(x,0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm,['value','value']);
|
|
764
988
|
formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
|
|
@@ -876,10 +1100,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
876
1100
|
...requestConfigProp,
|
|
877
1101
|
}
|
|
878
1102
|
tableSearchForm = [
|
|
879
|
-
{ name: '
|
|
880
|
-
{ name: '
|
|
1103
|
+
{ name: 'physicalWarehouseName*multiInput', label: '物理仓名称', type: 'multipleQueryInput' },
|
|
1104
|
+
{ name: 'physicalWarehouseCode*multiInput', label: '物理仓编码', type: 'multipleQueryInput' },
|
|
881
1105
|
{ name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002') },
|
|
882
|
-
{ name: 'qp-companyCode-
|
|
1106
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
|
|
883
1107
|
type: 'select',
|
|
884
1108
|
props: {
|
|
885
1109
|
mode: 'multiple',
|
|
@@ -895,12 +1119,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
895
1119
|
} },
|
|
896
1120
|
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '物理仓状态', initialSource: getDictionarySource('SC00001') }]:[])
|
|
897
1121
|
]
|
|
1122
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
898
1123
|
Promise.all([
|
|
899
1124
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
900
1125
|
pageSize: 5000,
|
|
901
1126
|
currentPage: 1,
|
|
902
1127
|
'qp-companyType-eq': 20,
|
|
903
|
-
}),
|
|
1128
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
904
1129
|
]).then((x: any)=>{
|
|
905
1130
|
formatSource(x,0, 3, tableSearchForm);
|
|
906
1131
|
})
|
|
@@ -973,11 +1198,84 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
973
1198
|
sourceName: 'warehouseIds',
|
|
974
1199
|
...requestConfigProp,
|
|
975
1200
|
}
|
|
1201
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1202
|
+
Promise.all([
|
|
1203
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1204
|
+
'qp-status-eq': 10,
|
|
1205
|
+
'qp-isMain-eq': 1,
|
|
1206
|
+
'qp-type-in': '1,2',
|
|
1207
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1208
|
+
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1209
|
+
'qp-status-eq': 1,
|
|
1210
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1211
|
+
]).then((x: any)=>{
|
|
1212
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1213
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1214
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1215
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1216
|
+
})
|
|
976
1217
|
tableSearchForm = [
|
|
977
|
-
{ name: '
|
|
978
|
-
{ name: '
|
|
1218
|
+
{ name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
|
|
1219
|
+
{ name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
|
|
979
1220
|
{ name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
|
|
980
|
-
|
|
1221
|
+
{ name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
|
|
1222
|
+
{
|
|
1223
|
+
name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1224
|
+
type: 'treeSelect',
|
|
1225
|
+
props: {
|
|
1226
|
+
multiple: true,
|
|
1227
|
+
treeData: [],
|
|
1228
|
+
treeCheckable: false,
|
|
1229
|
+
notFoundContent: '暂无数据',
|
|
1230
|
+
allowClear: true,
|
|
1231
|
+
showSearch: true,
|
|
1232
|
+
showArrow: true,
|
|
1233
|
+
maxTagCount: 1,
|
|
1234
|
+
optionFilterProp: 'children',
|
|
1235
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1236
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1237
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1238
|
+
},
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
1243
|
+
type: 'treeSelect',
|
|
1244
|
+
props: {
|
|
1245
|
+
multiple: true,
|
|
1246
|
+
treeData: [],
|
|
1247
|
+
treeCheckable: false,
|
|
1248
|
+
notFoundContent: '暂无数据',
|
|
1249
|
+
allowClear: true,
|
|
1250
|
+
showSearch: true,
|
|
1251
|
+
showArrow: true,
|
|
1252
|
+
maxTagCount: 1,
|
|
1253
|
+
optionFilterProp: 'children',
|
|
1254
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1255
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1256
|
+
|
|
1257
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1258
|
+
},
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
name: 'qp-type-in', type: 'select', label: '店铺性质', field: {
|
|
1263
|
+
type: 'select',
|
|
1264
|
+
props: {
|
|
1265
|
+
mode: 'multiple',
|
|
1266
|
+
notFoundContent: '暂无数据',
|
|
1267
|
+
allowClear: true,
|
|
1268
|
+
showSearch: true,
|
|
1269
|
+
showArrow: true,
|
|
1270
|
+
maxTagCount: 1,
|
|
1271
|
+
optionFilterProp: 'children',
|
|
1272
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1273
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1274
|
+
},
|
|
1275
|
+
},
|
|
1276
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
1277
|
+
},
|
|
1278
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
981
1279
|
]
|
|
982
1280
|
modalTableProps = {
|
|
983
1281
|
modalTableTitle: '选择逻辑仓',
|
|
@@ -1004,13 +1302,40 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1004
1302
|
defaultSort: 3,
|
|
1005
1303
|
render: (text: number) => getDictionaryTextByValue('SC00004', text),
|
|
1006
1304
|
},
|
|
1305
|
+
{
|
|
1306
|
+
title: '运营组名称',
|
|
1307
|
+
dataIndex: 'groupCode',
|
|
1308
|
+
defaultSort: 7,
|
|
1309
|
+
render: (text: any, record) => record?.groupName ? `【${text}】${record?.groupName}` : "",
|
|
1310
|
+
width: 100,
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
title: '所属销售渠道',
|
|
1314
|
+
dataIndex: 'channelName',
|
|
1315
|
+
defaultSort: 4,
|
|
1316
|
+
width: 100,
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
title: '营销区域',
|
|
1320
|
+
dataIndex: 'commonRelationAreaName',
|
|
1321
|
+
defaultSort: 5,
|
|
1322
|
+
width: 100,
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
title: '店铺性质',
|
|
1326
|
+
dataIndex: 'type',
|
|
1327
|
+
defaultSort: 6,
|
|
1328
|
+
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
1329
|
+
width: 80,
|
|
1330
|
+
},
|
|
1007
1331
|
...(modalTableBusProps?.needStatusSearch?[{
|
|
1008
1332
|
title: '状态',
|
|
1009
1333
|
dataIndex: 'isEnable',
|
|
1010
|
-
defaultSort:
|
|
1334
|
+
defaultSort: 8,
|
|
1011
1335
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1012
1336
|
}]:[]),
|
|
1013
1337
|
],
|
|
1338
|
+
noEmptySearchField: true,
|
|
1014
1339
|
...modalTableBusProps,
|
|
1015
1340
|
}
|
|
1016
1341
|
}
|
|
@@ -1045,8 +1370,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1045
1370
|
...requestConfigProp,
|
|
1046
1371
|
}
|
|
1047
1372
|
tableSearchForm = [
|
|
1048
|
-
{ name: '
|
|
1049
|
-
{ name: '
|
|
1373
|
+
{ name: 'name*multiInput', label: '运营仓名称', type: 'multipleQueryInput' },
|
|
1374
|
+
{ name: 'operationWarehouseCode*multiInput', label: '运营仓编码', type: 'multipleQueryInput' },
|
|
1050
1375
|
{ name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
|
|
1051
1376
|
type: 'select',
|
|
1052
1377
|
props: {
|
|
@@ -1061,12 +1386,39 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1061
1386
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1062
1387
|
},
|
|
1063
1388
|
} },
|
|
1064
|
-
|
|
1389
|
+
{
|
|
1390
|
+
name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1391
|
+
type: 'treeSelect',
|
|
1392
|
+
props: {
|
|
1393
|
+
multiple: true,
|
|
1394
|
+
treeData: [],
|
|
1395
|
+
treeCheckable: false,
|
|
1396
|
+
notFoundContent: '暂无数据',
|
|
1397
|
+
allowClear: true,
|
|
1398
|
+
showSearch: true,
|
|
1399
|
+
showArrow: true,
|
|
1400
|
+
maxTagCount: 1,
|
|
1401
|
+
optionFilterProp: 'children',
|
|
1402
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1403
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1404
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1405
|
+
},
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
1065
1409
|
]
|
|
1410
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1066
1411
|
Promise.all([
|
|
1067
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 }),
|
|
1412
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },getQueryHeadersItem(queryHeaderParams,'qp-groupCode-in')),
|
|
1413
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1414
|
+
'qp-status-eq': 10,
|
|
1415
|
+
'qp-isMain-eq': 1,
|
|
1416
|
+
'qp-type-in': '1,2',
|
|
1417
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1068
1418
|
]).then((x: any)=>{
|
|
1069
1419
|
formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
|
|
1420
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1421
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1070
1422
|
})
|
|
1071
1423
|
modalTableProps = {
|
|
1072
1424
|
modalTableTitle: '选择运营仓',
|
|
@@ -1098,6 +1450,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1098
1450
|
defaultSort: 4,
|
|
1099
1451
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1100
1452
|
}]:[]),
|
|
1453
|
+
{
|
|
1454
|
+
title: '所属销售渠道',
|
|
1455
|
+
dataIndex: 'channelName',
|
|
1456
|
+
defaultSort: 5,
|
|
1457
|
+
width: 100,
|
|
1458
|
+
},
|
|
1101
1459
|
],
|
|
1102
1460
|
...modalTableBusProps,
|
|
1103
1461
|
}
|
|
@@ -1246,21 +1604,22 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1246
1604
|
} },
|
|
1247
1605
|
{ name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
|
|
1248
1606
|
]
|
|
1607
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1249
1608
|
Promise.all([
|
|
1250
1609
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1251
1610
|
pageSize: 5000,
|
|
1252
1611
|
currentPage: 1,
|
|
1253
1612
|
'qp-companyType-eq': '30',
|
|
1254
|
-
}),
|
|
1613
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
1255
1614
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
1256
1615
|
pageSize: 5000,
|
|
1257
1616
|
currentPage: 1,
|
|
1258
|
-
}),
|
|
1617
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
1259
1618
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1260
1619
|
pageSize: 5000,
|
|
1261
1620
|
currentPage: 1,
|
|
1262
1621
|
'qp-companyType-eq': '20',
|
|
1263
|
-
})
|
|
1622
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-sharingType-in'))
|
|
1264
1623
|
]).then((x: any)=>{
|
|
1265
1624
|
formatSource(x,0, 2, tableSearchForm);
|
|
1266
1625
|
formatSource(x,1, 3, tableSearchForm);
|
|
@@ -1370,14 +1729,66 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1370
1729
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1371
1730
|
},
|
|
1372
1731
|
} },
|
|
1373
|
-
|
|
1732
|
+
{
|
|
1733
|
+
name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1734
|
+
type: 'treeSelect',
|
|
1735
|
+
props: {
|
|
1736
|
+
multiple: true,
|
|
1737
|
+
treeData: [],
|
|
1738
|
+
treeCheckable: false,
|
|
1739
|
+
notFoundContent: '暂无数据',
|
|
1740
|
+
allowClear: true,
|
|
1741
|
+
showSearch: true,
|
|
1742
|
+
showArrow: true,
|
|
1743
|
+
maxTagCount: 1,
|
|
1744
|
+
optionFilterProp: 'children',
|
|
1745
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1746
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1747
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1748
|
+
},
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
1753
|
+
type: 'treeSelect',
|
|
1754
|
+
props: {
|
|
1755
|
+
multiple: true,
|
|
1756
|
+
treeData: [],
|
|
1757
|
+
treeCheckable: false,
|
|
1758
|
+
notFoundContent: '暂无数据',
|
|
1759
|
+
allowClear: true,
|
|
1760
|
+
showSearch: true,
|
|
1761
|
+
showArrow: true,
|
|
1762
|
+
maxTagCount: 1,
|
|
1763
|
+
optionFilterProp: 'children',
|
|
1764
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1765
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1766
|
+
|
|
1767
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1768
|
+
},
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
];
|
|
1772
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1374
1773
|
Promise.all([
|
|
1375
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {}),
|
|
1774
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
1775
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1776
|
+
'qp-status-eq': 10,
|
|
1777
|
+
'qp-isMain-eq': 1,
|
|
1778
|
+
'qp-type-in': '1,2',
|
|
1779
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1780
|
+
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1781
|
+
'qp-status-eq': 1,
|
|
1782
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1376
1783
|
]).then((x: any)=>{
|
|
1377
1784
|
const firstElement = x?.[0];
|
|
1378
1785
|
const allList = firstElement && [firstElement, firstElement];
|
|
1379
1786
|
formatSource(allList,0, 2, tableSearchForm);
|
|
1380
1787
|
formatSource(allList,1, 3, tableSearchForm);
|
|
1788
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1789
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1790
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1791
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1381
1792
|
})
|
|
1382
1793
|
modalTableProps = {
|
|
1383
1794
|
modalTableTitle: '选择客户',
|
|
@@ -1407,6 +1818,19 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1407
1818
|
title: '使用组织',
|
|
1408
1819
|
dataIndex: 'salesOrgName',
|
|
1409
1820
|
defaultSort: 4,
|
|
1821
|
+
width: 100,
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
title: '所属销售渠道',
|
|
1825
|
+
dataIndex: 'channelName',
|
|
1826
|
+
defaultSort: 5,
|
|
1827
|
+
width: 100,
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
title: '营销区域',
|
|
1831
|
+
dataIndex: 'commonRelationAreaName',
|
|
1832
|
+
defaultSort: 6,
|
|
1833
|
+
width: 100,
|
|
1410
1834
|
},
|
|
1411
1835
|
],
|
|
1412
1836
|
...modalTableBusProps
|
|
@@ -1443,8 +1867,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1443
1867
|
...requestConfigProp,
|
|
1444
1868
|
}
|
|
1445
1869
|
tableSearchForm = [
|
|
1446
|
-
{ name: '
|
|
1447
|
-
{ name: '
|
|
1870
|
+
{ name: 'name*multiInput', label: '店铺名称', type: 'multipleQueryInput' },
|
|
1871
|
+
{ name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
|
|
1872
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
1873
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
1448
1874
|
{ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
1449
1875
|
type: 'select',
|
|
1450
1876
|
props: {
|
|
@@ -1517,30 +1943,31 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1517
1943
|
},
|
|
1518
1944
|
} },
|
|
1519
1945
|
]
|
|
1946
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1520
1947
|
Promise.all([
|
|
1521
1948
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1522
1949
|
pageSize: 5000,
|
|
1523
1950
|
currentPage: 1,
|
|
1524
1951
|
'qp-companyType-eq': '30',
|
|
1525
|
-
}),
|
|
1952
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
1526
1953
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1527
1954
|
pageSize: 5000,
|
|
1528
1955
|
currentPage: 1,
|
|
1529
1956
|
'qp-companyType-eq': '20',
|
|
1530
|
-
}),
|
|
1957
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
1531
1958
|
loadSelectSource(`${prefixUrl.formSelectFix}/platformRecord/getPlatformRecordList`, {
|
|
1532
1959
|
// pageSize: 5000,
|
|
1533
1960
|
// currentPage: 1,
|
|
1534
1961
|
'qp-status-eq': '1',
|
|
1535
|
-
}),
|
|
1962
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-plateformCode-in')),
|
|
1536
1963
|
loadSelectSource(`${prefixUrl.formSelectFix}/store`, {
|
|
1537
1964
|
pageSize: 5000,
|
|
1538
1965
|
currentPage: 1,
|
|
1539
|
-
}),
|
|
1966
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-mainBrandCode-in')),
|
|
1540
1967
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
1541
1968
|
pageSize: 5000,
|
|
1542
1969
|
currentPage: 1,
|
|
1543
|
-
}),
|
|
1970
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
1544
1971
|
]).then((x: any)=>{
|
|
1545
1972
|
formatSource(x,0, 2, tableSearchForm);
|
|
1546
1973
|
formatSource(x,1, 3, tableSearchForm);
|
|
@@ -1617,16 +2044,17 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1617
2044
|
mappingValueField: 'code',
|
|
1618
2045
|
otherParams: {
|
|
1619
2046
|
sorter: 'desc-id',
|
|
2047
|
+
'qp-status-in': 10,
|
|
1620
2048
|
...(requestConfigProp?.addOtherParams || {}),
|
|
1621
2049
|
}, // 默认参数
|
|
1622
2050
|
sourceName: 'code',
|
|
1623
2051
|
...requestConfigProp,
|
|
1624
2052
|
}
|
|
1625
2053
|
tableSearchForm = [
|
|
1626
|
-
{ name: '
|
|
1627
|
-
{ name: '
|
|
2054
|
+
{ name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
|
|
2055
|
+
{ name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
|
|
1628
2056
|
{ name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
|
|
1629
|
-
{ name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
2057
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
1630
2058
|
{ name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
1631
2059
|
type: 'select',
|
|
1632
2060
|
props: {
|
|
@@ -1641,15 +2069,103 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1641
2069
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1642
2070
|
},
|
|
1643
2071
|
} },
|
|
2072
|
+
{ name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
|
|
2073
|
+
type: 'treeSelect',
|
|
2074
|
+
props: {
|
|
2075
|
+
multiple: true,
|
|
2076
|
+
treeData: [],
|
|
2077
|
+
treeCheckable: false,
|
|
2078
|
+
notFoundContent: '暂无数据',
|
|
2079
|
+
allowClear: true,
|
|
2080
|
+
showSearch: true,
|
|
2081
|
+
showArrow: true,
|
|
2082
|
+
maxTagCount: 1,
|
|
2083
|
+
optionFilterProp: 'children',
|
|
2084
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2085
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2086
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2087
|
+
},
|
|
2088
|
+
} },
|
|
2089
|
+
{ name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
2090
|
+
type: 'treeSelect',
|
|
2091
|
+
props: {
|
|
2092
|
+
multiple: true,
|
|
2093
|
+
treeData: [],
|
|
2094
|
+
treeCheckable: false,
|
|
2095
|
+
notFoundContent: '暂无数据',
|
|
2096
|
+
allowClear: true,
|
|
2097
|
+
showSearch: true,
|
|
2098
|
+
showArrow: true,
|
|
2099
|
+
maxTagCount: 1,
|
|
2100
|
+
optionFilterProp: 'children',
|
|
2101
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2102
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2103
|
+
|
|
2104
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2105
|
+
},
|
|
2106
|
+
} },
|
|
2107
|
+
{ name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
|
|
2108
|
+
type: 'select',
|
|
2109
|
+
props: {
|
|
2110
|
+
mode: 'multiple',
|
|
2111
|
+
notFoundContent: '暂无数据',
|
|
2112
|
+
allowClear: true,
|
|
2113
|
+
showSearch: true,
|
|
2114
|
+
showArrow: true,
|
|
2115
|
+
maxTagCount: 1,
|
|
2116
|
+
optionFilterProp: 'children',
|
|
2117
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2118
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2119
|
+
},
|
|
2120
|
+
} ,
|
|
2121
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
name: "qp-brandCode-in",
|
|
2125
|
+
label: "品牌",
|
|
2126
|
+
field: {
|
|
2127
|
+
type:'select',
|
|
2128
|
+
props: {
|
|
2129
|
+
mode: 'multiple',
|
|
2130
|
+
notFoundContent: '暂无数据',
|
|
2131
|
+
allowClear: true,
|
|
2132
|
+
showSearch: true,
|
|
2133
|
+
showArrow: true,
|
|
2134
|
+
maxTagCount: 1,
|
|
2135
|
+
optionFilterProp: 'children',
|
|
2136
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2137
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2138
|
+
},
|
|
2139
|
+
},
|
|
2140
|
+
},
|
|
1644
2141
|
]
|
|
2142
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1645
2143
|
Promise.all([
|
|
1646
2144
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
1647
2145
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
1648
2146
|
'qp-realOrg-eq': true,
|
|
1649
2147
|
'qp-status-eq': 10
|
|
1650
|
-
}),
|
|
2148
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2149
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
|
|
2150
|
+
'qp-status-eq': 10,
|
|
2151
|
+
'qp-isMain-eq': 1,
|
|
2152
|
+
'qp-type-in': '1,2',
|
|
2153
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2154
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
2155
|
+
'qp-status-eq': 1,
|
|
2156
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2157
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
2158
|
+
pageSize: 5000,
|
|
2159
|
+
currentPage: 1,
|
|
2160
|
+
'ctl-withAuth': true,
|
|
2161
|
+
},getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
|
|
1651
2162
|
]).then((x: any)=>{
|
|
1652
|
-
|
|
2163
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2164
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2165
|
+
formatSource(x,0, 3, tableSearchForm);
|
|
2166
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2167
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2168
|
+
formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
1653
2169
|
})
|
|
1654
2170
|
modalTableProps = {
|
|
1655
2171
|
modalTableTitle: '选择商店',
|
|
@@ -1659,34 +2175,60 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1659
2175
|
title: '序号',
|
|
1660
2176
|
dataIndex: 'keyIndex',
|
|
1661
2177
|
defaultSort: 0,
|
|
2178
|
+
width: 60,
|
|
1662
2179
|
},
|
|
1663
2180
|
{
|
|
1664
2181
|
title: '商店编码',
|
|
1665
2182
|
dataIndex: 'code',
|
|
1666
2183
|
defaultSort: 1,
|
|
2184
|
+
width: 100,
|
|
1667
2185
|
},
|
|
1668
2186
|
{
|
|
1669
2187
|
title: '商店名称',
|
|
1670
2188
|
dataIndex: 'name',
|
|
1671
2189
|
defaultSort: 2,
|
|
2190
|
+
width: 120,
|
|
1672
2191
|
},
|
|
1673
2192
|
{
|
|
1674
2193
|
title: '商店类型',
|
|
1675
2194
|
dataIndex: 'type',
|
|
1676
2195
|
defaultSort: 3,
|
|
2196
|
+
width: 100,
|
|
1677
2197
|
render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
|
|
1678
2198
|
},
|
|
1679
2199
|
{
|
|
1680
2200
|
title: '启用状态',
|
|
1681
2201
|
dataIndex: 'status',
|
|
2202
|
+
width: 80,
|
|
1682
2203
|
render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
|
|
1683
2204
|
},
|
|
1684
2205
|
{
|
|
1685
2206
|
title: '所属销售组织',
|
|
1686
2207
|
dataIndex: 'orgName',
|
|
1687
2208
|
defaultSort: 4,
|
|
2209
|
+
width: 95,
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
title: '所属销售渠道',
|
|
2213
|
+
dataIndex: 'channelName',
|
|
2214
|
+
defaultSort: 5,
|
|
2215
|
+
width: 100,
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
title: '营销区域',
|
|
2219
|
+
dataIndex: 'commonRelationAreaName',
|
|
2220
|
+
defaultSort: 6,
|
|
2221
|
+
width: 100,
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
title: '店铺性质',
|
|
2225
|
+
dataIndex: 'businessType',
|
|
2226
|
+
defaultSort: 7,
|
|
2227
|
+
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
2228
|
+
width: 80,
|
|
1688
2229
|
},
|
|
1689
2230
|
],
|
|
2231
|
+
noEmptySearchField: true,
|
|
1690
2232
|
...modalTableBusProps
|
|
1691
2233
|
}
|
|
1692
2234
|
}
|
|
@@ -1873,12 +2415,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1873
2415
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
1874
2416
|
{ name: 'qp-officeTelephone-like', label: '手机号' },
|
|
1875
2417
|
]
|
|
2418
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1876
2419
|
Promise.all([
|
|
1877
2420
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1878
2421
|
pageSize: 5000,
|
|
1879
2422
|
currentPage: 1,
|
|
1880
2423
|
'qp-companyType-eq': 20,
|
|
1881
|
-
}),
|
|
2424
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
1882
2425
|
]).then((x: any)=>{
|
|
1883
2426
|
formatSource(x,0, 2, tableSearchForm);
|
|
1884
2427
|
})
|
|
@@ -1978,10 +2521,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1978
2521
|
} },
|
|
1979
2522
|
...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
|
|
1980
2523
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
1981
|
-
{ name: 'qp-
|
|
2524
|
+
{ name: 'qp-phone-like', label: '手机号' },
|
|
1982
2525
|
]
|
|
2526
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1983
2527
|
Promise.all([
|
|
1984
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' }),
|
|
2528
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' },getQueryHeadersItem(queryHeaderParams,'qp-code-in')),
|
|
1985
2529
|
]).then((x: any)=>{
|
|
1986
2530
|
formatTreeDataSource(x,0, 2, tableSearchForm,['code', 'name']);
|
|
1987
2531
|
})
|
|
@@ -2030,7 +2574,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2030
2574
|
},
|
|
2031
2575
|
{
|
|
2032
2576
|
title: '手机号',
|
|
2033
|
-
dataIndex: '
|
|
2577
|
+
dataIndex: 'phone',
|
|
2034
2578
|
defaultSort: 4,
|
|
2035
2579
|
render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
|
|
2036
2580
|
},
|
|
@@ -2108,15 +2652,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2108
2652
|
} },
|
|
2109
2653
|
{ name: 'qp-remark-like', label: '备注' },
|
|
2110
2654
|
]
|
|
2655
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2111
2656
|
Promise.all([
|
|
2112
2657
|
loadSelectSource(`${prefixUrl.formSelectFix}/logisCompany`, {
|
|
2113
2658
|
pageSize: 5000,
|
|
2114
2659
|
currentPage: 1,
|
|
2115
|
-
}),
|
|
2660
|
+
},getQueryHeadersItem(queryHeaderParams,logisCompanyCodeSingleSearchName)),
|
|
2116
2661
|
loadSelectSource(`${prefixUrl.formSelectFix}/printTemplate`, {
|
|
2117
2662
|
pageSize: 5000,
|
|
2118
2663
|
currentPage: 1,
|
|
2119
|
-
})
|
|
2664
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-sheetTemplateCode-in'))
|
|
2120
2665
|
]).then((x: any)=>{
|
|
2121
2666
|
formatSource(x,0, 2, tableSearchForm);
|
|
2122
2667
|
formatSource(x,1, 5, tableSearchForm);
|
|
@@ -2294,11 +2839,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2294
2839
|
}
|
|
2295
2840
|
},
|
|
2296
2841
|
]
|
|
2842
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2297
2843
|
Promise.all([
|
|
2298
2844
|
loadSelectSource(`${prefixUrl.formSelectFix}/permissionCategory`, {
|
|
2299
2845
|
pageSize: 5000,
|
|
2300
2846
|
currentPage: 1,
|
|
2301
|
-
}),
|
|
2847
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryCode-eq')),
|
|
2302
2848
|
]).then((x: any)=>{
|
|
2303
2849
|
formatSource(x,0, 2, tableSearchForm);
|
|
2304
2850
|
})
|
|
@@ -2395,12 +2941,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2395
2941
|
},
|
|
2396
2942
|
} },
|
|
2397
2943
|
]
|
|
2944
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2398
2945
|
Promise.all([
|
|
2399
2946
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
2400
2947
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
2401
2948
|
'qp-realOrg-eq': true,
|
|
2402
2949
|
'qp-status-eq': 10
|
|
2403
|
-
}),
|
|
2950
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-in')),
|
|
2404
2951
|
]).then((x: any)=>{
|
|
2405
2952
|
formatSource(x, 0, 2, tableSearchForm);
|
|
2406
2953
|
})
|
|
@@ -2511,10 +3058,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2511
3058
|
},
|
|
2512
3059
|
initialSource: nodeType
|
|
2513
3060
|
}]
|
|
3061
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2514
3062
|
Promise.all([
|
|
2515
3063
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
|
|
2516
3064
|
'qp-status-eq': 10
|
|
2517
|
-
}),
|
|
3065
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
|
|
2518
3066
|
]).then((x: any)=>{
|
|
2519
3067
|
formatSource(x, 0, 2, tableSearchForm);
|
|
2520
3068
|
})
|
|
@@ -2874,10 +3422,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2874
3422
|
},
|
|
2875
3423
|
initialSource: nodeType
|
|
2876
3424
|
}]
|
|
3425
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2877
3426
|
Promise.all([
|
|
2878
3427
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
|
|
2879
3428
|
'qp-status-eq': 10
|
|
2880
|
-
}),
|
|
3429
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
|
|
2881
3430
|
]).then((x: any)=>{
|
|
2882
3431
|
formatSource(x, 0, 2, tableSearchForm);
|
|
2883
3432
|
})
|