|
@@ -3,7 +3,7 @@
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
<!-- 搜索条件 -->
|
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
|
- <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
+ <a-form layout="inline" @keyup.enter.native="searchForm">
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="产品名称">
|
|
@@ -43,7 +43,7 @@
|
|
|
</a-col>
|
|
|
</template>
|
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
|
|
|
+ <a-button type="primary" @click="searchForm" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="productPricingList-reset">重置</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 5px"
|
|
@@ -267,6 +267,10 @@ export default {
|
|
|
this.$refs.table.clearSelected() // 清空表格选中项
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
+ searchForm () {
|
|
|
+ this.$refs.table.clearSelected() // 清空表格选中项
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
+ },
|
|
|
// 审核
|
|
|
handleAudit (row) {
|
|
|
this.itemSn = row.productSn
|
|
@@ -311,8 +315,7 @@ export default {
|
|
|
hanldeOk (obj) {
|
|
|
productPriceInsertImport(obj).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.$refs.table.clearSelected() // 清空表格选中项
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.resetSearchForm()
|
|
|
}
|
|
|
})
|
|
|
},
|