fix:确认上传/提交入库后清空在售商品列表及统计数据
This commit is contained in:
parent
b87aa31880
commit
ba5f311a61
@ -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')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user