diff --git a/src/pages/delivery/components/ItemList/index.tsx b/src/pages/delivery/components/ItemList/index.tsx index c0edb29..3c10fa1 100644 --- a/src/pages/delivery/components/ItemList/index.tsx +++ b/src/pages/delivery/components/ItemList/index.tsx @@ -1,6 +1,5 @@ import LayoutBlock from '@/components/layoutBlock' import Divider from '@/components/divider' -import Tag from '@/components/tag' import { View, Text } from '@tarojs/components' import { FC } from 'react' import NormalButton from '@/components/normalButton' @@ -9,9 +8,10 @@ import classnames from 'classnames' import { EnumSaleMode } from '@/common/Enumerate' import { formatDateTime, formatMeterDiv } from '@/common/format' import { goLink } from '@/common/common' -import { DeliveryNoticeOrderAudit } from '@/api/index' -import Taro from '@tarojs/taro' +// import { DeliveryNoticeOrderAudit } from '@/api/index' +// import Taro from '@tarojs/taro' import SaleModeTag from '@/components/saleModeTag' +// import { alert } from '@/common/common' type PropsType = { itemData: Record @@ -28,26 +28,30 @@ const ItemList:FC = (props) => { }) } - const {fetchData, state} = DeliveryNoticeOrderAudit() + // const {fetchData} = DeliveryNoticeOrderAudit() - // 确认审核 - const handleAudit = (id: number) => { - Taro.showModal({ - content: '确认要审核吗?', - confirmColor: '#337FFF', - success: async (res) => { - if (res.confirm) { - const res = await fetchData({ id }) - if (res.success) { - Taro.showToast({ title: '审核成功', icon: 'success' }) - onSuccess?.() - }else{ - Taro.showToast({ title: '审核失败', icon: 'error' }) - } - } - }, - }) - } + // // 确认审核 + // const handleAudit = (id: number) => { + // if (itemData.delivery_appendix_url.length === 0 ) { + // alert.error('请先上传附件') + // return + // } + // Taro.showModal({ + // content: '确认要审核吗?', + // confirmColor: '#337FFF', + // success: async (res) => { + // if (res.confirm) { + // const res = await fetchData({ id }) + // if (res.success) { + // Taro.showToast({ title: '审核成功', icon: 'success' }) + // onSuccess?.() + // }else{ + // Taro.showToast({ title: '审核失败', icon: 'error' }) + // } + // } + // }, + // }) + // } return ( @@ -88,11 +92,11 @@ const ItemList:FC = (props) => { onClick={() => handleDetail(itemData)}> 查看详情 - {itemData?.status === 0 && ( + {/* {itemData?.status === 0 && ( handleAudit(itemData?.id)}> 确认审核 - )} + )} */} )