上传前检查:ISBN和无ISBN必须至少拍一张图片

This commit is contained in:
97694732@qq.com 2026-06-04 16:37:59 +08:00
parent cd205d79dc
commit b8f89a2063

View File

@ -1702,6 +1702,16 @@ export default {
const locCode = warehouseData.locationCode || warehouseData.code || ''
const locationText = warehouseName + (locCode ? ' - ' + locCode : '')
//
if (this.currentTab === 'isbn' && this.photoList.length < 1) {
uni.showToast({ title: '请至少拍一张图片', icon: 'none' })
return
}
if (this.currentTab === 'no-isbn' && this.noIsbnPhotoList.length < 1) {
uni.showToast({ title: '请至少拍一张图片', icon: 'none' })
return
}
let contentLines
if (this.currentTab === 'isbn') {
if (!this.isbn) {