|
@@ -263,22 +263,25 @@ export default {
|
|
|
this.queryByTypeSum(true)
|
|
|
},
|
|
|
handleValidate (type, params) {
|
|
|
- this.spinning = true
|
|
|
- // 校验产品库存是否足够
|
|
|
- shelfReplenishDetailStock(params).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- if (res.data && res.data.length > 0) {
|
|
|
- this.stockList = res.data
|
|
|
- this.validateType = 'confirm'
|
|
|
- this.paramsData = params
|
|
|
- this.openStockModal = true
|
|
|
- } else {
|
|
|
- if (type == 'confirm') { // 确认
|
|
|
- this.confirmFun(params)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.spinning = true
|
|
|
+ // // 校验产品库存是否足够
|
|
|
+ // shelfReplenishDetailStock(params).then(res => {
|
|
|
+ // if (res.status == 200) {
|
|
|
+ // if (res.data && res.data.length > 0) {
|
|
|
+ // this.stockList = res.data
|
|
|
+ // this.validateType = 'confirm'
|
|
|
+ // this.paramsData = params
|
|
|
+ // this.openStockModal = true
|
|
|
+ // } else {
|
|
|
+ // if (type == 'confirm') { // 确认
|
|
|
+ // this.confirmFun(params)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ if (type == 'confirm') { // 确认
|
|
|
+ this.confirmFun(params)
|
|
|
+ }
|
|
|
},
|
|
|
// 提交确认
|
|
|
confirmFun (params) {
|