✨ feat:增加退款码单
This commit is contained in:
@@ -222,6 +222,22 @@
|
||||
}
|
||||
|
||||
.bottomBox {
|
||||
margin-top: 40px;
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
.seeButon {
|
||||
margin-right: 30px;
|
||||
width: 160px;
|
||||
height: 72px;
|
||||
border-radius: 40px;
|
||||
opacity: 0.6;
|
||||
border: 1px solid #000000;
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
line-height: 72px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ interface propsObj {
|
||||
cancle?: (arg: any, obj: any) => void,
|
||||
nextBuy?: (arg: any, obj: any) => void,
|
||||
toPay?: (arg: any, obj: any) => void
|
||||
handSee?: (any) => void
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +30,7 @@ export default memo((props: propsObj) => {
|
||||
}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<View className={styles.itemBox} onClick={() => navTo(props.obj)}>
|
||||
<View className={styles.topItem}>
|
||||
@@ -104,15 +106,11 @@ export default memo((props: propsObj) => {
|
||||
|
||||
</View>
|
||||
}
|
||||
|
||||
{/* <View className={styles.bottomBox}>
|
||||
<BottomBtns
|
||||
obj={props?.obj}
|
||||
cancle={(e) => props?.cancle?.(e, props?.obj)}
|
||||
nextBuy={(e) => props?.nextBuy?.(e, props?.obj)}
|
||||
toPay={(e) => props?.toPay?.(e, props?.obj)}
|
||||
></BottomBtns>
|
||||
</View> */}
|
||||
{
|
||||
(props.obj.sale_mode == 0 && props?.obj.stage == 3 && (props?.obj.type == 1 || props?.obj.type == 3)) && <View className={styles.bottomBox}>
|
||||
<View className={styles.seeButon} onClick={(e) => { props?.handSee?.(e) }}>查看码单</View>
|
||||
</View>
|
||||
}
|
||||
</View>
|
||||
)
|
||||
})
|
||||
@@ -18,6 +18,7 @@ import Tabs from "./components/tabs"
|
||||
import TimePickerPopup from '@/components/timePickerPopup'
|
||||
import dayjs from 'dayjs'
|
||||
import IconFont from '@/components/iconfont/iconfont'
|
||||
import RefundCodelist from "@/components/RefundCodelist"
|
||||
export default () => {
|
||||
//页码和页数
|
||||
|
||||
@@ -302,6 +303,13 @@ export default () => {
|
||||
}, [searchField])
|
||||
|
||||
|
||||
const [ShowCode, setShowCode] = useState(false)
|
||||
const [ItemInfo, setItemInfo] = useState<any>({})
|
||||
const handSee = (e, item) => {
|
||||
e.stopPropagation()
|
||||
setItemInfo(item)
|
||||
setShowCode(true)
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -328,6 +336,7 @@ export default () => {
|
||||
<ItemList
|
||||
obj={item}
|
||||
key={index}
|
||||
handSee={(e) => handSee(e, item)}
|
||||
></ItemList>
|
||||
</View>
|
||||
)
|
||||
@@ -403,6 +412,12 @@ export default () => {
|
||||
closePopup={handClose}
|
||||
onSelectDate={(e) => handTime(e)}
|
||||
></TimePickerPopup>
|
||||
<RefundCodelist
|
||||
obj={ItemInfo}
|
||||
// picUrl={PicUrl}
|
||||
showPopup={ShowCode}
|
||||
popupClose={() => setShowCode(false)}
|
||||
></RefundCodelist>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user