<template>
|
<GlobalWindow
|
:title="title"
|
width="50%"
|
:visible.sync="visible"
|
:confirm-working="isWorking"
|
>
|
<div class="form">
|
<div class="form_item">
|
<div class="form_item_label"><span>*</span>审核说明:</div>
|
<div class="form_item_val">
|
<el-input type="textarea" v-model="form.checkInfo" :rows="2" placeholder="请输入"></el-input>
|
</div>
|
</div>
|
</div>
|
|
<template v-slot:footer>
|
<el-button type="primary" @click="doSubmit(1)">审核通过</el-button>
|
<el-button type="danger" @click="doSubmit(2)">审核退回</el-button>
|
<el-button @click="visible=false">取消</el-button>
|
</template>
|
</GlobalWindow>
|
</template>
|
|
<script>
|
import BaseOpera from '@/components/base/BaseOpera'
|
import GlobalWindow from '@/components/common/GlobalWindow'
|
import {check} from "@/api/business/dispatchUnit";
|
export default {
|
name: 'dispatchReviewCheck',
|
extends: BaseOpera,
|
components: { GlobalWindow },
|
data () {
|
return {
|
// 表单数据
|
form: {
|
id: null,
|
checkInfo: ''
|
},
|
// 验证规则
|
rules: {
|
},
|
tableData: [],
|
visible5: false
|
}
|
},
|
created () {
|
this.config({
|
api: '/business/insuranceApply',
|
'field.id': 'id'
|
})
|
},
|
methods: {
|
open(title,target){
|
this.form.id = null
|
this.title=title
|
this.visible=true
|
this.form.id=target.id
|
},
|
doSubmit(type){
|
this.$dialog.messageConfirm('确认进行该操作吗?')
|
.then(() => {
|
this.isWorking = true
|
check({id:this.form.id,checkInfo:this.form.checkInfo,unitStatus:type})
|
.then(response => {
|
this.visible = false
|
this.$emit('success')
|
}).catch(err => {
|
this.$tip.apiFailed(err)
|
})
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.box {
|
width: 100%;
|
.box_label {
|
width: 100%;
|
color: black;
|
font-size: 14px;
|
margin-bottom: 15px;
|
}
|
}
|
.form {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
flex-direction: column;
|
.form_span {
|
width: 100%;
|
display: flex;
|
align-items: start;
|
flex-direction: column;
|
margin-bottom: 20px;
|
span {
|
font-size: 14px;
|
&:nth-child(1) {
|
color: black;
|
margin-bottom: 5px;
|
}
|
&:nth-child(2) {
|
color: #8c939d;
|
}
|
}
|
}
|
.form_item {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
margin-bottom: 20px;
|
&:last-child {
|
margin: 0 !important;
|
}
|
.form_item_label {
|
flex-shrink: 0;
|
width: 170px;
|
color: black;
|
font-size: 14px;
|
span {
|
color: red;
|
font-size: 14px;
|
}
|
}
|
.form_item_val {
|
flex: 1;
|
/*height: 40px;*/
|
margin-left: 20px;
|
textarea {
|
width: 100%;
|
height: 70px;
|
border: 1px solid #cbcbcb;
|
padding: 10px;
|
outline: none;
|
box-sizing: border-box;
|
}
|
input {
|
width: 100%;
|
height: 40px;
|
outline: none;
|
border-radius: 5px;
|
border: 1px solid #cbcbcb;
|
padding: 0 20px;
|
box-sizing: border-box;
|
}
|
}
|
}
|
}
|
</style>
|