|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
OrderPayAction,
|
|
|
|
|
OrderListAction,
|
|
|
|
|
$image,
|
|
|
|
|
$response
|
|
|
|
|
$response,$chat_url,$service_platform_appid
|
|
|
|
|
} from '@/api'
|
|
|
|
|
import {
|
|
|
|
|
onShow
|
|
|
|
|
@ -43,6 +43,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tabChange(0)
|
|
|
|
|
console.log($store.buy_info);
|
|
|
|
|
})
|
|
|
|
|
const order_list = ref([])
|
|
|
|
|
const OrderList = async () => {
|
|
|
|
|
@ -50,10 +51,13 @@
|
|
|
|
|
status: tab_active.value
|
|
|
|
|
})
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
|
|
order_list.value = response.data.list.map((item) => {
|
|
|
|
|
item.buy_info = JSON.parse(item.buy_info)
|
|
|
|
|
return item
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const changeStatus = (id, status) => {
|
|
|
|
|
@ -198,6 +202,19 @@
|
|
|
|
|
const cancelClose = () => {
|
|
|
|
|
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>
|
|
|
|
|
<template>
|
|
|
|
|
<view>
|
|
|
|
|
@ -295,6 +312,7 @@
|
|
|
|
|
<view class="hospital_map_text_wrapper">导航到医院</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view v-if="i.status === 2" class="pay_done_wrapper">
|
|
|
|
|
<view v-if="(i.refund === 0 && !!i.appointment_number)" @click.stop="OrderRefundShow(i)"
|
|
|
|
|
class="refund_wrapper">
|
|
|
|
|
@ -304,6 +322,12 @@
|
|
|
|
|
<image :src="$image('/storage/assets/mp/order/二维码.png')"></image>
|
|
|
|
|
</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 @click.stop="OrderCancelShow(i)" class="cancel_wrapper">
|
|
|
|
|
取消订单
|
|
|
|
|
@ -311,6 +335,7 @@
|
|
|
|
|
</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 class="order_price_wrapper">
|
|
|
|
|
<view v-if="i.status === 1" class="order_price_box_wrapper">
|
|
|
|
|
<view class="order_price_box_time_wrapper">
|
|
|
|
|
|