+
-
-
-
-
-
-
-
-
-
-
- 组别:{{item.name=mission_groups_name[index]}}
-
- 人员
- 部门
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -256,6 +248,7 @@
isShow: false,
type: 'add',
id: '',
+ plan_type:1,
department_id:'',
uploadOther: {
token: ""
@@ -269,36 +262,23 @@
filterMethod(query, item) {
return item.name.indexOf(query) > -1;
},
- unitTypeList: [{
- id: 1,
- value: '专项检查'
- }, {
- id: 2,
- value: '资料收集'
- }, {
- id: 3,
- value: '网络安全'
+ planTypeList: [],
+ statusList:[{
+ id:0,
+ value:'未完成'
+ },{
+ id:1,
+ value:'开展中'
+ },{
+ id:2,
+ value:'已完成'
}],
- endTypeList: [{
- id: 1,
- name: '提交文字'
- }, {
- id: 2,
- name: '提交附件'
- }, {
- id: 3,
- name: '提交文字与附件'
- }],
- studyEndTypeList:[{
- id: 4,
- name: '查看即可'
- }, {
- id: 5,
- name: '需要答题'
- }],
- form: {
+ form: {
+ plan_type:'',
name: '',
- type: '',
+ type: '',
+ status:1,
+ year:'',
start_date: '',
end_date: '',
// count:'',
@@ -312,7 +292,15 @@
rules: {
name: [{
required: true,
- message: '请输入任务名称'
+ message: '请输入计划名称'
+ }],
+ status: [{
+ required: true,
+ message: '请选择计划状态'
+ }],
+ year: [{
+ required: true,
+ message: '请选择计划年份'
}],
start_date: [{
required: true,
@@ -330,16 +318,20 @@
}
},
created() {
- this.uploadOther.token = getToken();
+ this.uploadOther.token = getToken();
+ this.getPlanList()
+ this.loadDeptOptions()
this.loadUser()
},
- methods: {
+ methods: {
+ async getPlanList(){
+ const res = await getparameteritem('planType')
+ this.planTypeList = res.detail
+ },
changeName7(e) {
if (e) {
this.form.accept_department_ids = []
this.form.accept_admin_ids = []
- this.form.mission_groups = []
- this.form.mission_groups_list = []
}
},
// 选择科室
@@ -407,15 +399,16 @@
async getDetail() {
const res = await get(this.id)
- this.form = {
+ this.form = {
+ plan_type:res?.plan_type,
name: res?.name,
- type: res?.type,
+ type: res?.type,
+ year:res.year?res.year:new Date().getFullYear(),
start_date: res?.start_date,
end_date: res?.end_date,
+ status:res.status?res.status:1,
lefts:'',
- name7: res.accept_department_ids.length > 0 ? 2 : (res.accept_admin_ids.length > 0 ? 1 : (res
- .groups.length > 0 ? 3 : 1)),
-
+ name7: res.accept_department_ids.length > 0 ? 2 : 1,
file_ids: res?.file_ids,
content: res?.content,
accept_admin_ids: res?.accept_admin_ids,
@@ -428,7 +421,6 @@
name: f.original_name
})
}
- // res.guide_upload ? this.guidePictureList.push(res.guide_upload) : ''
},
submit() {
let _files = []
@@ -445,7 +437,7 @@
this.form.file_ids = []
}
-
+ console.log("form",this.form)
// return
if (this.type === 'add') {
save({
@@ -453,7 +445,7 @@
}).then(res => {
Message({
type: 'success',
- message: '新增任务成功'
+ message: '新增计划成功'
})
this.isShow = false
this.$emit('refresh')
@@ -467,7 +459,7 @@
}).then(res => {
Message({
type: 'success',
- message: '编辑任务成功'
+ message: '编辑计划成功'
})
this.isShow = false
this.$emit('refresh')
@@ -486,13 +478,23 @@
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
+ }
+ if(this.type==='add'){
+ var date = new Date()
+ this.form.year = date.getFullYear()+''
}
} else {
- this.id = ''
+ this.id = ''
+ this.plan_type = 1
this.pictureList = []
this.$refs['dialog'].reset()
}
- },
+ },
+ plan_type(newval){
+ if(newval){
+ this.form.plan_type=newval
+ }
+ }
}
}
@@ -506,9 +508,9 @@
flex-basis: 100%;
}
- // ::v-deep .type {
- // display: none;
- // }
+ ::v-deep .plan_type {
+ display: none;
+ }
::v-deep .el-form>div{
align-items: flex-start!important;
}
diff --git a/src/views/task/list/components/addUnit.vue b/src/views/task/list/components/addUnit.vue
index 2a77584..fbf05ae 100644
--- a/src/views/task/list/components/addUnit.vue
+++ b/src/views/task/list/components/addUnit.vue
@@ -2,16 +2,7 @@
-
+
-
+
+
+
+
+ 关联计划:
+
+
+
+
+
+
+
+
+
+
+
+
+ 任务状态:
+
+
+
+
+
+
+
+
+
+
@@ -148,75 +166,7 @@
-
-
-
-
-
-
-
-
@@ -396,7 +277,10 @@
import {
getToken
} from '@/utils/auth'
- import addQuestion from './addQuestion.vue'
+ import addQuestion from './addQuestion.vue'
+ import {
+ listplan
+ } from '@/api/task/plan.js'
export default {
components: {
addQuestion
@@ -419,7 +303,20 @@
userdata: [],
filterMethod(query, item) {
return item.name.indexOf(query) > -1;
- },
+ },
+ auditStatusList:[{
+ id:0,
+ value:'待审核'
+ },{
+ id:1,
+ value:'开展中'
+ },{
+ id:2,
+ value:'不通过'
+ },{
+ id:3,
+ value:'已完成'
+ }],
unitTypeList: [{
id: 1,
value: '专项检查'
@@ -446,20 +343,24 @@
}, {
id: 5,
name: '需要答题'
- }],
+ }],
+ missionPlanList:[],
form: {
type: '',
+
// mission_name:'',
name: '',
unit_type: '',
start_date: '',
end_date: '',
+ mission_plan_id:'',
+ audit_status:1,
lefts:'',
name7: 1,
is_need_answer:'',
is_audit: 0,
audit_admin_id: '',
- audit_status: 1,
+ // audit_status: 1,
file_ids: '',
content: '',
@@ -508,10 +409,15 @@
}
}
- this.loadDeptOptions()
+ this.loadDeptOptions()
+ this.getMissionPlan()
// this.loadUser()
},
methods: {
+ async getMissionPlan(){
+ const res = await listplan({page:1,page_size:9999})
+ this.missionPlanList = res.data
+ },
openQs(){
this.$refs.addQuestion.qsShow=true
this.$refs.addQuestion.topicList = this.form.ask
@@ -604,19 +510,22 @@
async getDetail() {
const res = await get(this.id)
this.form = {
- type: res?.type,
+ type: res?.type,
+
name: res?.name,
// mission_name:res?.mission_name,
unit_type: res?.unit_type,
start_date: res?.start_date,
end_date: res?.end_date,
+ mission_plan_id:res?.mission_plan_id,
+ audit_status: res.audit_status?res.audit_status:1,
lefts:'',
name7: res.accept_department_ids.length > 0 ? 2 : (res.accept_admin_ids.length > 0 ? 1 : (res
.groups.length > 0 ? 3 : 1)),
is_need_answer:'',
is_audit: res.audit_admin_id ? 1 : 0,
audit_admin_id: res.audit_admin_id ? res.audit_admin_id : '',
- audit_status: res.audit_status?res.audit_status:1,
+
file_ids: res?.file_ids,
content: res?.content,
end_type: res?.end_type,
@@ -693,9 +602,9 @@
return
}
}
+ this.form.mission_groups = this.mission_groups_list
}
- this.form.mission_groups = this.mission_groups_list
// return
if (this.type === 'add') {
save({
@@ -760,7 +669,9 @@
::v-deep .content,
::v-deep .end_type,
::v-deep .file_ids,
- ::v-deep .is_need_answer{
+ ::v-deep .is_need_answer,
+ // ::v-deep .mission_plan_id
+ {
flex-basis: 100%;
}
diff --git a/src/views/task/list/components/showPatrol.vue b/src/views/task/list/components/showPatrol.vue
index e47df6d..dd21d41 100644
--- a/src/views/task/list/components/showPatrol.vue
+++ b/src/views/task/list/components/showPatrol.vue
@@ -53,7 +53,12 @@
{{showform.site?showform.site.name:(showform.address?showform.address:'')}}
-
+
+
+ 责任科室
+
+ {{showform.ask_department?showform.ask_department:''}}
+
问题描述
@@ -103,7 +108,7 @@
分管领导确认
-
+
待审核
@@ -114,7 +119,7 @@
重要领导确认
-
+
待审核
@@ -144,7 +149,7 @@
部门退回
-
+
待接收
@@ -234,7 +239,7 @@
分管领导确认
-
+
待审核
@@ -245,7 +250,7 @@
重要领导确认
-
+
待审核
@@ -333,12 +338,12 @@
-