讲师管理bug

This commit is contained in:
zhangsir
2024-11-13 16:41:26 +08:00
parent 5c76f6411f
commit 0c0dfff74b
10 changed files with 188 additions and 78 deletions

View File

@@ -94,8 +94,8 @@
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
<!-- <a-button type="link" @click="() => handleOperate(record, String(record.courseform))">审批</a-button> -->
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
<a-button type="link" @click="submit(record)">提交</a-button>
<a-button type="link" @click="withdraw(record)">撤回</a-button>
<a-button v-if="record.status == 1" type="link" @click="submit(record)">提交</a-button>
<a-button v-if="record.status == 2" type="link" @click="withdraw(record)">撤回</a-button>
</a-space>
</template>
</template>
@@ -130,7 +130,7 @@
<a-descriptions-item v-if="activeKey==2" label="汇总周期" >{{formParam?.summaryDate}}</a-descriptions-item>
<a-descriptions-item label="提交时间">{{formParam?.summaryTime}}</a-descriptions-item>
<a-descriptions-item label="汇总金额">{{formParam?.summaryTotal}}</a-descriptions-item>
<a-descriptions-item label="状态">{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'审核通过', 4:'审核拒绝'}[formParam?.status]}}</a-descriptions-item>
<a-descriptions-item label="状态">{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'审核通过', 4:'拒绝',5:'撤回'}[formParam?.status]}}</a-descriptions-item>
</a-descriptions>
<!-- <span>审批详情</span> -->
<span class="line" style="margin-top:12px;"></span>
@@ -463,6 +463,8 @@
return "审核通过"
case 4:
return "审核拒绝"
case 5:
return "撤回"
default:
return "-"
}
@@ -612,10 +614,16 @@
ok: () => {
isConfirm({
id: record.id,
status: 1
status: 2
}).then(res=>{
message.success('提交成功')
getTableDate();
if(res.data.code == 200){
message.success('提交成功')
getTableDate();
}
}).catch(err=>{
message.destroy()
message.error(err.data.msg)
})
}
})
@@ -627,10 +635,16 @@
ok: () => {
isConfirm({
id: record.id,
status: 0
status: 1
}).then(res=>{
message.success('撤回成功')
getTableDate();
if(res.data.code == 200){
message.success('撤回成功')
getTableDate();
}
}).catch(err=>{
message.destroy()
message.error(err.data.msg)
})
}
})
@@ -670,7 +684,7 @@
const tableDataExamine = ref([])
const gettableDataExamine = () => {
queryExpnseByBillId({
id : state.id,
billld : state.id,
pageNo: state.tableDataParams.pageNo,
pageSize: state.tableDataParams.pageSize,
name: state.userNoOrName,