CRM:优化合同列的新增/修改界面

This commit is contained in:
YunaiV
2024-02-04 12:57:39 +08:00
parent 6d0231d409
commit cac39ae126
8 changed files with 112 additions and 137 deletions

View File

@ -54,7 +54,6 @@
</ContentWrap>
<!-- 列表 -->
<!-- TODO 芋艿各种字段要调整 -->
<ContentWrap>
<el-table v-loading="loading" :data="list" :show-overflow-tooltip="true" :stripe="true">
<el-table-column align="center" fixed="left" label="合同编号" prop="no" width="130" />
@ -145,12 +144,12 @@
>
编辑
</el-button>
<!-- TODO @puhui999可以加下判断什么情况下可以审批 -->
<!-- TODO @puhui999可以加下判断什么情况下可以审批然后加个查看审批按钮 -->
<el-button
v-hasPermi="['crm:contract:update']"
link
type="primary"
@click="handleApprove(scope.row)"
@click="handleSubmit(scope.row)"
>
提交审核
</el-button>
@ -274,9 +273,9 @@ const handleExport = async () => {
}
/** 提交审核 **/
const handleApprove = async (row: ContractApi.ContractVO) => {
const handleSubmit = async (row: ContractApi.ContractVO) => {
await message.confirm(`您确定提交【${row.name}】审核吗?`)
await ContractApi.handleApprove(row.id)
await ContractApi.submitContract(row.id)
message.success('提交审核成功!')
await getList()
}