From 6294795ab5c0656182306dc1cbf0136328e2afae Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 1 Apr 2022 18:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=B3=E7=A8=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/List.vue | 2 +- .../components/List.vue | 5 +- .../AppDishonestExecutee/components/Add.vue | 2 +- .../AppDishonestExecutee/components/List.vue | 19 +++--- .../apps/AppRatepayingInfo/components/Add.vue | 66 ++++++++++++++----- .../AppRatepayingInfo/components/List.vue | 36 ++++++---- 6 files changed, 88 insertions(+), 42 deletions(-) diff --git a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue index c5d18c28..26114e53 100644 --- a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue +++ b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue @@ -65,7 +65,7 @@ export default { export() {}, getTableData() { this.instance.post("/appcreditadminstrativelicense/list", null, { - params: {...this.page, ...this.search, status: 1,...this.select} + params: {...this.page, ...this.search, ...this.select} }).then(res => { if (res?.data) { this.tableData = res.data?.records diff --git a/project/xiushan/apps/AppAdministrativePenalty/components/List.vue b/project/xiushan/apps/AppAdministrativePenalty/components/List.vue index 4a41fa66..e7b6aba2 100644 --- a/project/xiushan/apps/AppAdministrativePenalty/components/List.vue +++ b/project/xiushan/apps/AppAdministrativePenalty/components/List.vue @@ -8,7 +8,8 @@ 添加 @@ -62,7 +63,7 @@ export default { methods: { getTableData() { this.instance.post("/appcreditadministrativesanction/list", null, { - params: {...this.page, ...this.search, status: 1,...this.select} + params: {...this.page, ...this.search, ...this.select} }).then(res => { if (res?.data) { this.tableData = res.data?.records diff --git a/project/xiushan/apps/AppDishonestExecutee/components/Add.vue b/project/xiushan/apps/AppDishonestExecutee/components/Add.vue index 68152287..c723d8a1 100644 --- a/project/xiushan/apps/AppDishonestExecutee/components/Add.vue +++ b/project/xiushan/apps/AppDishonestExecutee/components/Add.vue @@ -29,7 +29,7 @@ - + diff --git a/project/xiushan/apps/AppDishonestExecutee/components/List.vue b/project/xiushan/apps/AppDishonestExecutee/components/List.vue index 37cadb0a..f62ff5c9 100644 --- a/project/xiushan/apps/AppDishonestExecutee/components/List.vue +++ b/project/xiushan/apps/AppDishonestExecutee/components/List.vue @@ -8,7 +8,8 @@ 添加 @@ -45,13 +46,13 @@ export default { 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", }, + { 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" ,}, ] } @@ -62,7 +63,7 @@ export default { methods: { getTableData() { this.instance.post("/appcreditdishonestperson/list", null, { - params: {...this.page, ...this.search, status: 1,...this.select} + params: {...this.page, ...this.search,...this.select} }).then(res => { if (res?.data) { this.tableData = res.data?.records diff --git a/project/xiushan/apps/AppRatepayingInfo/components/Add.vue b/project/xiushan/apps/AppRatepayingInfo/components/Add.vue index ecb2dfb6..eb1c1d35 100644 --- a/project/xiushan/apps/AppRatepayingInfo/components/Add.vue +++ b/project/xiushan/apps/AppRatepayingInfo/components/Add.vue @@ -7,41 +7,41 @@ @@ -68,16 +68,30 @@ export default { computed: { formRules() { return { - num: [{required: true,message:"请输入执行编号",trigger: "blur"}] + taxpayer: [{required: true,message:"请输入纳税人名称",trigger: "blur"}], + taxpayerNumber: [{required: true,message:"请输入纳税人识别号",trigger: "blur"}], + taxYear: [{required: true,message:"请输入纳税年份",trigger: "blur"}], + taxLevel: [{required: true,message:"请选择纳税等级",trigger: "blur"}], + enterpriseName: [{required: true,message:"请输入纳税主体",trigger: "blur"}], + unifiedCode: [{required: true,message:"请输入统一信用代码",trigger: "blur"}], } } }, data() { return { - forms + forms: { + taxpayer: '', + taxpayerNumber: '', + taxYear: '', + taxLevel: '', + enterpriseName: '', + unifiedCode: '', + }, } }, - created() {}, + created() { + this.$dict.load('taxInfoLevel') + }, methods: { cancel(isRefresh) { this.$emit('change', { @@ -85,6 +99,24 @@ export default { isRefresh: !!isRefresh, }) }, + confirm() { + this.$refs.forms.validate((valid) => { + if (valid) { + this.instance.post(`/appcredittaxinfo/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('提交成功') + setTimeout(() => { + this.cancel(true) + }, 600) + } + }) + } + }) + }, }, } diff --git a/project/xiushan/apps/AppRatepayingInfo/components/List.vue b/project/xiushan/apps/AppRatepayingInfo/components/List.vue index d059bf64..30ea0ac7 100644 --- a/project/xiushan/apps/AppRatepayingInfo/components/List.vue +++ b/project/xiushan/apps/AppRatepayingInfo/components/List.vue @@ -8,7 +8,8 @@ 添加 @@ -18,9 +19,7 @@ - @@ -47,21 +46,24 @@ export default { 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", }, + { prop: "taxpayer", label: '纳税人名称', align: "center", width: "200px", }, + { prop: "enterpriseName", label: '纳税主体', align: "center", width: "200px", }, + { prop: "taxpayerNumber", label: '纳税人识别号', align: "center", width: "200px", }, + { prop: "taxYear", label: '年份', align: "center", width: "200px", }, + { prop: "taxLevel", label: '等级', dict: "taxInfoLevel", 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("/appcredittaxinfo/list", null, { - params: {...this.page, ...this.search, status: 1,...this.select} + params: {...this.page, ...this.search, ...this.select} }).then(res => { if (res?.data) { this.tableData = res.data?.records @@ -85,6 +87,16 @@ export default { } }) }, + handleDelete(id) { + this.$confirm("是否要删除?").then(() => { + this.instance.post(`/appcredittaxinfo/delete?ids=${id}`).then(res => { + if (res.code == 0) { + this.$message.success("删除成功") + this.getTableData() + } + }) + }) + }, } }