详情
This commit is contained in:
@@ -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('提交成功')
|
||||
|
||||
Reference in New Issue
Block a user