fix:OCR识别后ISBN/书号均为空时生成678随机ISBN并显示在表单
This commit is contained in:
parent
46450acdd9
commit
b7481c1f99
@ -3160,6 +3160,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.noIsbnUnifyIsbn = bookCodeText
|
this.noIsbnUnifyIsbn = bookCodeText
|
||||||
}
|
}
|
||||||
|
// ISBN 和书号都为空 → 生成 678 开头随机数显示在表单中
|
||||||
|
if (!this.noIsbnIsbn && !this.noIsbnUnifyIsbn) {
|
||||||
|
this.noIsbnIsbn = this.generateRandomIsbn()
|
||||||
|
}
|
||||||
if (texts.字数) this.noIsbnWordCount = this.processNoIsbnWordage(texts.字数)
|
if (texts.字数) this.noIsbnWordCount = this.processNoIsbnWordage(texts.字数)
|
||||||
|
|
||||||
uni.showToast({ title: '识别成功', icon: 'success' })
|
uni.showToast({ title: '识别成功', icon: 'success' })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user