From db6b2e4f26b9b1c2544815ad88f0c844a74e5801 Mon Sep 17 00:00:00 2001 From: xuan Date: Tue, 22 Nov 2022 10:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000736):=20=E3=80=90Bug?= =?UTF-8?q?=E8=BD=AC=E9=9C=80=E6=B1=82=E3=80=91=E5=8F=91=E8=B4=A7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=8D=E6=94=BE=E5=AE=A1=E6=A0=B8=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E4=B8=94=E4=B8=80=E5=AE=9A=E8=A6=81=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=85=A7=E7=89=87/=E8=A7=86=E9=A2=91=E6=89=8D=E8=83=BD?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【Bug转需求】发货列表不放审核按钮,且一定要上传照片/视频才能审核通过】 https://www.tapd.cn/53459131/prong/stories/view/1153459131001000736 --- .../delivery/components/ItemList/index.tsx | 52 ++++++++++--------- 1 file changed, 28 insertions(+), 24 deletions(-) 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)}> 确认审核 - )} + )} */} )