fix(@vben/web-antd): erp-stock-in 修复提交表单时清空产品项 ID,确保请求成功不报row_xxx报错
							parent
							
								
									133f90f34e
								
							
						
					
					
						commit
						db9d085f94
					
				|  | @ -88,7 +88,10 @@ const [Modal, modalApi] = useVbenModal({ | ||||||
|     modalApi.lock(); |     modalApi.lock(); | ||||||
|     // 提交表单 |     // 提交表单 | ||||||
|     const data = (await formApi.getValues()) as ErpStockInApi.StockIn; |     const data = (await formApi.getValues()) as ErpStockInApi.StockIn; | ||||||
|     data.items = formData.value?.items; |     data.items = formData.value?.items?.map((item) => ({ | ||||||
|  |       ...item, | ||||||
|  |       id: undefined, | ||||||
|  |     })); | ||||||
|     // 将文件数组转换为字符串 |     // 将文件数组转换为字符串 | ||||||
|     if (data.fileUrl && Array.isArray(data.fileUrl)) { |     if (data.fileUrl && Array.isArray(data.fileUrl)) { | ||||||
|       data.fileUrl = data.fileUrl.length > 0 ? data.fileUrl[0] : ''; |       data.fileUrl = data.fileUrl.length > 0 ? data.fileUrl[0] : ''; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xuzhiqiang
						xuzhiqiang