fix:确认上传/提交入库后清空在售商品列表及统计数据

This commit is contained in:
ShenQiLun 2026-06-26 13:29:34 +08:00
parent b87aa31880
commit ba5f311a61

View File

@ -2251,6 +2251,7 @@ export default {
this.stock = 1 this.stock = 1
this.printTime = '' this.printTime = ''
this.productList = [] this.productList = []
this.marketData = { onSale: 0, old: 0, new: 0, sold: 0 }
// ISBN // ISBN
if (this.currentTab === 'isbn') { if (this.currentTab === 'isbn') {
@ -2415,6 +2416,7 @@ export default {
this.noIsbnFormat = '' this.noIsbnFormat = ''
this.noIsbnBinding = '' this.noIsbnBinding = ''
this.noIsbnProductList = [] this.noIsbnProductList = []
this.noIsbnMarketData = { onSale: 0, old: 0, new: 0, sold: 0 }
} catch (e) { } catch (e) {
uni.hideLoading() uni.hideLoading()
console.error('【syncBook】失败:', e) console.error('【syncBook】失败:', e)
@ -2672,9 +2674,13 @@ export default {
uni.hideLoading() uni.hideLoading()
uni.showToast({ title: '入库完成,共 ' + list.length + ' 件', icon: 'success' }) uni.showToast({ title: '入库完成,共 ' + list.length + ' 件', icon: 'success' })
// //
this.pendingProductList = [] this.pendingProductList = []
this.pendingCount = 0 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('reuseWaveNo')
uni.removeStorageSync('reuseWaveId') uni.removeStorageSync('reuseWaveId')
uni.removeStorageSync('reuseOrderId') uni.removeStorageSync('reuseOrderId')