|
|
|
|
@ -631,10 +631,25 @@
|
|
|
|
|
trigger: ['blur'], |
|
|
|
|
}" |
|
|
|
|
> |
|
|
|
|
<el-input |
|
|
|
|
placeholder="请输入" |
|
|
|
|
v-model="formData.reportNumber" |
|
|
|
|
<!-- <el-input--> |
|
|
|
|
<!-- placeholder="请输入"--> |
|
|
|
|
<!-- v-model="formData.reportNumber"--> |
|
|
|
|
<!-- />--> |
|
|
|
|
<el-select v-model="reportData" |
|
|
|
|
filterable |
|
|
|
|
remote |
|
|
|
|
reserve-keyword |
|
|
|
|
placeholder="请选择通报期数" |
|
|
|
|
:remote-method="getReportListDataFun" |
|
|
|
|
:loading="reportLoading" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,id) in reportList" |
|
|
|
|
:key="id" |
|
|
|
|
:label="item.reportName" |
|
|
|
|
:value="item.id" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
@ -780,6 +795,9 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-form-item label="督察报告附件" v-if="reportFiles?.length > 0"> |
|
|
|
|
<file-list v-model:files="reportFiles" :removeEnable="false" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item |
|
|
|
|
label="事情简要描述" |
|
|
|
|
prop="thingDesc" |
|
|
|
|
@ -824,6 +842,8 @@ import { ProcessingStatus } from "@/enums/flowEnums";
|
|
|
|
|
import { ProblemSources_XFTS, ProblemSources } from "@/enums/dictEnums"; |
|
|
|
|
|
|
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
|
import {computed, watch} from "vue"; |
|
|
|
|
import {getListData} from "@/api/superviseReport/superviseReport"; |
|
|
|
|
|
|
|
|
|
const catchStore = useCatchStore(); |
|
|
|
|
const dict = catchStore.getDicts([ |
|
|
|
|
@ -997,6 +1017,54 @@ function handleSpotCheck(row) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const remainingTimeFlag = ref(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const reportData = ref(null) |
|
|
|
|
watch(()=>reportData.value,(val)=>{ |
|
|
|
|
if(val){ |
|
|
|
|
formData.value.reportNumber = reportList.value.find(s=>s.id == val).reportName; |
|
|
|
|
formData.value.reportId = val; |
|
|
|
|
} |
|
|
|
|
},{deep:true,immediate:true}) |
|
|
|
|
const reportQuery = ref({ |
|
|
|
|
current: 1, |
|
|
|
|
size: 100, |
|
|
|
|
departBranch:false |
|
|
|
|
}) |
|
|
|
|
const reportList = ref([]); |
|
|
|
|
const reportLoading = ref(false); |
|
|
|
|
const getReportListDataFun =async (val=null)=>{ |
|
|
|
|
reportLoading.value=true; |
|
|
|
|
try{ |
|
|
|
|
if(val){ |
|
|
|
|
reportQuery.value.reportName = val; |
|
|
|
|
}else{ |
|
|
|
|
reportQuery.value.reportName =null; |
|
|
|
|
} |
|
|
|
|
const res = await getListData(reportQuery.value); |
|
|
|
|
reportList.value=res.records; |
|
|
|
|
console.log('reportList.value',reportList.value) |
|
|
|
|
reportLoading.value=false; |
|
|
|
|
}catch (e){ |
|
|
|
|
reportLoading.value=false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
const reportFiles = computed(()=> { |
|
|
|
|
if( formData.value.reportNumber){ |
|
|
|
|
let data= reportList.value.find(s=>s.id === formData.value.reportId); |
|
|
|
|
data = data?data:reportList.value.find(s=>s.reportNumber === formData.value.reportNumber); |
|
|
|
|
console.log('data',data) |
|
|
|
|
return data?.files; |
|
|
|
|
}else{ |
|
|
|
|
return [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
:deep() { |
|
|
|
|
|