纳税信息
This commit is contained in:
57
project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue
Normal file
57
project/xiushan/apps/AppRatepayingInfo/AppRatepayingInfo.vue
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<template>
|
||||||
|
<section class="AppRatepayingInfo">
|
||||||
|
<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: "AppRatepayingInfo",
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.AppRatepayingInfo {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
156
project/xiushan/apps/AppRatepayingInfo/components/Add.vue
Normal file
156
project/xiushan/apps/AppRatepayingInfo/components/Add.vue
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
<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-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-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>
|
||||||
76
project/xiushan/apps/AppRatepayingInfo/components/List.vue
Normal file
76
project/xiushan/apps/AppRatepayingInfo/components/List.vue
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
<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.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">
|
||||||
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button v-if="row.status==0" type="text" @click="handleEnable(row)">启用</el-button>
|
||||||
|
<el-button v-else-if="row.status==1" type="text" @click="handleEnable(row)">禁用</el-button>
|
||||||
|
<el-button type="text" @click="showDetail(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: {name: ""},
|
||||||
|
page: {current: 1, size: 10, total: 0},
|
||||||
|
tableData: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
colConfigs() {
|
||||||
|
return [
|
||||||
|
{ prop: "position", label: '纳税人名称', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '纳税主体', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '纳税人识别号', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '年份', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '等级', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '更新时间', align: "center", width: "200px", },
|
||||||
|
{ prop: "position", label: '操作人', align: "center", width: "200px", },
|
||||||
|
{ slot: "options" ,},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getTableData() {},
|
||||||
|
toAdd(id) {
|
||||||
|
this.$emit('change', {
|
||||||
|
type: 'Add',
|
||||||
|
params: {
|
||||||
|
id: id || ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.List {}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user