|
@@ -2,7 +2,7 @@
|
|
<a-card size="small" :bordered="false" class="productInfoList-wrap">
|
|
<a-card size="small" :bordered="false" class="productInfoList-wrap">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
- <a-form layout="inline" @keyup.enter.native="searchForm">
|
|
|
|
|
|
+ <a-form layout="inline" @keyup.enter.native="searchForm(true)">
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="产品编码">
|
|
<a-form-item label="产品编码">
|
|
@@ -49,7 +49,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
</template>
|
|
</template>
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
- <a-button type="primary" @click="searchForm" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="searchForm(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
|
|
<a @click="advanced=!advanced" style="margin-left: 5px">
|
|
<a @click="advanced=!advanced" style="margin-left: 5px">
|
|
{{ advanced ? '收起' : '展开' }}
|
|
{{ advanced ? '收起' : '展开' }}
|
|
@@ -162,7 +162,7 @@
|
|
<!-- 导入产品 -->
|
|
<!-- 导入产品 -->
|
|
<importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="resetSearchForm" />
|
|
<importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="resetSearchForm" />
|
|
<!-- 自定义报价弹窗 -->
|
|
<!-- 自定义报价弹窗 -->
|
|
- <editPriceModal :openModal="openEditPriceModal" :itemId="itemId" @ok="searchForm" @close="openEditPriceModal=false"></editPriceModal>
|
|
|
|
|
|
+ <editPriceModal :openModal="openEditPriceModal" :itemId="itemId" @ok="searchForm(false)" @close="openEditPriceModal=false"></editPriceModal>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -291,9 +291,9 @@ export default {
|
|
this.$router.push({ name: 'viewProduct', params: { sn: row.productSn } })
|
|
this.$router.push({ name: 'viewProduct', params: { sn: row.productSn } })
|
|
},
|
|
},
|
|
// 查询
|
|
// 查询
|
|
- searchForm () {
|
|
|
|
|
|
+ searchForm (flag) {
|
|
this.$refs.table.clearSelected() // 清空表格选中项
|
|
this.$refs.table.clearSelected() // 清空表格选中项
|
|
- this.$refs.table.refresh(true)
|
|
|
|
|
|
+ this.$refs.table.refresh(flag)
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|