fix:doSubmit中stock未定义,改为this.stock
This commit is contained in:
parent
1de5078104
commit
b87aa31880
@ -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 })
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user