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