|
@@ -13,6 +13,7 @@
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<a-form-model
|
|
<a-form-model
|
|
id="rebateBinding-form"
|
|
id="rebateBinding-form"
|
|
|
|
+ v-show="!isTeyue"
|
|
ref="ruleForm"
|
|
ref="ruleForm"
|
|
class="form-model-con"
|
|
class="form-model-con"
|
|
layout="inline"
|
|
layout="inline"
|
|
@@ -29,7 +30,7 @@
|
|
<ProductType placeholder="请选择产品分类" @change="changeProductType" v-model="productType"></ProductType>
|
|
<ProductType placeholder="请选择产品分类" @change="changeProductType" v-model="productType"></ProductType>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="6" :sm="24" v-if="!isTeyue">
|
|
|
|
|
|
+ <!-- <a-col :md="6" :sm="24" v-if="!isTeyue">
|
|
<a-form-model-item label="价格级别">
|
|
<a-form-model-item label="价格级别">
|
|
<v-select code="PRICE_LEVEL" :notIn="['SPECIAL']" v-model="queryParam.priceLevel" allowClear placeholder="请选择价格级别"></v-select>
|
|
<v-select code="PRICE_LEVEL" :notIn="['SPECIAL']" v-model="queryParam.priceLevel" allowClear placeholder="请选择价格级别"></v-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -38,8 +39,8 @@
|
|
<a-form-model-item label="经销商">
|
|
<a-form-model-item label="经销商">
|
|
<a-input v-model.trim="queryParam.dealerName" allowClear placeholder="请输入经销商名称"/>
|
|
<a-input v-model.trim="queryParam.dealerName" allowClear placeholder="请输入经销商名称"/>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
- </a-col>
|
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
|
|
+ </a-col> -->
|
|
|
|
+ <a-col :md="6" :sm="24" v-show="false">
|
|
<a-form-model-item label="差价归属方">
|
|
<a-form-model-item label="差价归属方">
|
|
<v-select code="REBATE_PARENT_TYPE" ref="rpType" v-model="queryParam.rebateParentType" allowClear placeholder="请选择差价归属方"></v-select>
|
|
<v-select code="REBATE_PARENT_TYPE" ref="rpType" v-model="queryParam.rebateParentType" allowClear placeholder="请选择差价归属方"></v-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -109,18 +110,25 @@ export default {
|
|
this.$router.push({ name: 'merchantInfoManagementList', query: { closeLastOldTab: true } })
|
|
this.$router.push({ name: 'merchantInfoManagementList', query: { closeLastOldTab: true } })
|
|
},
|
|
},
|
|
loadList (list) {
|
|
loadList (list) {
|
|
|
|
+ console.log(list.length == 0)
|
|
this.showBtns = this.isTeyue ? list.length == 0 : true
|
|
this.showBtns = this.isTeyue ? list.length == 0 : true
|
|
},
|
|
},
|
|
// 查询
|
|
// 查询
|
|
handleSearch () {
|
|
handleSearch () {
|
|
this.queryParam.dealerSn = this.$route.params.sn
|
|
this.queryParam.dealerSn = this.$route.params.sn
|
|
- this.$refs.categoryList.pageInit(this.queryParam)
|
|
|
|
|
|
+ const params = {}
|
|
|
|
+ for (const k in this.queryParam) {
|
|
|
|
+ if (this.queryParam[k]) {
|
|
|
|
+ params[k] = this.queryParam[k]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.$refs.categoryList.pageInit(params)
|
|
},
|
|
},
|
|
// 产品分类 change
|
|
// 产品分类 change
|
|
changeProductType (val, opt) {
|
|
changeProductType (val, opt) {
|
|
- this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
|
|
|
|
- this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
|
|
- this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
|
|
|
|
+ this.queryParam.productTypeSn1 = val[0] ? val[0] : undefined
|
|
|
|
+ this.queryParam.productTypeSn2 = val[1] ? val[1] : undefined
|
|
|
|
+ this.queryParam.productTypeSn3 = val[2] ? val[2] : undefined
|
|
},
|
|
},
|
|
// 重置表单
|
|
// 重置表单
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
@@ -170,7 +178,7 @@ export default {
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
- this.tableHeight = window.innerHeight - tableSearchH - (!this.showBtns ? 140 : 205)
|
|
|
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - (!this.showBtns ? 50 : 205)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|