✨ feat:销售码单跳转支付

This commit is contained in:
Haiyi
2022-10-19 17:37:24 +08:00
parent 4b75ef1493
commit 42c5bb0952
7 changed files with 76 additions and 61 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ interface filterObj {
sale_mode?: Number | undefined,
shipment_mode?: Number | undefined
}
import { PAY_H5_CODE_URL } from '@/common/constant'
export default () => {
//页码和页数
@@ -518,7 +518,7 @@ export default () => {
itemObj.total_weight_error_discount / 100
).toString(),
order_total_num: itemObj.total_number.toString(),
qrcode: "",
qrcode: `${PAY_H5_CODE_URL}?sale_order_no=${itemObj.order_no}`,
order_total_weight: (itemObj.total_weight / 1000).toString(),
estimate_amount: (itemObj.estimate_amount / 100).toString(),
total_sale_price: (itemObj.total_sale_price / 100).toString(),
+3 -2
View File
@@ -30,6 +30,7 @@ import { alert, goLink } from '@/common/common'
import { formatPriceDiv, formatDateTime, formatWeightDiv } from '@/common/format'
import PayPopup from '../order/components/PayPopup'
import IconFont from '@/components/iconfont/iconfont'
import { PAY_H5_CODE_URL } from '@/common/constant'
export default () => {
const router = useRouter()
// useEffect(() => {
@@ -437,7 +438,7 @@ export default () => {
infoObj.total_weight_error_discount / 100
).toString(),
order_total_num: infoObj.total_number.toString(),
qrcode: "",
qrcode: `${PAY_H5_CODE_URL}?sale_order_no=${infoObj.order_no}`,
order_total_weight: (infoObj.total_weight / 1000).toString(),
estimate_amount: (infoObj.estimate_amount / 100).toString(),
total_sale_price: (infoObj.total_sale_price / 100).toString(),
@@ -538,7 +539,7 @@ export default () => {
//申请退款
const handApplyMoney = () => {
Taro.navigateTo({
url: '/pages/applyMoney/index?orderId=' + infoObj.id
})
+2 -2
View File
@@ -218,7 +218,7 @@ export default memo(() => {
})
const res = await historyFetch()
if (res.data) {
setHistroyList([...res.data.list])
setHistroyList([...res?.data?.list])
Taro.hideLoading()
}
}
@@ -256,7 +256,7 @@ export default memo(() => {
productFetch({ code_or_name: e }).then((res) => {
if (res.data) {
Taro.hideLoading()
setSearchList([...res.data.list])
setSearchList([...res?.data?.list])
}
})
}, 300)