@@ -379,9 +379,9 @@
pictureList:[]
}],
form: {
- mission_id: '',
+
date: '',
- up_admin_id:"",
+
siteName: '',
groups:'',
showgroups:"",
@@ -399,6 +399,8 @@
tips: '',
file_ids: [],
+ mission_id: '',
+ up_admin_id:"",
},
rules: {
@@ -643,9 +645,8 @@
async getDetail() {
const res = await get(this.id)
this.form = {
- mission_id: res?.mission_id,
+
date: res?.date,
- up_admin_id:res?.up_admin_id,
site_id: res?.site_id,
siteName: res.site_id?[undefined,res.site_id]:res.address,
groups:'',
@@ -662,6 +663,8 @@
accept_department_ids:res.accept_department_ids?res.accept_department_ids:[],
file_ids: res?.file_ids,
patrol_list:[],
+ mission_id: res?.mission_id,
+ up_admin_id:res?.up_admin_id,
}
res.mission_id?this.getGroups(res.mission_id):''
this.sitePlaceholder = res.site_id?res.site.name:res.address
@@ -799,6 +802,7 @@
}
},
mission_id(newval) {
+
if (newval) {
this.form.mission_id = newval
this.hasMissionId = true
@@ -806,6 +810,7 @@
}else{
this.form.mission_id = 0
}
+ console.log("this.form.mission_id",this.form.mission_id)
},
mapform(newVal, oldVal) {
diff --git a/src/views/task/list/components/checkUnit.vue b/src/views/task/list/components/checkUnit.vue
index 29a4f1c..244f456 100644
--- a/src/views/task/list/components/checkUnit.vue
+++ b/src/views/task/list/components/checkUnit.vue
@@ -175,45 +175,151 @@
-
+
+
-
+ -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
我办理的任务
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
任务执行
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
任务分解
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
任务转办
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -418,7 +524,15 @@
data() {
return {
isShow: false,
- activeName:'second',
+ activeName:'second',
+ now_id:'',
+ pid_list:[],
+ send_list:[],
+ myself_list:[],
+ myself_id:'',
+ send_id:'',
+ pid_id:'',
+ pidLog:[],
type: '',
id: '',
login_id: "",
@@ -934,6 +1048,37 @@
this.$refs.showLogs.id = this.showform.id
this.$refs.showLogs.isShow = true
},
+ changePidLog(e){
+ console.log("pide",e)
+ let arr = []
+ switch (this.is_what_unitType) {
+ case '检查':
+ arr = this.inspection_log.filter(item=>item.mission_id==e)
+ this.pidLog = arr
+ break;
+ case '学习':
+ arr = this.study_log.filter(item=>item.mission_id==e)
+ this.pidLog = arr
+ break;
+ case '答题':
+ arr = this.ask_log.filter(item=>item.mission_id==e)
+ this.pidLog = arr
+ break;
+ case '培训':
+ arr = this.train_log.filter(item=>item.mission_id==e)
+ this.pidLog = arr
+ break;
+ case '资料收集':
+ case '方案':
+ arr = this.uploads_log.filter(item=>item.mission_id==e)
+ this.pidLog = arr
+ break;
+ // case '方案':
+ // this.openCases(e)
+ // break;
+
+ }
+ },
// 我的任务中的操作
openMyMission(remark, e) {
switch (remark) {
@@ -1035,7 +1180,31 @@
})
}
this.showform = res
- this.is_what_unitType = res.unit_type_detail ? res.unit_type_detail.value : ''
+ this.is_what_unitType = res.unit_type_detail ? res.unit_type_detail.value : ''
+ if(res.mission_finished && res.mission_finished.length>0){
+ res.mission_finished.map(f=>{
+ if(f.admin_id===this.stateObj.login_id){
+ this.myself_list.push(item)
+ }
+ })
+ }
+ if(res.pid_details && res.pid_details.length>0){
+ this.pid_list=res.pid_details
+ res.pid_details.map(item=>{
+ if(item.do_admin_ids && item.do_admin_ids.length>0){
+ this.send_list.push(item)
+ }
+ if(item.mission_finished && item.mission_finished.length>0){
+ item.mission_finished.map(f=>{
+ if(f.admin_id===this.stateObj.login_id){
+ this.myself_list.push(item)
+ }
+ })
+
+ }
+ })
+ }
+
if (this.type == 'show') {
switch (this.is_what_unitType) {
case '检查':
@@ -1062,13 +1231,13 @@
let ids = ''
if(this.showform.pid_details&&this.showform.pid_details.length>0){
this.showform.pid_details.map((item)=>{
- ids = item.id +','
+ ids = ids+','+item.id
})
}
console.log("ids",ids)
const res = await listasklog({
- mission_id: ids+this.id,
+ mission_id: ids+','+this.id,
page: 1,
page_size: 999
})
@@ -1085,13 +1254,13 @@
let ids = ''
if(this.showform.pid_details&&this.showform.pid_details.length>0){
this.showform.pid_details.map((item)=>{
- ids = item.id +','
+ ids = ids+','+item.id
})
}
console.log("ids",ids)
const res = await listpatrol({
- mission_id: ids+this.id,
+ mission_id: ids+','+this.id,
page: 1,
page_size: 999
})
@@ -1138,13 +1307,13 @@
let ids = ''
if(this.showform.pid_details&&this.showform.pid_details.length>0){
this.showform.pid_details.map((item)=>{
- ids = item.id +','
+ ids = ids+','+item.id
})
}
console.log("ids",ids)
const res = await listtrain({
- mission_id: ids+this.id,
+ mission_id: ids+','+this.id,
page: 1,
page_size: 999
})
@@ -1154,13 +1323,13 @@
let ids = ''
if(this.showform.pid_details&&this.showform.pid_details.length>0){
this.showform.pid_details.map((item)=>{
- ids = item.id +','
+ ids = ids+','+item.id
})
}
console.log("ids",ids)
const res = await listuploads({
- mission_id: ids+this.id,
+ mission_id: ids+','+this.id,
page: 1,
page_size: 999,
sort_name: 'created_at',
@@ -1172,13 +1341,13 @@
let ids = ''
if(this.showform.pid_details&&this.showform.pid_details.length>0){
this.showform.pid_details.map((item)=>{
- ids = item.id +','
+ ids = ids+','+item.id
})
}
console.log("ids",ids)
const res = await liststudy({
- mission_id: ids+this.id,
+ mission_id: ids+','+this.id,
page: 1,
page_size: 999
})
@@ -1395,7 +1564,11 @@
this.getDetail()
} else {
this.id = ''
- this.type = ''
+ this.type = ''
+ this.pid_list = []
+ this.send_list = []
+ this.pid_id = ''
+ this.send_id = ''
this.pictureList = []
this.my_uploads_list = []
this.uploadsForm = {}
@@ -1431,7 +1604,9 @@
::v-deep .studylist {
flex-basis: 100%;
}
-
+ ::v-deep .el-collapse{
+ border-top:none;
+ }
::v-deep .type {
display: none;
}
diff --git a/src/views/task/list/patrol.vue b/src/views/task/list/patrol.vue
index fa9e95b..d905a9c 100644
--- a/src/views/task/list/patrol.vue
+++ b/src/views/task/list/patrol.vue
@@ -618,17 +618,15 @@
editorPatrol(id,type){
if(type=='editor'){
this.$refs.addPatrol.id= id
+ this.$refs.addPatrol.mission_id = id
+ }
+ if(type=='add'){
+ this.$refs.addPatrol.mission_id = 0
}
this.$refs.addPatrol.type= type
- // this.$refs['addPatrol'].missionList=this.missionList
- // this.$refs['addPatrol'].depList=this.depList
- // this.$refs['addPatrol'].siteListArr=this.siteListArr
- // this.$refs['addPatrol'].askList = this.askList
- // this.$refs['addPatrol'].siteList = this.siteList
- this.$refs['addPatrol'].mission_id = 0
- this.$refs['addPatrol'].department_id = this.department_id
- this.$refs['addPatrol'].login_id=this.login_id
- this.$refs['addPatrol'].isShow=true
+ this.$refs.addPatrol.department_id = this.department_id
+ this.$refs.addPatrol.login_id=this.login_id
+ this.$refs.addPatrol.isShow=true
},
cellClicks(e){
this.$refs.showPatrol.id= e.row.id
diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue
index 6e4cfc2..554c2bc 100644
--- a/src/views/task/list/unit.vue
+++ b/src/views/task/list/unit.vue
@@ -49,29 +49,16 @@
-
-
-
-
- 共有{{list.length}}项任务,分解后共
- {{chlidrenLength}}项子任务,
- 共{{list.length}}
- {{auditStatus1}}项未完成
-
-
-
-
-
+
+ 共有{{list.length}}项任务,分解后共
+ {{chlidrenLength}}项子任务,
+ 共{{list.length}}
+ {{auditStatus1}}项未完成
+
+
+
{select.page_size = e,getList()}" @pageIndexChange="e => {select.page = e,getList()}"
@@ -117,8 +104,8 @@
trigger="hover"
content="您可以按照任务要求完成任务">
-
+
@@ -128,7 +115,7 @@
width="200"
trigger="hover"
content="您可以按照任务要求分解给到其他科室或人员">
-
+
@@ -139,7 +126,7 @@
width="200"
trigger="hover"
content="您可以按照任务要求转办给其他人员">
-
+
@@ -166,8 +153,8 @@
trigger="hover"
content="您可以按照任务要求完成任务">
-
+
@@ -177,7 +164,7 @@
width="200"
trigger="hover"
content="您可以按照任务要求分解给到其他科室或人员">
-
+
@@ -188,7 +175,7 @@
width="200"
trigger="hover"
content="您可以按照任务要求转办给其他人员">
-
+
@@ -207,13 +194,13 @@
trigger="hover"
content="您可以按照任务要求完成任务">
-
+
-
+
@@ -225,8 +212,8 @@
trigger="hover"
content="您可以按照任务要求完成任务">
-
+
@@ -236,7 +223,7 @@
width="200"
trigger="hover"
content="您可以按照任务要求分解给到其他科室或人员">
-
+
@@ -256,8 +243,8 @@
trigger="hover"
content="您可以按照任务要求完成任务">
-
+
@@ -673,7 +660,7 @@
this.$refs['addPatrol'].login_id = this.stateObj.login_id
this.$refs['addPatrol'].department_id = this.stateObj.department_id
this.$refs['addPatrol'].mission_id = scope.id
- this.$refs['addPatrol'].isShow = true
+ this.$refs['addPatrol'].isShow = true
this.$refs['addPatrol'].type = 'add'
},
openAnswers(scope) {