-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
@@ -269,7 +112,8 @@
-
+
+
@@ -279,7 +123,8 @@
import showPatrol from '../list/components/showPatrol.vue'
import addPatrol from '../list/components/addPatrol.vue'
import checkUnit from '../list/components/checkUnit.vue'
- import answerQuestion from '../list/components/answerQuestion.vue'
+ import answerQuestion from '../list/components/answerQuestion.vue'
+ import sendNotice from '../list/components/sendNotice.vue'
import {
listunit,
del,
@@ -306,7 +151,8 @@
showPatrol,
addPatrol,
checkUnit,
- answerQuestion
+ answerQuestion,
+ sendNotice
},
data() {
return {
@@ -340,8 +186,8 @@
dueDate: [],
start_date: '',
end_date: '',
- sort_name: 'start_date',
- sort_type: 'DESC',
+ // sort_name: 'start_date',
+ // sort_type: 'ASC',
year: new Date().getFullYear(),
month: '',
pid:'',
@@ -416,7 +262,9 @@
myListFinish:[],
sectionList: [],
currentTableList: [],
- auditStatus1: 0,
+ auditStatus1: 0, // 办理中
+ auditStatus4: 0, // 待办
+ auditStatus5: 0, //已完成
isIndeterminate: true,
checkAll: false,
showSelectMonth:false,
@@ -458,7 +306,6 @@
id: "12",
value: '十二月'
}],
- chlidrenLength:0,//子任务
table: [
{
label: "",
@@ -467,62 +314,63 @@
width:80
},
{
- label: "任务名称",
- prop: 'name',
- width: 200,
- // fixed:'left',
- align: 'left',
- }, {
- label: "任务内容及要求",
- prop: 'content',
- minWidth: 200,
- align: 'left',
- }, {
- label: "任务类型",
- prop: 'unit_type_detail.value',
- width: 120,
- align: 'center'
- },
- {
- label: "开始日期",
- prop: 'start_date',
- width: 120,
- align: 'center'
- }, {
- label: "要求完成日期",
- prop: 'end_date',
- width: 120,
- align: 'center'
- }, {
- label: "状态",
- prop: 'audit_status',
- width: 120,
- align: 'center',
- customFn: (row) => {
- return (
{
- // 有转办人,转办人不显示 已转办 任务为结束。
- // row.do_admin_ids.length>0 && !row.do_admin_ids.includes(this.stateObj.login_id) && !(row.audit_status==3||row.audit_status==5)?
- // 已转办
- // :
- this.auditStatusList.map(item => {
- if (item.id == row.audit_status) {
- return ( {
- item.value
- } )
- }
- })
- }
)
- }
- }, {
- label: "责任人(科室)",
- prop: 'main_admin.name',
- width: 120,
- align: 'center',
- }],
+ label: "任务名称",
+ prop: 'name',
+ width: 200,
+ // fixed:'left',
+ align: 'left',
+ }, {
+ label: "任务内容及要求",
+ prop: 'content',
+ minWidth: 200,
+ align: 'left',
+ }, {
+ label: "任务类型",
+ prop: 'unit_type_detail.value',
+ width: 120,
+ align: 'center'
+ },
+ // {
+ // label: "开始日期",
+ // prop: 'start_date',
+ // width: 120,
+ // align: 'center'
+ // },
+ {
+ label: "要求完成日期",
+ prop: 'end_date',
+ width: 120,
+ align: 'center'
+ }, {
+ label: "状态",
+ prop: 'audit_status',
+ width: 120,
+ align: 'center',
+ customFn: (row) => {
+ return (
{
+ // 有转办人,转办人不显示 已转办 任务为结束。
+ // row.do_admin_ids.length>0 && !row.do_admin_ids.includes(this.stateObj.login_id) && !(row.audit_status==3||row.audit_status==5)?
+ // 已转办
+ // :
+ this.auditStatusList.map(item => {
+ if (item.id == row.audit_status) {
+ return ( {
+ item.value
+ } )
+ }
+ })
+ }
)
}
- },
+ }, {
+ label: "责任人(科室)",
+ prop: 'main_admin.name',
+ width: 120,
+ align: 'center',
+ }],
+ }
+ },
computed: {
},
created() {
@@ -579,7 +427,7 @@
}
if (path[1] == 1) {
this.showSelectMonth = false
- this.select.type = 1
+ this.select.type = ''
// this.select.pid = ''
// this.treeProps = {children: 'nochildren', hasChildren: 'hasChildren' }
this.type_name = '任务跟踪'
@@ -618,6 +466,10 @@
},
async getLeads() {
// await this.$store.dispatch("user/getLeads")
+ },
+ sendNotice(row){
+ this.$refs.sendNotice.setForm(row)
+ this.$refs.sendNotice.isShow = true
},
backPlan(row) {
this.$refs.addBackPlan.upload_link = row.files
@@ -646,7 +498,8 @@
this.openTrain(e)
break;
case '资料收集':
- case '方案':
+ case '方案':
+ case '会议':
this.openUploads(e)
break;
// case '方案':
@@ -773,7 +626,7 @@
if(this.path_type == 5){
const newArr = res.data.filter((_, index) => !spliceIndex.includes(index));
newArr.map(item=>{
- if(item.audit_status==5 || (item.mission_finished && item.mission_finished.length>0)){
+ if(item.audit_status==5){
console.log("item.mission_finished",item.id,item.mission_finished)
my_arr.push(item)
}else{
@@ -793,19 +646,18 @@
})
this.list = _arr
this.myListFinish = my_arr
- let chlidrenLength = 0
- let auditStatus1 = 0
- this.list.map(item=>{
- if(item.mychildren&&item.mychildren.length>0){
- chlidrenLength+=item.mychildren.length
- }
- if(item.audit_status===1){
- auditStatus1++
- }
- })
- this.auditStatus1 = auditStatus1
- this.chlidrenLength = chlidrenLength
- console.log("spliceIndex",this.list,chlidrenLength)
+ let auditStatus1 = this.list.filter(item=>item.audit_status===1)
+ let auditStatus4 = this.list.filter(item=>item.audit_status===4)
+ let auditStatus5 = this.list.filter(item=>item.audit_status===5)
+ // this.list.map(item=>{
+ // if(item.audit_status===1){
+ // auditStatus1++
+ // }
+ // })
+ this.auditStatus1 = auditStatus1.length
+ this.auditStatus4 = auditStatus4.length
+ this.auditStatus5 = auditStatus5.length
+ console.log("spliceIndex",this.list)
this.total = res.total