diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index b39bafa..d812a9d 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -2251,6 +2251,7 @@ export default { this.stock = 1 this.printTime = '' this.productList = [] + this.marketData = { onSale: 0, old: 0, new: 0, sold: 0 } // ISBN提交成功 → 自动打开扫码 if (this.currentTab === 'isbn') { @@ -2415,6 +2416,7 @@ export default { this.noIsbnFormat = '' this.noIsbnBinding = '' this.noIsbnProductList = [] + this.noIsbnMarketData = { onSale: 0, old: 0, new: 0, sold: 0 } } catch (e) { uni.hideLoading() console.error('【syncBook】失败:', e) @@ -2672,9 +2674,13 @@ export default { uni.hideLoading() uni.showToast({ title: '入库完成,共 ' + list.length + ' 件', icon: 'success' }) - // 清空待入库列表及波次缓存 + // 清空待入库列表、在售商品列表及统计数据 this.pendingProductList = [] this.pendingCount = 0 + this.productList = [] + this.marketData = { onSale: 0, old: 0, new: 0, sold: 0 } + this.noIsbnProductList = [] + this.noIsbnMarketData = { onSale: 0, old: 0, new: 0, sold: 0 } uni.removeStorageSync('reuseWaveNo') uni.removeStorageSync('reuseWaveId') uni.removeStorageSync('reuseOrderId')