|
|
|
@ -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') |
|
|
|
|