|
|
|
|
@ -372,7 +372,7 @@
|
|
|
|
|
<template v-slot:footerContent>
|
|
|
|
|
<Button type="primary" style='margin-left:5px;margin-bottom:5px;' @click="clickSubmit">确认</Button>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button type="primary" ghost style='margin-left:5px;margin-bottom:5px;' @click="isShow=false">取消</Button>
|
|
|
|
|
<Button v-if="type!='send'" type="primary" ghost style='margin-left:5px;margin-bottom:5px;' @click="isShow=false">取消</Button>
|
|
|
|
|
<Poptip v-if="type=='editor'" transfer confirm title="确认要删除吗?" @on-ok="deleteList">
|
|
|
|
|
<Button type="primary" style="margin-left:5px;margin-bottom:5px;" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
@ -802,7 +802,7 @@
|
|
|
|
|
if (this.type === 'send') {
|
|
|
|
|
this.now_do_admin_ids = _arr
|
|
|
|
|
console.log("this.now_do_admin_ids",this.now_do_admin_ids)
|
|
|
|
|
if(this.form.do_admin_ids && this.form.do_admin_ids.length>0){
|
|
|
|
|
if(this.form.do_admin_ids){
|
|
|
|
|
_arr.map(item=>{
|
|
|
|
|
if(!this.form.do_admin_ids.includes(item)){
|
|
|
|
|
this.form.do_admin_ids.push(item)
|
|
|
|
|
@ -1139,7 +1139,9 @@
|
|
|
|
|
|
|
|
|
|
if(!(this.form.audit_status==3||this.form.audit_status==5)){
|
|
|
|
|
console.log("this.betweenSe",this.form.start_date, this.form.end_date)
|
|
|
|
|
this.betweenSe(this.form.start_date, this.form.end_date)
|
|
|
|
|
if(!this.betweenSe(this.form.start_date, this.form.end_date)){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("this.form",this.form)
|
|
|
|
|
// return
|
|
|
|
|
@ -1182,6 +1184,15 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.type === 'editor' || this.type === 'send') {
|
|
|
|
|
if(this.type==='send'){
|
|
|
|
|
if(this.now_do_admin_ids.length<1){
|
|
|
|
|
Message({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: '请选择承办人员'
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
save({
|
|
|
|
|
id: this.id,
|
|
|
|
|
...this.form
|
|
|
|
|
@ -1216,8 +1227,6 @@
|
|
|
|
|
from_user_id:this.stateObj.login_id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sendNotice({
|
|
|
|
|
id:res.model.id,
|
|
|
|
|
name:res.model.name,
|
|
|
|
|
@ -1242,7 +1251,7 @@
|
|
|
|
|
type:'warning',
|
|
|
|
|
message: '任务完成时间不能小于开始时间'
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if (nowTime < startTime) {
|
|
|
|
|
this.form.audit_status = 4
|
|
|
|
|
@ -1253,6 +1262,7 @@
|
|
|
|
|
if (nowTime >= startTime && nowTime <= endTime) {
|
|
|
|
|
this.form.audit_status = 1
|
|
|
|
|
}
|
|
|
|
|
return true
|
|
|
|
|
},
|
|
|
|
|
handleRemove(file, fileList) {
|
|
|
|
|
this.pictureList = fileList
|
|
|
|
|
|