行政许可
This commit is contained in:
@@ -1,149 +1,57 @@
|
||||
<template>
|
||||
<div class="AppAdministrativeLicense">
|
||||
<ai-list>
|
||||
<ai-title slot="title" title="行政许可登记" isShowBottomBorder />
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<el-button type="primary" @click="addBtn">+添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="经营主体/统一信用代码" v-model="search.name" clearable v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||
<el-button size="small">导入</el-button>
|
||||
<el-button size="small">导出</el-button>
|
||||
</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" @selection-change=" (v) => (ids = v.filter((e) => e.sysUserId).map((e) => e.sysUserId)) ">
|
||||
<el-table-column slot="options" label="操作" fixed="right" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
|
||||
</template>
|
||||
<template slot-scope="{ row }">
|
||||
<el-button type="text" @click="delete row.id">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
<ai-dialog title="新增许可信息" :visible.sync="dialog" width="1000px" @onConfirm="confirm">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
|
||||
<el-form-item required label="许可文书名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可文书号" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可决定日期" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期自" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期至" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可机关" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入使用人姓名"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="经营主体" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入许可对象"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="统一信用代码" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入统一信用代码"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可内容" prop="name">
|
||||
<el-input v-model="form.name" type="textarea" placeholder="请输入许可内容" :rows="5" resize="none" show-word-limit :maxlength="500"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog>
|
||||
</div>
|
||||
<section class="AppAdministrativeLicense">
|
||||
<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: "AppAdministrativeLicense",
|
||||
label: "行政许可信息",
|
||||
// components: {PumList, PumDetail},
|
||||
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
components: {Add, List},
|
||||
data() {
|
||||
return {
|
||||
search: { name: "" },
|
||||
tableData: [],
|
||||
page: { current: 1, size: 10, total: 0 },
|
||||
dialog: false,
|
||||
form: { name: "" },
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
colConfigs() {
|
||||
return [
|
||||
{ label: "许可文书号", prop: "position", align: "center", width: "260px",},
|
||||
{ label: "许可有效期至", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "许可机关", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "许可对象", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "统一信用代码", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "更新时间", prop: "position", align: "center", width: "120px",},
|
||||
{ label: "操作人", prop: "position", align: "center", width: "150px" },
|
||||
{ slot: "options" },
|
||||
];
|
||||
},
|
||||
rules() {
|
||||
return {
|
||||
name: [{ required: true, message: "请输入许可文书名称" }],
|
||||
};
|
||||
},
|
||||
component: "List",
|
||||
params: {},
|
||||
include: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
// this.instance.post("/appportaluserenterprise/list", null, {
|
||||
// params: {...this.page, ...this.search, status: 1,...this.select}
|
||||
// }).then(res => {
|
||||
// if (res?.data) {
|
||||
// this.tableData = res.data?.records
|
||||
// this.page.total = res.data.total
|
||||
// }
|
||||
// })
|
||||
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();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
addBtn() {
|
||||
this.dialog = true;
|
||||
},
|
||||
showDetail(id) {
|
||||
this.$router.push(`./detial?id=${id}`)
|
||||
},
|
||||
delete(id) {
|
||||
this.$confirm("是否要删除?").then(() => this.deleteInfo(id));
|
||||
},
|
||||
deleteInfo() {},
|
||||
},
|
||||
};
|
||||
created() {
|
||||
this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppAdministrativeLicense {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
165
project/xiushan/apps/AppAdministrativeLicense/components/Add.vue
Normal file
165
project/xiushan/apps/AppAdministrativeLicense/components/Add.vue
Normal file
@@ -0,0 +1,165 @@
|
||||
<template>
|
||||
<section class="Add">
|
||||
<ai-detail class="add">
|
||||
<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-form-item label="许可文书名称" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<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-form-item label="许可机关" prop="num">
|
||||
<el-input v-model="input" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<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>
|
||||
<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="onSubmit('0')">保存</el-button>
|
||||
</template>
|
||||
</ai-detail>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Add",
|
||||
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>
|
||||
.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-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>
|
||||
@@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<div class="AppAdministrativeLicense">
|
||||
<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.name" clearable v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||
<el-button size="small">导入</el-button>
|
||||
<el-button size="small">导出</el-button>
|
||||
</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" @selection-change=" (v) => (ids = v.filter((e) => e.sysUserId).map((e) => e.sysUserId)) ">
|
||||
<el-table-column slot="options" label="操作" fixed="right" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
|
||||
</template>
|
||||
<template slot-scope="{ row }">
|
||||
<el-button type="text" @click="delete row.id">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
<!-- <ai-dialog title="新增许可信息" :visible.sync="dialog" width="1000px" @onConfirm="confirm">
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
|
||||
<el-form-item required label="许可文书名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可文书号" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可决定日期" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期自" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期至" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可机关" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入使用人姓名"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="经营主体" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入许可对象"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="统一信用代码" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入统一信用代码"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可内容" prop="name">
|
||||
<el-input v-model="form.name" type="textarea" placeholder="请输入许可内容" :rows="5" resize="none" show-word-limit :maxlength="500"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AppAdministrativeLicense",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
search: { name: "" },
|
||||
tableData: [],
|
||||
page: { current: 1, size: 10, total: 0 },
|
||||
dialog: false,
|
||||
form: { name: "" },
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
colConfigs() {
|
||||
return [
|
||||
{ label: "许可文书号", prop: "position", align: "center", width: "260px",},
|
||||
{ label: "许可有效期至", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "许可机关", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "许可对象", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "统一信用代码", prop: "position", align: "center", width: "200px",},
|
||||
{ label: "更新时间", prop: "position", align: "center", width: "120px",},
|
||||
{ label: "操作人", prop: "position", align: "center", width: "150px" },
|
||||
{ slot: "options" },
|
||||
];
|
||||
},
|
||||
rules() {
|
||||
return {
|
||||
name: [{ required: true, message: "请输入许可文书名称" }],
|
||||
};
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
// this.instance.post("/appportaluserenterprise/list", null, {
|
||||
// params: {...this.page, ...this.search, status: 1,...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 || ''
|
||||
}
|
||||
})
|
||||
},
|
||||
delete(id) {
|
||||
this.$confirm("是否要删除?").then(() => this.deleteInfo(id));
|
||||
},
|
||||
deleteInfo() {},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppAdministrativeLicense {
|
||||
}
|
||||
</style>
|
||||
@@ -1,68 +0,0 @@
|
||||
<template>
|
||||
<section class="detail">
|
||||
<ai-detail>
|
||||
<ai-title slot="title" title="行政许可信息详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})"/>
|
||||
<template #content>
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
|
||||
<el-form-item required label="许可文书名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可文书号" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可决定日期" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期自" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="许可有效期至" prop="name">
|
||||
<el-date-picker style="width: 300px;" v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可机关" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入使用人姓名"></el-input>
|
||||
</el-form-item>
|
||||
<el-row type="flex">
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="经营主体" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入许可对象"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item required label="统一信用代码" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入统一信用代码"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item required label="许可内容" prop="name">
|
||||
<el-input v-model="form.name" type="textarea" placeholder="请输入许可内容" :rows="5" resize="none" show-word-limit :maxlength="500"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</template>
|
||||
</ai-detail>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'detail',
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user