This commit is contained in:
2023-10-25 11:32:27 +08:00
parent ac6724c4f4
commit 9e5575278f
2 changed files with 57 additions and 128 deletions

View File

@ -95,21 +95,6 @@
<view v-else class="" style="margin-top: 100rpx;"> <view v-else class="" style="margin-top: 100rpx;">
<u-empty text="暂无工单" mode="list" icon-size='240' font-size='32'></u-empty> <u-empty text="暂无工单" mode="list" icon-size='240' font-size='32'></u-empty>
</view> </view>
<u-popup v-model="taskReturnshow" mode="center" closeable border-radius='5' width='80%' height="500rpx">
<view class="titletext">
<text style="font-size: 26rpx;">退回原因</text>
<textarea name="" id="" cols="30" rows="10" style="width: 60%;" placeholder="请输入退回原因"
v-model="remark"></textarea>
</view>
<view class="btnss">
<view class="cancel" @click="taskReturnshow=false">
取消
</view>
<view class="Rescind" @click="truetaskReturn">
退回
</view>
</view>
</u-popup>
</view> </view>
<!-- <view class=""> <!-- <view class="">
<view class="inputs" style="width: 90%;height: 60rpx;transform: none;margin: 20rpx auto;"> <view class="inputs" style="width: 90%;height: 60rpx;transform: none;margin: 20rpx auto;">
@ -193,7 +178,6 @@
}, },
missionlist: [], missionlist: [],
missiontotal: 0, missiontotal: 0,
taskReturnshow: false,
remark: '', remark: '',
formdata: { formdata: {
pageNum: 1, pageNum: 1,
@ -241,23 +225,8 @@
}, },
//退 //退
gotaskReturn(item) { gotaskReturn(item) {
this.query.orderNo = item.orderNo uni.navigateTo({
this.taskReturnshow = true url: `/pages/taskReturn/taskReturn?item=${JSON.stringify(item)}`
},
truetaskReturn() {
var obj = {
orderNo: this.query.orderNo,
remark: this.remark,
}
closeHealthConsultationOrder(obj).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '工单退回成功',
type: 'success',
duration: '1500'
})
this.info();
}
}) })
}, },
// //
@ -456,20 +425,6 @@
} }
} }
.titletext {
width: 100%;
padding: 80rpx 30rpx 0;
display: flex;
textarea {
padding: 10rpx 20rpx;
font-size: 24rpx;
border: 1rpx solid #d0d0d0;
flex: 1;
}
}
.items { .items {
width: 96%; width: 96%;
margin: 0 auto; margin: 0 auto;

View File

@ -3,29 +3,23 @@
<view class="top"> <view class="top">
<view class="title"> <view class="title">
<view class="text"> <view class="text">
1111 专家咨询{{tasklist.patientName}}
<!-- {{tasklist.nurseItemName}} -->
</view> </view>
<view class="righttext"> <view class="righttext">
<!-- <span v-if="tasklist.orderCommissionAmount&&tasklist.orderCommissionAmount>=0"> <span v-if="tasklist.orderCommissionAmount&&tasklist.orderCommissionAmount>=0">
{{tasklist.orderCommissionAmount}} {{tasklist.orderCommissionAmount}}
</span> </span>
<span v-else> <span v-else>
0 0
</span> --> </span>
<span>200</span>
</view> </view>
</view> </view>
<view class="content"> <view class="content">
<view class="time" style="line-height: 60rpx;padding-top: 15rpx;"> <view class="time" style="line-height: 60rpx;padding-top: 15rpx;">
时间111 时间{{tasklist.appointmentDate}}{{' '+tasklist.appointmentStartTime}}{{'-'+tasklist.appointmentEndTime}}
<!-- 时间{{tasklist.serviceDate}}
<span style='padding-left: 10rpx;'>{{tasklist.serviceStartTime}}</span> -->
</view> </view>
<view class="time"> <view class="time">
地点{{tasklist.address}}
地点2032
<!-- 地点{{tasklist.serviceAddress}} -->
</view> </view>
</view> </view>
@ -38,14 +32,15 @@
</view> </view>
<view class="checkboxs"> <view class="checkboxs">
<u-checkbox-group @change="checkboxGroupChange" :wrap='true'> <u-checkbox-group @change="checkboxGroupChange" :wrap='true'>
<u-checkbox active-color="#18CBB3" @change="checkboxChange" v-model="item.checked" v-for="(item, index) in list" <u-checkbox active-color="#18CBB3" @change="checkboxChange" v-model="item.checked"
:key="index" :name="item.name" shape='circle'>{{item.name}}</u-checkbox> v-for="(item, index) in list" :key="index" :name="item.name"
shape='circle'>{{item.name}}</u-checkbox>
</u-checkbox-group> </u-checkbox-group>
</view> </view>
<u-input v-model="value" type="text" :border="true" border-color='#E6E6E6' placeholder='请输入退回原因' <u-input v-model="value" type="text" :border="true" border-color='#E6E6E6' placeholder='请输入退回原因'
v-if="list[4].checked" /> :clearable='false' v-if="list[4].checked" />
</view> </view>
<view class="btn" @tap='taskreturn'> <view class="btn" @tap='truetaskReturn'>
立即提交 立即提交
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
@ -54,17 +49,15 @@
<script> <script>
import { import {
taskDetails closeHealthConsultationOrder,
} from '@/api/taskDetails/index.js' } from '@/api/homepage/index.js'
import { import {
orderFallback orderFallback
} from '@/api/taskReturn/taskReturn.js' } from '@/api/taskReturn/taskReturn.js'
export default { export default {
data() { data() {
return { return {
baseurl: null,
tasklist: null, //item tasklist: null, //item
nursePersonId: null, //id
taskReturnReason: '', taskReturnReason: '',
value: null, //input value: null, //input
list: [{ list: [{
@ -74,7 +67,7 @@
name: '服务要求较高,当前资质无法完成', name: '服务要求较高,当前资质无法完成',
checked: false, checked: false,
}, { }, {
name: '距离较远无法到达', name: '距离较远无法到达',
checked: false, checked: false,
}, { }, {
name: '价格不合理', name: '价格不合理',
@ -86,60 +79,40 @@
} }
}, },
methods: { methods: {
truetaskReturn() {
if (this.list[4].checked && this.value) {
this.taskReturnReason += this.value + ';'
}
var obj = {
orderNo: this.tasklist.orderNo,
remark: this.taskReturnReason,
}
closeHealthConsultationOrder(obj).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '工单退回成功',
type: 'success',
duration: '1500',
back: 1
})
}
})
},
// checkbox // checkbox
checkboxChange(e) {}, checkboxChange(e) {},
// checkboxcheckbox-group // checkboxcheckbox-group
// checkboxGroupChange(e) { checkboxGroupChange(e) {
// this.taskReturnReason = '' this.taskReturnReason = ''
// e.forEach(el => { e.forEach(el => {
// if (el != '') { if (el != '其它') {
// this.taskReturnReason += el + ';' this.taskReturnReason += el + ';'
// } }
// }) })
// }, },
// taskreturn() { },
// if (this.list[4].checked && this.value) { onLoad(options) {
// this.taskReturnReason += this.value + ';' this.tasklist = JSON.parse(options.item)
// }
// if (!this.tasklist.id) {
// this.tasklist.id = this.tasklist.orderDetailsId
// }
// var obj = {
// "appointmentOrderId": this.tasklist.id,
// "stationPersonId": this.nursePersonId,
// "appointmentOrderNo": this.tasklist.orderNo,
// "taskReturnReason": this.taskReturnReason,
// }
// orderFallback(obj).then(res => {
// if (res.code == 200) {
// this.$refs.uToast.show({
// title: '退',
// type: 'success',
// duration: '1500'
// })
// setTimeout(() => {
// uni.navigateBack({
// delta: 1
// })
// }, 1500);
// } else {
// this.$refs.uToast.show({
// title: res.msg,
// type: 'error',
// duration: '1500'
// })
// }
// })
// },
}, },
// onLoad(options) {
// this.tasklist = JSON.parse(options.item)
// var that = this
// const value = uni.getStorageSync('nursePersonId');
// if (value) {
// that.nursePersonId = value
// } else {}
// },
} }
</script> </script>
@ -155,6 +128,7 @@
::v-deep .u-checkbox { ::v-deep .u-checkbox {
height: 80rpx !important; height: 80rpx !important;
} }
::v-deep .u-checkbox__label { ::v-deep .u-checkbox__label {
font-size: 24rpx !important; font-size: 24rpx !important;
font-family: SourceHanSansSC-Medium, SourceHanSansSC; font-family: SourceHanSansSC-Medium, SourceHanSansSC;