|
@@ -274,19 +274,22 @@ export default {
|
|
|
this.$message.warning('请先选择产品')
|
|
|
return
|
|
|
}
|
|
|
+ const flag = this.rowSelectionInfo.selectedRows.some(con => !con.confirmQty && con.confirmQty != 0)
|
|
|
+ if (flag) {
|
|
|
+ this.$message.warning('调回数量能为空!')
|
|
|
+ return
|
|
|
+ }
|
|
|
const arr = []
|
|
|
this.rowSelectionInfo.selectedRows.forEach((item, index) => {
|
|
|
- if (item.confirmQty) {
|
|
|
- arr.push({
|
|
|
- shelfSn: item.shelfSn,
|
|
|
- shelfPlaceSn: item.shelfPlaceSn,
|
|
|
- shelfPlaceCode: item.shelfPlaceCode,
|
|
|
- productSn: item.productSn,
|
|
|
- productCode: item.productCode,
|
|
|
- productName: item.productName,
|
|
|
- qty: item.confirmQty
|
|
|
- })
|
|
|
- }
|
|
|
+ arr.push({
|
|
|
+ shelfSn: item.shelfSn,
|
|
|
+ shelfPlaceSn: item.shelfPlaceSn,
|
|
|
+ shelfPlaceCode: item.shelfPlaceCode,
|
|
|
+ productSn: item.productSn,
|
|
|
+ productCode: item.productCode,
|
|
|
+ productName: item.productName,
|
|
|
+ qty: item.confirmQty
|
|
|
+ })
|
|
|
})
|
|
|
_this.spinning = true
|
|
|
const params = {
|