|
@@ -40,7 +40,7 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="8" :sm="24">
|
|
|
- <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chooseBillModal-refresh">查询</a-button>
|
|
|
+ <a-button style="margin-bottom: 18px;" type="primary" @click="searchForm" :disabled="disabled" id="chooseBillModal-refresh">查询</a-button>
|
|
|
<a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="chooseBillModal-reset">重置</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -193,6 +193,15 @@ export default {
|
|
|
this.$message.info('请选择单据')
|
|
|
}
|
|
|
},
|
|
|
+ searchForm () {
|
|
|
+ this.clearTable()
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ },
|
|
|
+ clearTable () {
|
|
|
+ this.$refs.table.clearSelected() // 清空表格选中项
|
|
|
+ this.selectedRowKeys = []
|
|
|
+ this.selectedRows = []
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.$refs.rangeDate.resetDate()
|
|
@@ -204,7 +213,7 @@ export default {
|
|
|
this.queryParam.bizNo = ''
|
|
|
this.queryParam.bizType = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
- this.$refs.table.clearSelected()
|
|
|
+ this.clearTable()
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -218,9 +227,7 @@ export default {
|
|
|
if (!newValue) {
|
|
|
_this.$emit('close')
|
|
|
// 重置
|
|
|
- _this.$refs.table.clearSelected() // 清空表格选中项
|
|
|
- _this.selectedRowKeys = []
|
|
|
- _this.selectedRows = []
|
|
|
+ _this.clearTable()
|
|
|
_this.resetSearchForm()
|
|
|
} else {
|
|
|
setTimeout(() => {
|