소스 검색

修改bug

chenrui 1 년 전
부모
커밋
02921c5d49
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      src/views/purchasingManagement/purchaseReturn/queryPart.vue

+ 3 - 4
src/views/purchasingManagement/purchaseReturn/queryPart.vue

@@ -47,8 +47,7 @@
       class="sTable"
       ref="chooseTable"
       size="small"
-      :rowKey="(record,i) => record.sparePartsDetailSn"
-      rowKeyName="sparePartsDetailSn"
+      :rowKey="(record,i) => i"
       :row-selection="{ columnWidth: 40,getCheckboxProps: record => ({ props: { disabled: record.currentStockQty == 0 || record.isCheckedFlag} }) }"
       @rowSelection="rowSelectionFun"
       :columns="columns"
@@ -225,8 +224,8 @@ export default {
     // 批量添加
     handleBatchAdd () {
       console.log(this.rowSelectionInfo)
-      const row = this.rowSelectionInfo&&this.rowSelectionInfo.selectedRowKeys
-      if (!row || row.length==0) {
+      const row = this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys
+      if (!row || row.length == 0) {
         this.$message.warning('请先选择要添加的产品!')
         return
       }