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;">
<u-empty text="暂无工单" mode="list" icon-size='240' font-size='32'></u-empty>
</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 class="">
<view class="inputs" style="width: 90%;height: 60rpx;transform: none;margin: 20rpx auto;">
@ -193,7 +178,6 @@
},
missionlist: [],
missiontotal: 0,
taskReturnshow: false,
remark: '',
formdata: {
pageNum: 1,
@ -241,23 +225,8 @@
},
//退
gotaskReturn(item) {
this.query.orderNo = item.orderNo
this.taskReturnshow = true
},
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();
}
uni.navigateTo({
url: `/pages/taskReturn/taskReturn?item=${JSON.stringify(item)}`
})
},
//
@ -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 {
width: 96%;
margin: 0 auto;

View File

@ -3,29 +3,23 @@
<view class="top">
<view class="title">
<view class="text">
1111
<!-- {{tasklist.nurseItemName}} -->
专家咨询{{tasklist.patientName}}
</view>
<view class="righttext">
<!-- <span v-if="tasklist.orderCommissionAmount&&tasklist.orderCommissionAmount>=0">
<span v-if="tasklist.orderCommissionAmount&&tasklist.orderCommissionAmount>=0">
{{tasklist.orderCommissionAmount}}
</span>
<span v-else>
0
</span> -->
<span>200</span>
0
</span>
</view>
</view>
<view class="content">
<view class="time" style="line-height: 60rpx;padding-top: 15rpx;">
时间111
<!-- 时间{{tasklist.serviceDate}}
<span style='padding-left: 10rpx;'>{{tasklist.serviceStartTime}}</span> -->
时间{{tasklist.appointmentDate}}{{' '+tasklist.appointmentStartTime}}{{'-'+tasklist.appointmentEndTime}}
</view>
<view class="time">
地点2032
<!-- 地点{{tasklist.serviceAddress}} -->
地点{{tasklist.address}}
</view>
</view>
@ -38,14 +32,15 @@
</view>
<view class="checkboxs">
<u-checkbox-group @change="checkboxGroupChange" :wrap='true'>
<u-checkbox active-color="#18CBB3" @change="checkboxChange" v-model="item.checked" v-for="(item, index) in list"
:key="index" :name="item.name" shape='circle'>{{item.name}}</u-checkbox>
<u-checkbox active-color="#18CBB3" @change="checkboxChange" v-model="item.checked"
v-for="(item, index) in list" :key="index" :name="item.name"
shape='circle'>{{item.name}}</u-checkbox>
</u-checkbox-group>
</view>
<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 class="btn" @tap='taskreturn'>
<view class="btn" @tap='truetaskReturn'>
立即提交
</view>
<u-toast ref="uToast" />
@ -54,17 +49,15 @@
<script>
import {
taskDetails
} from '@/api/taskDetails/index.js'
closeHealthConsultationOrder,
} from '@/api/homepage/index.js'
import {
orderFallback
} from '@/api/taskReturn/taskReturn.js'
export default {
data() {
return {
baseurl: null,
tasklist: null, //item
nursePersonId: null, //id
taskReturnReason: '',
value: null, //input
list: [{
@ -74,7 +67,7 @@
name: '服务要求较高,当前资质无法完成',
checked: false,
}, {
name: '距离较远无法到达',
name: '距离较远无法到达',
checked: false,
}, {
name: '价格不合理',
@ -86,60 +79,40 @@
}
},
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
checkboxChange(e) {},
// checkboxcheckbox-group
// checkboxGroupChange(e) {
// this.taskReturnReason = ''
// e.forEach(el => {
// if (el != '') {
// this.taskReturnReason += el + ';'
// }
// })
// },
// taskreturn() {
// if (this.list[4].checked && this.value) {
// this.taskReturnReason += this.value + ';'
// }
// 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'
// })
// }
// })
// },
checkboxGroupChange(e) {
this.taskReturnReason = ''
e.forEach(el => {
if (el != '其它') {
this.taskReturnReason += el + ';'
}
})
},
},
onLoad(options) {
this.tasklist = JSON.parse(options.item)
},
// onLoad(options) {
// this.tasklist = JSON.parse(options.item)
// var that = this
// const value = uni.getStorageSync('nursePersonId');
// if (value) {
// that.nursePersonId = value
// } else {}
// },
}
</script>
@ -155,12 +128,13 @@
::v-deep .u-checkbox {
height: 80rpx !important;
}
::v-deep .u-checkbox__label{
::v-deep .u-checkbox__label {
font-size: 24rpx !important;
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
font-weight: 500 !important;
color: #333333 !important;
}
.app {
@ -171,14 +145,14 @@
height: 70rpx;
background: #18CBB3;
border-radius: 50rpx;
text-align: center;
line-height: 70rpx;
color: #fff;
position: fixed;
bottom: 60rpx;
left: 50%;
transform: translateX(-50%);
bottom: 60rpx;
left: 50%;
transform: translateX(-50%);
}
.checkboxs {
@ -196,8 +170,8 @@
margin: 30rpx auto 0;
color: #333333;
border-radius: 14rpx;
}
.top {
@ -209,7 +183,7 @@
.time {
line-height: 90rpx;
font-size: 24rpx;
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
font-weight: 500;
@ -244,7 +218,7 @@
.text {
line-height: 100rpx;
padding-left: 34rpx;
font-size: 32rpx;
font-family: SourceHanSansSC-Medium, SourceHanSansSC;
font-weight: 500;