|
|
|
|
@ -3,7 +3,14 @@ import useUserStore from "@/stores/modules/user";
|
|
|
|
|
import {FlowWarningEnum} from '@/enums/flowWarningEnums' |
|
|
|
|
import {getDetail} from "@/api/report/index"; |
|
|
|
|
import {getReportFlow} from "@/api/report/flow"; |
|
|
|
|
import {addOrUpData,getWarningDetail,getWarningRecord,getWarningAudit,getWarningInformList} from '@/api/warning/index' |
|
|
|
|
import { |
|
|
|
|
addOrUpData, |
|
|
|
|
getWarningDetail, |
|
|
|
|
getWarningRecord, |
|
|
|
|
getWarningAudit, |
|
|
|
|
getWarningInformList, |
|
|
|
|
auditEndWarningApi |
|
|
|
|
} from '@/api/warning/index' |
|
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
|
import {listPolice} from "@/api/system/police"; |
|
|
|
|
import {timeFormat} from "@/utils/util"; |
|
|
|
|
@ -73,7 +80,9 @@ const getReportDetailFun =async (id)=>{
|
|
|
|
|
await getWarningDetailFun(data.id) |
|
|
|
|
}else{ |
|
|
|
|
//获取历史记录 |
|
|
|
|
|
|
|
|
|
console.log("==============") |
|
|
|
|
console.log(res.project) |
|
|
|
|
res.project.warningState=="1"? recordDisplay.value=true: recordDisplay.value=false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -139,7 +148,23 @@ const warningInformFun = async ()=>{
|
|
|
|
|
loading.value=false; |
|
|
|
|
dialog.value=true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//结束预警 |
|
|
|
|
const auditEndWarning = async ()=>{ |
|
|
|
|
await formDataRef.value.validate(); |
|
|
|
|
loading.value=true; |
|
|
|
|
const body={ |
|
|
|
|
reportId:formData.value.reportProject.id |
|
|
|
|
} |
|
|
|
|
const res= await auditEndWarningApi(body) |
|
|
|
|
feedback.msgSuccess("操作成功") |
|
|
|
|
router.push({ |
|
|
|
|
path: "/warning", |
|
|
|
|
query: { |
|
|
|
|
refresh: Date.now() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
loading.value=false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const closePage = ()=>{ |
|
|
|
|
if (route.query.isEdit) { |
|
|
|
|
@ -172,7 +197,7 @@ const addOrUpDataFun = async ()=>{
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//提交 |
|
|
|
|
//提交至领导 |
|
|
|
|
async function SubmitFun(){ |
|
|
|
|
await formDataRef.value.validate(); |
|
|
|
|
await feedback.confirm("是否提交审计数据?"); |
|
|
|
|
@ -255,11 +280,16 @@ async function getAuditTableFun(){
|
|
|
|
|
reportFlowTable.value = res; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function getAuditTableInformFun(){ |
|
|
|
|
async function getAuditTableInformFun(type){ |
|
|
|
|
//打开审批记录 |
|
|
|
|
reportFlowDialog.value = true |
|
|
|
|
reportFlowLoading.value=true |
|
|
|
|
const res = await getReportFlow({id:formData.value.record.id,code:'inform'}); |
|
|
|
|
let res; |
|
|
|
|
if (type){ |
|
|
|
|
res= await getReportFlow({id:formData.value.reportProject.id,code:type}); |
|
|
|
|
}else { |
|
|
|
|
res = await getReportFlow({id:formData.value.record.id,code:'inform'}); |
|
|
|
|
} |
|
|
|
|
reportFlowLoading.value=false |
|
|
|
|
reportFlowTable.value = res; |
|
|
|
|
} |
|
|
|
|
@ -698,13 +728,15 @@ const ensureSupervisionTime = () => {
|
|
|
|
|
</div> |
|
|
|
|
<div class="flex end mt-20" v-if="route.query.isEdit && !recordDisplay "> |
|
|
|
|
<el-button type="primary" @click="addOrUpDataFun">保存</el-button> |
|
|
|
|
<el-button type="primary" @click="warningInformFun">通知报审单位</el-button> |
|
|
|
|
<!-- <el-button type="primary" @click="warningInformFun">通知报审单位</el-button>--> |
|
|
|
|
<el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button> |
|
|
|
|
<el-button type="warning" @click="auditEndWarning">结束</el-button> |
|
|
|
|
<el-button type="primary" @click="SubmitFun">提交至领导</el-button> |
|
|
|
|
<el-button @click="closePage" >取消</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex end mt-20" v-else> |
|
|
|
|
<el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button> |
|
|
|
|
<el-button type="primary" @click="getAuditTableInformFun">签收审批记录</el-button> |
|
|
|
|
<el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button> |
|
|
|
|
<el-button type="primary" v-if="isAudit && (codeData !='inform')" @click="passFun">通过</el-button> |
|
|
|
|
<el-button type="primary" v-if="isAudit && (codeData =='inform')" @click="passInformFun">签收</el-button> |
|
|
|
|
<el-button type="danger" v-if="isAudit" @click="rejectFun">驳回</el-button> |
|
|
|
|
|