|
@@ -199,6 +199,23 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
console.log(obj)
|
|
console.log(obj)
|
|
|
|
+ // 如果批量修改良品数量为0
|
|
|
|
+ const hasError = _this.rowSelectionInfo.selectedRows.filter(item => item.backStockQty > 0)
|
|
|
|
+ if (val == 0 && this.actionType == 1 && hasError.length) {
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '是否将返库数量同样设置为0?',
|
|
|
|
+ centered: true,
|
|
|
|
+ closable: true,
|
|
|
|
+ onOk () {
|
|
|
|
+ _this.plSave(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ _this.plSave(obj)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ plSave (obj) {
|
|
const fun = this.actionType == 1 ? updateBatchGoodQty : updateBatchBackStockQty
|
|
const fun = this.actionType == 1 ? updateBatchGoodQty : updateBatchBackStockQty
|
|
this.spinning = true
|
|
this.spinning = true
|
|
fun(obj).then(res => {
|
|
fun(obj).then(res => {
|