main
王文龙 2024-01-19 13:26:02 +08:00
parent a8d02fe0e7
commit 166bf82b3f
5 changed files with 47 additions and 33 deletions

View File

@ -10,7 +10,8 @@
@change="handleChange" @change="handleChange"
:disabled="disabled" :disabled="disabled"
> >
<u-checkbox @click="handleAgreeCheck" activeColor="#FF8CA6" name="1"></u-checkbox> <!-- @click="handleAgreeCheck" -->
<u-checkbox activeColor="#FF8CA6" name="1"></u-checkbox>
<!-- label="我已阅读并同意" --> <!-- label="我已阅读并同意" -->
</u-checkbox-group> </u-checkbox-group>
<view <view
@ -57,6 +58,7 @@ const handleAgreeCheck = () => {
emit('update:agreed', !!checked.value[0]) emit('update:agreed', !!checked.value[0])
} }
const handleChange = () => { const handleChange = () => {
checked.value[0] = checked.value[0] === '1' ? '' : '1'
emit('update:agreed', !!checked.value[0]) emit('update:agreed', !!checked.value[0])
} }
</script> </script>

View File

@ -10,7 +10,7 @@ export const primaryColor = '#FF8CA6'
// 项目基础路径 // 项目基础路径
export const appBasePath = isProduction ? './' : './' export const appBasePath = isProduction ? './' : './'
// 请求地址 // 请求地址
// export const requestURL = 'http://192.168.2.155:7788/hospital/app' // export const requestURL = 'http://192.168.2.121:7788/hospital/app'
export const requestURL = 'https://peizhen.flameby.com/hospital/app' export const requestURL = 'https://peizhen.flameby.com/hospital/app'
export const requestPath = '' export const requestPath = ''
export const requestFilePath = '/file' export const requestFilePath = '/file'

View File

@ -27,7 +27,7 @@
:disabled="roleName !== 'common' || isView" :disabled="roleName !== 'common' || isView"
count count
/> />
<block v-if="roleName !== 'common' || isView"> <block v-if="false && (roleName !== 'common' || isView)">
<view class="mt-40rpx mb-40rpx text-34rpx" <view class="mt-40rpx mb-40rpx text-34rpx"
>{{ roleName !== 'common' && !isView ? '为' : '' }}陪诊师打分</view >{{ roleName !== 'common' && !isView ? '为' : '' }}陪诊师打分</view
> >
@ -94,10 +94,10 @@ const handleSubmit = () => {
$toast('请填写备注') $toast('请填写备注')
return return
} else if (rate.value === 0) { } else if (rate.value === 0) {
$toast('请为陪诊师打分') // $toast('')
return // return
} }
$dialog(isCommon ? '确认提交工作记录?' : '确认为陪诊师打分', { $dialog(isCommon ? '确认提交工作记录?' : '确认提交', {
showCancelButton: true, showCancelButton: true,
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

View File

@ -1,11 +1,11 @@
<template> <template>
<view> <view>
<u-notify <u-notify
:ref="el => uNotify = el" :ref="(el) => (uNotify = el)"
message="支付成功!" message="支付成功!"
type="success" type="success"
bgColor="#EF8CA6" bgColor="#EF8CA6"
:show="true" :show="true"
safeAreaInsetTop safeAreaInsetTop
/> />
<view <view
@ -211,12 +211,16 @@
</view> </view>
<button-contact /> <button-contact />
<view <view
v-if="!orderInfo.reasonId" v-if="
((roleName === 'common' && !orderInfo.reasonId) ||
(roleName === 'simple' && !orderInfo.userReasonId)) &&
showFlag
"
class="bg-#fff h-150rpx w-full sticky bottom-0 z-2 flex justify-between items-center pr-24rpx pl-40rpx pb-48rpx rounded-sm" class="bg-#fff h-150rpx w-full sticky bottom-0 z-2 flex justify-between items-center pr-24rpx pl-40rpx pb-48rpx rounded-sm"
> >
<block v-if="orderInfo.status < 3 || !orderId || roleName === 'common'"> <block v-if="orderInfo.status < 3 || !orderId || roleName === 'common'">
<view class="" v-if="orderInfo.receiveStatus !== 0"> <view class="" v-if="orderInfo.receiveStatus !== 0">
<text>预估收</text> <text v-if="roleName === 'common'"></text>
<text class="text-32rpx"></text> <text class="text-32rpx"></text>
<text class="font-bold text-54rpx" v-if="roleName === 'common'"> <text class="font-bold text-54rpx" v-if="roleName === 'common'">
{{ orderInfo.doctorPrice }} {{ orderInfo.doctorPrice }}
@ -265,7 +269,7 @@
orderInfo.status === 3 orderInfo.status === 3
? '订单已提交,请耐心等待' ? '订单已提交,请耐心等待'
: orderInfo.isEvaluate === 0 : orderInfo.isEvaluate === 0
? '查看评价' ? '查看记录'
: '服务完成,请评价' : '服务完成,请评价'
}}</view }}</view
> >
@ -287,6 +291,7 @@ const list = ref([
]) ])
const current = ref(1) const current = ref(1)
const show = ref(false) const show = ref(false)
const showFlag = ref(false)
const fileList = ref([]) const fileList = ref([])
// //
const columns = reactive([ const columns = reactive([
@ -302,13 +307,13 @@ const columns = reactive([
// , , ,,, , , // , , ,,, , ,
const formItems = [ const formItems = [
{ {
label: '收地址', label: '收地址',
placeholder: '请输入收地址', placeholder: '请输入收地址',
key: 'deliveryAddress', key: 'deliveryAddress',
required: true, required: true,
type: 'string', type: 'string',
trigger: ['blur', 'change'], trigger: ['blur', 'change'],
message: '请填写收地址', message: '请填写收地址',
show: true, show: true,
cur: [4, 5], cur: [4, 5],
sort: 1 sort: 1
@ -327,14 +332,14 @@ const formItems = [
sort: 2 sort: 2
}, },
{ {
label: '上门护理', label: '护理项目',
placeholder: '请选择上门护理类型', placeholder: '请选择护理项目',
key: 'typeId', key: 'typeId',
keyName: 'typeName', keyName: 'typeName',
required: true, required: true,
type: 'select', type: 'select',
trigger: ['blur', 'change'], trigger: ['blur', 'change'],
message: '请选择上门护理类型', message: '请选择护理项目',
show: false, show: false,
options: [], options: [],
cur: [6], cur: [6],
@ -375,7 +380,7 @@ const formItems = [
message: '请选择预约就诊日期', message: '请选择预约就诊日期',
show: false, show: false,
sort: 3, sort: 3,
cur: [1, 2] cur: [1, 2, 3]
}, },
{ {
label: '预约就诊时间', label: '预约就诊时间',
@ -387,7 +392,7 @@ const formItems = [
trigger: ['blur', 'change'], trigger: ['blur', 'change'],
show: false, show: false,
sort: 4, sort: 4,
cur: [1, 2] cur: [1, 2, 3]
}, },
{ {
label: '上门日期', label: '上门日期',
@ -423,7 +428,7 @@ const formItems = [
message: '请填写就诊人', message: '请填写就诊人',
show: true, show: true,
sort: 5, sort: 5,
cur: [1, 2, 5] cur: [1, 2, 3, 5]
}, },
{ {
label: '联系人', label: '联系人',
@ -435,7 +440,7 @@ const formItems = [
message: '请填写联系人', message: '请填写联系人',
show: true, show: true,
sort: 6, sort: 6,
cur: [1, 2, 6] cur: [1, 2, 3, 4, 6]
}, },
{ {
label: '联系人手机号', label: '联系人手机号',
@ -447,7 +452,7 @@ const formItems = [
message: '请填写联系人手机号', message: '请填写联系人手机号',
show: true, show: true,
sort: 7, sort: 7,
cur: [1, 2, 4, 5, 6] cur: [1, 2, 3, 4, 5, 6]
}, },
{ {
label: '挂号科室', label: '挂号科室',
@ -459,7 +464,7 @@ const formItems = [
message: '请选择挂号科室', message: '请选择挂号科室',
show: true, show: true,
sort: 8, sort: 8,
cur: [1, 2] cur: [1, 2, 3]
} }
// { // {
// label: '', // label: '',
@ -516,7 +521,7 @@ const getReportTypelList = async () => {
})) }))
} }
const getOrderInfo = async () => { const getOrderInfo = async () => {
if (!orderId.value) return if (!orderId.value) return (showFlag.value = true)
$loading(true) $loading(true)
const res = await $api.orderInfo({ id: orderId.value }) const res = await $api.orderInfo({ id: orderId.value })
if (res.success) { if (res.success) {
@ -526,6 +531,7 @@ const getOrderInfo = async () => {
current.value = order.status || 1 current.value = order.status || 1
agreed.value = true agreed.value = true
} }
showFlag.value = true
$loading(false) $loading(false)
} }
@ -570,7 +576,7 @@ const orderPay = async () => {
// console.log(res) // console.log(res)
$toast('支付成功!', { $toast('支付成功!', {
icon: 'success', icon: 'success',
mask: true, mask: true,
duration: 3 * 1000 duration: 3 * 1000
}) })
getOrderInfo() getOrderInfo()

View File

@ -67,7 +67,7 @@
>订单号{{ item.outTradeNo }}</text >订单号{{ item.outTradeNo }}</text
> >
<view <view
v-if="item.orderStatus !== null" v-if="item.orderStatus !== null || item.status !== null"
class="w-124rpx h-48rpx leading-48rpx text-center rounded-sm text-24rpx" class="w-124rpx h-48rpx leading-48rpx text-center rounded-sm text-24rpx"
:class="`${stateColorList[item.orderStatus].bg} ${ :class="`${stateColorList[item.orderStatus].bg} ${
stateColorList[item.orderStatus].color stateColorList[item.orderStatus].color
@ -129,7 +129,11 @@
</view> </view>
<view class="flex justify-end items-center"> <view class="flex justify-end items-center">
<view <view
v-if="item.orderStatus === 4 && item.refundStatus !== 0" v-if="
item.orderStatus === 4 &&
item.refundStatus !== 0 &&
roleName !== 'common'
"
@click="handleClick(item, 'refund')" @click="handleClick(item, 'refund')"
class="btn text-30rpx px-30rpx py-14rpx ml-30rpx border-#5F5F5F text-#5F5F5F" class="btn text-30rpx px-30rpx py-14rpx ml-30rpx border-#5F5F5F text-#5F5F5F"
>申请退款</view >申请退款</view
@ -159,7 +163,7 @@
v-if="roleName !== 'common' && item.orderStatus === 3" v-if="roleName !== 'common' && item.orderStatus === 3"
@click="$u.throttle(() => handleClick(item, 'end'), 800)" @click="$u.throttle(() => handleClick(item, 'end'), 800)"
class="btn text-30rpx px-30rpx py-14rpx ml-30rpx border-#40A0E4 text-#40A0E4" class="btn text-30rpx px-30rpx py-14rpx ml-30rpx border-#40A0E4 text-#40A0E4"
>{{ item.isEvaluate !== 0 ? '去评价' : '查看评价' }}</view >{{ item.isEvaluate !== 0 ? '去评价' : '查看记录' }}</view
> >
<view <view
@click="$u.throttle(() => handleClick(item, 'detail'), 800)" @click="$u.throttle(() => handleClick(item, 'detail'), 800)"
@ -301,11 +305,13 @@ onShow(() => {
// $Router.push('/personal') // $Router.push('/personal')
$store.user.login().then((user) => { $store.user.login().then((user) => {
// $store.user.setUserInfo(user) // $store.user.setUserInfo(user)
!user.nickName !user.nickName
? $Router.push({ ? $Router.push({
path: '/pages/other/edit-userinfo' path: '/pages/other/edit-userinfo'
}) })
: userStore.setUserInfo(user) && dataList.value[current.value].show && paging.value[current.value]?.reload() : userStore.setUserInfo(user) &&
dataList.value[current.value].show &&
paging.value[current.value]?.reload()
}) })
}) })
.catch(() => '') .catch(() => '')