diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 29651dd..b39bafa 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -2214,13 +2214,13 @@ export default { var entry = { productId: productId, price: salePrice, - stock: stock, + stock: this.stock ?? '1', warehouseData: warehouseData } this.pendingProductList.push(entry) this.pendingCount = this.pendingProductList.length // 创建/追加波次 - await this.appendWaveItem(warehouseData, productId, stock, salePrice) + await this.appendWaveItem(warehouseData, productId, this.stock ?? '1', salePrice) if (this.pendingCount >= 200) { uni.showToast({ title: '本波次已满200件,请先提交入库', icon: 'none', duration: 2000 }) }