|
@@ -306,7 +306,9 @@ export default {
|
|
|
allCheckChange(val) {
|
|
|
if (val) {
|
|
|
this.goodsList.forEach((row, i) => {
|
|
|
- this.$refs.multipleTable.toggleRowSelection(row, true);
|
|
|
+ if (row.goodsStatus != 0) {
|
|
|
+ this.$refs.multipleTable.toggleRowSelection(row, true);
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
this.$refs.multipleTable.clearSelection();
|
|
@@ -341,7 +343,8 @@ export default {
|
|
|
|
|
|
if (
|
|
|
this.multipleSelection.length > 0 &&
|
|
|
- this.multipleSelection.length == this.goodsList.length
|
|
|
+ this.multipleSelection.length ==
|
|
|
+ this.goodsList.filter((item) => item.goodsStatus != 0).length
|
|
|
) {
|
|
|
this.checked = true;
|
|
|
} else {
|