详情
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
<script>
|
||||
import List from "./components/List.vue";
|
||||
import Add from "./components/Add.vue";
|
||||
import Detail from "./components/Detail.vue";
|
||||
|
||||
export default {
|
||||
name: "AppAdministrativePenalty",
|
||||
@@ -18,7 +17,7 @@ export default {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
},
|
||||
components: {Add, List,Detail},
|
||||
components: {Add, List},
|
||||
data() {
|
||||
return {
|
||||
component: "List",
|
||||
@@ -33,11 +32,6 @@ export default {
|
||||
this.params = data.params;
|
||||
}
|
||||
|
||||
if (data.type === "Detail") {
|
||||
this.component = "Detail";
|
||||
this.params = data.params;
|
||||
}
|
||||
|
||||
if (data.type === "List") {
|
||||
this.component = "List";
|
||||
this.params = data.params;
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<template>
|
||||
<section class="Add">
|
||||
<ai-detail 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)" />
|
||||
<ai-title :title="params.id ? '编辑行政处罚' : '新增行政处罚'" :isShowBack="true" :isShowBottomBorder="true" @onBackClick="cancel(false)" />
|
||||
<!-- <template #right v-if="title=='网格员详情'"> -->
|
||||
<span style="color:#2266FF;cursor: pointer;font-size: 12px;" class="iconfont iconEdit" v-if="isEdit==false" @click="forms=data,isEdit=true">修改</span>
|
||||
<!-- <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="editOne==true" @click="searchDetail(),editOne=false">取消</span> -->
|
||||
<!-- <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="editOne==true" @click="save()">保存</span> -->
|
||||
<!-- </template> -->
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="add-form">
|
||||
@@ -68,6 +73,36 @@
|
||||
<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,id=params.id">修改</span>
|
||||
<!-- <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="editOne==true" @click="searchDetail(),editOne=false">取消</span> -->
|
||||
<!-- <span style="color:#2266FF;margin-left: 16px;cursor: pointer;font-size: 12px;" v-if="editOne==true" @click="save()">保存</span> -->
|
||||
</template>
|
||||
<template #content>
|
||||
<ai-wrapper>
|
||||
<!-- dict.getLabel('fpRiskType', info.riskType) -->
|
||||
<ai-info-item label="处罚文书号" :value="data.sanctionCode"></ai-info-item>
|
||||
<ai-info-item label="处罚机关" :value="data.sanctionOrganization"></ai-info-item>
|
||||
<ai-info-item label="处罚决定日期" :value="data.sanctionDate"></ai-info-item>
|
||||
<ai-info-item label="处罚类型" :value="data.sanctionType"></ai-info-item>
|
||||
<ai-info-item label="处罚内容" :value="data.sanctionContent"></ai-info-item>
|
||||
<ai-info-item label="处罚依据" isLine :value="data.sanctionBasis"></ai-info-item>
|
||||
<ai-info-item label="受罚主体" isLine :value="data.enterpriseName"></ai-info-item>
|
||||
<ai-info-item label="统一信用代码" isLine :value="data.unifiedCode"></ai-info-item>
|
||||
<ai-info-item label="违法事实" isLine :value="data.lllegalFact"></ai-info-item>
|
||||
</ai-wrapper>
|
||||
</template>
|
||||
</ai-card>
|
||||
</template>
|
||||
</ai-detail>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -107,11 +142,18 @@ export default {
|
||||
enterpriseName: '',
|
||||
unifiedCode: '',
|
||||
lllegalFact: '',
|
||||
}
|
||||
},
|
||||
isEdit: false,
|
||||
id: '',
|
||||
data: {},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('administrativeSanctionType')
|
||||
if (this.params && this.params.id) {
|
||||
this.id = this.params.id
|
||||
this.getDetail(this.params.id)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cancel(isRefresh) {
|
||||
@@ -120,13 +162,19 @@ export default {
|
||||
isRefresh: !!isRefresh,
|
||||
})
|
||||
},
|
||||
getDetail(id) {
|
||||
this.instance.post(`/appcreditadministrativesanction/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.data = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
confirm( ) {
|
||||
this.$refs.forms.validate((valid) => {
|
||||
if (valid) {
|
||||
this.instance.post(`/appcreditadministrativesanction/addOrUpdate`, {
|
||||
...this.forms,
|
||||
id: this.params.id || '',
|
||||
// picture: this.form.picture.length ? this.form.picture[0].url : ''
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('提交成功')
|
||||
|
||||
@@ -1,151 +0,0 @@
|
||||
<template>
|
||||
<section class="Detail">
|
||||
<ai-detail class="Detail">
|
||||
<template #title>
|
||||
<ai-title :title="params.id ? '行政处罚详情' : '新增行政处罚'" :isShowBack="true" :isShowBottomBorder="true" @onBackClick="cancel(false)" />
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="add-form">
|
||||
<ai-bar title="行政处罚信息"></ai-bar>
|
||||
<el-form ref="rules" :model="forms" :rules="formRules" size="small" label-width="150px">
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚文书号" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚机关" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚决定日期" prop="num">
|
||||
<el-date-picker v-model="value1" type="date" placeholder="选择日期" style="width:375px">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚类型" prop="num">
|
||||
<ai-select v-model="readType" @change="onChange" placeholder="请选择文档类型" :selectList="$dict.getDict('readType')"></ai-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚内容" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="处罚依据" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item label="受罚主体" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="统一信用代码" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="违法事实" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入违法事实" type="textarea" show-word-limit maxlength="500" :rows="5"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
</ai-detail>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Detail",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function,
|
||||
params: Object,
|
||||
},
|
||||
computed: {
|
||||
formRules() {
|
||||
return {
|
||||
num: [{required: true,message:"请输入执行编号",trigger: "blur"}]
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
forms
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
methods: {
|
||||
cancel(isRefresh) {
|
||||
this.$emit('change', {
|
||||
type: 'List',
|
||||
isRefresh: !!isRefresh,
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.Detail {
|
||||
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-list.ai-list__single .ai-list__content--right-wrapper {
|
||||
margin: 0 400px;
|
||||
}
|
||||
|
||||
// ::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>
|
||||
@@ -8,10 +8,16 @@
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="许可文书号/许可对象" v-model="search.name" clearable suffix-icon="iconfont iconSearch"
|
||||
@clear="page.current = 1, searchObj.con = '', getTableData()" v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||
<el-button size="small">导入</el-button>
|
||||
<el-button size="small">导出</el-button>
|
||||
<el-input size="small" placeholder="许可文书号/许可对象" v-model="search.sanctionCode" clearable suffix-icon="iconfont iconSearch" @change="getTableData()"
|
||||
@clear="page.current = 1, search.sanctionCode = '', getTableData()" v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||
<ai-import :instance="instance" :dict="dict" type="" name="行政许可信息" @success="getTableData(), $message.success('导入成功!')">
|
||||
<el-button size="small">导入</el-button>
|
||||
</ai-import>
|
||||
<ai-download :instance="instance" url="appcreditadministrativesanction/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"
|
||||
@@ -38,7 +44,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
search: {name: ""},
|
||||
search: {sanctionCode: ""},
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
tableData: [],
|
||||
}
|
||||
@@ -61,6 +67,10 @@ export default {
|
||||
this.getTableData()
|
||||
},
|
||||
methods: {
|
||||
search() {
|
||||
this.forms.sanctionCode = this.search.name
|
||||
this.getTableData()
|
||||
},
|
||||
getTableData() {
|
||||
this.instance.post("/appcreditadministrativesanction/list", null, {
|
||||
params: {...this.page, ...this.search, ...this.select}
|
||||
@@ -81,7 +91,7 @@ export default {
|
||||
},
|
||||
toDetail(id) {
|
||||
this.$emit('change', {
|
||||
type: 'Detail',
|
||||
type: 'Add',
|
||||
params: {
|
||||
id: id || ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user