|
@@ -125,7 +125,13 @@ import { status } from "nprogress";
|
|
|
this.tableData = JSON.parse(JSON.stringify(data.chennelStock))
|
|
|
this.chennelStock = JSON.parse(JSON.stringify(data.chennelStock))
|
|
|
this.sourceList = [];
|
|
|
- await this.countSoldNumFun()
|
|
|
+ if(id) {
|
|
|
+ await this.countSoldNumFun()
|
|
|
+ }else {
|
|
|
+ this.stockAllNum = 0
|
|
|
+ // let stockAllNum = 0
|
|
|
+ this.stockAllNum = this.stock.stock
|
|
|
+ }
|
|
|
this.allData = JSON.parse(JSON.stringify(allData))
|
|
|
this.title = title + `(可分配库存:${ this.stockAllNum })`
|
|
|
this.loading = false
|