对接开票

main
yanzai 2 years ago
parent c6f0226667
commit 9ab7291a95

@ -82,6 +82,7 @@
login_loading.value = false login_loading.value = false
cover_show.value = false cover_show.value = false
setToken(response.data.token) setToken(response.data.token)
uni.setStorageSync('loginUserId', response.data.id);
$emit('callback', true) $emit('callback', true)
}, () => { }, () => {
login_loading.value = false login_loading.value = false

@ -14,7 +14,7 @@
OrderPayAction, OrderPayAction,
OrderListAction, OrderListAction,
$image, $image,
$response $response,$chat_url,$service_platform_appid
} from '@/api' } from '@/api'
import { import {
onShow onShow
@ -43,6 +43,7 @@
} }
} }
tabChange(0) tabChange(0)
console.log($store.buy_info);
}) })
const order_list = ref([]) const order_list = ref([])
const OrderList = async () => { const OrderList = async () => {
@ -50,10 +51,13 @@
status: tab_active.value status: tab_active.value
}) })
$response(response, () => { $response(response, () => {
order_list.value = response.data.list.map((item) => { order_list.value = response.data.list.map((item) => {
item.buy_info = JSON.parse(item.buy_info) item.buy_info = JSON.parse(item.buy_info)
return item return item
}) })
}) })
} }
const changeStatus = (id, status) => { const changeStatus = (id, status) => {
@ -198,6 +202,19 @@
const cancelClose = () => { const cancelClose = () => {
cancel_show.value = false cancel_show.value = false
} }
const KaiPiao=(row)=>{
console.log(row)
let jump_path=$chat_url+'/h5/#/pages/login/login?appid='+$service_platform_appid+'&userid='+$service_platform_appid+'_'+uni.getStorageSync('loginUserId')+'&objtype=invoice&page=edit&ordernum='+$service_platform_appid+'_'+row.show+'&price='+row.true_price
let info ={
title: '提交工单',
icon: '/storage/assets/mp/user/会员卡信息@2x.png',
show: true,
jump_type: 3,
jump_path: jump_path,
login_type: 1
}
uni.$lu.jump(info)
}
</script> </script>
<template> <template>
<view> <view>
@ -295,6 +312,7 @@
<view class="hospital_map_text_wrapper">导航到医院</view> <view class="hospital_map_text_wrapper">导航到医院</view>
</view> </view>
</view> </view>
<view v-if="i.status === 2" class="pay_done_wrapper"> <view v-if="i.status === 2" class="pay_done_wrapper">
<view v-if="(i.refund === 0 && !!i.appointment_number)" @click.stop="OrderRefundShow(i)" <view v-if="(i.refund === 0 && !!i.appointment_number)" @click.stop="OrderRefundShow(i)"
class="refund_wrapper"> class="refund_wrapper">
@ -304,6 +322,12 @@
<image :src="$image('/storage/assets/mp/order/二维码.png')"></image> <image :src="$image('/storage/assets/mp/order/二维码.png')"></image>
</view> </view>
</view> </view>
<view v-if="i.status === 4" class="pay_done_wrapper">
<view @click.stop="KaiPiao(i)" class="cancel_wrapper">
申请开票
</view>
</view>
<view v-if="i.status === 1" class="pay_done_wrapper"> <view v-if="i.status === 1" class="pay_done_wrapper">
<view @click.stop="OrderCancelShow(i)" class="cancel_wrapper"> <view @click.stop="OrderCancelShow(i)" class="cancel_wrapper">
取消订单 取消订单
@ -311,6 +335,7 @@
</view> </view>
<view v-if="i.status !== 3" class="order_line_wrapper"></view> <view v-if="i.status !== 3" class="order_line_wrapper"></view>
<view v-if="i.status === 3" class="order_line_break_wrapper"></view> <view v-if="i.status === 3" class="order_line_break_wrapper"></view>
<view class="order_price_wrapper"> <view class="order_price_wrapper">
<view v-if="i.status === 1" class="order_price_box_wrapper"> <view v-if="i.status === 1" class="order_price_box_wrapper">
<view class="order_price_box_time_wrapper"> <view class="order_price_box_time_wrapper">

@ -71,7 +71,6 @@
const getUserInfo = () => { const getUserInfo = () => {
uni.$lu.user((info) => { uni.$lu.user((info) => {
user_info.value = info user_info.value = info
console.log('-----',user_info.value)
getHospitalInfo(info) getHospitalInfo(info)
}) })
} }

Loading…
Cancel
Save