This commit is contained in:
ylj20011123 2025-08-18 19:09:00 +08:00
parent cb0823bbcb
commit 55eacd99f8
15 changed files with 923 additions and 791 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "ant-design-pro",
"version": "4.5.26",
"version": "4.5.31",
"private": true,
"description": "An out-of-box UI solution for enterprise applications",
"scripts": {

View File

@ -156,7 +156,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
const [tabList, setTabList] = useState<any>([]);// 选项卡列表
const [showLoading, setShowLoading] = useState<boolean>(false)// 是否显示加载蒙层
const [showLoading1, setShowLoading1] = useState<boolean>(false)// 是否显示加载蒙层
const [showList,setShowList] = useState<boolean>(false)// 传给在营项目 是否显示列表
const [showList, setShowList] = useState<boolean>(false)// 传给在营项目 是否显示列表
const [detailMessage, setDetailMessage] = useState<any>()// 每个品牌的默认值
const [serviceCar, setServiceCar] = useState<boolean>(false)// 月度车流分析
const [serviceCarList, setServiceCarList] = useState<any>([])// 车流分析的数据
@ -246,7 +246,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
const planType = useRef()// 判断打开的是年度计划还是月份计划
const planRevenueData = useRef()// 自营计划的数据
const planRevenueDetailList = useRef()// 自营计划的月度明细
const [contentLoading,setContentLoading] = useState<boolean>(false)// 显示抽屉加载效果的判断条件
const [contentLoading, setContentLoading] = useState<boolean>(false)// 显示抽屉加载效果的判断条件
// 设置页面右侧上面昨日数据里面的时间选择器里的禁用时间用的方法
const disabledDate = (current: any) => {
return current && current < moment().subtract(10, 'day') || current > moment().subtract(1, 'day');
@ -478,12 +478,12 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
req = {
ServerpartId: id,
StartDate: `${y}-01-01`,
ShowProjectSplit:false
ShowProjectSplit: false
}
} else {
req = {
ServerpartId: id,
ShowProjectSplit:false
ShowProjectSplit: false
}
}
const data = await getBrandReceivablesList(req)
@ -656,8 +656,8 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
sectionMaxRef.current = Number((sectionMax / 10000).toFixed(2))
entryMaxRef.current = entryMax
console.log('pieLine',pieLine)
console.log('pieList',pieList)
console.log('pieLine', pieLine)
console.log('pieList', pieList)
// setServiceCarList(data.data)
if (showDrawer) {
@ -717,7 +717,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
// 改变归属地右边城市列表的方法
const getCityList = async (ProvinceName: string, allCount: number, type: number, time: any) => {
const req = {
StatisticsMonth: time?moment(time).format('YYYYMM') :moment(moment().subtract(1, 'day').format('YYYY-MM-DD')).format('YYYYMM'),
StatisticsMonth: time ? moment(time).format('YYYYMM') : moment(moment().subtract(1, 'day').format('YYYY-MM-DD')).format('YYYYMM'),
Serverpart_ID: serverpartId.current,
ProvinceName,
isExclude: ProvinceName.indexOf(',') !== -1,
@ -914,6 +914,8 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
}
const data = await getServiceDetail(req)
setServiceName(data.SERVERPART_NAME)
console.log('datadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatavv', data);
setServiceDetail(data)
}
const typeObj = {
@ -1194,15 +1196,15 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
<div className={'onSaleProjectTitle'}></div>
<div className={'projectContent'}>
<Radio.Group className={'tab'} value={selectTab} onChange={(val) => {
console.log('val',val)
console.log('val', val)
setSelectTab(val.target.value)
setTableList(allList[val.target.value])
console.log('tabs',tabs)
console.log('tabs', tabs)
}}>
{
tabs && tabs.length>0?tabs.map((item: any) => {
tabs && tabs.length > 0 ? tabs.map((item: any) => {
return <Radio.Button className={'tabItem'} value={item.key}>{item.label}<span style={{ marginLeft: '4px' }}>{`(${item.value})`}</span></Radio.Button>
}):''
}) : ''
}
</Radio.Group>
<div className={'brandList'}>
@ -1253,323 +1255,323 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
</>
:
// 平面图不显示的时候 左侧显示的内容
<>
<div className={'serviceImg'}>
{
serviceDetail?.ImageLits && serviceDetail?.ImageLits.length > 0 && serviceDetail?.ImageLits[0] ?
<img className={'img'} src={serviceDetail?.ImageLits[0]} /> :
<img className={'defaultImg'} src={defaultIcon} />
}
</div>
<div className={'desc'}>
<img className={'descIcon'} src={descIcon} />
<span className={'descText'}>{serviceDetail?.ServerpartInfo?.SERVERPART_INFO}</span>
<span className={'notice'}>{serviceDetail?.ServerpartInfo?.SERVERPART_INFO}</span>
</div>
<div className={'serviceTypeTabs'}>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={carService} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={hotal} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={charge} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={baby} />
<span className={'itemText'}></span>
</div>
</div>
<>
<div className={'serviceImg'}>
{
serviceDetail ?
<div className={'detailList'}>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={area} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.FLOORAREA ? fmoney(serviceDetail.ServerpartInfo.FLOORAREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={stopArea} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SHAREAREA ? fmoney(serviceDetail.ServerpartInfo.SHAREAREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={buildArea} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SERVERPART_AREA ? fmoney(serviceDetail.ServerpartInfo.SERVERPART_AREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={water} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.WATERINTAKE_TYPE === 1 ? '自来水' : serviceDetail.ServerpartInfo.WATERINTAKE_TYPE === 2 ? '井水' : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={badWater} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SEWAGEDISPOSAL_TYPE === 1 ? '市政' : serviceDetail.ServerpartInfo?.SEWAGEDISPOSAL_TYPE === 2 ? '污水处理设备' : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={fixed} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SERVERPART_ADDRESS ? serviceDetail.ServerpartInfo.SERVERPART_ADDRESS : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={managerUnit} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.MANAGERCOMPANY ? serviceDetail.ServerpartInfo.MANAGERCOMPANY : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'} >
<img className={'itemLeftIcon'} src={propryRight} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.OWNEDCOMPANY ? serviceDetail.ServerpartInfo.OWNEDCOMPANY : ''}</div>
</div>
</div>
: ''
serviceDetail?.ImageLits && serviceDetail?.ImageLits.length > 0 && serviceDetail?.ImageLits[0] ?
<img className={'img'} src={serviceDetail?.ImageLits[0]} /> :
<img className={'defaultImg'} src={defaultIcon} />
}
<div className={'areaList'}>
{
serviceDetail && serviceDetail.RegionInfo ?
serviceDetail.RegionInfo.map((item: any) => {
return <div className={'areaItem'}>
<div className={'areaItemTop'}>
<img className={'itemTopIcon'} src={ES} style={{ transform: `rotate(${item.SERVERPART_REGIONNAME === '东区' || item.SERVERPART_REGIONNAME === '西区' ? '90deg' : '0deg'})` }} />
<span className={'itemTitle'}>{`${item.SERVERPART_REGIONNAME || ''}`}</span>
<span className={'typeItem'}></span>
</div>
<div className={'desc'}>
<img className={'descIcon'} src={descIcon} />
<span className={'descText'}>{serviceDetail?.ServerpartInfo?.SERVERPART_INFO}</span>
<span className={'notice'}>{serviceDetail?.ServerpartInfo?.SERVERPART_INFO}</span>
</div>
<div className={'serviceTypeTabs'}>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={carService} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={hotal} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={charge} />
<span className={'itemText'}></span>
</div>
<div className={'serviceTypeItem'}>
<img className={'itemIcon'} src={baby} />
<span className={'itemText'}></span>
</div>
</div>
{
serviceDetail ?
<div className={'detailList'}>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={area} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.FLOORAREA ? fmoney(serviceDetail.ServerpartInfo.FLOORAREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={stopArea} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SHAREAREA ? fmoney(serviceDetail.ServerpartInfo.SHAREAREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={buildArea} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SERVERPART_AREA ? fmoney(serviceDetail.ServerpartInfo.SERVERPART_AREA, 2) : '-'}m²</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={water} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.WATERINTAKE_TYPE === 1 ? '自来水' : serviceDetail.ServerpartInfo.WATERINTAKE_TYPE === 2 ? '井水' : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={badWater} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SEWAGEDISPOSAL_TYPE === 1 ? '市政' : serviceDetail.ServerpartInfo?.SEWAGEDISPOSAL_TYPE === 2 ? '污水处理设备' : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={fixed} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.SERVERPART_ADDRESS ? serviceDetail.ServerpartInfo.SERVERPART_ADDRESS : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'}>
<img className={'itemLeftIcon'} src={managerUnit} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.MANAGERCOMPANY ? serviceDetail.ServerpartInfo.MANAGERCOMPANY : ''}</div>
</div>
<div className={'detailItem'}>
<div className={'detailItemLeft'} >
<img className={'itemLeftIcon'} src={propryRight} />
<span className={'itemLeftLabel'}></span>
</div>
<div className={'detailItemRight'}>{serviceDetail?.ServerpartInfo?.OWNEDCOMPANY ? serviceDetail.ServerpartInfo.OWNEDCOMPANY : ''}</div>
</div>
</div>
: ''
}
<div className={'areaList'}>
{
serviceDetail && serviceDetail.RegionInfo ?
serviceDetail.RegionInfo.map((item: any) => {
return <div className={'areaItem'}>
<div className={'areaItemTop'}>
<img className={'itemTopIcon'} src={ES} style={{ transform: `rotate(${item.SERVERPART_REGIONNAME === '东区' || item.SERVERPART_REGIONNAME === '西区' ? '90deg' : '0deg'})` }} />
<span className={'itemTitle'}>{`${item.SERVERPART_REGIONNAME || ''}`}</span>
<span className={'typeItem'}></span>
</div>
<div className={'itemList'}>
<div className={'contentItem'}>
<div className={item.HASPANTRY ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={manWC} />
<span className={'contentItemText'}>
{
item.HASPANTRY ?
<span className={'number'}>{`(${item.HASPANTRY || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'itemList'}>
<div className={'contentItem'}>
<div className={item.HASPANTRY ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={manWC} />
<span className={'contentItemText'}>
{
item.HASPANTRY ?
<span className={'number'}>{`(${item.HASPANTRY || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASWIFI ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={womenWC} />
<span className={'contentItemText'}>
{
item.HASWIFI ?
<span className={'number'}>{`(${item.HASWIFI || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASWIFI ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={womenWC} />
<span className={'contentItemText'}>
{
item.HASWIFI ?
<span className={'number'}>{`(${item.HASWIFI || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASTHIRDTOILETS ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={thirdToilets} />
<span className={'contentItemText'}>
{
item.HASTHIRDTOILETS ?
<span className={'number'}>{`(${item.HASTHIRDTOILETS || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASTHIRDTOILETS ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={thirdToilets} />
<span className={'contentItemText'}>
{
item.HASTHIRDTOILETS ?
<span className={'number'}>{`(${item.HASTHIRDTOILETS || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.TOILETCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={tidalSpace} />
<span className={'contentItemText'}>
{
item.TOILETCOUNT ?
<span className={'number'}>{`(${item.TOILETCOUNT || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.TOILETCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={tidalSpace} />
<span className={'contentItemText'}>
{
item.TOILETCOUNT ?
<span className={'number'}>{`(${item.TOILETCOUNT || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASWATERROOM ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={waterBoiler} />
<span className={'contentItemText'}>
{
item.HASWATERROOM ?
<span className={'number'}>{`(${item.HASWATERROOM || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASWATERROOM ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={waterBoiler} />
<span className={'contentItemText'}>
{
item.HASWATERROOM ?
<span className={'number'}>{`(${item.HASWATERROOM || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASSHOWERROOM ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={vehicleRefueling} />
<span className={'contentItemText'}>
{
item.HASSHOWERROOM ?
<span className={'number'}>{`(${item.HASSHOWERROOM || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASSHOWERROOM ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={vehicleRefueling} />
<span className={'contentItemText'}>
{
item.HASSHOWERROOM ?
<span className={'number'}>{`(${item.HASSHOWERROOM || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASCHILD ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={maintenance} />
<span className={'contentItemText'}>
{
item.HASCHILD ?
<span className={'number'}>{`(${item.HASCHILD || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASCHILD ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={maintenance} />
<span className={'contentItemText'}>
{
item.HASCHILD ?
<span className={'number'}>{`(${item.HASCHILD || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.SMALLPARKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={car} />
<span className={'contentItemText'}>
轿
{
item.SMALLPARKING ?
<span className={'number'}>{`(${item.SMALLPARKING || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.SMALLPARKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={car} />
<span className={'contentItemText'}>
轿
{
item.SMALLPARKING ?
<span className={'number'}>{`(${item.SMALLPARKING || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.PACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={bus} />
<span className={'contentItemText'}>
{
item.PACKING ?
<span className={'number'}>{`(${item.PACKING || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.PACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={bus} />
<span className={'contentItemText'}>
{
item.PACKING ?
<span className={'number'}>{`(${item.PACKING || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.TRUCKPACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={trainCar} />
<span className={'contentItemText'}>
{
item.TRUCKPACKING ?
<span className={'number'}>{`(${item.TRUCKPACKING || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.TRUCKPACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={trainCar} />
<span className={'contentItemText'}>
{
item.TRUCKPACKING ?
<span className={'number'}>{`(${item.TRUCKPACKING || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.DININGROOMCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={food} />
<span className={'contentItemText'}>
{
item.DININGROOMCOUNT ?
<span className={'number'}>{`(${item.DININGROOMCOUNT || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.DININGROOMCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={food} />
<span className={'contentItemText'}>
{
item.DININGROOMCOUNT ?
<span className={'number'}>{`(${item.DININGROOMCOUNT || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASBACKGROUNDRADIO ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={minimart} />
<span className={'contentItemText'}>
便
{
item.HASBACKGROUNDRADIO ?
<span className={'number'}>{`(${item.HASBACKGROUNDRADIO || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASBACKGROUNDRADIO ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={minimart} />
<span className={'contentItemText'}>
便
{
item.HASBACKGROUNDRADIO ?
<span className={'number'}>{`(${item.HASBACKGROUNDRADIO || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.HASMESSAGESEARCH ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={room} />
<span className={'contentItemText'}>
宿
{
item.HASMESSAGESEARCH ?
<span className={'number'}>{`(${item.HASMESSAGESEARCH || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.HASMESSAGESEARCH ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={room} />
<span className={'contentItemText'}>
宿
{
item.HASMESSAGESEARCH ?
<span className={'number'}>{`(${item.HASMESSAGESEARCH || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.DININGBXCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={shop} />
<span className={'contentItemText'}>
{
item.DININGBXCOUNT ?
<span className={'number'}>{`(${item.DININGBXCOUNT || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.DININGBXCOUNT ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={shop} />
<span className={'contentItemText'}>
{
item.DININGBXCOUNT ?
<span className={'number'}>{`(${item.DININGBXCOUNT || ""})`}</span> : ''
}
</span>
</div>
</div>
<div className={'contentItem'}>
<div className={item.DANPACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={chemicals} />
<span className={'contentItemText'}>
{
item.DANPACKING ?
<span className={'number'}>{`(${item.DANPACKING || ""})`}</span> : ''
}
</span>
</div>
<div className={'contentItem'}>
<div className={item.DANPACKING ? 'contentItemBox' : 'contentItemBox noContentItemBox'}>
<img className={'contentItemIcon'} src={chemicals} />
<span className={'contentItemText'}>
{
item.DANPACKING ?
<span className={'number'}>{`(${item.DANPACKING || ""})`}</span> : ''
}
</span>
</div>
</div>
</div>
}) : <NoData />
}
</div>
</>
</div>
}) : <NoData />
}
</div>
</>
}
</>
}
@ -1967,7 +1969,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
{/* giveProjectServiceInfo 拿到商家id和商家名称 handleGetTableList拿到在营项目列表中的列表数据 平面图出现的时候 左侧显示的内容 */}
<OnlineProjectItem onRef={OnlineProjectItemRef} getModeLabel={getModeLabel} fmoney={fmoney} openProject={openProject} serverpartId={serverpartId}
giveProjectServiceInfo={giveProjectServiceInfo} handleGetTableList={handleGetTableList} showList={showList} setShowList={setShowList}
tableShowBottom={true}/>
tableShowBottom={true} />
{/* <div className={'onSaleProject'}> */}
{/* <div className={'onSaleProjectTitle'}>在营项目</div> */}
@ -2667,23 +2669,23 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
</div>
<div className={'drawerContent'}>
{
contentLoading?
contentLoading ?
<div className={'contentLoading'}>
<div className={'loading'}>
<Spin />
<span style={{ marginLeft: '5px' }}>{'加载中.....'}</span>
</div>
</div>:''
</div> : ''
}
{
selectFun === 1 ?
<>
<div style={{ marginBottom: '12px', width: '100%', display: 'flex', justifyContent: 'space-between' }}>
<RangePicker value={funTimeDate1} format={'YYYY-MM-DD'} onChange={(val: any) => {
if (val){
if (val) {
setFunTimeDate1([moment(val[0]._d), moment(val[1]._d)])
handleMeetingDetail(serverpartId.current, [moment(val[0]._d), moment(val[1]._d)])
}else{
} else {
setFunTimeDate1([])
setMeetDetail([])
}
@ -2774,10 +2776,10 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
<>
<div style={{ marginBottom: '12px', width: '100%', display: 'flex', justifyContent: 'space-between' }}>
<RangePicker value={funTimeDate3} disabledDate={dailyDisableDate} format={'YYYY-MM-DD'} onChange={(val: any) => {
if (val){
if (val) {
setFunTimeDate3([moment(val[0]._d), moment(val[1]._d)])
getDailySerach(serverpartId.current, [moment(val[0]._d), moment(val[1]._d)])
}else{
} else {
setFunTimeDate3([])
setDailyData([])
}
@ -2923,7 +2925,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
<>
<div style={{ display: selectFun === 4 ? 'block' : 'none' }}>
<Card bordered={false} bodyStyle={{ padding: 0, margin: 0 }}>
<RevenueSummary serverpartId={serverpartId.current} type={true}/>
<RevenueSummary serverpartId={serverpartId.current} type={true} />
</Card>
</div>
</>
@ -2935,7 +2937,7 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
</div>
<>
<div style={{ display: selectFun === 6 ? 'block' : 'none',width:'100%' }}>
<div style={{ display: selectFun === 6 ? 'block' : 'none', width: '100%' }}>
<ShareBenefit isComponents={true} ServerpartId={serverpartId.current} />
</div>
</>

File diff suppressed because it is too large Load Diff

View File

@ -550,6 +550,14 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
beforeUpload,
onPreview: handlePreview,
// fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
console.log('info', info);
console.log('fileList', fileList);

View File

@ -345,6 +345,14 @@ const LostandFoundReview: React.FC<{ currentUser: CurrentUser | undefined }> = (
beforeUpload,
onPreview: handlePreview,
// fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
console.log('info', info);
console.log('fileList', fileList);

View File

@ -559,6 +559,14 @@ const MallBrandManage: React.FC<{ currentUser: CurrentUser }> = (props) => {
beforeUpload,
onPreview: handlePreview,
fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = fileList.findIndex(n => n.uid === info.file.uid);

View File

@ -514,8 +514,17 @@ const MerchantEvaluationManage: React.FC<{ currentUser: CurrentUser, isComponent
listType="picture-card"
accept="image/*"
fieldProps={{
onPreview: handlePreview
onPreview: handlePreview,
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
}}
/>
</Col>

View File

@ -842,6 +842,14 @@ const OrderProductManage: React.FC<{ currentUser: CurrentUser | undefined }> = (
maxCount: 1,
onPreview: handlePreview,
fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = fileList.findIndex(n => n.uid === info.file.uid);

View File

@ -1410,6 +1410,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
handlePreview(1)
},
fileList: mainImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
@ -1461,6 +1469,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
handlePreview(2)
},
fileList: headerImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
@ -1512,6 +1528,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
handlePreview(3)
},
fileList: detailImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = detailImgList.findIndex(n => n.uid === info.file.uid);

View File

@ -1316,6 +1316,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
beforeUpload,
onPreview: handlePreview,
fileList: mainImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
@ -1365,6 +1373,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
beforeUpload,
onPreview: handlePreview,
fileList: headerImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
@ -1416,6 +1432,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
beforeUpload,
onPreview: handlePreview,
fileList: detailImgList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
if (info.file.status === 'removed') {
const index = detailImgList.findIndex(n => n.uid === info.file.uid);

View File

@ -488,6 +488,14 @@ const SummaryofMerchantReviews: React.FC<{ currentUser: CurrentUser, isComponent
accept="image/*"
fieldProps={{
onPreview: handlePreview,
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
}}
/>
</Col>

View File

@ -107,6 +107,8 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
fixed: "left",
render: (_, record) => {
return <a onClick={() => {
console.log('recordrecord', record);
let imgList: any = []
if (record?.ImageList && record?.ImageList.length > 0) {
record?.ImageList.forEach((item: any) => {
@ -345,16 +347,20 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
OPERATE_DATE: moment().format('YYYY-MM-DD HH:mm:ss'),
}
}
handleConfirmLoading(true)
const data = await handeSynchroSCENICAREA(req)
console.log('datadatadatadata', data);
handleConfirmLoading(false)
if (data.Result_Code === 100) {
console.log('res.SCENICAREA_Imageres.SCENICAREA_Imageres.SCENICAREA_Image', res.SCENICAREA_Image);
if (res.SCENICAREA_Image && res.SCENICAREA_Image.length > 0) {
const formData = new FormData();
res.SCENICAREA_Image.forEach((file: any) => {
formData.append('files[]', file.originFileObj);
formData.append('ImageName', typeof file !== 'string' ? file?.name : '');
if (!file.ImageUrl) {
formData.append('files[]', file.originFileObj);
formData.append('ImageName', typeof file !== 'string' ? file?.name : '');
}
});
formData.append('TableId', data.Result_Data.SCENICAREA_ID);
formData.append('TableType', '1305');
@ -365,6 +371,8 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
handleSetlogSave(`${currentRow?.SCENICAREA_ID ? `更新${currentRow?.SCENICAREA_NAME}景区` : `新增${data.Result_Data.SCENICAREA_NAME}`}信息`)
handleConfirmLoading(false)
message.success("更新成功!")
setCurrentRow(undefined)
formRef?.current?.resetFields()
@ -372,6 +380,7 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
actionRef.current?.reload()
setFileList([])
} else {
handleConfirmLoading(false)
message.error(data.Result_Desc)
}
};
@ -682,9 +691,17 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
listType="picture-card"
accept="image/*"
fieldProps={{
beforeUpload,
beforeUpload: beforeUpload,
onPreview: handlePreview,
fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
console.log('info', info);
console.log('fileList', fileList);

View File

@ -892,6 +892,14 @@ const serverpartInfo: React.FC<{ currentUser: CurrentUser }> = (props) => {
beforeUpload,
onPreview: handlePreview,
fileList: fileList, // 绑定 fileList
customRequest: ({ file, onSuccess }) => {
// 自定义上传,不实际发送请求
setTimeout(() => {
if (onSuccess) {
onSuccess({});
}
}, 0);
},
onChange: async (info: any) => {
console.log('info', info);
console.log('fileList', fileList);

View File

@ -1,4 +1,4 @@
// 由 scripts/writeVersion.js 自动生成
export const VERSION = "4.5.26";
export const GIT_HASH = "c145b6c";
export const BUILD_TIME = "2025-08-15T08:20:30.752Z";
export const VERSION = "4.5.31";
export const GIT_HASH = "cb0823b";
export const BUILD_TIME = "2025-08-18T02:35:36.007Z";