1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, {useState, useEffect, useCallback} from 'react'
|
||||
import {View, Text, ScrollView} from '@tarojs/components'
|
||||
import {Empty, PullToRefresh, Space, Loading, DatePicker} from '@nutui/nutui-react-taro'
|
||||
import {Empty, PullToRefresh, Space, Loading, DatePicker, Button} from '@nutui/nutui-react-taro'
|
||||
import {ArrowDown} from '@nutui/icons-react-taro'
|
||||
import Taro from '@tarojs/taro'
|
||||
import {pageShopDealerOrder} from '@/api/shop/shopDealerOrder'
|
||||
@@ -126,12 +126,6 @@ const DealerOrder: React.FC = () => {
|
||||
return '待结算'
|
||||
}
|
||||
|
||||
// const getStatusColor = (isSettled?: number, isInvalid?: number) => {
|
||||
// if (isInvalid === 1) return 'danger'
|
||||
// if (isSettled === 1) return 'success'
|
||||
// return 'warning'
|
||||
// }
|
||||
|
||||
const renderOrderItem = (order: OrderWithDetails) => (
|
||||
<View key={order.id} className="bg-white rounded-lg p-4 mb-3 shadow-sm">
|
||||
<View className="flex justify-between items-start mb-1">
|
||||
@@ -153,7 +147,6 @@ const DealerOrder: React.FC = () => {
|
||||
</Text>
|
||||
</View>
|
||||
<View className="mb-1">
|
||||
{/*DealerId:{Taro.getStorageSync('DealerId')}*/}
|
||||
{/* 一级佣金30 */}
|
||||
{(hasRole('superAdmin') || hasRole('admin') || Taro.getStorageSync('UserId') != order.thirdUserId) && (
|
||||
<>
|
||||
@@ -219,21 +212,6 @@ const DealerOrder: React.FC = () => {
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
{/*<View className="flex justify-between items-center mb-1">*/}
|
||||
{/* <Text className="text-sm text-gray-400">*/}
|
||||
{/* {(order.thirdUserId && order.thirdUserId > 0) ? '获取收益' : '推荐收益'}*/}
|
||||
{/* </Text>*/}
|
||||
{/* <Text className="text-sm text-gray-400">*/}
|
||||
{/* 合作方收益:{getStatusText(order.isSettled, order.isInvalid)}*/}
|
||||
{/* </Text>*/}
|
||||
{/*</View>*/}
|
||||
|
||||
{/*<View className="flex justify-between items-center mb-1">*/}
|
||||
{/* <Text className="text-sm text-gray-400">*/}
|
||||
{/* {order.settleTime}*/}
|
||||
{/* </Text>*/}
|
||||
{/*</View>*/}
|
||||
|
||||
</View>
|
||||
)
|
||||
|
||||
@@ -254,12 +232,19 @@ const DealerOrder: React.FC = () => {
|
||||
lowerThreshold={50}
|
||||
>
|
||||
{/*筛选工具条*/}
|
||||
<Space
|
||||
<View
|
||||
className={'p-4'}
|
||||
>
|
||||
<Text className={'text-sm'} onClick={() => setShow1(true)}>{date ? `${date}` : '请选择'}</Text>
|
||||
<ArrowDown size={10} className={'text-gray-400'} onClick={() => setShow1(true)}/>
|
||||
</Space>
|
||||
<View className={'select-month'}>
|
||||
<Text className={'text-sm'} onClick={() => setShow1(true)}>{date ? `${date}` : '请选择'}</Text>
|
||||
<ArrowDown size={10} className={'text-gray-400'} onClick={() => setShow1(true)}/>
|
||||
</View>
|
||||
<View className={'select-user'}>
|
||||
<Button size={'mini'}>业务员</Button>
|
||||
<Button size={'mini'}>聚道1</Button>
|
||||
<Button size={'mini'}>聚道2</Button>
|
||||
</View>
|
||||
</View>
|
||||
{/*账单列表*/}
|
||||
<View className="px-4">
|
||||
{loading && orders.length === 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user