+
组别:{{item.name=mission_groups_name[index]}}
@@ -164,7 +191,7 @@
-
+
@@ -251,6 +278,9 @@
unit_type: '',
start_date: '',
end_date: '',
+ is_audit: 0,
+ audit_admin_id: '',
+ audit_status: 1,
file_ids: '',
content: '',
@@ -258,8 +288,8 @@
end_content: '',
type: '',
name7: 1,
- accept_department_ids: [],
accept_admin_ids: [],
+ accept_department_ids: [],
mission_groups: []
},
mission_groups_list: [{
@@ -302,10 +332,20 @@
if (e) {
this.form.accept_department_ids = []
this.form.accept_admin_ids = []
- this.form.mission_groups = []
+ this.form.mission_groups = []
this.form.mission_groups_list = []
}
},
+ changeAudit(e) {
+ console.log("e",e)
+ if (e == 1) {
+ this.form.audit_status = 0
+ this.form.audit_admin_id = ''
+ } else {
+ this.form.audit_status = 1
+ this.form.audit_admin_id = 0
+ }
+ },
// 选择科室
loadDeptOptions() {
listdept().
@@ -324,7 +364,7 @@
page_size: 999
}).
then((res) => {
- this.userdata = res.data?res.data.reverse():[];
+ this.userdata = res.data ? res.data.reverse() : [];
}).catch(error => {
console.log(error)
})
@@ -376,23 +416,26 @@
unit_type: res?.unit_type,
start_date: res?.start_date,
end_date: res?.end_date,
+ 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,
end_content: res?.end_content,
name7: res.accept_department_ids.length > 0 ? 2 : (res.accept_admin_ids.length > 0 ? 1 : (res
.groups.length > 0 ? 3 : 1)),
- accept_department_ids: res?.accept_department_ids,
accept_admin_ids: res?.accept_admin_ids,
+ accept_department_ids: res?.accept_department_ids,
mission_groups: res?.groups
- }
- this.mission_groups_list = []
- for(var g of res.groups){
- this.mission_groups_list.push({
- name:g.name,
- type:g.type,
- link_id:g.link_id
- })
+ }
+ this.mission_groups_list = []
+ for (var g of res.groups) {
+ this.mission_groups_list.push({
+ name: g.name,
+ type: g.type,
+ link_id: g.link_id
+ })
}
// this.mission_groups_list = res?.mission_groups
for (var f of res.files) {
@@ -418,25 +461,40 @@
} else {
this.form.file_ids = []
}
- if(this.form.name7==3 ){
- if(this.mission_groups_list.length==0){
- Message({
- type: 'warning',
- message: `请新增组别`
- })
- return
- }
- for(let k of this.mission_groups_list){
- if(k.link_id.length==0){
- Message({
- type: 'warning',
- message: `请选择小组成员`
- })
- return
- }
- }
-
+ if(this.form.is_audit==0){
+ this.form.audit_admin_id = 0
+ this.audit_status = 1
+ }else{
+ this.audit_status = 0
+ if(!this.form.audit_admin_id){
+ Message({
+ type: 'warning',
+ message: `请选择审批人`
+ })
+ return
+ }
}
+ // console.log("this.form",this.form)
+ // return
+ if (this.form.name7 == 3) {
+ if (this.mission_groups_list.length == 0) {
+ Message({
+ type: 'warning',
+ message: `请新增组别`
+ })
+ return
+ }
+ for (let k of this.mission_groups_list) {
+ if (k.link_id.length == 0) {
+ Message({
+ type: 'warning',
+ message: `请选择小组成员`
+ })
+ return
+ }
+ }
+
+ }
this.form.mission_groups = this.mission_groups_list
// return
if (this.type === 'add') {
@@ -481,12 +539,12 @@
}
} else {
this.id = ''
- this.pictureList = []
+ this.pictureList = []
this.mission_groups_list = [{
- name: '',
- type: 1,
- link_id: []
- }]
+ name: '',
+ type: 1,
+ link_id: []
+ }]
this.$refs['dialog'].reset()
}
}
@@ -495,10 +553,13 @@
}
-
diff --git a/src/views/task/list/components/checkUnit.vue b/src/views/task/list/components/checkUnit.vue
new file mode 100644
index 0000000..a45eb03
--- /dev/null
+++ b/src/views/task/list/components/checkUnit.vue
@@ -0,0 +1,383 @@
+
+
+
+
+ 任务信息
+
+
+
+
+ 任务名称
+
+ {{showform.name?showform.name:''}}
+
+
+
+ 任务类型
+
+
+
+ {{item.value}}
+
+
+
+
+
+ 开始日期
+
+ {{showform.start_date?showform.start_date:''}}
+
+
+
+ 结束日期
+
+ {{showform.end_date?showform.end_date:''}}
+
+
+
+ 是否审批
+
+ {{showform.audit_admin_id>0?"是":'否'}}
+
+
+
+ 审批人
+
+ {{showform.audit_admin_id?showform.audit_admin_id:''}}
+
+
+
+ 附件
+
+
+
+
+
+ 说明
+
+ {{showform.content?showform.content:''}}
+
+
+
+ 任务完成要求
+
+
+
+ {{item.name}}
+
+
+
+
+
+ 任务完成详情
+
+ {{showform.end_content?showform.end_content:''}}
+
+
+
+ 用户类型
+
+
+
+ {{item.name}}
+
+
+
+
+ {{item.name}}
+
+
+
+
+ {{group.name}}:
+ {{detail.name}}
+
+
+
+
+
+
+
+ 审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/task/list/components/showPatrol copy.vue b/src/views/task/list/components/showPatrol copy.vue
deleted file mode 100644
index aac9637..0000000
--- a/src/views/task/list/components/showPatrol copy.vue
+++ /dev/null
@@ -1,1169 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 退回原因:
-
-
- {{showform.reason}}
-
-
-
-
-
-
-
- *审核结果:
-
-
-
-
-
-
-
-
-
-
-
-
-
- 分管领导确认:
-
-
-
- 否
- 是
-
-
-
-
-
-
-
- 主要领导确认:
-
-
-
- 否
- 是
-
-
-
-
-
-
-
-
- 分管领导确认:
-
-
-
-
-
-
-
-
-
-
-
-
- 重要领导确认:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 用户类型选择:
-
-
-
- 人员
- 部门
-
-
-
-
-
-
-
-
-
-
-
全选
-
-
-
- {{dept.name}}
-
-
-
-
-
-
-
-
-
-
-
-
- *接收结果:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- *责任人:
-
-
-
-
-
-
-
-
-
-
-
-
- *不接收原因:
-
-
-
-
{{showform.reason}}
-
-
-
-
-
-
-
-
-
- *接收方:
-
-
-
-
- {{item.name}}
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
- *计划时间:
-
-
- {{showform.plan_end_date?showform.plan_end_date:''}}
-
-
-
-
-
-
- *责任人:
-
-
- {{showform.duty_admin?showform.duty_admin.name:''}}
-
-
-
-
-
-
-
- *完成情况:
-
-
-
- 已完成
- 未完成
-
-
- {{form.fix_status==1?'已完成':'未完成'}}
-
-
-
-
-
-
-
- *完成时间:
-
-
-
-
-
- {{form.fix_end_date}}
-
-
-
-
-
-
-
- *整改说明:
-
-
-
-
- {{form.fix_introduce}}
-
-
-
-
-
-
-
-
-
-
-
- *审核结果:
-
-
-
-
-
-
-
-
-
-
-
-
- 分管领导确认:
-
-
-
- 否
- 是
-
-
-
-
-
-
-
- 主要领导确认:
-
-
-
- 否
- 是
-
-
-
-
-
-
-
-
- 分管领导确认:
-
-
-
-
-
-
-
-
-
-
-
-
- 重要领导确认:
-
-
-
-
-
-
-
-
-
-
-
-
-
- 检查问题信息
-
-
-
-
- 任务专题
-
- {{showform.mission?showform.mission.name:''}}
-
-
-
- 上报人
-
- {{showform.admin?showform.admin.name:''}}
-
-
-
- 状态
-
- {{showform.status_name?showform.status_name:''}}
-
-
-
- 检查日期
-
- {{showform.date}}
-
-
-
- 巡查地点
-
- {{showform.site?showform.site.name:(showform.address?showform.address:'')}}
-
-
-
- 问题类型
-
- {{showform.ask?showform.ask.value:''}}
-
-
-
- 问题描述
-
- {{showform.ask_introduce?showform.ask_introduce:''}}
-
-
-
- 整改建议
-
- {{showform.tips?showform.tips:''}}
-
-
-
- 附件
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue
index 3c120a2..2c149e7 100644
--- a/src/views/task/list/unit.vue
+++ b/src/views/task/list/unit.vue
@@ -5,16 +5,15 @@
-
+
-