chenrui 1 ano atrás
pai
commit
02921c5d49

+ 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
       }