chenrui 3 vuotta sitten
vanhempi
commit
91c57fdfc9

+ 1 - 1
src/views/financialManagement/financialCollection/list.vue

@@ -252,7 +252,7 @@ export default {
     },
     // 批量收款
     handleCollection () {
-      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1) {
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
         this.$message.warning('请在列表勾选后再进行批量操作!')
         return
       }

+ 1 - 1
src/views/financialManagement/financialPayment/list.vue

@@ -250,7 +250,7 @@ export default {
     },
     // 批量付款
     handlePayment () {
-      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1) {
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
         this.$message.warning('请在列表勾选后再进行批量操作!')
         return
       }

+ 1 - 1
src/views/inventoryManagement/inventoryChecking/selfDisk.vue

@@ -384,7 +384,7 @@ export default {
       const _this = this
       let params = {}
       if (type == 'batch') { //  批量添加
-        if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows.length == 0) {
+        if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows.length == 0)) {
           this.$message.warning('请选择需要批量添加的选项值后再操作!')
           return
         }

+ 1 - 1
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -332,7 +332,7 @@ export default {
     },
     //  批量更新
     handleupdate () {
-      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1) {
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
         this.$message.warning('请在列表勾选后再进行批量操作!')
         return
       }

+ 1 - 1
src/views/outboundOrderManagement/outboundOrder/list.vue

@@ -294,7 +294,7 @@ export default {
     },
     // 批量出库
     handleOutbounds () {
-      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1) {
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
         this.$message.warning('请在列表勾选后再进行批量操作!')
         return
       }

+ 1 - 1
src/views/purchasingManagement/purchaseOrder/outStockModal.vue

@@ -115,7 +115,7 @@ export default {
     // 保存
     handleSave () {
       const _this = this
-      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1) {
+      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
         this.$message.warning('请在列表勾选后再进行操作!')
         return
       }