|
|
@ -6,12 +6,6 @@
|
|
|
|
<div class="title-item" :class="checked == index ? 'checked-item' : ''" v-for="(item,index) in tabs" :key="index" @click="changeTab(index)">
|
|
|
|
<div class="title-item" :class="checked == index ? 'checked-item' : ''" v-for="(item,index) in tabs" :key="index" @click="changeTab(index)">
|
|
|
|
{{ item.value }}
|
|
|
|
{{ item.value }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div class="title-item">
|
|
|
|
|
|
|
|
查项目
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="title-item">
|
|
|
|
|
|
|
|
查荣誉
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="workbench-btn">
|
|
|
|
<div class="workbench-btn">
|
|
|
|
<el-autocomplete
|
|
|
|
<el-autocomplete
|
|
|
@ -43,22 +37,37 @@
|
|
|
|
<div class="title">【智能提醒】</div>
|
|
|
|
<div class="title">【智能提醒】</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="left-main">
|
|
|
|
<div class="left-main">
|
|
|
|
<el-card shadow="never" v-for="(item,index) in 2" :key="index" :class="index == 1 ? 'el-card-border' : ''">
|
|
|
|
<el-card shadow="never" v-for="(item,index) in remindList" :key="index" :class="item.isRead == 1 ? 'el-card-border' : ''">
|
|
|
|
<div class="warn-main">
|
|
|
|
<div class="warn-main">
|
|
|
|
<div class="warn-main-left">
|
|
|
|
<div class="warn-main-left" v-if="item.alertManner == 2">
|
|
|
|
<div class="warn-main-img"><img src="@/assets/images/warn-green.png" alt=""></div>
|
|
|
|
<div class="warn-main-img"><img src="@/assets/images/warn-green.png" alt=""></div>
|
|
|
|
<div class="warn-main-content">
|
|
|
|
<div class="warn-main-content">
|
|
|
|
<div class="content-title">关于做好2024年申报任务填报的通知</div>
|
|
|
|
<div class="content-title">【{{ item.declarationName }}】【预计{{ item.daysAdvance }}天后建设完成】</div>
|
|
|
|
<div class="content-middle">该项目即将建设完成,请及时关注!</div>
|
|
|
|
<div class="content-middle">{{ item.alertContent }}</div>
|
|
|
|
<div class="content-time">2024-05-29 09:00:00</div>
|
|
|
|
<div class="content-time">{{ item.alertTime }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="warn-main-left" v-if="item.alertManner == 1 && item.projectId">
|
|
|
|
|
|
|
|
<div class="warn-main-img"><img src="@/assets/images/warn-orange.png" alt=""></div>
|
|
|
|
|
|
|
|
<div class="warn-main-content">
|
|
|
|
|
|
|
|
<div class="content-title">【{{ item.declarationName }}】</div>
|
|
|
|
|
|
|
|
<div class="content-middle">{{ item.alertContent }}</div>
|
|
|
|
|
|
|
|
<div class="content-time">{{ item.alertTime }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="warn-main-left different-left" v-if="item.alertManner == 1 && !item.projectId">
|
|
|
|
|
|
|
|
<div class="warn-main-img"><img src="@/assets/images/warn-blue.png" alt=""></div>
|
|
|
|
|
|
|
|
<div class="warn-main-content">
|
|
|
|
|
|
|
|
<div class="content-title">{{ item.alertContent }}</div>
|
|
|
|
|
|
|
|
<div class="content-time">{{ item.alertTime }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="warn-main-right">
|
|
|
|
<div class="warn-main-right">
|
|
|
|
<div class="warn-main-right-chakan" @click="putMemo(item)">
|
|
|
|
<div class="warn-main-right-chakan" @click="putMemo(item)">
|
|
|
|
查看
|
|
|
|
查看
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="warn-main-right-status" :class="index == 1 ? 'status-unread' : ''">
|
|
|
|
<div class="warn-main-right-status" :class="item.isRead == 1 ? 'status-unread' : ''">
|
|
|
|
{{ index == 1 ? '未读' : '已读' }}
|
|
|
|
{{ item.isRead == 1 ? '未读' : '已读' }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -96,53 +105,16 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</main>
|
|
|
|
</main>
|
|
|
|
<!-- 申报审核对话框 -->
|
|
|
|
<el-dialog title="详情" :visible.sync="open" width="400px" append-to-body :close-on-click-modal="false">
|
|
|
|
<!-- <el-dialog title="申报审核" :visible.sync="open" width="600px" append-to-body :close-on-click-modal="false">
|
|
|
|
<div class="team-main">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px" label-position="left">
|
|
|
|
<div>提醒时间:</div>
|
|
|
|
<el-row>
|
|
|
|
<div>{{ info.alertTime }}</div>
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item label="审批状态" prop="approvalStatus">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.approvalStatus">
|
|
|
|
|
|
|
|
<el-radio label="1">审批通过</el-radio>
|
|
|
|
|
|
|
|
<el-radio label="2">审批驳回</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item label="审批意见" prop="approvalOpinions">
|
|
|
|
|
|
|
|
<el-input v-model="form.approvalOpinions" type="textarea" placeholder="请输入审批意见" maxlength="200"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<el-form-item label="审批附件" prop="fileList">
|
|
|
|
|
|
|
|
<el-upload
|
|
|
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
|
|
|
:show-file-list="false"
|
|
|
|
|
|
|
|
action=""
|
|
|
|
|
|
|
|
accept=".xlsx,.XLSX,.XSL,.doc,.xls,.ppt,.pdf,.png,.jpg,.jpeg,.rar,.zip,.docx"
|
|
|
|
|
|
|
|
:http-request="handleFileUpload"
|
|
|
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button slot="trigger" size="small" type="success">上传文件</el-button>
|
|
|
|
|
|
|
|
<div slot="tip" class="el-upload__tip">请上传格式为<span style="color: red;">doc/xls/ppt/pdf/png/jpg/jpeg/rar/zip/docx/xlsx</span>的文件</div>
|
|
|
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
<ul v-if="fileList.length >0" class="upload_ul">
|
|
|
|
|
|
|
|
<li v-for="item in uploadList" :key="item.url" class="upload_li">
|
|
|
|
|
|
|
|
<img src="@/assets/images/uploadBgc.jpg" class="li_img" alt="">
|
|
|
|
|
|
|
|
<span class="icon_name">{{ item.name }}</span>
|
|
|
|
|
|
|
|
<el-button type="text" style="color: red;" @click="deleteUpload(item)">删除</el-button>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog> -->
|
|
|
|
<div class="team-main">
|
|
|
|
|
|
|
|
<div>提醒内容:</div>
|
|
|
|
|
|
|
|
<div>{{ info.alertContent }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -196,13 +168,17 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
checked: 0,
|
|
|
|
checked: 0,
|
|
|
|
loading:false,
|
|
|
|
loading:false,
|
|
|
|
|
|
|
|
remindList: [],
|
|
|
|
|
|
|
|
info:{},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
mounted(){
|
|
|
|
if(this.userType == "02") {
|
|
|
|
if(this.userType == "02") {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.govRemind();
|
|
|
|
} else if(this.userType == "01") {
|
|
|
|
} else if(this.userType == "01") {
|
|
|
|
this.getListTwo();
|
|
|
|
this.getListTwo();
|
|
|
|
|
|
|
|
this.entRemind();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -224,6 +200,38 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 企业端智能提醒
|
|
|
|
|
|
|
|
entRemind(){
|
|
|
|
|
|
|
|
enterpriseAll().then(res=>{
|
|
|
|
|
|
|
|
this.remindList = res.data;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 政务端智能提醒
|
|
|
|
|
|
|
|
govRemind(){
|
|
|
|
|
|
|
|
chiefAll().then(res=>{
|
|
|
|
|
|
|
|
this.remindList = res.data;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 智能提醒去查看并修改状态
|
|
|
|
|
|
|
|
putMemo(item){
|
|
|
|
|
|
|
|
if(item.isRead == 1) {
|
|
|
|
|
|
|
|
changeIsRead({id:item.id}).then(res=>{})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(item.alertRecipients == 2) {
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
|
|
|
name: 'projectInfo',
|
|
|
|
|
|
|
|
query: { userId: Number(item.projectId) }
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else if(item.alertRecipients == 1 && item.alertManner == 2) {
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
|
|
|
name: 'Records',
|
|
|
|
|
|
|
|
params: { statusChange: "0" }
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else if(item.alertManner == 1) {
|
|
|
|
|
|
|
|
this.open = true;
|
|
|
|
|
|
|
|
this.info = item;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
// 更多记录
|
|
|
|
// 更多记录
|
|
|
|
MoreRecords(type,status){
|
|
|
|
MoreRecords(type,status){
|
|
|
|
if(this.userType == "02") {
|
|
|
|
if(this.userType == "02") {
|
|
|
@ -267,27 +275,6 @@ export default {
|
|
|
|
this.$refs.autocomplete.suggestions = [];
|
|
|
|
this.$refs.autocomplete.suggestions = [];
|
|
|
|
this.$refs.autocomplete.highlightedIndex = -1;
|
|
|
|
this.$refs.autocomplete.highlightedIndex = -1;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 审批弹框
|
|
|
|
|
|
|
|
handleApproval(row) {
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.form.declarationRecordsId = row.declarationRecordsId
|
|
|
|
|
|
|
|
this.open = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 取消按钮
|
|
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 表单重置
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
|
|
|
|
this.form = {
|
|
|
|
|
|
|
|
approvalOpinions: '',
|
|
|
|
|
|
|
|
approvalStatus: '1',
|
|
|
|
|
|
|
|
approvalAttachment: '',
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
|
|
|
this.uploadList = []
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
querySearch(queryString, cb) {
|
|
|
|
querySearch(queryString, cb) {
|
|
|
|
let results = []
|
|
|
|
let results = []
|
|
|
|
if(this.checked == 0) {
|
|
|
|
if(this.checked == 0) {
|
|
|
@ -331,7 +318,7 @@ export default {
|
|
|
|
} else if(this.checked == 1) {
|
|
|
|
} else if(this.checked == 1) {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
name: 'projectInfo',
|
|
|
|
name: 'projectInfo',
|
|
|
|
query: { userId: item.id }
|
|
|
|
query: { userId: Number(item.id) }
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else if(this.checked == 2) {
|
|
|
|
} else if(this.checked == 2) {
|
|
|
|
|
|
|
|
|
|
|
@ -353,45 +340,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleFileUpload(params) {
|
|
|
|
|
|
|
|
const file = params.file
|
|
|
|
|
|
|
|
let form = new FormData()
|
|
|
|
|
|
|
|
form.append('file', file)
|
|
|
|
|
|
|
|
uploadFile(form).then(response => {
|
|
|
|
|
|
|
|
this.fileList = []
|
|
|
|
|
|
|
|
this.fileList.push(file)
|
|
|
|
|
|
|
|
this.form.fileList = this.fileList
|
|
|
|
|
|
|
|
let data = {}
|
|
|
|
|
|
|
|
data.name = response.originalFilename;
|
|
|
|
|
|
|
|
data.url = response.fileName;
|
|
|
|
|
|
|
|
this.uploadList.push(data)
|
|
|
|
|
|
|
|
// console.log('this.fileList: ', this.fileList);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
deleteUpload(value) {
|
|
|
|
|
|
|
|
this.uploadList = this.uploadList.filter(item => {
|
|
|
|
|
|
|
|
return item.url != value.url
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
submitForm() {
|
|
|
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
this.uploadList.forEach((item,index) => {
|
|
|
|
|
|
|
|
if(this.uploadList.length-1 == index){
|
|
|
|
|
|
|
|
this.form.approvalAttachment+=`${item.url}`
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.form.approvalAttachment+=`${item.url},`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// console.log("sdas", this.form);
|
|
|
|
|
|
|
|
approvalEdit(this.form).then(response => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("审核完成");
|
|
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|