|
@@ -15,8 +15,7 @@
|
|
|
<a-form-model
|
|
|
ref="ruleForm"
|
|
|
class="form-model-con"
|
|
|
- layout="inline"
|
|
|
- @keyup.enter.native="$refs.table.refresh(true)" >
|
|
|
+ layout="inline">
|
|
|
<a-row :gutter="5" type="flex" justify="center">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="产品编码">
|
|
@@ -191,7 +190,8 @@ export default {
|
|
|
this.$message.info('产品抵扣金额不能为空')
|
|
|
return
|
|
|
}
|
|
|
- const newList = this.rowSelectionInfo.selectedRows.map(item => {
|
|
|
+ let chooseList =JSON.parse(JSON.stringify(this.rowSelectionInfo.selectedRows))
|
|
|
+ const newList = chooseList.map(item => {
|
|
|
item.subsidyAmount = this.subsidyAmount
|
|
|
delete item.id
|
|
|
return item
|
|
@@ -210,8 +210,8 @@ export default {
|
|
|
this.subsidyAmount = undefined
|
|
|
this.productType = []
|
|
|
this.category = []
|
|
|
- this.rowSelectionInfo = null
|
|
|
- this.$refs.table.clearSelected()
|
|
|
+ // this.rowSelectionInfo = null
|
|
|
+ // this.$refs.table.clearSelected()
|
|
|
this.$refs.table.refresh()
|
|
|
}
|
|
|
},
|