|
@@ -1,28 +1,27 @@
|
|
|
<template>
|
|
|
-<div>
|
|
|
- <header class="mui-bar mui-bar-nav">
|
|
|
- <h1 class="mui-title">注册审核详情</h1>
|
|
|
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
- </header>
|
|
|
+ <div>
|
|
|
+ <common @asynCallBack="asynCallBack"></common>
|
|
|
+ <top-header :pageTitle="pageTitle"></top-header>
|
|
|
+
|
|
|
<div class="mui-content">
|
|
|
<div class="mui-content-padded vongi-qingjiadt">
|
|
|
<h5>申请人信息</h5>
|
|
|
<form class="mui-input-group">
|
|
|
<div class="mui-input-row">
|
|
|
<label>姓名</label>
|
|
|
- <span>姓名</span>
|
|
|
+ <span v-text="detail.name"></span>
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>手机号码</label>
|
|
|
- <span>15500001111</span>
|
|
|
+ <span v-text="detail.telephone"></span>
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>身份证号</label>
|
|
|
- <span>1550000111111111111</span>
|
|
|
+ <span v-text="detail.idCard"></span>
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label style="width:50%">人脸识别照片</label>
|
|
|
- <span class="vongi-qingjiadt-photo"><img src="~$project/assets/img/audit1.png" /> </span>
|
|
|
+ <span class="vongi-qingjiadt-photo"><img :src="detail.faceImageUrl" /> </span>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
@@ -30,50 +29,198 @@
|
|
|
<h5>身份信息</h5>
|
|
|
<form class="mui-input-group">
|
|
|
<div class="mui-input-row">
|
|
|
- <label>养老类型</label>
|
|
|
- <span>居家养老</span>
|
|
|
+ <label>场景类型</label>
|
|
|
+ <span v-text="detail.sceneName"></span>
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>您的身份</label>
|
|
|
- <span>长者</span>
|
|
|
+ <span v-text="detail.personRoleName"></span>
|
|
|
</div>
|
|
|
- <div class="mui-input-row">
|
|
|
- <label>所在地区</label>
|
|
|
- <span>荆州市-沙市区</span>
|
|
|
- </div>
|
|
|
- <div class="mui-input-row">
|
|
|
- <label>家庭住址</label>
|
|
|
- <span>富润·沙市花园 1-1-2201</span>
|
|
|
+ <div v-if="detail.structureId" class="mui-input-row">
|
|
|
+ <label v-text="structureLabel"></label>
|
|
|
+ <span v-text="detail.sceneId=='4'?detail.address:detail.structureName"></span>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
- <div class="fyy-scon-botton">
|
|
|
- <div class="examine-btn examine-btn1">拒绝</div>
|
|
|
- <div class="examine-btn examine-btn2">通过</div>
|
|
|
+ <div v-if="detail.status=='0'" class="fyy-scon-botton">
|
|
|
+ <div class="examine-btn examine-btn1" @click="openFrom('2')">拒绝</div>
|
|
|
+ <div class="examine-btn examine-btn2" @click="openFrom('1')">通过</div>
|
|
|
</div>
|
|
|
<!--状态-->
|
|
|
- <div class="mui-content-padded vongi-qingjiadt">
|
|
|
+ <div v-if="detail.status>0" class="mui-content-padded vongi-qingjiadt">
|
|
|
<h5>审核信息</h5>
|
|
|
<form class="mui-input-group">
|
|
|
<div class="mui-input-row">
|
|
|
<label>申请状态</label>
|
|
|
- <span class="colorfe616c">已拒绝</span>
|
|
|
- <!--<span class="color55f868">已通过</span>-->
|
|
|
+ <span :class="detail.status=='1'?'color55f868':'colorfe616c'" v-text="detail.statusN"></span>
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>审核时间</label>
|
|
|
- <span>2020-10-10 10:00:00</span>
|
|
|
- </div>
|
|
|
+ <span v-text="detail.examineTime"></span>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
-</div>
|
|
|
+
|
|
|
+ <!-- 审批弹窗 -->
|
|
|
+ <div v-show="openFromVisible" @click="openFromVisible=false" class="mui-backdrop mui-active"></div>
|
|
|
+ <div v-show="openFromVisible" class="mui-card fyy-popup">
|
|
|
+ <div class="mui-card-header mui-h3">审批意见</div>
|
|
|
+ <div class="mui-card-content">
|
|
|
+ <div class="mui-input-row">
|
|
|
+ <textarea v-model="subForm.content" rows="5" placeholder="请输入"></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="vongi-btn">
|
|
|
+ <button class="mui-btn mui-btn-primary" @click="doAction">提交</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import * as API_Company from '@/apis/Master/company'
|
|
|
+ import Common from '$project/components/Common.vue'
|
|
|
+ import Loading from '$project/components/Loading.vue'
|
|
|
+ import TopHeader from '$project/components/TopHeader.vue'
|
|
|
+ import {
|
|
|
+ mapGetters,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex'
|
|
|
+ export default {
|
|
|
+ name: 'MasterCompanyRegisterInfo',
|
|
|
+ components: {
|
|
|
+ Common,
|
|
|
+ Loading,
|
|
|
+ TopHeader
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pageTitle: '申请详情',
|
|
|
+
|
|
|
+ isLoading: false,
|
|
|
+
|
|
|
+ id: this.$route.query.id,
|
|
|
+ subForm: {
|
|
|
+ ids: '',
|
|
|
+ content: '',
|
|
|
+ status: ''
|
|
|
+ },
|
|
|
+ detail: {},
|
|
|
+
|
|
|
+ //审批内容弹窗显示
|
|
|
+ openFromVisible: false,
|
|
|
+ selectIdList: []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //获取详情
|
|
|
+ getDetail() {
|
|
|
+ this.isLoading = true;
|
|
|
+ API_Company.getApplyInfo(this.id).then(response => {
|
|
|
+
|
|
|
+ this.detail = response;
|
|
|
+
|
|
|
+ this.isLoading = false;
|
|
|
+ }).catch(error => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //显示内容表单
|
|
|
+ openFrom(status) {
|
|
|
+ this.selectIdList = [this.id];
|
|
|
+ if (!this.selectIdList.length) {
|
|
|
+ mui.toast('请选择要处理的信息');
|
|
|
+ } else {
|
|
|
+ this.subForm.status = status;
|
|
|
+ this.subForm.content = status == 1 ? '同意' : '拒绝';
|
|
|
+ this.openFromVisible = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //检测表单
|
|
|
+ checkForm() {
|
|
|
+ if (!this.subForm.ids) {
|
|
|
+ mui.toast('请选择要处理的信息');
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //同意拒绝
|
|
|
+ doAction() {
|
|
|
+ this.subForm.ids = this.selectIdList.join(',');
|
|
|
+ if (this.checkForm()) {
|
|
|
+ var btnArray = ['否', '是'];
|
|
|
+ var _this = this;
|
|
|
+ mui.confirm('确认当操作?', '提示', btnArray, function(e) {
|
|
|
+ if (e.index == 1) {
|
|
|
+ _this.isLoading = true;
|
|
|
+ API_Company.doApply(_this.subForm).then(response => {
|
|
|
+ _this.isLoading = false;
|
|
|
+
|
|
|
+ _this.openFromVisible = false;
|
|
|
+ _this.getDetail();
|
|
|
+ }).catch(error => {
|
|
|
+ _this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ asynCallBack() {
|
|
|
+
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ //获取详情
|
|
|
+ this.getDetail();
|
|
|
+ },
|
|
|
+ destroyed() {},
|
|
|
+ computed: {
|
|
|
+ structureLabel: {
|
|
|
+ // getter
|
|
|
+ get: function() {
|
|
|
+ if (this.detail.sceneId == '1') {
|
|
|
+ return '组职部门';
|
|
|
+ } else if (this.detail.sceneId == '2') {
|
|
|
+ return '家庭住址';
|
|
|
+ } else if (this.detail.sceneId == '3') {
|
|
|
+ return '机构房间';
|
|
|
+ } else if (this.detail.sceneId == '4') {
|
|
|
+ return '家庭住址';
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // setter
|
|
|
+ set: function(newValue) {
|
|
|
+ console.log(newValue)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ...mapGetters({
|
|
|
+ openId: 'wx_openid',
|
|
|
+ token: 'token',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style scoped src="$project/assets/css/xpwyfyy.css"></style>
|
|
|
<style scoped src="$project/assets/css/iconfont.css"></style>
|
|
|
-<style>
|
|
|
+<style scoped>
|
|
|
+ .status_r {
|
|
|
+ color: #fe616c !important;
|
|
|
+ border: 1px solid #fe616c !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .status_a {
|
|
|
+ color: #05c8af !important;
|
|
|
+ border: 1px solid #05c8af !important;
|
|
|
+ }
|
|
|
</style>
|