diff --git a/src/views/moneyManage/receiveDetail/receiveService.vue b/src/views/moneyManage/receiveDetail/receiveService.vue index bfc8630..587e279 100644 --- a/src/views/moneyManage/receiveDetail/receiveService.vue +++ b/src/views/moneyManage/receiveDetail/receiveService.vue @@ -685,6 +685,11 @@ const handleAddForm = async () => { return; } } + + if(addFormData.value.numUnit == ''){ + ElMessage.error('请选择产品数量单位'); + return; + } // 处理时间格式 if (addFormData.value.payTime) { addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss') @@ -742,6 +747,10 @@ const handleEditForm = async () => { return; } } + if(addFormData.value.numUnit == ''){ + ElMessage.error('请选择产品数量单位'); + return; + } // 处理时间格式 if (addFormData.value.payTime) { addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss')