fix:product/save的barcode直接取表单值this.noIsbnIsbn

This commit is contained in:
ShenQiLun 2026-06-25 15:21:30 +08:00
parent 9a1df9db9d
commit 8f1f02af6d

View File

@ -2167,7 +2167,7 @@ export default {
// syncBook product ID
var syncData = respData.data || {}
var bookInfoId = syncData.id || ''
var barcode = this.currentTab === 'isbn' ? (this.isbn || '') : this.getNoIsbnIsbnValue()
var barcode = this.currentTab === 'isbn' ? (this.isbn || '') : (this.noIsbnIsbn || '')
var productName = this.currentTab === 'isbn' ? (this.bookName || '') : (this.noIsbnBookName || '')
var appearanceValue = parseInt(this.currentTab === 'isbn' ? this.conditionValue : this.noIsbnConditionValue) || 0
var productPrice = this.currentTab === 'isbn'
@ -2317,7 +2317,7 @@ export default {
// syncBook product ID
var syncData = respData.data || {}
var barcode = this.getNoIsbnIsbnValue()
var barcode = this.noIsbnIsbn || ''
var productName = this.noIsbnBookName || ''
var appearanceValue = parseInt(this.noIsbnConditionValue) || 0
var productPrice = this.noIsbnOriginalPrice ? String(Math.round(parseFloat(this.noIsbnOriginalPrice) * 100)) : '0'