fix:doSubmit中stock未定义,改为this.stock

This commit is contained in:
ShenQiLun 2026-06-26 13:05:43 +08:00
parent 1de5078104
commit b87aa31880

View File

@ -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 })
}