✨ feat:售后模块100%
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
.itemBox {
|
||||
margin-top: 38px;
|
||||
overflow: hidden;
|
||||
width: 702px;
|
||||
height: 560px;
|
||||
margin: 24px;
|
||||
height: 416px;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
margin-left: 24px;
|
||||
|
||||
@@ -30,7 +30,7 @@ export default memo((props: propsObj) => {
|
||||
|
||||
|
||||
return (
|
||||
<View className={styles.itemBox} onClick={(e) => navTo(e)}>
|
||||
<View className={styles.itemBox} onClick={() => navTo(props.obj)}>
|
||||
<View className={styles.topItem}>
|
||||
<View className={styles.orderNo}>单号:{props?.obj?.order_no}</View>
|
||||
<View className={styles.status}>{props?.obj?.stage_name}</View>
|
||||
@@ -94,12 +94,15 @@ export default memo((props: propsObj) => {
|
||||
props?.obj?.total_colors
|
||||
} 种颜色,共 {props?.obj?.sale_mode === 0 ? props?.obj?.total_number : props?.obj?.total_number / 100} {props?.obj?.sale_mode === 0 ? '条' : 'm'}</View>
|
||||
</View>
|
||||
<View className={styles.bottomMsg}>
|
||||
<View className={styles.msgLeft}>退款金额:</View>
|
||||
{
|
||||
(props?.obj.stage == 5 || props?.obj.stage == 6 || props?.obj.stage == 3) && <View className={styles.msgRightOne}>¥{formatPriceDiv(props?.obj?.refundable_amount)}</View>
|
||||
}
|
||||
</View>
|
||||
{
|
||||
(props?.obj.stage == 5 || props?.obj.stage == 6 || props?.obj.stage == 3) && <View className={styles.bottomMsg}>
|
||||
<View className={styles.msgLeft}>退款金额:</View>
|
||||
|
||||
<View className={styles.msgRightOne}>¥{formatPriceDiv(props?.obj?.refundable_amount)}</View>
|
||||
|
||||
</View>
|
||||
}
|
||||
|
||||
{/* <View className={styles.bottomBox}>
|
||||
<BottomBtns
|
||||
obj={props?.obj}
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
} from "@/api/refound"
|
||||
import Tabs from "./components/tabs"
|
||||
import TimePicker from "@/components/timePicker"
|
||||
import dayjs from 'dayjs'
|
||||
export default () => {
|
||||
|
||||
|
||||
@@ -256,16 +257,24 @@ export default () => {
|
||||
setShowTime(false)
|
||||
}
|
||||
let myDate = new Date();
|
||||
const [start, setStart] = useState(myDate.toLocaleDateString())
|
||||
const [end, setEnd] = useState('')
|
||||
const [start, setStart] = useState<any>(myDate.toLocaleDateString())
|
||||
const [end, setEnd] = useState<any>('')
|
||||
//选择时间
|
||||
const handTime = (eq) => {
|
||||
console.log(eq?.value?.start, 'eq?.value?.start')
|
||||
setSearchField((val) => ({ ...val, saleStartTime: eq?.value?.start, saleEndTime: eq?.value?.start }))
|
||||
//直接进来点确定的时候做处理
|
||||
if (Object.keys(eq).length === 0) {
|
||||
let obj = {
|
||||
start: '',
|
||||
end: ''
|
||||
}
|
||||
obj.start = myDate?.toLocaleDateString() + ' ' + '00:00:00'
|
||||
obj.end = `${dayjs(new Date(obj?.start)).add(1, 'day').format('YYYY-MM-DD')} 00:00:00`
|
||||
eq.value = obj
|
||||
}
|
||||
setSearchField((val) => ({ ...val, saleStartTime: eq?.value?.start, saleEndTime: eq?.value?.end }))
|
||||
setStart(eq?.value?.start)
|
||||
setEnd(eq?.value?.end)
|
||||
setShowTime(false)
|
||||
console.log(searchField, 8888)
|
||||
}
|
||||
|
||||
const timeArea = useMemo(() => {
|
||||
@@ -278,6 +287,7 @@ export default () => {
|
||||
|
||||
useEffect(() => {
|
||||
setSearchField(searchField)
|
||||
console.log(searchField, 9999)
|
||||
}, [searchField])
|
||||
|
||||
return (
|
||||
@@ -352,7 +362,9 @@ export default () => {
|
||||
<View className={styles.thirdBox}>
|
||||
<View className={styles.thirdTopfont}>售后时间</View>
|
||||
<View className={styles.timeBox2} onClick={() => { setShowTime(true) }}>{timeArea}
|
||||
<View className={classnames('iconfont', 'icon-chakanquanbukehu', styles.more)}></View>
|
||||
{
|
||||
timeArea != '自定义起始时间' && <View className={classnames('iconfont', 'icon-chakanquanbukehu', styles.more)}></View>
|
||||
}
|
||||
</View>
|
||||
</View>
|
||||
<View style={{ height: '100rpx' }}></View>
|
||||
|
||||
Reference in New Issue
Block a user