CRM:完善回款在合同、客户的引入

(cherry picked from commit 25665f548e)
This commit is contained in:
YunaiV
2024-02-25 20:23:10 +08:00
committed by shizhong
parent 8d0ab3d77f
commit 4e6c8e46df
7 changed files with 59 additions and 29 deletions

View File

@ -87,12 +87,13 @@ const close = () => {
/** 初始化 */
const { params } = useRoute()
onMounted(async () => {
if (!params.id) {
const id = props.id || route.params.id
if (!id) {
message.warning('参数错误,回款不能为空!')
close()
return
}
receivableId.value = params.id as unknown as number
receivableId.value = id
await getReceivable(receivableId.value)
})
</script>