土地流转 新增

This commit is contained in:
shijingjing
2022-04-07 15:11:49 +08:00
parent bd62cf7b8b
commit 80617aada2
5 changed files with 516 additions and 122 deletions

View File

@@ -12,109 +12,76 @@
</template>
<template #content>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
<el-form-item label="土地流出方" prop="unifiedCode">
<el-radio-group v-model="radioFrom">
<el-radio :label="1">企业组织</el-radio>
<el-radio :label="2">个人农户</el-radio>
</el-radio-group>
</el-form-item>
<el-row type="flex" v-if="radioFrom == 1">
<el-row type="flex">
<el-col :span="20">
<el-form-item label="单位名称" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地流出方单位名称"></el-input>
<el-form-item label="土地流出方" prop="landOutflowName">
<el-input v-model="form.landOutflowName" placeholder="请输入土地流出方名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="信用代码" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地流出方统一社会信用代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" v-if="radioFrom == 2">
<el-col :span="20">
<el-form-item label="人员姓名" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地流出方人员姓名"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="身份证号" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地流出方身份证号"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="土地承接方" prop="unifiedCode">
<el-radio-group v-model="radioTo">
<el-radio :label="1">企业组织</el-radio>
<el-radio :label="2">个人农户</el-radio>
</el-radio-group>
</el-form-item>
<el-row type="flex" v-if="radioTo == 1">
<el-col :span="20">
<el-form-item label="单位名称" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地承接方单位名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="信用代码" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地承接方统一社会信用代码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" v-if="radioTo == 2">
<el-col :span="20">
<el-form-item label="人员姓名" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地承接方人员姓名"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="身份证号" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入土地承接方人员身份证号"></el-input>
<el-form-item label="土地流出方证件号码" prop="landOutflowNumber">
<el-input v-model="form.landOutflowNumber" placeholder="请输入土地流出方证件号码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="合同编号" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入合同编号"></el-input>
</el-form-item>
<el-form-item label="土地承接方" prop="landUndertakeName">
<el-input v-model="form.landUndertakeName" placeholder="请输入土地承接方名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="流转形式" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入流转形式"></el-input>
<el-form-item label="土地承接方证件号码" prop="landUndertakeNumber">
<el-input v-model="form.landUndertakeNumber" placeholder="请输入土地承接方证件号码"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="土地面积/㎡" prop="unifiedCode">
<ai-select v-model="form.unifiedCode" placeholder="请选择" :selectList="$dict.getDict('')"></ai-select>
<el-form-item label="合同编号" prop="contractNo">
<el-input v-model="form.contractNo" placeholder="请输入合同编号"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="每亩年租金" prop="unifiedCode">
<el-input v-model="form.unifiedCode" placeholder="请输入"></el-input>
<el-form-item label="流转形式" prop="circulateType">
<ai-select v-model="form.circulateType" placeholder="请选择" :selectList="$dict.getDict('circulateType')"></ai-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="土地面积/㎡" prop="landArea">
<ai-select v-model="form.landArea" placeholder="请选择" :selectList="$dict.getDict('')"></ai-select>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="每亩年租金" prop="yearRent">
<el-input v-model="form.yearRent" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="开始日期" prop="unifiedCode">
<el-date-picker v-model="form.unifiedCode" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:375px">
<el-form-item label="开始日期" prop="startDate">
<el-date-picker v-model="form.startDate" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:410px">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="截止日期" prop="unifiedCode">
<el-date-picker v-model="form.unifiedCode" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:375px">
<el-form-item label="截止日期" prop="endDate">
<el-date-picker v-model="form.endDate" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:410px">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="土地信息" prop="unifiedCode">
<el-input type="textarea" v-model="form.unifiedCode" placeholder="请说明土地流转的地块名称地界四至" maxlength="500" show-word-limit :rows="5" />
<el-form-item label="土地信息" prop="landInfo">
<el-input type="textarea" v-model="form.landInfo" placeholder="请说明土地流转的地块名称地界四至" maxlength="500" show-word-limit :rows="5" />
</el-form-item>
<el-form-item label="土地用途" prop="unifiedCode">
<el-input type="textarea" v-model="form.unifiedCode" placeholder="请说明流转土地的用途" maxlength="500" show-word-limit :rows="5" />
<el-form-item label="土地用途" prop="landUse">
<el-input type="textarea" v-model="form.landUse" placeholder="请说明流转土地的用途" maxlength="500" show-word-limit :rows="5" />
</el-form-item>
<el-form-item label="权证照片" prop="fileList">
<ai-uploader v-model="form.fileList" :instance="instance" :limit="9" isShowTip/>
</el-form-item>
</el-form>
</template>
@@ -125,7 +92,7 @@
<el-button class="footer-btn" type="primary" @click="confirm()">保存</el-button>
</template>
</ai-detail>
<ai-detail class="add" v-if="id && !isEdit">
<ai-detail class="add" v-if="params.id && !isEdit">
<template slot="title">
<ai-title title="详情" isShowBack isShowBottomBorder @onBackClick="cancel(false)"></ai-title>
</template>
@@ -136,20 +103,17 @@
</template>
<template #content>
<ai-wrapper>
<ai-info-item label="土地流出方" :value="data.taxpayer"></ai-info-item>
<ai-info-item label="信用代码" :value="data.taxpayerNumber"></ai-info-item>
<ai-info-item label="身份证" :value="data.taxpayerNumber"></ai-info-item>
<ai-info-item label="土地承接方" :value="data.taxYear"></ai-info-item>
<ai-info-item label="信用代码" :value="data.taxpayerNumber"></ai-info-item>
<ai-info-item label="身份证号">{{ dict.getLabel('taxInfoLevel', data.taxLevel) }}</ai-info-item>
<ai-info-item label="流转形式" :value="data.enterpriseName"></ai-info-item>
<ai-info-item label="土地面积" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="每亩年租金" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="土地面积" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="开始日期" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="截止日期" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="土地信息" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="土地用途" :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="土地流出方" :value="data.landOutflowName"></ai-info-item>
<ai-info-item label="土地流出方证件号码" :value="data.landOutflowNumber"></ai-info-item>
<ai-info-item label="土地承接方" :value="data.landUndertakeName"></ai-info-item>
<ai-info-item label="土地承接方证件号码" :value="data.landUndertakeNumber"></ai-info-item>
<ai-info-item label="流转形式">{{ $dict.getLabel('circulateType',data.circulateType) }}</ai-info-item>
<ai-info-item label="土地面积" :value="data.landArea"></ai-info-item>
<ai-info-item label="每亩年租金" :value="data.yearRent"></ai-info-item>
<ai-info-item label="开始日期" :value="data.startDate"></ai-info-item>
<ai-info-item label="截止日期" :value="data.endDate"></ai-info-item>
<ai-info-item label="土地信息" :value="data.landInfo"></ai-info-item>
<ai-info-item label="土地用途" :value="data.landUse"></ai-info-item>
</ai-wrapper>
</template>
</ai-card>
@@ -172,7 +136,19 @@ export default {
radioTo: '',
radioFrom: '',
form: {
unifiedCode: '',
landOutflowName: '',
landOutflowNumber: '',
landUndertakeName: '',
landUndertakeNumber: '',
contractNo: '',
circulateType: '',
landArea: '',
yearRent: '',
startDate: '',
endDate:'' ,
landInfo: '',
landUse: '',
fileList: {},
},
data: {},
isEdit: false,
@@ -182,12 +158,25 @@ export default {
computed: {
rules() {
return {
unifiedCode: [{required: true, message: "请输入名称", trigger: "blur"}],
landOutflowName: [{required: true, message: "请输入土地流出方名称", trigger: "blur"}],
landOutflowNumber: [{required: true, message: "请输入土地流出方证件号码", trigger: "blur"}],
landUndertakeName: [{required: true, message: "请输入土地承接方名称", trigger: "blur"}],
landUndertakeNumber: [{required: true, message: "请输入土地承接方证件号码", trigger: "blur"}],
contractNo: [{required: true, message: "请输入合同编号", trigger: "blur"}],
circulateType: [{required: true, message: "请选择流转形式", trigger: "blur"}],
landArea: [{required: true, message: "请输入土地面积", trigger: "blur"}],
// yearRent: [{required: true, message: "请输入每亩年租金", trigger: "blur"}],
startDate: [{required: true, message: "请选择开始日期", trigger: "blur"}],
// endDate: [{required: true, message: "请选择截止日期", trigger: "blur"}],
landInfo: [{required: true, message: "请输入土地信息", trigger: "blur"}],
// landUse: [{required: true, message: "请输入土地用途", trigger: "blur"}],
fileList: [{required: true, message: "请上传图片", trigger: "blur"}],
}
},
},
created() {
this.$dict.load('circulateType')
if(this.params && this.params.id) {
this.id = this.params.id
this.getDetail(this.params.id)
@@ -201,28 +190,28 @@ export default {
})
},
getDetail(id) {
// this.instance.post(`/appcreditadminstrativelicense/queryDetailById?id=${id}`).then(res => {
// if (res.code === 0) {
// this.data = res.data
// }
// })
this.instance.post(`/applandcirculateinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.data = res.data
}
})
},
confirm() {
// this.$refs.forms.validate((valid) => {
// if (valid) {
// this.instance.post(`/appcreditadminstrativelicense/addOrUpdate`, {
// ...this.forms,
// id: this.params.id || '',
// }).then(res => {
// if (res.code == 0) {
// this.$message.success('提交成功')
// setTimeout(() => {
// this.cancel(true)
// }, 600)
// }
// })
// }
// })
this.$refs.form.validate((valid) => {
if (valid) {
this.instance.post(`/applandcirculateinfo/addOrUpdate`, {
...this.forms,
id: this.params.id || '',
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')
setTimeout(() => {
this.cancel(true)
}, 600)
}
})
}
})
},
},
}
@@ -231,11 +220,10 @@ export default {
<style lang="scss" scoped>
.Add {
height: 100%;
// background: #f3f4f5;
background: #f3f4f5;
.footer {
background: #FFF;
::v-deep .footer {
background: #FFF !important;
}
}
</style>

View File

@@ -1,17 +1,23 @@
<template>
<section class="List">
<ai-list>
<ai-title slot="title" title="土地流转经营" isShowBottomBorder :isShowArea="true" v-model="areaId"/>
<ai-title slot="title" title="土地流转经营" isShowBottomBorder/>
<template #content>
<ai-search-bar>
<template #left>
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
<ai-select v-model="readType" @change="onChange" placeholder="流转形式" :selectList="$dict.getDict('readType')"></ai-select>
<ai-select v-model="readType" @change="onChange" placeholder="经营状态" :selectList="$dict.getDict('readType')"></ai-select>
</template>
<template #right>
<el-input size="small" placeholder="查询合同编号/流出方/承接方/证件号码" v-model="search.name" clearable @clear="page.current = 1, searchObj.name = '',getTableData()"
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
<ai-import :instance="instance" :dict="dict" importUrl="/appcreditdishonestperson/import" url="/appcreditdishonestperson/downloadTemplate" name="失信被执行人信息" @success="getTableData(), $message.success('导入成功!')">
<el-button size="small">导入</el-button>
</ai-import>
<ai-download :instance="instance" url="/appcreditdishonestperson/export" :params="search" fileName="土地流转经营信息"
:disabled="tableData.length == 0">
<el-button size="small">导出</el-button>
</ai-download>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -50,13 +56,13 @@ export default {
computed: {
colConfigs() {
return [
{ prop: "executionCode", label: '土地流出方', align: "center", width: "200px", },
{ prop: "executionTime", label: '土地面积/㎡', align: "center", width: "200px", },
{ prop: "enterpriseName", label: '流转形式', align: "center", width: "200px", },
{ prop: "unifiedCode", label: '土地承接方', align: "center", width: "200px", },
{ prop: "dishonestFact", label: '承接方证件号码', align: "center", width: "200px", },
{ prop: "createTime", label: '有效期限', align: "center", width: "200px", },
{ prop: "createUserName", label: '经营状态', align: "center", width: "200px", },
{ prop: "landOutflowName", label: '土地流出方', align: "center", width: "200px", },
{ prop: "landArea", label: '土地面积/㎡', align: "center", width: "200px", },
{ prop: "circulateType", label: '流转形式', align: "center", width: "200px", },
{ prop: "landUndertakeName", label: '土地承接方', align: "center", width: "200px", },
{ prop: "landUndertakeNumber", label: '承接方证件号码', align: "center", width: "200px", },
{ prop: "contractNo", label: '合同编号', align: "center", width: "200px", },
{ prop: "endDate", label: '有效期限', align: "center", width: "200px", },
{ slot: "options" ,},
]
},
@@ -69,7 +75,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appcreditdishonestperson/list", null, {
this.instance.post("/applandcirculateinfo/list", null, {
params: {...this.page, ...this.search,...this.select}
}).then(res => {
if (res?.data) {
@@ -89,7 +95,7 @@ export default {
},
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/appcreditdishonestperson/delete?ids=${id}`).then(res => {
this.instance.post(`/applandcirculateinfo/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()

View File

@@ -0,0 +1,54 @@
<template>
<section class="AppPublicArrearage">
<keep-alive :include="['List']">
<component ref="component" :is="component" :instance="instance" :params="params" :dict="dict" @change="onChange"/>
</keep-alive>
</section>
</template>
<script>
import List from "./components/List.vue";
import Add from "./components/Add.vue";
export default {
name: "AppPublicArrearage",
label: "公共事业欠费",
props: {
instance: Function,
dict: Object,
},
components: {Add, List},
data() {
return {
component: "List",
params: {},
include: [],
}
},
methods: {
onChange(data) {
if (data.type === "Add") {
this.component = "Add";
this.params = data.params;
}
if (data.type === "List") {
this.component = "List";
this.params = data.params;
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getTableData();
}
});
}
},
},
}
</script>
<style lang="scss" scoped>
.AppPublicArrearage {
height: 100%;
}
</style>

View File

@@ -0,0 +1,240 @@
<template>
<section class="Add">
<ai-detail class="add" v-if="isEdit == true || !id">
<template #title>
<ai-title :title="params.id ? '编辑公共事业欠费信息' : '新增公共事业欠费信息'" :isShowBack="true" :isShowBottomBorder="true" @onBackClick="cancel(false)" />
</template>
<template slot="content">
<ai-card title="基本信息">
<template #right v-if="params.id">
<span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="isEdit==true" @click="isEdit=false">取消</span>
<span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="isEdit==true" @click="confirm()">保存</span>
</template>
<template #content>
<el-form ref="forms" :model="forms" :rules="formRules" size="small" label-width="150px">
<el-row type="flex">
<el-col :span="20">
<el-form-item label="执行案号" prop="executionCode">
<el-input v-model="forms.executionCode" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="执行法院" prop="executionCourt">
<el-input v-model="forms.executionCourt" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="执行时间" prop="executionTime">
<el-date-picker v-model="forms.executionTime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" style="width:338px">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="履行情况" prop="executionSituation">
<ai-select v-model="forms.executionSituation" placeholder="请选择文档类型" :selectList="$dict.getDict('dishonestPersonSituation')"></ai-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="20">
<el-form-item label="失信被执行主体" prop="enterpriseName">
<el-input v-model="forms.enterpriseName" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="20">
<el-form-item label="统一信用代码" prop="unifiedCode">
<el-input v-model="forms.unifiedCode" placeholder="请输入" maxlength="18"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="失信事实" prop="dishonestFact">
<el-input v-model="forms.dishonestFact" placeholder="请输入失信事实" type="textarea" show-word-limit maxlength="500" :rows="5"></el-input>
</el-form-item>
</el-form>
</template>
</ai-card>
</template>
<template slot="footer" class="footer">
<el-button class="delete-btn footer-btn" @click="cancel(false)">取消</el-button>
<el-button class="footer-btn" type="primary" @click="confirm()">保存</el-button>
</template>
</ai-detail>
<ai-detail class="add" v-if="id && !isEdit">
<template slot="title">
<ai-title title="失信被执行人信息详情" isShowBack isShowBottomBorder @onBackClick="cancel(false)"></ai-title>
</template>
<template slot="content">
<ai-card title="基本信息">
<template #right>
<span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false" @click="isEdit=true,forms=data">修改</span>
</template>
<template #content>
<ai-wrapper>
<ai-info-item label="执行案号" :value="data.executionCode"></ai-info-item>
<ai-info-item label="执行法院" :value="data.executionCourt"></ai-info-item>
<ai-info-item label="执行时间" :value="data.executionTime"></ai-info-item>
<ai-info-item label="履行情况" :value="data.executionSituation">{{ dict.getLabel('dishonestPersonSituation',data.executionSituation) }}</ai-info-item>
<ai-info-item label="失信被执行主体" :value="data.enterpriseName"></ai-info-item>
<ai-info-item label="统一信用代码" isLine :value="data.unifiedCode"></ai-info-item>
<ai-info-item label="失信事实" isLine :value="data.dishonestFact"></ai-info-item>
</ai-wrapper>
</template>
</ai-card>
</template>
</ai-detail>
</section>
</template>
<script>
export default {
name: "Add",
props: {
instance: Function,
dict: Object,
permissions: Function,
params: Object,
},
computed: {
formRules() {
return {
executionCode: [{required: true,message:"请输入执行编号",trigger: "blur"}],
executionCourt: [{required: true,message:"请输入执行法院",trigger: "blur"}],
executionTime: [{required: true,message:"请输入执行时间",trigger: "blur"}],
executionSituation: [{required: true,message:"请选择履行情况",trigger: "blur"}],
enterpriseName: [{required: true,message:"请输入失信被执行主体",trigger: "blur"}],
unifiedCode: [{required: true,message:"请输入统一信用代码",trigger: "blur"},
{ min: 18, max: 18, message: '长度为18个字符', trigger: 'blur' }],
dishonestFact: [{required: true,message:"请输入失信事实",trigger: "blur"}],
}
}
},
created() {
this.$dict.load('dishonestPersonSituation')
if (this.params && this.params.id) {
this.id = this.params.id
this.getDetail(this.params.id)
}
},
data() {
return {
forms: {
executionCode: '',
executionCourt: '',
executionTime: '',
executionSituation: '',
enterpriseName: '',
unifiedCode: '',
dishonestFact: '',
},
data: {},
isEdit: false,
id: '',
}
},
methods: {
cancel(isRefresh) {
this.$emit('change', {
type: 'List',
isRefresh: !!isRefresh,
})
},
getDetail(id) {
this.instance.post(`/appcreditdishonestperson/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.data = res.data
}
})
},
confirm( ) {
this.$refs.forms.validate((valid) => {
if (valid) {
this.instance.post(`/appcreditdishonestperson/addOrUpdate`, {
...this.forms,
id: this.params.id || '',
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')
setTimeout(() => {
this.cancel(true)
}, 600)
}
})
}
})
},
},
}
</script>
<style lang="scss" scoped>
.Add {
height: 100%;
overflow: hidden;
background: #f2f4f6 !important;
.add-form__item {
display: flex;
align-items: center;
}
::v-deep .el-form-item__label {
padding-right: 40px;
}
::v-deep .ai-detail__footer {
background: #fff !important;
}
::v-deep .ai-info-item label {
width: 100px;
}
::v-deep .ai-detail__content--active {
padding: 20px;
.ai-detail__content--wrapper {
width: 100%;
}
.aibar {
padding: 0 16px;
}
.el-form {
padding: 0 96px 20px 50px;
}
.add-form {
background: #fff;
}
}
::v-deep .ai-wrapper {
align-items: inherit !important;
}
.user-wrapper {
display: flex;
justify-content: space-between;
}
.avatar {
width: 100px;
height: 100px;
object-fit: contain;
border-radius: 10px;
}
.footer-btn {
width: 130px;
}
.el-form {
padding-bottom: 80px;
}
}
</style>

View File

@@ -0,0 +1,106 @@
<template>
<section class="List">
<ai-list>
<ai-title slot="title" title="公共事业欠费信息" isShowBottomBorder/>
<template #content>
<ai-search-bar>
<template #left>
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
</template>
<template #right>
<el-input size="small" placeholder="欠费主题/统一信用社会代码" v-model="search.executionCode" clearable @clear="page.current = 1, search.executionCode = '',getTableData()"
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
<ai-import :instance="instance" :dict="dict" importUrl="/appcreditdishonestperson/import" url="/appcreditdishonestperson/downloadTemplate" name="失信被执行人信息" @success="getTableData(), $message.success('导入成功!')">
<el-button size="small">导入</el-button>
</ai-import>
<ai-download :instance="instance" url="/appcreditdishonestperson/export" :params="search" fileName="公共事业欠费信息"
:disabled="tableData.length == 0">
<el-button size="small">导出</el-button>
</ai-download>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="操作" align="center">
<template slot-scope="{ row }">
<el-button type="text" @click="toAdd(row.id)">详情</el-button>
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
</template>
</el-table-column>
</ai-table>
</template>
</ai-list>
</section>
</template>
<script>
export default {
name: "List",
props: {
instance: Function,
dict: Object,
permissions: Function
},
data() {
return {
search: {executionCode: ""},
page: {current: 1, size: 10, total: 0},
tableData: [],
}
},
computed: {
colConfigs() {
return [
{ prop: "executionCode", label: '执行案号', align: "center", width: "200px", },
{ prop: "executionTime", label: '执行时间', align: "center", width: "200px", },
{ prop: "enterpriseName", label: '失信被执行主体', align: "center", width: "200px", },
{ prop: "unifiedCode", label: '统一信用代码', align: "center", width: "200px", },
{ prop: "dishonestFact", label: '失信事实', align: "center", width: "200px", },
{ prop: "createTime", label: '更新时间', align: "center", width: "200px", },
{ prop: "createUserName", label: '操作人', align: "center", width: "200px", },
{ slot: "options" ,},
]
}
},
created() {
this.getTableData()
},
methods: {
getTableData() {
this.instance.post("/appcreditdishonestperson/list", null, {
params: {...this.page, ...this.search,...this.select}
}).then(res => {
if (res?.data) {
this.tableData = res.data?.records
this.page.total = res.data.total
}
})
},
toAdd(id) {
this.$emit('change', {
type: 'Add',
params: {
id: id || ''
}
})
},
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/appcreditdishonestperson/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()
}
})
})
},
}
}
</script>
<style lang="scss" scoped>
.List {
height: 100%;
background: #f3f4f5;
}
</style>