<template>
|
<div class="certificateofservice">
|
<basic-container>
|
<el-dialog
|
title="送 达 回 证"
|
:close-on-click-modal="false"
|
:visible.sync="visible">
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm">
|
<el-form-item label="案件" prop="processAjApprovalId">
|
<el-select v-model="dataForm.processAjApprovalName" placeholder="请选择" @change="causeChange">
|
<el-option
|
v-for="item in processAjApprovalList"
|
:key="item.id"
|
:label="item.processAjCoverName"
|
:value="item">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<table class="examination-table" align="center" border="1" cellpadding="0" cellspacing="0">
|
<thead>
|
<tr>
|
<th colspan="2">送达文书名称及文号</th>
|
<td colspan="9">
|
<el-form-item prop="nameAndNumber">
|
<el-input v-model="dataForm.nameAndNumber"></el-input>
|
</el-form-item>
|
</td>
|
</tr>
|
<tr>
|
<th colspan="2">受送达人</th>
|
<td colspan="9">
|
<el-form-item prop="summonedPerson">
|
<el-input v-model="dataForm.summonedPerson"></el-input>
|
</el-form-item>
|
</td>
|
</tr>
|
<tr>
|
<th colspan="2">送 达 日 期</th>
|
<td colspan="9">
|
<el-form-item prop="deliveryDate">
|
<el-date-picker
|
v-model="dataForm.deliveryDate"
|
type="date"
|
placeholder="选择日期时间"
|
align="right"
|
value-format="yyyy-MM-dd">
|
</el-date-picker>
|
</el-form-item>
|
</td>
|
</tr>
|
<tr>
|
<th colspan="2">送 达 地 点</th>
|
<td colspan="9">
|
<el-form-item prop="deliveryAddress">
|
<el-input v-model="dataForm.deliveryAddress"></el-input>
|
</el-form-item>
|
</td>
|
</tr>
|
<tr>
|
<th colspan="2">送 达 方 式</th>
|
<td colspan="9">
|
<el-form-item prop="deliveryWay">
|
<el-input v-model="dataForm.deliveryWay"></el-input>
|
</el-form-item>
|
</td>
|
</tr>
|
</thead>
|
<tbody>
|
<tr>
|
<th class="yijianbox" colspan="2">收件人签名(或盖章)及收件日期</th>
|
<td class="chengbanyijian" colspan="9">
|
<el-form-item prop="recipientImg">
|
<el-input v-model="dataForm.recipientImg" type="textarea" :autosize="{minRows: 3,maxRows:5}"></el-input>
|
</el-form-item>
|
<div class="chengbanDate">
|
<el-form-item prop="receiptTime">
|
<el-date-picker v-model="dataForm.receiptTime" type="date" value-format="yyyy-MM-dd"
|
placeholder="收件人收件日期"></el-date-picker>
|
</el-form-item>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<th class="yijianbox" colspan="2">送达人签名</th>
|
<td class="chengbanyijian" colspan="9">
|
<div class="examinat-box">
|
<div class="qianming-main-inside2">
|
<el-form-item prop="deliveryImg">
|
<el-input type="textarea" :autosize="{minRows:3,maxRows:5}" v-model="dataForm.deliveryImg"></el-input>
|
</el-form-item>
|
</div>
|
</div>
|
<div class="chengbanDate">
|
<el-form-item prop="deliveryTime">
|
<el-date-picker
|
v-model="dataForm.deliveryTime"
|
type="date"
|
placeholder="送达人日期">
|
</el-date-picker>
|
</el-form-item>
|
</div>
|
</td>
|
|
</tr>
|
<tr>
|
<th class="yijianbox bezhu" colspan="2">备 注</th>
|
<td class="yijianbox" colspan="9">
|
<div class="shenbian-box bezhutextarea">
|
<el-form-item prop="note">
|
<el-input v-model="dataForm.note" type="textarea" :autosize="{minRow:2,maxRows:5}"></el-input>
|
</el-form-item>
|
</div>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</el-form>
|
<div class="examinat-submitBtns">
|
<el-button @click="visible = false">取消</el-button>
|
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
</div>
|
</el-dialog>
|
</basic-container>
|
</div>
|
</template>
|
|
<script>
|
import {getObj, addObj, putObj} from '@/api/certificateofservice'
|
import {findAll} from '@/api/process/processajapproval'
|
export default {
|
name: "certificateofservice-form",
|
data () {
|
return {
|
visible: false,
|
processAjApprovalList:[],
|
dataForm: {
|
processAjCoverName: '',
|
id: 0,
|
createBy: '',
|
createTime: '',
|
updateBy: '',
|
updateTime: '',
|
deliveryAddress: '',
|
deliveryDate: '',
|
deliveryImg: '',
|
deliveryTime: '',
|
deliveryWay: '',
|
documentNum: '',
|
nameAndNumber: '',
|
note: '',
|
processAjApprovalId: '',
|
receiptTime: '',
|
recipientImg: '',
|
summonedPerson: '',
|
tenantId: ''
|
},
|
dataRule: {
|
createBy: [
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
],
|
createTime: [
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
],
|
delFlag: [
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
],
|
updateBy: [
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
],
|
updateTime: [
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
],
|
deliveryAddress: [
|
{ required: true, message: '送 达 地 点不能为空', trigger: 'blur' }
|
],
|
deliveryDate: [
|
{ required: true, message: '送 达 日 期不能为空', trigger: 'blur' }
|
],
|
deliveryImg: [
|
{ required: true, message: '送达人签名(或盖章)不能为空', trigger: 'blur' }
|
],
|
deliveryTime: [
|
{ required: true, message: '送达人送达日期不能为空', trigger: 'blur' }
|
],
|
deliveryWay: [
|
{ required: true, message: '送 达 方 式不能为空', trigger: 'blur' }
|
],
|
documentNum: [
|
{ required: true, message: '序列号不能为空', trigger: 'blur' }
|
],
|
nameAndNumber: [
|
{ required: true, message: '送达文书名称及文号不能为空', trigger: 'blur' }
|
],
|
// note: [
|
// { required: true, message: '备注不能为空', trigger: 'blur' }
|
// ],
|
processAjApprovalId: [
|
{ required: true, message: '立案审批表id不能为空', trigger: 'blur' }
|
],
|
receiptTime: [
|
{ required: true, message: '收件人收件日期不能为空', trigger: 'blur' }
|
],
|
recipientImg: [
|
{ required: true, message: '收件人签名(或盖章)不能为空', trigger: 'blur' }
|
],
|
summonedPerson: [
|
{ required: true, message: '受送达人不能为空', trigger: 'blur' }
|
],
|
tenantId: [
|
{ required: true, message: '租户id不能为空', trigger: 'blur' }
|
]
|
}
|
}
|
},
|
methods: {
|
init (id) {
|
this.dataForm.id = id || 0
|
this.visible = true
|
this.$nextTick(() => {
|
this.$refs['dataForm'].resetFields()
|
if (this.dataForm.id) {
|
getObj(this.dataForm.id).then(response => {
|
this.dataForm = response.data.data
|
})
|
}
|
})
|
//获取所有案件
|
this.findAllProcessAj();
|
},
|
|
//查询所有案件
|
findAllProcessAj(){
|
findAll().then(res => {
|
console.log(res.data.data)
|
this.processAjApprovalList = res.data.data
|
});
|
},
|
|
|
//选择案件改变
|
causeChange(item) {
|
console.log(item);
|
this.dataForm.processAjApprovalId = item.id
|
this.dataForm.processAjApprovalName = item.processAjCoverName
|
/* this.dataForm.subjectType = item.subjectType
|
this.dataForm.subjectName = item.subjectName*/
|
},
|
|
|
|
// 表单提交
|
dataFormSubmit () {
|
this.dataForm.deliveryTime && (this.dataForm.deliveryTime = this.moment(this.dataForm.deliveryTime).format('YYYY-MM-DD'))
|
this.$refs['dataForm'].validate((valid) => {
|
if (valid) {
|
if (this.dataForm.id) {
|
putObj(this.dataForm).then(data => {
|
this.$message.success('修改成功')
|
this.visible = false
|
this.$emit('refreshDataList')
|
});
|
} else {
|
addObj(this.dataForm).then(data => {
|
this.$message.success('添加成功')
|
this.visible = false
|
this.$emit('refreshDataList')
|
})
|
}
|
}
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
.examination-table .el-textarea__inner,.examination-table .el-input__inner {
|
background-color: transparent;
|
border: none;
|
}
|
.examination-table .el-form-item{
|
height: 90%;
|
}
|
.examination-table .el-form-item__content,.examination-table .el-textarea{
|
height: 100%;
|
}
|
.chooseadmpenBox .el-form-item{
|
margin-bottom: 0;
|
}
|
.examinat-box .el-form-item{
|
width: 100%;
|
}
|
.shenbian-box .el-textarea__inner{
|
height: 100% !important;
|
}
|
</style>
|
<style scoped>
|
.examination-table {
|
table-layout: fixed;
|
width: 90%;
|
margin: 0 auto;
|
min-width: 600px;
|
}
|
.shulie-font{
|
width: 24px;
|
}
|
.leftTh{
|
width: 70px;
|
}
|
.rightTh{
|
width: 88px;
|
}
|
.yijianbox {
|
height: 160px;
|
}
|
.bezhutextarea{
|
height: 90%;
|
}
|
.chengbanyijian {
|
position: relative;
|
}
|
.chooseadmpenBox {
|
height: 50px;
|
padding-left: 10px;
|
}
|
.examinat-box {
|
position: absolute;
|
bottom: 0px;
|
left: 20px;
|
height: 100%;
|
width: calc(100% - 20px);
|
display: flex;
|
flex-direction: column;
|
}
|
.qianming-box-inside{
|
display: flex;
|
height: 25%;
|
}
|
.qianming-box-main {
|
display: flex;
|
align-items: center;
|
width: 50%;
|
}
|
.qianming-box-main2{
|
display: flex;
|
align-items: center;
|
width: 50%;
|
height: 50%;
|
}
|
.chengbanDate {
|
position: absolute;
|
right: 0px;
|
bottom: 0px;
|
display: flex;
|
}
|
.qianming-main-inside2 {
|
display: flex;
|
height: 40%;
|
}
|
.examinat-submitBtns{
|
display: flex;
|
justify-content: center;
|
margin: 40px 0;
|
}
|
.examinationpenaltCloumn{
|
flex-direction: column;
|
display: flex;
|
height: 50%;
|
}
|
.examinationFlex{
|
display: flex;
|
height: 50%;
|
}
|
</style>
|