✨ feat(新增收银台跳转链接):

This commit is contained in:
2022-10-20 16:22:52 +08:00
parent fe2c60c202
commit d4785f07a6
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import { formatDateTime, formatHashTag, formatImgUrl, formatPriceDiv, formatWeig
import useCheckAuthorize from '@/use/useCheckAuthorize'
import { GetPayCode } from '@/api/onlinePay'
import LoadingCard from '@/components/loadingCard'
import { PAY_H5_CODE_URL } from '@/common/constant'
type Param = {
show?: true | false
@@ -71,7 +72,7 @@ export default memo(({ show = true, onClose, company, orderInfo }: Param) => {
order_total_length: (orderInfo.total_number / 100).toString(), //订单布匹长度
order_total_price: formatPriceDiv(orderInfo.bill_total_sale_price).toString(), //订单价格
order_total_num: orderInfo.total_number + '',
qrcode: '', //跳转链接
qrcode: `${PAY_H5_CODE_URL}?sale_order_no=${orderInfo.order_no}`, //跳转链接
order_total_weight: formatWeightDiv(orderInfo.total_weight || orderInfo.total_estimate_weight).toString(), //订单布匹重量
list: lists,
show_qrcode: true, //是否显示码单