修改
This commit is contained in:
parent
ac6724c4f4
commit
9e5575278f
@ -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;
|
||||||
|
|||||||
@ -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) {},
|
||||||
// 选中任一checkbox时,由checkbox-group触发
|
// 选中任一checkbox时,由checkbox-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,12 +128,13 @@
|
|||||||
::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;
|
||||||
font-weight: 500 !important;
|
font-weight: 500 !important;
|
||||||
color: #333333 !important;
|
color: #333333 !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
@ -171,14 +145,14 @@
|
|||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
background: #18CBB3;
|
background: #18CBB3;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 70rpx;
|
line-height: 70rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 60rpx;
|
bottom: 60rpx;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkboxs {
|
.checkboxs {
|
||||||
@ -196,8 +170,8 @@
|
|||||||
margin: 30rpx auto 0;
|
margin: 30rpx auto 0;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
border-radius: 14rpx;
|
border-radius: 14rpx;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
@ -209,7 +183,7 @@
|
|||||||
|
|
||||||
.time {
|
.time {
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
|
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
|
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -244,7 +218,7 @@
|
|||||||
.text {
|
.text {
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
padding-left: 34rpx;
|
padding-left: 34rpx;
|
||||||
|
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
|
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user