瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
06cd9e2f28
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/numsGoodsShelves/replenishmentManagement/printStickerModal.vue

+ 3 - 1
src/views/numsGoodsShelves/replenishmentManagement/printStickerModal.vue

@@ -125,7 +125,7 @@ export default {
     },
     //  开始打印
     handleSave () {
-      if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows.length < 1)) {
+      if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows && this.rowSelectionInfo.selectedRows.length < 1) {
         this.$message.warning('请至少选择一个产品')
       } else {
         const nowData = this.nowData
@@ -154,7 +154,9 @@ export default {
     isShow (newValue, oldValue) {
       if (!newValue) {
         this.$emit('close')
+        this.rowSelectionInfo = null
         this.$refs.table.clearTable()
+        this.$refs.table.clearSelected()
       } else {
         const _this = this
         this.getDetail()