|
|
|
@ -9,7 +9,13 @@ import useCatchStore from '@/stores/modules/catch' |
|
|
|
import reportAudit from '@/components/reportAudit/start.vue'; |
|
|
|
import reportAudit from '@/components/reportAudit/start.vue'; |
|
|
|
import reportAuditFinish from '@/components/reportAudit/finish.vue'; |
|
|
|
import reportAuditFinish from '@/components/reportAudit/finish.vue'; |
|
|
|
import reportAuditReject from '@/components/reportAudit/reject.vue'; |
|
|
|
import reportAuditReject from '@/components/reportAudit/reject.vue'; |
|
|
|
import {getDetail, removeReportProject, saveReportProject,getExcelContrilPrice,upFinalizationPathFun} from "@/api/report/index"; |
|
|
|
import { |
|
|
|
|
|
|
|
getDetail, |
|
|
|
|
|
|
|
saveReportProject, |
|
|
|
|
|
|
|
getExcelContrilPrice, |
|
|
|
|
|
|
|
upFinalizationPathFun, |
|
|
|
|
|
|
|
deleteReportProject |
|
|
|
|
|
|
|
} from "@/api/report/index"; |
|
|
|
import {useRoute, useRouter} from "vue-router"; |
|
|
|
import {useRoute, useRouter} from "vue-router"; |
|
|
|
import {getReportFlow} from "@/api/report/flow"; |
|
|
|
import {getReportFlow} from "@/api/report/flow"; |
|
|
|
import useTabsStore from "@/stores/modules/multipleTabs"; |
|
|
|
import useTabsStore from "@/stores/modules/multipleTabs"; |
|
|
|
@ -73,6 +79,25 @@ const isAuditButton = ref(false) |
|
|
|
const datePicker = ref() |
|
|
|
const datePicker = ref() |
|
|
|
const serviceTime = ref([]) |
|
|
|
const serviceTime = ref([]) |
|
|
|
const editAll = ref(false) |
|
|
|
const editAll = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 删除 |
|
|
|
|
|
|
|
const delDialog = ref(false); |
|
|
|
|
|
|
|
const delFormData = ref({}); |
|
|
|
|
|
|
|
const deleteFlag = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleDel= async ()=> { |
|
|
|
|
|
|
|
const body ={ |
|
|
|
|
|
|
|
id: route.query.id, |
|
|
|
|
|
|
|
deleteReason: delFormData.value.deleteReason |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
await deleteReportProject(body); |
|
|
|
|
|
|
|
closeFun(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const auditEdit = () => { |
|
|
|
const auditEdit = () => { |
|
|
|
// 进入“全部可编辑模式” |
|
|
|
// 进入“全部可编辑模式” |
|
|
|
editAll.value = !editAll.value |
|
|
|
editAll.value = !editAll.value |
|
|
|
@ -101,10 +126,11 @@ const getDetailFun = async (val) => { |
|
|
|
loading.value = true; |
|
|
|
loading.value = true; |
|
|
|
|
|
|
|
|
|
|
|
formData.value = await getDetail({"id": val}); |
|
|
|
formData.value = await getDetail({"id": val}); |
|
|
|
|
|
|
|
|
|
|
|
if (route.query.disabledVal) { |
|
|
|
if (route.query.disabledVal) { |
|
|
|
isDisabled.value = true |
|
|
|
isDisabled.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
debugger |
|
|
|
//报审 |
|
|
|
//报审 |
|
|
|
if ((!['initial'].includes(formData.value.project.node))) { |
|
|
|
if ((!['initial'].includes(formData.value.project.node))) { |
|
|
|
isDisabled.value = true; |
|
|
|
isDisabled.value = true; |
|
|
|
@ -190,6 +216,7 @@ const getDetailFun = async (val) => { |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
deleteFlag.value= formData.value.project.deleteFlag |
|
|
|
query.value.applicantId =formData.value.project?.applicantId; |
|
|
|
query.value.applicantId =formData.value.project?.applicantId; |
|
|
|
// query.value.departId = formData.value.project?.auditUnitId |
|
|
|
// query.value.departId = formData.value.project?.auditUnitId |
|
|
|
getPoliceList(); |
|
|
|
getPoliceList(); |
|
|
|
@ -455,9 +482,12 @@ let date = ref() |
|
|
|
|
|
|
|
|
|
|
|
//删除数据 |
|
|
|
//删除数据 |
|
|
|
const removeFun = async () => { |
|
|
|
const removeFun = async () => { |
|
|
|
await feedback.confirm("是否确认删除数据?"); |
|
|
|
debugger |
|
|
|
const res = await removeReportProject(route.query.id); |
|
|
|
delDialog.value = true; |
|
|
|
closeFun(); |
|
|
|
|
|
|
|
|
|
|
|
// await feedback.confirm("是否确认删除数据?"); |
|
|
|
|
|
|
|
// const res = await removeReportProject(route.query.id); |
|
|
|
|
|
|
|
// closeFun(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//提交审批 |
|
|
|
//提交审批 |
|
|
|
@ -1062,6 +1092,14 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row v-if="deleteFlag"> |
|
|
|
|
|
|
|
<el-col :span="15"> |
|
|
|
|
|
|
|
<el-form-item label="删除原因" > |
|
|
|
|
|
|
|
<el-input type="textarea" :rows="5" :disabled="true" |
|
|
|
|
|
|
|
v-model="formData.project.deleteReason"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<hr style="border-color: rgba(232,232,232,0.67);opacity: 0.2"> |
|
|
|
<hr style="border-color: rgba(232,232,232,0.67);opacity: 0.2"> |
|
|
|
@ -1305,17 +1343,20 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ |
|
|
|
<el-button v-else type="primary" @click="approveFun">提交</el-button> |
|
|
|
<el-button v-else type="primary" @click="approveFun">提交</el-button> |
|
|
|
<el-button type="danger" @click="rejectFun">驳回</el-button> |
|
|
|
<el-button type="danger" @click="rejectFun">驳回</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="route.query.disabledVal" class="flex end mt-20"> |
|
|
|
<div v-else-if="route.query.disabledVal && route.query.deleteFlag==='0'" class="flex end mt-20"> |
|
|
|
<el-button type="primary" @click="getReportFlowFun">审批记录</el-button> |
|
|
|
<el-button type="primary" @click="getReportFlowFun">审批记录</el-button> |
|
|
|
<el-button type="danger" @click="removeFun">删除</el-button> |
|
|
|
<el-button type="danger" @click="removeFun">删除</el-button> |
|
|
|
<el-button @click="closeFun">关闭</el-button> |
|
|
|
<el-button @click="closeFun">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else-if="route.query.disabledVal && deleteFlag" class="flex end mt-20"> |
|
|
|
|
|
|
|
<el-button @click="closeFun">关闭</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="flex end mt-20" v-else > |
|
|
|
<div class="flex end mt-20" v-else > |
|
|
|
<el-button v-if="!isDisabled && !editAll" type="primary" @click="submitFun">提交</el-button> |
|
|
|
<el-button v-if="!isDisabled && !editAll" type="primary" @click="submitFun">提交</el-button> |
|
|
|
<el-button v-if="!isDisabled && !editAll" type="primary" @click="saveFun">保存</el-button> |
|
|
|
<el-button v-if="!isDisabled && !editAll" type="primary" @click="saveFun">保存</el-button> |
|
|
|
<el-button v-if="!isAuditButton && !isDisabled" @click="closeFun">取消</el-button> |
|
|
|
<el-button v-if="!isAuditButton && !isDisabled" @click="closeFun">取消</el-button> |
|
|
|
|
|
|
|
|
|
|
|
<el-button v-if="!isAuditButton && isDisabled" type="primary" @click="getReportFlowFun">审批记录</el-button> |
|
|
|
<el-button v-if="!isAuditButton && !isDisabled" type="primary" @click="getReportFlowFun">审批记录</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-main> |
|
|
|
</el-main> |
|
|
|
@ -1391,6 +1432,31 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ |
|
|
|
<report-audit-end @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node" |
|
|
|
<report-audit-end @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node" |
|
|
|
:reportId="formData.project.id" v-model="endDialog" :isAudit="true" |
|
|
|
:reportId="formData.project.id" v-model="endDialog" :isAudit="true" |
|
|
|
></report-audit-end> |
|
|
|
></report-audit-end> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="删除项目" v-model="delDialog" width="700"> |
|
|
|
|
|
|
|
<el-form :label-width="120" :model="delFormData" ref="delFormRef"> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
|
|
|
|
label="删除原因" |
|
|
|
|
|
|
|
prop="delReason" |
|
|
|
|
|
|
|
:rules="{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请输入删除原因', |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model="delFormData.deleteReason" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
|
|
|
|
placeholder="请输入删除原因" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
:autosize="{ minRows: 3 }" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
<footer class="flex end"> |
|
|
|
|
|
|
|
<el-button @click="delDialog = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="handleDel">确定</el-button> |
|
|
|
|
|
|
|
</footer> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
<style lang="scss"> |
|
|
|
|