diff --git a/src/doctor/orders/add.tsx b/src/doctor/orders/add.tsx index d6472fa..705ccf2 100644 --- a/src/doctor/orders/add.tsx +++ b/src/doctor/orders/add.tsx @@ -41,7 +41,8 @@ const AddClinicOrder = () => { diagnosis: '', treatmentPlan: '', decoctionInstructions: '', - content: '' + content: '', + image: '' // 添加image字段 }) // 判断是编辑还是新增模式 @@ -79,9 +80,9 @@ const AddClinicOrder = () => { // 选择并上传图片 const handleChooseImage = () => { - if (fileList.length >= 20) { + if (fileList.length >= 5) { // 修正最大图片数量为5 Taro.showToast({ - title: '最多只能上传20张图片', + title: '最多只能上传5张图片', icon: 'none' }) return @@ -119,7 +120,7 @@ const AddClinicOrder = () => { if (newFileList.length === 0) { setFormData(prev => ({ ...prev, - image: undefined + image: '' })) } else { const imageData: UploadedImageData[] = newFileList.map(f => ({ @@ -541,6 +542,9 @@ const AddClinicOrder = () => {