feat:无ISBN上传增加装订字段(下拉+手动输入)

This commit is contained in:
97694732@qq.com 2026-06-06 11:05:27 +08:00
parent dbca6bd6e6
commit 571fac9296

View File

@ -385,6 +385,20 @@
<view class="info-block-divider"></view>
<!-- 装订 -->
<view class="info-inline-row">
<text class="info-inline-label">装订</text>
<view class="dropdown-wrapper" style="flex:1;">
<input class="form-input" v-model="noIsbnBinding" placeholder="请选择装订" style="flex:1;" />
<view class="dropdown-btn" @click.stop="noIsbnBindingDropdownVisible = !noIsbnBindingDropdownVisible"></view>
<view v-if="noIsbnBindingDropdownVisible" class="dropdown-list">
<view class="dropdown-item" v-for="(item, idx) in noIsbnBindingOptions" :key="idx" @click="selectNoIsbnBinding(item)">{{ item }}</view>
</view>
</view>
</view>
<view class="info-block-divider"></view>
<!-- 开本 -->
<view class="info-inline-row">
<text class="info-inline-label">开本</text>
@ -869,6 +883,7 @@ export default {
noIsbnAuthor: '',
noIsbnPublisher: '',
noIsbnFormat: '',
noIsbnBinding: '',
noIsbnOriginalPrice: '',
noIsbnWordCount: '',
noIsbnIsbn: '',
@ -886,9 +901,13 @@ export default {
noIsbnPublisherOptions: [],
noIsbnPublisherDropdownVisible: false,
noIsbnFormatDropdownVisible: false,
noIsbnBindingDropdownVisible: false,
// ISBN
noIsbnFormatOptions: ['2', '4', '6', '8', '12', '16', '18', '20', '24', '32', '36', '40', '42', '48', '50', '60', '64', '72', '大16', '大32', '其他'],
// ISBN
noIsbnBindingOptions: ['平装', '精装', '特殊装订', '古典装订', '其他'],
// API
noIsbnCategoryData: [],
@ -2074,7 +2093,7 @@ export default {
this.isbn = ''
this.bookName = ''
this.price = ''
this.stock = ''
this.stock = 1
this.author = ''
this.publisher = ''
this.fixPrice = ''
@ -2084,13 +2103,15 @@ export default {
this.noIsbnPhotoList = []
this.noIsbnBookName = ''
this.noIsbnPrice = ''
this.noIsbnStock = ''
this.noIsbnStock = 1
this.noIsbnAuthor = ''
this.noIsbnPublisher = ''
this.noIsbnOriginalPrice = ''
this.noIsbnIsbn = ''
this.noIsbnUnifyIsbn = ''
this.noIsbnPrintTime = ''
this.noIsbnFormat = ''
this.noIsbnBinding = ''
this.noIsbnProductList = []
}
} catch (e) {
@ -2379,6 +2400,11 @@ export default {
this.noIsbnFormatDropdownVisible = false
},
selectNoIsbnBinding(item) {
this.noIsbnBinding = item
this.noIsbnBindingDropdownVisible = false
},
// -
handleLogin() {
if (!this.loginAccount) {