Browse Source

bug 修复

lilei 2 years ago
parent
commit
417ecdd272

+ 1 - 0
src/views/salesReturnManagement/receiveCheck/checking.vue

@@ -24,6 +24,7 @@
         <div style="border-top:1px solid #eee;padding-top:10px;">
           <a-button type="primary" :loading="loading" class="button-info" @click="plSetQty(1)">批量设置良品数量</a-button>
           <a-button type="primary" :loading="loading" class="button-error" @click="plSetQty(2)">批量设置返库数量</a-button>
+          <span v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys&&rowSelectionInfo.selectedRowKeys.length">已选{{ rowSelectionInfo.selectedRowKeys.length }}项</span>
           <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品</div>
         </div>
         <!-- 已选配件列表 -->

+ 2 - 2
src/views/salesReturnManagement/receiveCheck/receiving.vue

@@ -24,6 +24,7 @@
         <div style="border-top:1px solid #eee;padding-top:10px;">
           <a-button type="primary" :loading="loading" class="button-info" @click="openModal = true">新增产品</a-button>
           <a-button type="primary" :loading="loading" class="button-error" @click="handlePlss">批量实收</a-button>
+          <span v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys&&rowSelectionInfo.selectedRowKeys.length">已选{{ rowSelectionInfo.selectedRowKeys.length }}项</span>
           <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品</div>
         </div>
         <!-- 已选配件列表 -->
@@ -240,8 +241,7 @@ export default {
           _this.spinning = true
           salesReturnDetailReceiveBatch(snList).then(res => {
             if (res.status == 200) {
-              _this.rowSelectionInfo = null
-              _this.$refs.table.clearTable()
+              _this.$refs.table.clearSelected()
               _this.resetSearchForm(false)
               _this.$message.success(res.message)
             }