@bit-sun/business-component 2.3.21 → 2.3.22-beta10

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.
Files changed (86) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  3. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  10. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  11. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  12. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  13. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  14. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
  16. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  17. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  18. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  19. package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
  20. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  21. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  22. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  23. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  24. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  25. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  26. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  27. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  28. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  29. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
  30. package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
  31. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
  32. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  33. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  34. package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
  35. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  36. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  37. package/dist/components/Functional/DataValidation/index.d.ts +3 -3
  38. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  39. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  40. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  41. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  42. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  43. package/dist/index.esm.js +1416 -1315
  44. package/dist/index.js +1422 -1321
  45. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  46. package/dist/utils/LocalstorageUtils.d.ts +5 -0
  47. package/dist/utils/utils.d.ts +1 -1
  48. package/lib/assets/exportFail.svg +9 -9
  49. package/lib/assets/exportProcessing.svg +9 -9
  50. package/lib/assets/exportSuccess.svg +9 -9
  51. package/package.json +3 -3
  52. package/src/assets/caidan.svg +1 -1
  53. package/src/assets/exportFail.svg +9 -9
  54. package/src/assets/exportProcessing.svg +9 -9
  55. package/src/assets/exportSuccess.svg +9 -9
  56. package/src/assets/fixed-left-active.svg +1 -1
  57. package/src/assets/fixed-right-active.svg +1 -1
  58. package/src/components/Business/AddSelectBusiness/index.tsx +352 -187
  59. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +1 -1
  60. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +1 -1
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +3 -3
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +4 -4
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +1 -1
  64. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +1 -1
  66. package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
  67. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +3 -3
  68. package/src/components/Business/BsLayouts/index.less +2 -2
  69. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +7 -6
  70. package/src/components/Business/BsSulaQueryTable/index.tsx +1 -5
  71. package/src/components/Business/BsSulaQueryTable/setting.tsx +12 -9
  72. package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
  73. package/src/components/Business/CommonAlert/index.tsx +1 -1
  74. package/src/components/Business/CommonGuideWrapper/index.less +2 -2
  75. package/src/components/Business/DetailPageWrapper/index.less +2 -2
  76. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +1 -1
  77. package/src/components/Business/StateFlow/index.less +3 -3
  78. package/src/components/Business/columnSettingTable/columnSetting.tsx +8 -6
  79. package/src/components/Functional/AddSelect/helps.ts +65 -0
  80. package/src/components/Functional/AddSelect/index.tsx +15 -127
  81. package/src/components/Functional/BillEntry/index.tsx +6 -6
  82. package/src/components/Functional/SearchSelect/index.tsx +1 -1
  83. package/src/plugin/TableColumnSetting/index.tsx +8 -6
  84. package/src/styles/bsDefault.less +12 -34
  85. package/src/utils/LocalstorageUtils.ts +19 -0
  86. package/src/utils/requestUtils.ts +13 -5
@@ -11,13 +11,19 @@ import axios from 'axios';
11
11
  import { AddSelect } from '../../../index';
12
12
  import { tableColumnsImage } from '@/components/Business/BsSulaQueryTable/utils';
13
13
  import { getSkuImg } from '@/utils/TableUtils';
14
+ import { getEmployeeId } from '@/utils/LocalstorageUtils';
14
15
  // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
15
16
 
16
17
  function handleSelectColumn(c: any, parentProps: any) {
17
18
  let result = c;
19
+ const showColumns = parentProps?.showColumns || [];
18
20
  const exceptColumns = parentProps?.exceptColumns || [];
19
21
  const coverColumns = parentProps?.coverColumns || [];
20
22
  const additionColumns = parentProps?.additionColumns || [];
23
+ // 仅展示内容
24
+ if(showColumns?.length) {
25
+ result = result.filter((i: any) => showColumns.includes(i.dataIndex))
26
+ }
21
27
  // 过滤不需要展示内容
22
28
  if(exceptColumns?.length) {
23
29
  result = result.filter((i: any) => !exceptColumns.includes(i.dataIndex))
@@ -34,6 +40,49 @@ function handleSelectColumn(c: any, parentProps: any) {
34
40
  }
35
41
  return result
36
42
  }
43
+ function handleSearchForm(c: any, parentProps: any) {
44
+ let result = c;
45
+ const showTableSearchForm = parentProps?.showTableSearchForm || [];
46
+ const exceptTableSearchForm= parentProps?.exceptTableSearchForm|| [];
47
+ const coverTableSearchForm = parentProps?.coverTableSearchForm || [];
48
+ // 仅展示内容
49
+ if(showTableSearchForm?.length) {
50
+ result = result.filter((i: any) => showTableSearchForm.includes(i.name))
51
+ }
52
+ // 过滤不需要展示内容
53
+ if(exceptTableSearchForm?.length) {
54
+ result = result.filter((i: any) => !exceptTableSearchForm.includes(i.name))
55
+ }
56
+ // 覆盖内容
57
+ if(coverTableSearchForm?.length) {
58
+ result = coverTableSearchForm;
59
+ }
60
+ return result;
61
+ }
62
+ function handleFormSearchSourceLoad(c: any, parentProps: any) {
63
+ let result = c;
64
+ const showTableFormSearchSourceLoad = parentProps?.showTableFormSearchSourceLoad || [];
65
+ const exceptTableFormSearchSourceLoad= parentProps?.exceptTableFormSearchSourceLoad|| [];
66
+ const coverTableFormSearchSourceLoad = parentProps?.coverTableFormSearchSourceLoad || [];
67
+ const noNeedTableFormSearchSourceLoad = parentProps?.noNeedTableFormSearchSourceLoad
68
+ // 仅展示内容
69
+ if(showTableFormSearchSourceLoad?.length) {
70
+ result = result.filter((i: any) => showTableFormSearchSourceLoad.includes(i.url))
71
+ }
72
+ // 过滤不需要展示内容
73
+ if(exceptTableFormSearchSourceLoad?.length) {
74
+ result = result.filter((i: any) => !exceptTableFormSearchSourceLoad.includes(i.url))
75
+ }
76
+ // 覆盖内容
77
+ if(coverTableFormSearchSourceLoad?.length) {
78
+ result = coverTableFormSearchSourceLoad;
79
+ }
80
+ // 不需要默认请求
81
+ if(noNeedTableFormSearchSourceLoad) {
82
+ result = [];
83
+ }
84
+ return result;
85
+ }
37
86
 
38
87
  export const AddSkuSelect = (parProps: any) => {
39
88
  const selectProps = {
@@ -140,54 +189,161 @@ export const AddSkuSelect = (parProps: any) => {
140
189
  dataIndex: 'propertyNameAndValue',
141
190
  }
142
191
  ]
143
- const mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps)
144
- const props = {
145
- buttonText: parProps.buttonText || '新增',
146
- buttonProps: parProps.buttonProps || {},
147
- tableCodeList: parProps.tableCodeList || [],
148
- value,
149
- // labelInValue: true, // 非必填 默认为false
150
- requestConfig: {
151
- url: `/items/sku/pager/v2`,
152
- filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
153
- otherParams: {
154
- 'qp-combination-eq': false,
155
- 'qp-approveStatus-eq': 1,
156
- 'qp-status-eq': 1,
157
- // 'useOrgSign': getCurrentTargetBgId(), // 根据品牌、账号授权的组织+商品授权使用组织做权限过滤 这个交给业务使用的地方去做,传addOtherParams:{useOrgSign:单据中所选组织}
158
- ...(parProps?.requestConfig?.addOtherParams || {}), // 允许在默认参数基础上,追加/覆盖已有 参数
159
- }, // 默认参数
160
- mappingTextField: 'name',
161
- mappingValueField: 'skuCode',
162
- ...parProps.requestConfig
192
+ const mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
193
+ const initialTableColumn = [
194
+ {
195
+ title: 'SKU编码',
196
+ width: 150,
197
+ dataIndex: 'skuCode',
163
198
  },
164
- selectProps,
165
- onChange: (value: any) => {
166
- console.log(value)
167
- setValue(value)
199
+ {
200
+ title: 'SKU名称',
201
+ width: 200,
202
+ ellipsis: {
203
+ showTitle: false,
204
+ },
205
+ render: (text: any) => (
206
+ <Tooltip placement="topLeft" title={text}>
207
+ {text}
208
+ </Tooltip>
209
+ ),
210
+ dataIndex: 'name',
168
211
  },
169
- beforeShowModal: parProps?.beforeShowModal,
170
- onSaveCallback: parProps.onSaveCallback,
171
- businessType: 'sku',
172
- isAllowRepeatedSelect: !!parProps?.isAllowRepeatedSelect,
173
- noUseItemEancode: isNoUseItemBarcode
174
- };
175
- const modalTableProps = {
176
- modalTableTitle: '选择商品',
177
- tableSearchForm: [
212
+ {
213
+ title: '图片',
214
+ dataIndex: 'itemUrl',
215
+ width: 200,
216
+ ellipsis: {
217
+ showTitle: false,
218
+ },
219
+ render: (text: any,record: any) => (
220
+ <Tooltip placement="topLeft" title={text}>
221
+ {tableColumnsImage(getSkuImg(record),{ width: 20, height: 20 })}
222
+ </Tooltip>
223
+ ),
224
+ },
225
+ ...(isNoUseItemBarcode ? []: [
178
226
  {
179
- name: 'qp-skuCode-like', label: 'SKU编码'
180
- },
181
- { name: 'qp-skuName-like', label: 'SKU名称' },
182
- ...(isNoUseItemBarcode ? []: [
183
- { name: 'qp-code-in', label: '商品条码', field: {
184
- type: 'multipleQueryInput',
185
- props: {
186
- ...(parProps.requestConfig?.itemEancodeValueRequestConfig || {}),
187
- },
188
- }}
189
- ]),
190
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
227
+ title: '商品条码',
228
+ width: 100,
229
+ ellipsis: {
230
+ showTitle: false,
231
+ },
232
+ dataIndex: 'itemEancode',
233
+ render: (text: any) => (
234
+ <Tooltip placement="topLeft" title={text}>
235
+ {text}
236
+ </Tooltip>
237
+ ),
238
+ }
239
+ ]),
240
+ {
241
+ title: '所属SPU名称',
242
+ width: 100,
243
+ ellipsis: {
244
+ showTitle: false,
245
+ },
246
+ dataIndex: 'itemName',
247
+ render: (text: any) => (
248
+ <Tooltip placement="topLeft" title={text}>
249
+ {text}
250
+ </Tooltip>
251
+ ),
252
+ },
253
+ {
254
+ title: '所属SPU编码',
255
+ width: 100,
256
+ ellipsis: {
257
+ showTitle: false,
258
+ },
259
+ dataIndex: 'itemCode',
260
+ render: (text: any) => (
261
+ <Tooltip placement="topLeft" title={text}>
262
+ {text}
263
+ </Tooltip>
264
+ ),
265
+ },
266
+ {
267
+ title: '外部编码',
268
+ width: 100,
269
+ ellipsis: {
270
+ showTitle: false,
271
+ },
272
+ render: (text: any) => (
273
+ <Tooltip placement="topLeft" title={text}>
274
+ {text}
275
+ </Tooltip>
276
+ ),
277
+ dataIndex: 'externalCode',
278
+ },
279
+ {
280
+ title: '规格',
281
+ width: 100,
282
+ ellipsis: {
283
+ showTitle: false,
284
+ },
285
+ render: (text: any) => (
286
+ <Tooltip placement="topLeft" title={text}>
287
+ {text}
288
+ </Tooltip>
289
+ ),
290
+ dataIndex: 'propertyNameAndValue',
291
+ },
292
+ {
293
+ title: '类目',
294
+ width: 100,
295
+ ellipsis: {
296
+ showTitle: false,
297
+ },
298
+ render: (text: any) => (
299
+ <Tooltip placement="topLeft" title={text}>
300
+ {text}
301
+ </Tooltip>
302
+ ),
303
+ dataIndex: 'categoryName',
304
+ },
305
+ {
306
+ title: '品类',
307
+ width: 100,
308
+ ellipsis: {
309
+ showTitle: false,
310
+ },
311
+ render: (text: any) => (
312
+ <Tooltip placement="topLeft" title={text}>
313
+ {text}
314
+ </Tooltip>
315
+ ),
316
+ dataIndex: 'className',
317
+ },
318
+ {
319
+ title: '品牌',
320
+ width: 100,
321
+ ellipsis: {
322
+ showTitle: false,
323
+ },
324
+ render: (text: any) => (
325
+ <Tooltip placement="topLeft" title={text}>
326
+ {text}
327
+ </Tooltip>
328
+ ),
329
+ dataIndex: 'brandName',
330
+ },
331
+ ]
332
+ const mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
333
+ const initialTableSearchForm = [
334
+ {
335
+ name: 'qp-skuCode-like', label: 'SKU编码'
336
+ },
337
+ { name: 'qp-skuName-like', label: 'SKU名称' },
338
+ ...(isNoUseItemBarcode ? []: [
339
+ { name: 'qp-code-in', label: '商品条码', field: {
340
+ type: 'multipleQueryInput',
341
+ props: {
342
+ ...(parProps.requestConfig?.itemEancodeValueRequestConfig || {}),
343
+ },
344
+ }}
345
+ ]),
346
+ { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
191
347
  type: 'select',
192
348
  props: {
193
349
  mode: 'multiple',
@@ -201,7 +357,7 @@ export const AddSkuSelect = (parProps: any) => {
201
357
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
202
358
  },
203
359
  } },
204
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
360
+ { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
205
361
  type: 'treeSelect',
206
362
  props: {
207
363
  treeData: [],
@@ -218,148 +374,69 @@ export const AddSkuSelect = (parProps: any) => {
218
374
  },
219
375
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
220
376
  },
221
- } }
222
- ],
223
- tableColumns: [
224
- {
225
- title: 'SKU编码',
226
- width: 150,
227
- dataIndex: 'skuCode',
228
- },
229
- {
230
- title: 'SKU名称',
231
- width: 200,
232
- ellipsis: {
233
- showTitle: false,
234
- },
235
- render: (text: any) => (
236
- <Tooltip placement="topLeft" title={text}>
237
- {text}
238
- </Tooltip>
239
- ),
240
- dataIndex: 'name',
241
- },
242
- {
243
- title: '图片',
244
- dataIndex: 'itemUrl',
245
- width: 200,
246
- ellipsis: {
247
- showTitle: false,
248
- },
249
- render: (text: any,record: any) => (
250
- <Tooltip placement="topLeft" title={text}>
251
- {tableColumnsImage(getSkuImg(record),{ width: 20, height: 20 })}
252
- </Tooltip>
253
- ),
254
- },
255
- ...(isNoUseItemBarcode ? []: [
256
- {
257
- title: '商品条码',
258
- width: 100,
259
- ellipsis: {
260
- showTitle: false,
261
- },
262
- dataIndex: 'itemEancode',
263
- render: (text: any) => (
264
- <Tooltip placement="topLeft" title={text}>
265
- {text}
266
- </Tooltip>
267
- ),
268
- }
269
- ]),
270
- {
271
- title: '所属SPU名称',
272
- width: 100,
273
- ellipsis: {
274
- showTitle: false,
275
- },
276
- dataIndex: 'itemName',
277
- render: (text: any) => (
278
- <Tooltip placement="topLeft" title={text}>
279
- {text}
280
- </Tooltip>
281
- ),
282
- },
283
- {
284
- title: '所属SPU编码',
285
- width: 100,
286
- ellipsis: {
287
- showTitle: false,
288
- },
289
- dataIndex: 'itemCode',
290
- render: (text: any) => (
291
- <Tooltip placement="topLeft" title={text}>
292
- {text}
293
- </Tooltip>
294
- ),
295
- },
296
- {
297
- title: '外部编码',
298
- width: 100,
299
- ellipsis: {
300
- showTitle: false,
301
- },
302
- render: (text: any) => (
303
- <Tooltip placement="topLeft" title={text}>
304
- {text}
305
- </Tooltip>
306
- ),
307
- dataIndex: 'externalCode',
308
- },
309
- {
310
- title: '规格',
311
- width: 100,
312
- ellipsis: {
313
- showTitle: false,
314
- },
315
- render: (text: any) => (
316
- <Tooltip placement="topLeft" title={text}>
317
- {text}
318
- </Tooltip>
319
- ),
320
- dataIndex: 'propertyNameAndValue',
321
- },
322
- {
323
- title: '类目',
324
- width: 100,
325
- ellipsis: {
326
- showTitle: false,
327
- },
328
- render: (text: any) => (
329
- <Tooltip placement="topLeft" title={text}>
330
- {text}
331
- </Tooltip>
332
- ),
333
- dataIndex: 'categoryName',
334
- },
335
- {
336
- title: '品类',
337
- width: 100,
338
- ellipsis: {
339
- showTitle: false,
340
- },
341
- render: (text: any) => (
342
- <Tooltip placement="topLeft" title={text}>
343
- {text}
344
- </Tooltip>
345
- ),
346
- dataIndex: 'className',
377
+ } },
378
+ ...(parProps?.addTableSearchForm||[])
379
+ ]
380
+ const mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
381
+ const initialPromiseLoadList = [
382
+ {
383
+ url: `/items/brand/queryBrandList`,
384
+ params: {
385
+ pageSize: 5000,
386
+ currentPage: 1,
387
+ 'ctl-withAuth': true
347
388
  },
348
- {
349
- title: '品牌',
350
- width: 100,
351
- ellipsis: {
352
- showTitle: false,
353
- },
354
- render: (text: any) => (
355
- <Tooltip placement="topLeft" title={text}>
356
- {text}
357
- </Tooltip>
358
- ),
359
- dataIndex: 'brandName',
389
+ resType: 'list',
390
+ resPosition: isNoUseItemBarcode ? 2 : 3,
391
+ resKeyValue: ['id','name']
392
+ },
393
+ {
394
+ url: `/items/category/queryCategoryTree`,
395
+ params: {
396
+ pageSize: 5000,
397
+ currentPage: 1,
360
398
  },
361
- ],
362
- selectColumn: mTpSelectColumn
399
+ resType: 'treeList',
400
+ resPosition: isNoUseItemBarcode ? 3 : 4
401
+ },
402
+ ]
403
+ const mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
404
+ const props = {
405
+ buttonText: parProps.buttonText || '新增',
406
+ buttonProps: parProps.buttonProps || {},
407
+ tableCodeList: parProps.tableCodeList || [],
408
+ value,
409
+ // labelInValue: true, // 非必填 默认为false
410
+ requestConfig: {
411
+ url: `/items/sku/pager/v2`,
412
+ filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
413
+ otherParams: {
414
+ 'qp-combination-eq': false,
415
+ 'qp-approveStatus-eq': 1,
416
+ 'qp-status-eq': 1,
417
+ // 'useOrgSign': getCurrentTargetBgId(), // 根据品牌、账号授权的组织+商品授权使用组织做权限过滤 这个交给业务使用的地方去做,传addOtherParams:{useOrgSign:单据中所选组织}
418
+ ...(parProps?.requestConfig?.addOtherParams || {}), // 允许在默认参数基础上,追加/覆盖已有 参数
419
+ }, // 默认参数
420
+ mappingTextField: 'name',
421
+ mappingValueField: 'skuCode',
422
+ ...parProps.requestConfig
423
+ },
424
+ selectProps,
425
+ onChange: (value: any) => {
426
+ console.log(value)
427
+ setValue(value)
428
+ },
429
+ beforeShowModal: parProps?.beforeShowModal,
430
+ onSaveCallback: parProps.onSaveCallback,
431
+ businessType: 'sku',
432
+ isAllowRepeatedSelect: !!parProps?.isAllowRepeatedSelect,
433
+ };
434
+ const modalTableProps = {
435
+ modalTableTitle: '选择商品',
436
+ tableSearchForm: mTpTableSearchForm,
437
+ tableColumns: mTpTableColumn,
438
+ selectColumn: mTpSelectColumn,
439
+ promiseLoadList: mTpPromiseLoadList,
363
440
  }
364
441
 
365
442
  return (
@@ -440,6 +517,49 @@ export const AddSkcSelect = (parProps: any) => {
440
517
  },
441
518
  ]
442
519
  const mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps)
520
+ const initialPromiseLoadList = [
521
+ {
522
+ url: `/items/item/propertyValue/sizeBySkcConfig`,
523
+ params: {
524
+ pageSize: 10000,
525
+ currentPage: 1,
526
+ type: 2, // 类型:1尺码;2颜色
527
+ },
528
+ resType: 'list',
529
+ resPosition: 3,
530
+ resKeyValue: ['value','value']
531
+ },
532
+ {
533
+ url: `/items/category/queryCategoryTree`,
534
+ params: {
535
+ pageSize: 5000,
536
+ currentPage: 1,
537
+ },
538
+ resType: 'treeList',
539
+ resPosition: 4,
540
+ },
541
+ {
542
+ url: `/items/class/withProperty`,
543
+ params: {
544
+ pageSize: 5000,
545
+ currentPage: 1,
546
+ },
547
+ resType: 'list',
548
+ resPosition: 5,
549
+ resKeyValue: ['id','name']
550
+ },
551
+ {
552
+ url: `/items/brand/queryBrandList`,
553
+ params: {
554
+ pageSize: 5000,
555
+ currentPage: 1,
556
+ 'ctl-withAuth': true
557
+ },
558
+ resType: 'list',
559
+ resPosition: 6,
560
+ resKeyValue: ['id','name']
561
+ },
562
+ ]
443
563
  const props = {
444
564
  buttonText: parProps.buttonText || '新增',
445
565
  buttonProps: parProps.buttonProps || {},
@@ -620,6 +740,7 @@ export const AddSkcSelect = (parProps: any) => {
620
740
  },
621
741
  ],
622
742
  selectColumn: mTpSelectColumn,
743
+ promiseLoadList: initialPromiseLoadList
623
744
  }
624
745
 
625
746
  return (
@@ -714,6 +835,49 @@ export const AddSpuSelect = (parProps: any) => {
714
835
  },
715
836
  ]
716
837
  const mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps)
838
+ const initialPromiseLoadList = [
839
+ {
840
+ url: `/user/orgViewNode/listNoPage`,
841
+ params: {
842
+ 'qp-employeeId-eq': getEmployeeId(),
843
+ 'qp-orgViewCode-eq': 'business-organizational-view',
844
+ 'ctl-withDefaultOrg': true,
845
+ },
846
+ resType: 'list',
847
+ resPosition: 2,
848
+ resKeyValue: ['targetId','name']
849
+ },
850
+ {
851
+ url: `/items/brand/queryBrandList`,
852
+ params: {
853
+ pageSize: 5000,
854
+ currentPage: 1,
855
+ 'ctl-withAuth': true
856
+ },
857
+ resType: 'list',
858
+ resPosition: 3,
859
+ resKeyValue: ['id','name']
860
+ },
861
+ {
862
+ url: `/items/category/queryCategoryTree`,
863
+ params: {
864
+ pageSize: 5000,
865
+ currentPage: 1,
866
+ },
867
+ resType: 'treeList',
868
+ resPosition: 4,
869
+ },
870
+ {
871
+ url: `/items/class/withProperty`,
872
+ params: {
873
+ pageSize: 5000,
874
+ currentPage: 1,
875
+ },
876
+ resType: 'list',
877
+ resPosition: 5,
878
+ resKeyValue: ['id','name']
879
+ },
880
+ ]
717
881
  const props = {
718
882
  buttonText: parProps.buttonText || '新增',
719
883
  buttonProps: parProps.buttonProps || {},
@@ -881,7 +1045,8 @@ export const AddSpuSelect = (parProps: any) => {
881
1045
  dataIndex: 'className',
882
1046
  },
883
1047
  ],
884
- selectColumn: mTpSelectColumn
1048
+ selectColumn: mTpSelectColumn,
1049
+ promiseLoadList: initialPromiseLoadList
885
1050
  }
886
1051
 
887
1052
  return (
@@ -94,7 +94,7 @@ const DrawContent = ({onClose, itemPath}: any) => {
94
94
  return (
95
95
  <List
96
96
  className={classNames('allFunsList', 'allFunsListWarp')}
97
- style={{color: '#005CFF'}}
97
+ style={{color: '#02B56E'}}
98
98
  header={<b>{formatMessage({ id: `${item.name}` })}</b>}
99
99
  bordered
100
100
  dataSource={item.children}
@@ -41,7 +41,7 @@
41
41
  .account {
42
42
  .avatar {
43
43
  margin-right: 8px;
44
- color: #1890ff;
44
+ color: #02B56E;
45
45
  vertical-align: top;
46
46
  background: rgba(255, 255, 255, 0.85);
47
47
  }
@@ -140,8 +140,8 @@ const DrawContent = ({onClose, originRoutes=[], itemPath}: any) => {
140
140
  <div
141
141
  className={'left_item'}
142
142
  style={{
143
- borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
144
- color: currentOneLevel === item.path ? '#1890ff' : '#000000'
143
+ borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
144
+ color: currentOneLevel === item.path ? '#02B56E' : '#000000'
145
145
  }}
146
146
  onClick={(e) => {
147
147
  e.stopPropagation();
@@ -240,7 +240,7 @@ const DrawContent = ({onClose, originRoutes=[], itemPath}: any) => {
240
240
  className={`allFunsList allFunsListWarp ${currentOneLevel === item.path ? 'choosedStyle' : ''}`}
241
241
  id={item.path}
242
242
  style={{
243
- color: currentOneLevel === item.path ? '#fff' : '#005CFF',
243
+ color: currentOneLevel === item.path ? '#fff' : '#02B56E',
244
244
  }}
245
245
  header={<b>{formatMessage({ id: `${item.name}` })}</b>}
246
246
  bordered
@@ -41,7 +41,7 @@
41
41
  .account {
42
42
  .avatar {
43
43
  margin-right: 8px;
44
- color: #1890ff;
44
+ color: #02B56E;
45
45
  vertical-align: top;
46
46
  background: rgba(255, 255, 255, 0.85);
47
47
  }
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  .left_item:hover {
104
- color: #1890ff !important;
104
+ color: #02B56E !important;
105
105
  }
106
106
  }
107
107
  .drawerWarp_right {
@@ -160,10 +160,10 @@
160
160
  }
161
161
  .choosedStyle {
162
162
  .ant-list-header {
163
- background-color: #005CFF;
163
+ background-color: #02B56E;
164
164
  opacity: 0.8;
165
165
  b {
166
- border-bottom: 1px solid #005CFF;
166
+ border-bottom: 1px solid #02B56E;
167
167
  }
168
168
  }
169
169
  }
@@ -1,6 +1,6 @@
1
1
  .customer_menu_content {
2
2
  color: #b1bad4;
3
- background: #141620;
3
+ background: #494B4A;
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: center;
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .themeColor {
58
- color: #005cff;
58
+ color: #02B56E;
59
59
  }
60
60
 
61
61
  .itemPath {