Commit 0cb852a6f8fa4eec20db4f95b8b9f1859be4f977

Authored by 徐欣
1 parent 6d659537

feat(approval): 审批配置修复树状门店选择器回显数据的问题

src/pages/approval/components/ShopSelectByBizType/index.tsx
... ... @@ -107,8 +107,8 @@ function ShopSelectByBizType(
107 107 (children || [])
108 108 .filter((child) => !child.disabled)
109 109 .map((shop) => ({
110   - label: `${shop.shopName}`,
111   - value: shop.shopId,
  110 + label: shop.title,
  111 + value: shop.value,
112 112 })),
113 113 );
114 114 if (index === byBizTypeList.length - 1) {
... ... @@ -135,8 +135,8 @@ function ShopSelectByBizType(
135 135 // 将商家下的门店赋值给allValues
136 136 allValues.current = allValues.current.concat(
137 137 (children || []).map((shop) => ({
138   - label: shop.shopName,
139   - value: shop.shopId,
  138 + label: shop.title,
  139 + value: shop.value,
140 140 })),
141 141 );
142 142 if (index === byDealerList.length - 1) {
... ... @@ -220,6 +220,7 @@ function ShopSelectByBizType(
220 220 }
221 221  
222 222 function processingChildrenData(data: ShopItem, showIds?: number[], hiddenIds?: number[], disabledIds?: number[]): DataItem[] | undefined {
  223 + // todo hiddenIds 需要拼接 bizType 处理
223 224 let _data: ShopItem[] | undefined, _children: DataItem[] | undefined;
224 225  
225 226 if (showIds?.length) {
... ...