xinelu-applet-ui/pagesB/mysigning/mysigning.vue

218 lines
5.4 KiB
Vue
Raw Normal View History

2023-10-08 17:03:35 +08:00
<template>
<view class="app">
<view class="title">
<image src="../../static/pagesB/jibenxinxi.png" mode=""></image>
<view class="text">
基本信息
</view>
</view>
<view class="name">
<view class="text">
2023-10-12 13:23:07 +08:00
{{list.residentName?list.residentName:''}}
2023-10-08 17:03:35 +08:00
</view>
2023-10-12 09:47:40 +08:00
<view class="card" v-for='item in list.crowdsName'>
2023-10-12 13:23:07 +08:00
{{item?item:''}}
2023-10-08 17:03:35 +08:00
</view>
</view>
<view class="item">
2023-10-12 14:31:36 +08:00
{{list.gender=='2'?'女':''}}{{list.gender=='1'?'男':''}}&nbsp;&nbsp;&nbsp; {{list.age? list.age +'岁':''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="item">
2023-10-12 13:23:07 +08:00
{{list.phone?list.phone:''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="item">
2023-10-12 13:23:07 +08:00
{{list.identity?list.identity:''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="item">
2023-10-12 13:23:07 +08:00
{{list.address?list.address:''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="border">
</view>
<view class="title">
<image src="../../static/pagesB/qianyuexinxi.png" mode=""></image>
<view class="text">
签约信息
</view>
</view>
<view class="item">
2023-10-12 13:23:07 +08:00
年限{{list.signTime?list.signTime:''}}-{{list.signDeadline?list.signDeadline:''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="item">
2023-10-12 13:23:07 +08:00
机构
{{list.orgName?list.orgName:''}}
2023-10-08 17:03:35 +08:00
</view>
<view class="item flexitem">
<view class="left">
2023-10-12 13:23:07 +08:00
医生
{{list.dutyDoctorName?list.dutyDoctorName:''}}
2023-10-08 17:03:35 +08:00
</view>
2023-10-09 11:20:25 +08:00
<view class="right" @tap="goseekadvicefrom">
2023-10-08 17:03:35 +08:00
<image src="../../static/pagesB/zixun.png" mode=""></image>
<text>
咨询
</text>
</view>
</view>
2023-10-09 10:58:52 +08:00
<view class="lookbtn" @tap='gomyfamilydoctorteam'>
2023-10-08 17:03:35 +08:00
查看我的家庭医生团队
</view>
<view class="border">
</view>
<view class="title">
<image src="../../static/pagesB/wodefuwubao.png" mode=""></image>
<view class="text">
我的服务包
</view>
</view>
2023-10-12 09:47:40 +08:00
<view class="item" v-for='item in list.packagesName'>
2023-10-12 13:23:07 +08:00
{{item?item:''}}
2023-10-08 17:03:35 +08:00
</view>
2023-10-09 10:58:52 +08:00
<view class="lookbtn" @tap='goperformancedetails'>
2023-10-08 17:03:35 +08:00
查看履约详情
</view>
<view class="border">
</view>
<view class="btns">
2023-10-12 15:54:10 +08:00
<view class="leftbtn" @tap='maskshow = true'>
2023-10-08 17:03:35 +08:00
申请解约
</view>
2023-10-09 10:58:52 +08:00
<view class="rightbtn" @tap='gocontractsigningprotocol'>
2023-10-08 17:03:35 +08:00
查看签约协议
</view>
</view>
2023-10-12 15:54:10 +08:00
<u-popup v-model="maskshow" mode="center" length="90%" closeable height="50%">
<view class="mask" @tap.stop=''>
<view class="titletext">
<text>解约类型</text>
<view class="select" @tap='maskshowtwo=true'>
<text v-if="list.rescindName">{{list.rescindName}}</text>
<text v-else>请选择解约类型</text>
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<view class="titletext">
<text>解约原因</text>
<textarea name="" id="" cols="30" rows="10" style="width: 60%;color: gray;" placeholder="请输入解决原因"
v-model="list.rescindReason"></textarea>
</view>
<view class="btnss">
<view class="cancel" @click="maskshowtwo=false">
取消
</view>
<view class="Rescind" @click="rescindapplysaveinfo">
解约
</view>
</view>
</view>
</u-popup>
<u-toast ref="uToast" />
<u-select v-model="maskshowtwo" mode="single-column" :list="maskshowtwolist" @confirm="maskshowtwoconfirm"
z-index='10076'></u-select>
2023-10-08 17:03:35 +08:00
</view>
</template>
<script>
2023-10-12 15:54:10 +08:00
import {
rescindapplysave
} from '@/api/pagesB/mysigning/index.js'
2023-10-12 13:23:07 +08:00
import {
detail,
} from '@/api/pages/homepage/homepage.js'
2023-10-08 17:03:35 +08:00
export default {
data() {
return {
2023-10-12 09:47:40 +08:00
list: {},
2023-10-12 15:54:10 +08:00
maskshow: false,
maskshowtwo: false,
maskshowtwolist: [{
value: 1,
label: '主动解约'
},
{
value: 2,
label: '迁出'
}, {
value: 3,
label: '死亡'
}, {
value: 4,
label: '到期'
}, {
value: 5,
label: '其他'
},
],
2023-10-08 17:03:35 +08:00
};
2023-10-09 10:58:52 +08:00
},
methods: {
2023-10-12 15:54:10 +08:00
//解约
rescindapplysaveinfo() {
rescindapplysave(this.list).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '您已解约成功',
type: 'success',
})
setTimeout(() => {
uni.switchTab({
url: "/pages/homepage/homepage"
})
}, 2000)
}
})
},
2023-10-12 10:46:44 +08:00
// 签约信息
2023-10-12 11:24:37 +08:00
detailinfo() {
2023-10-12 13:23:07 +08:00
// detail(uni.getStorageSync('userinfo').cardNo, this.region).then(res => {
2023-10-12 11:24:37 +08:00
detail('372424194703207523', '1').then(res => {
2023-10-12 10:46:44 +08:00
if (res.code == 200) {
2023-10-12 13:23:07 +08:00
this.list = res.data
2023-10-12 15:54:10 +08:00
this.list.rescindType = null
this.list.rescindName = null
this.list.rescindReason = null
2023-10-12 13:23:07 +08:00
this.list.crowdsName = this.list.crowdsName.split(',')
this.list.packagesName = this.list.packagesName.split(',')
2023-10-12 10:46:44 +08:00
}
})
},
2023-10-09 10:58:52 +08:00
//我的家庭医生团队
gomyfamilydoctorteam() {
uni.navigateTo({
2023-10-12 14:31:36 +08:00
url: `/pagesB/myfamilydoctorteam/myfamilydoctorteam?teamNo=${this.list.teamNo}`
2023-10-09 10:58:52 +08:00
})
},
// 履约详情
goperformancedetails() {
uni.navigateTo({
url: "/pagesB/performancedetails/performancedetails"
})
},
//签约协议
gocontractsigningprotocol() {
uni.navigateTo({
2023-10-12 14:31:36 +08:00
url: `/pagesC/contractsigningprotocol/contractsigningprotocol?orgNo=${this.list.orgNo}`
2023-10-09 10:58:52 +08:00
})
},
2023-10-09 11:20:25 +08:00
//咨询
goseekadvicefrom() {
uni.navigateTo({
2023-10-12 14:31:36 +08:00
url: `/pagesB/imagetextConsultation/imagetextConsultation`
2023-10-09 11:20:25 +08:00
})
2023-10-12 13:23:07 +08:00
// uni.navigateTo({
// url: `/pagesC/seekadvicefrom/seekadvicefrom?item=${JSON.stringify(this.list)}`
// })
2023-10-09 11:20:25 +08:00
},
2023-10-12 15:54:10 +08:00
maskshowtwoconfirm(e) {
this.list.rescindType = e[0].value
this.list.rescindName = e[0].label
},
2023-10-12 09:47:40 +08:00
},
onLoad(options) {
2023-10-12 13:23:07 +08:00
this.detailinfo();
2023-10-08 17:03:35 +08:00
}
}
</script>
<style lang="scss">
2023-10-12 15:54:10 +08:00
@import './mysigning.scss';
</style>