-
+
+
新增
-
+
+
+
+
+
+
+
+
{{ scope.row.name }}
-
-
+
+
+ {{ type_[scope.row.type] }}
+
+
+
+ {{filetype_[scope.row.filetype] }}
+
+
+
+
+
+ {{ scope.row.provinces }}
+
{{ scope.row.file_.name }}
@@ -81,7 +113,29 @@
-
+
+
+ 通知
+ 结果
+
+
+
+
+
+ 征集通知
+ 结果通报
+
+
+
+
+
+
+
+
上传文件
@@ -141,7 +195,45 @@ export default {
upUrl: upUrl(),
fileList:[],
Content: defaultContent,
-
+ type_:{1:"通知",2:"结果"},
+ filetype_:{1:"征集通知",2:"结果通报"},
+ options:[
+ {value: "市场监管总局",label: "市场监管总局"},
+ {value: "北京市", label: "北京市"},
+ {value: "上海市",label: "上海市"},
+ {value: "天津市", label: "天津市"},
+ {value: "重庆市",label: "重庆市"},
+ {value: "黑龙江省", label: "黑龙江省"},
+ {value: "辽宁省",label: "辽宁省"},
+ {value: "吉林省", label: "吉林省"},
+ {value: "河北省",label: "河北省"},
+ {value: "河南省", label: "河南省"},
+ {value: "湖北省",label: "湖北省"},
+ {value: "湖南省", label: "湖南省"},
+ {value: "山东省",label: "山东省"},
+ {value: "山西省", label: "山西省"},
+ {value: "陕西省",label: "陕西省"},
+ {value: "安徽省", label: "安徽省"},
+ {value: "浙江省",label: "浙江省"},
+ {value: "江苏省", label: "江苏省"},
+ {value: "福建省",label: "福建省"},
+ {value: "广东省", label: "广东省"},
+ {value: "海南省",label: "海南省"},
+ {value: "四川省", label: "四川省"},
+ {value: "云南省",label: "云南省"},
+ {value: "贵州省", label: "贵州省"},
+ {value: "青海省",label: "青海省"},
+ {value: "甘肃省", label: "甘肃省"},
+ {value: "江西省",label: "江西省"},
+ {value: "台湾省", label: "台湾省"},
+ {value: "内蒙古自治区",label: "内蒙古自治区"},
+ {value: "宁夏回族自治区", label: "宁夏回族自治区"},
+ {value: "新疆维吾尔自治区",label: "新疆维吾尔自治区"},
+ {value: "西藏自治区", label: "西藏自治区"},
+ {value: "广西壮族自治区", label: "广西壮族自治区"},
+ {value: "香港特别行政区", label: "香港特别行政区"},
+ {value: "澳门特别行政区", label: "澳门特别行政区"},
+ ],
dialogVisible: false,
listQuery: {
page: 1,
@@ -167,6 +259,12 @@ export default {
},
methods: {
+ filterTag(value, row) {
+ return row.type === value;
+ },
+ filterTag1(value, row) {
+ return row.filetype === value;
+ },
handlePreview(file) {
if ("url" in file) {
window.open(file.url);
@@ -197,7 +295,14 @@ export default {
});
},
-
+ handleFilter2() {
+ this.listQuery.page = 1;
+ this.getList();
+ },
+ handleFilter() {
+ this.listQuery.page = 1;
+ this.getList();
+ },
handleAddContent() {
this.Content = Object.assign({}, defaultContent);
this.dialogType = "new";
diff --git a/server/apps/consulting/migrations/0004_professional_professionalfield.py b/server/apps/consulting/migrations/0004_professional_professionalfield.py
new file mode 100644
index 0000000..4b3bba8
--- /dev/null
+++ b/server/apps/consulting/migrations/0004_professional_professionalfield.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.5 on 2021-12-14 05:20
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('consulting', '0003_policy_validation'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='professional',
+ name='professionalfield',
+ field=models.CharField(choices=[(1, '环保领域'), (2, '建工建材'), (1, '食品领域'), (2, '水利工程'), (1, '检定校准'), (2, '其他领域')], default=1, max_length=50, verbose_name='领域类别'),
+ ),
+ ]
diff --git a/server/apps/consulting/migrations/0005_auto_20211214_1408.py b/server/apps/consulting/migrations/0005_auto_20211214_1408.py
new file mode 100644
index 0000000..714b48f
--- /dev/null
+++ b/server/apps/consulting/migrations/0005_auto_20211214_1408.py
@@ -0,0 +1,32 @@
+# Generated by Django 3.0.5 on 2021-12-14 06:08
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('consulting', '0004_professional_professionalfield'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='validation',
+ options={'verbose_name': '能力验证', 'verbose_name_plural': '能力验证'},
+ ),
+ migrations.AddField(
+ model_name='validation',
+ name='filetype',
+ field=models.CharField(choices=[(1, '征集通知'), (2, '结果通报')], default=1, max_length=50, verbose_name='文件类型'),
+ ),
+ migrations.AddField(
+ model_name='validation',
+ name='provinces',
+ field=models.CharField(default='', max_length=100, verbose_name='省份'),
+ ),
+ migrations.AddField(
+ model_name='validation',
+ name='type',
+ field=models.CharField(choices=[(1, '通知'), (2, '结果')], default=1, max_length=50, verbose_name='材料类别'),
+ ),
+ ]
diff --git a/server/apps/consulting/migrations/0006_auto_20211214_1552.py b/server/apps/consulting/migrations/0006_auto_20211214_1552.py
new file mode 100644
index 0000000..6984096
--- /dev/null
+++ b/server/apps/consulting/migrations/0006_auto_20211214_1552.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.0.5 on 2021-12-14 07:52
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('consulting', '0005_auto_20211214_1408'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='professional',
+ name='professionalfield',
+ field=models.CharField(choices=[(1, '环保领域'), (2, '建工建材'), (3, '食品领域'), (4, '水利工程'), (5, '检定校准'), (6, '其他领域')], default=1, max_length=50, verbose_name='领域类别'),
+ ),
+ ]
diff --git a/server/apps/consulting/models.py b/server/apps/consulting/models.py
index 91c6ee1..95d16b5 100644
--- a/server/apps/consulting/models.py
+++ b/server/apps/consulting/models.py
@@ -20,8 +20,18 @@ class Regulatory(CommonAModel):
verbose_name_plural = verbose_name
class Professional(CommonAModel):
+ field_choices = (
+ (1, '环保领域'),
+ (2, '建工建材'),
+ (3, '食品领域'),
+ (4, '水利工程'),
+ (5, '检定校准'),
+ (6, '其他领域'),
+ )
+
name = models.CharField('名称', max_length=100)
description = models.TextField('描述', default="", blank=True)
+ professionalfield = models.CharField('领域类别', max_length=50,choices=field_choices, default=1)
file = models.ForeignKey(File, on_delete=models.CASCADE)
class Meta:
@@ -37,11 +47,22 @@ class Policy(CommonAModel):
verbose_name = '政策咨询'
verbose_name_plural = verbose_name
class Validation(CommonAModel):
-
+ type_choices = (
+ (1, '通知'),
+ (2, '结果')
+ )
+ filetype_choices = (
+ (1, '征集通知'),
+ (2, '结果通报')
+ )
name = models.CharField('名称', max_length=100)
description = models.TextField('描述', default="", blank=True)
file = models.ForeignKey(File, on_delete=models.CASCADE)
-
+ provinces=models.CharField('省份', max_length=100, default="",)
+ type = models.CharField('材料类别', max_length=50,
+ choices=type_choices, default=1)
+ filetype=models.CharField('文件类型', max_length=50,
+ choices=filetype_choices, default=1)
class Meta:
- verbose_name = '政策咨询'
+ verbose_name = '能力验证'
verbose_name_plural = verbose_name
\ No newline at end of file
diff --git a/server/apps/consulting/views.py b/server/apps/consulting/views.py
index f28fc63..c8a30f5 100644
--- a/server/apps/consulting/views.py
+++ b/server/apps/consulting/views.py
@@ -49,3 +49,6 @@ class ValidationViewSet(OptimizationMixin, PageOrNot, CreateUpdateModelAMixin, M
queryset = Validation.objects.all()
serializer_class = ValidationSerializer
ordering = ['-id']
+ search_fields = ['provinces']
+ ordering_fields = ['provinces']
+ filterset_fields = ['provinces']
From f4a9cf8205bf9b0a71a30d816dd8f5e2f92ee66d Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 17 Dec 2021 15:04:27 +0800
Subject: [PATCH 3/8] xiuagi
---
client/src/router/index.js | 11 ++++++-----
client/src/views/consulting/regulatory.vue | 2 +-
client/src/views/consulting/validation.vue | 14 ++------------
3 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/client/src/router/index.js b/client/src/router/index.js
index 5024799..3b2e3e9 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -146,6 +146,12 @@ export const asyncRoutes = [
meta: { title: '资讯资料分享', icon: 'guide', perms: ['consulting_views'] },
alwaysShow: true,
children: [
+ {
+ path: 'policy',
+ name: 'policy',
+ component: () => import('@/views/consulting/policy.vue'),
+ meta: { title: '政策资讯', perms: ['policy_view'] }
+ },
{
path: 'regulatory',
name: 'regulatory',
@@ -156,11 +162,6 @@ export const asyncRoutes = [
name: 'professional',
component: () => import('@/views/consulting/professional.vue'),
meta: { title: '专业领域要求', perms: ['professional_view'] }
- }, {
- path: 'policy',
- name: 'policy',
- component: () => import('@/views/consulting/policy.vue'),
- meta: { title: '政策资讯', perms: ['policy_view'] }
}, {
path: 'validation',
name: 'validation',
diff --git a/client/src/views/consulting/regulatory.vue b/client/src/views/consulting/regulatory.vue
index 0702e9d..1709733 100644
--- a/client/src/views/consulting/regulatory.vue
+++ b/client/src/views/consulting/regulatory.vue
@@ -221,7 +221,6 @@ export default {
{value: "青海省",label: "青海省"},
{value: "甘肃省", label: "甘肃省"},
{value: "江西省",label: "江西省"},
- {value: "台湾省", label: "台湾省"},
{value: "内蒙古自治区",label: "内蒙古自治区"},
{value: "宁夏回族自治区", label: "宁夏回族自治区"},
{value: "新疆维吾尔自治区",label: "新疆维吾尔自治区"},
@@ -229,6 +228,7 @@ export default {
{value: "广西壮族自治区", label: "广西壮族自治区"},
{value: "香港特别行政区", label: "香港特别行政区"},
{value: "澳门特别行政区", label: "澳门特别行政区"},
+ {value: "台湾省", label: "台湾省"},
],
rule1: {
name: [{ required: true, message: "请输入名称", trigger: "blur" }],
diff --git a/client/src/views/consulting/validation.vue b/client/src/views/consulting/validation.vue
index 2dfb147..faa8771 100644
--- a/client/src/views/consulting/validation.vue
+++ b/client/src/views/consulting/validation.vue
@@ -39,11 +39,6 @@
{{ scope.row.name }}
-
-
- {{ type_[scope.row.type] }}
-
@@ -113,12 +108,7 @@
-
-
- 通知
- 结果
-
-
+
@@ -225,7 +215,6 @@ export default {
{value: "青海省",label: "青海省"},
{value: "甘肃省", label: "甘肃省"},
{value: "江西省",label: "江西省"},
- {value: "台湾省", label: "台湾省"},
{value: "内蒙古自治区",label: "内蒙古自治区"},
{value: "宁夏回族自治区", label: "宁夏回族自治区"},
{value: "新疆维吾尔自治区",label: "新疆维吾尔自治区"},
@@ -233,6 +222,7 @@ export default {
{value: "广西壮族自治区", label: "广西壮族自治区"},
{value: "香港特别行政区", label: "香港特别行政区"},
{value: "澳门特别行政区", label: "澳门特别行政区"},
+ {value: "台湾省", label: "台湾省"},
],
dialogVisible: false,
listQuery: {
From 24662cae4fffb6e0ccc813897fb548ffde98d5ac Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Mon, 20 Dec 2021 13:18:50 +0800
Subject: [PATCH 4/8] lingyunengliyanzheng
---
client/src/views/consulting/professional.vue | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/client/src/views/consulting/professional.vue b/client/src/views/consulting/professional.vue
index 17b4f08..1abfef3 100644
--- a/client/src/views/consulting/professional.vue
+++ b/client/src/views/consulting/professional.vue
@@ -209,9 +209,7 @@ export default {
dialogType: "new",
rule1: {
name: [{ required: true, message: "请输入名称", trigger: "blur" }],
- professionalfield: [
- { type: 'array', required: true, message: '请至少选择一个', trigger: 'change' }
- ],
+
},
};
},
From 01fa4d418174e5862db206663fa4a9de95298463 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Wed, 2 Mar 2022 16:04:29 +0800
Subject: [PATCH 5/8] erjidanweibaosong
---
client/src/api/record.js | 10 +++++++++-
client/src/views/supervision/mytaskrecord.vue | 16 ++++++++++++++++
client/src/views/supervision/record.vue | 10 +++++++---
client/src/views/supervision/recorddo.vue | 18 ++++++++++++++++--
client/src/views/supervision/taskdo.vue | 6 ++++++
.../migrations/0029_record_dept_yes.py | 18 ++++++++++++++++++
.../migrations/0030_auto_20220302_1103.py | 18 ++++++++++++++++++
server/apps/supervision/models.py | 1 +
server/apps/supervision/views.py | 18 ++++++++++++++++--
9 files changed, 107 insertions(+), 8 deletions(-)
create mode 100644 server/apps/supervision/migrations/0029_record_dept_yes.py
create mode 100644 server/apps/supervision/migrations/0030_auto_20220302_1103.py
diff --git a/client/src/api/record.js b/client/src/api/record.js
index 080a6eb..abf1667 100644
--- a/client/src/api/record.js
+++ b/client/src/api/record.js
@@ -76,4 +76,12 @@ export function createRecord(data) {
method: 'post',
data
})
-}
\ No newline at end of file
+}
+
+export function deptconfirm(id) {
+ return request({
+ url: `/supervision/record/${id}/deptconfirm/`,
+ method: 'put',
+ })
+}
+
diff --git a/client/src/views/supervision/mytaskrecord.vue b/client/src/views/supervision/mytaskrecord.vue
index 3869bb5..240cb35 100644
--- a/client/src/views/supervision/mytaskrecord.vue
+++ b/client/src/views/supervision/mytaskrecord.vue
@@ -38,6 +38,12 @@
{{ scope.row.noteb }}
+
+
+
+ 已确认
+ 未确认
+
@@ -86,6 +92,16 @@
size="small"
@click="handleRecord({ action: 'up', record: scope.row })"
>报送
+ 二级单位确认
+
+ 已确认
+ 未确认
+
+
{{
@@ -457,9 +463,7 @@ export default {
this.centerDialogVisible = false;
this.listQuery = {
page: 1,
- page_size: 20,
- state: "待报送",
- is_self: true,
+ page_size: 20
};
this.getList();
});
diff --git a/client/src/views/supervision/recorddo.vue b/client/src/views/supervision/recorddo.vue
index 4670469..437472b 100644
--- a/client/src/views/supervision/recorddo.vue
+++ b/client/src/views/supervision/recorddo.vue
@@ -99,6 +99,12 @@
@click="confirm()"
v-else-if="this.data.action == 'delete'"
>删除
+ 确认
确认
@@ -136,6 +142,7 @@ import {
rejectRecord,
confirmRecord,
deleteRecord,
+ deptconfirm
} from "@/api/record";
export default {
name: "recorddo",
@@ -218,12 +225,19 @@ export default {
this.$message.success("成功");
this.$emit("handleDo",true);
});
- } else if (this.data.action == "reject") {
+ } else if (this.data.action == "deptconfirm") {
+ deptconfirm(this.record.id).then((res) => {
+ this.$message.success("二级单位确认成功");
+ this.$emit("handleDo",true);
+ });
+
+ }
+ else if (this.data.action == "reject") {
rejectRecord(this.record.id, this.record).then((res) => {
this.$message.success("成功");
this.$emit("handleDo",true);
});
- } else if (this.data.action == "confirm") {
+ }else if (this.data.action == "confirm") {
confirmRecord(this.record.id).then((res) => {
this.$message.success("成功");
this.$emit("handleDo",true);
diff --git a/client/src/views/supervision/taskdo.vue b/client/src/views/supervision/taskdo.vue
index 226fba4..d2f7293 100644
--- a/client/src/views/supervision/taskdo.vue
+++ b/client/src/views/supervision/taskdo.vue
@@ -247,6 +247,12 @@
}}