Browse Source

fix:预警退回不能再次提交问题

main
buaixuexideshitongxue 3 weeks ago
parent
commit
d622552cc4
  1. 12
      src/views/warning/edit.vue
  2. 3
      src/views/work/work.vue

12
src/views/warning/edit.vue

@ -73,6 +73,7 @@ const getReportDetailFun = async (id) => {
isEndData.value = res.project.reportType === '结算项目'
formData.value.reportProject = res.project;
//
debugger
const data = await getWarningRecord(id);
if (data) {
await getWarningDetailFun(data.id)
@ -151,7 +152,8 @@ const auditEndWarning = async () => {
await formDataRef.value.validate();
loading.value = true;
const body = {
reportId: formData.value.reportProject.id
reportId: formData.value.reportProject.id,
flowId: route.query.flowId
}
const res = await auditEndWarningApi(body)
feedback.msgSuccess("操作成功")
@ -1013,17 +1015,17 @@ const isTooltipDisabled = (value, placeholder = "") => {
</el-table-column>
</el-table>
</div>
<div class="flex end mt-20" v-if="route.query.isEdit && !recordDisplay ">
<div class="flex end mt-20" v-if="!recordDisplay">
<el-button type="primary" @click="addOrUpDataFun">保存</el-button>
<!-- <el-button type="primary" @click="warningInformFun">通知报审单位</el-button>-->
<el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>
<el-button type="primary" @click="getAuditTableFun">领导审批记录</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('end')">签收审批记录</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>

3
src/views/work/work.vue

@ -65,7 +65,8 @@ const rowWorkClick = (row) => {
warningId:row.warningId,
isAudit:true,
backPath:'/work',
warningCode:row.flowCode
warningCode:row.flowCode,
flowId: row.flowId
}
router.push({
path:`/warning/edit`,

Loading…
Cancel
Save