🐞 fix(退款码单):配合后端修改字段
This commit is contained in:
parent
94a3c7b89f
commit
2d57f586d4
@ -21,6 +21,15 @@ const RefundCodelist = (props: Props) => {
|
|||||||
const { fetchData: payFetch } = GetReturnPayCode()
|
const { fetchData: payFetch } = GetReturnPayCode()
|
||||||
const [PicUrl, setPicUrl] = useState<string>('')
|
const [PicUrl, setPicUrl] = useState<string>('')
|
||||||
|
|
||||||
|
const totalNums = useMemo(() => {
|
||||||
|
if (props?.obj.type == 1 || props?.obj.type == 3) {
|
||||||
|
return props?.obj.quality_check_pass_number
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return props?.obj.total_number
|
||||||
|
}
|
||||||
|
}, [props?.obj])
|
||||||
|
|
||||||
const getPic = async() => {
|
const getPic = async() => {
|
||||||
Taro.showLoading({
|
Taro.showLoading({
|
||||||
title: '请稍等...',
|
title: '请稍等...',
|
||||||
@ -28,7 +37,7 @@ const RefundCodelist = (props: Props) => {
|
|||||||
})
|
})
|
||||||
const list: any = []
|
const list: any = []
|
||||||
let arr: any[] = []
|
let arr: any[] = []
|
||||||
if (props.obj.type == 1) {
|
if (props.obj.type == 1 || props?.obj.type == 3) {
|
||||||
arr = props.obj.quality_check_pass_product
|
arr = props.obj.quality_check_pass_product
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -68,7 +77,7 @@ const RefundCodelist = (props: Props) => {
|
|||||||
order_total_price: (
|
order_total_price: (
|
||||||
props.obj.refund_amount / 100
|
props.obj.refund_amount / 100
|
||||||
).toString(),
|
).toString(),
|
||||||
order_total_num: props.obj.total_number.toString(),
|
order_total_num: totalNums.toString(),
|
||||||
order_total_settle_weight: (
|
order_total_settle_weight: (
|
||||||
props.obj.order_total_settle_weight / 1000
|
props.obj.order_total_settle_weight / 1000
|
||||||
).toString(),
|
).toString(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user