|
|
@@ -10,7 +10,7 @@
|
|
|
</div>
|
|
|
</span>
|
|
|
<ul :class="show_kind">
|
|
|
- <li><a class="f14" >全部</a></li>
|
|
|
+ <li><a class="f14" @click="restore('kind')">全部</a></li>
|
|
|
<li v-for="(item, index) in list_kind">
|
|
|
<a v-text="item.ki_name_cn" class="f14" @click="click_kind(item.ki_id, index)"></a>
|
|
|
</li>
|
|
|
@@ -35,7 +35,7 @@
|
|
|
</div>
|
|
|
</span>
|
|
|
<ul :class="show_brand">
|
|
|
- <li><a class="f14" >全部</a></li>
|
|
|
+ <li><a class="f14" @click="restore('brand')">全部</a></li>
|
|
|
<li v-for="(item, index) in list_brand">
|
|
|
<a v-text="item.br_name_cn" class="f14" @click="click_brand(item.br_id, index)"></a>
|
|
|
</li>
|
|
|
@@ -54,7 +54,7 @@
|
|
|
<div class="sl-key f14">货源:</div>
|
|
|
<div class="sl-value">
|
|
|
<ul class="list-inline" >
|
|
|
- <li><a class="f14" >全部</a></li>
|
|
|
+ <li><a class="f14" @click="restore('store')">全部</a></li>
|
|
|
<li>
|
|
|
<div class="f14" style="color: #999;" v-if="!getType(list_store_type,store_type_co)&&!co_click_flag">寄售</div>
|
|
|
<a class="f14" v-if="getType(list_store_type,store_type_co)&&!co_click_flag" @click="click_store_type('CONSIGNMENT')">寄售</a>
|
|
|
@@ -103,10 +103,10 @@
|
|
|
<div class="sl-key f14">仓库:</div>
|
|
|
<div class="sl-value">
|
|
|
<ul class="list-inline" >
|
|
|
- <li><a class="f14">全部</a></li>
|
|
|
+ <li><a class="f14" @click="restore('crname')">全部</a></li>
|
|
|
<li v-for="cr in list_crname_temp">
|
|
|
- <a v-if="cr.cr_name=='RMB'?!rmb_click_flag:!usd_click_flag" v-text="cr.cr_name=='RMB'?'大陆':'香港'" class="f14" @click="click_crname(cr.cr_name)"></a>
|
|
|
- <span v-if="cr.cr_name=='RMB'?rmb_click_flag:usd_click_flag" @click="cancel_crname(cr.cr_name)">
|
|
|
+ <a v-if="cr.cr_name=='RMB'?!crname_click_flag.rmb_click_flag:!crname_click_flag.usd_click_flag" v-text="cr.cr_name=='RMB'?'大陆':'香港'" class="f14" @click="click_crname(cr.cr_name)"></a>
|
|
|
+ <span v-if="cr.cr_name=='RMB'?crname_click_flag.rmb_click_flag:crname_click_flag.usd_click_flag" @click="cancel_crname(cr.cr_name)">
|
|
|
<div class="sl-filter">
|
|
|
<a class="text-num" v-text="cr.cr_name=='RMB'?'大陆':'香港'"></a>
|
|
|
<span><i class="fa fa-close"></i></span>
|
|
|
@@ -120,10 +120,10 @@
|
|
|
<div class="sl-key f14">货币:</div>
|
|
|
<div class="sl-value">
|
|
|
<ul class="list-inline" >
|
|
|
- <li><a class="f14">全部</a></li>
|
|
|
+ <li><a class="f14" @click="restore('crname')">全部</a></li>
|
|
|
<li v-for="cr in list_crname_temp">
|
|
|
- <a v-if="cr.cr_name=='RMB'?!rmb_click_flag:!usd_click_flag" v-text="cr.cr_name=='RMB'?'人民币':'美元'" class="f14" @click="click_crname(cr.cr_name)"></a>
|
|
|
- <span v-if="cr.cr_name=='RMB'?rmb_click_flag:usd_click_flag" @click="cancel_crname(cr.cr_name)">
|
|
|
+ <a v-if="cr.cr_name=='RMB'?!crname_click_flag.rmb_click_flag:!crname_click_flag.usd_click_flag" v-text="cr.cr_name=='RMB'?'人民币':'美元'" class="f14" @click="click_crname(cr.cr_name)"></a>
|
|
|
+ <span v-if="cr.cr_name=='RMB'?crname_click_flag.rmb_click_flag:crname_click_flag.usd_click_flag" @click="cancel_crname(cr.cr_name)">
|
|
|
<div class="sl-filter">
|
|
|
<a class="text-num" v-text="cr.cr_name=='RMB'?'人民币':'美元'"></a>
|
|
|
<span><i class="fa fa-close"></i></span>
|
|
|
@@ -159,8 +159,10 @@
|
|
|
ag_click_flag: false,
|
|
|
di_click_flag: false,
|
|
|
or_click_flag: false,
|
|
|
- rmb_click_flag: false,
|
|
|
- usd_click_flag: false
|
|
|
+ crname_click_flag: {
|
|
|
+ rmb_click_flag: false,
|
|
|
+ usd_click_flag: false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -268,11 +270,12 @@
|
|
|
this.crname_arr.push('RMB-USD')
|
|
|
}
|
|
|
if (name === 'RMB') {
|
|
|
- this.rmb_click_flag = true
|
|
|
+ this.crname_click_flag.rmb_click_flag = true
|
|
|
} else if (name === 'USD') {
|
|
|
- this.usd_click_flag = true
|
|
|
+ this.crname_click_flag.usd_click_flag = true
|
|
|
}
|
|
|
this.$emit('crnameFilterEvent', this.crname_arr)
|
|
|
+ this.$emit('crnameFlagEvent', this.crname_click_flag)
|
|
|
},
|
|
|
cancel_crname: function (name) {
|
|
|
let idx = this.getIndex(this.crname_arr, name)
|
|
|
@@ -281,11 +284,12 @@
|
|
|
this.crname_arr = []
|
|
|
}
|
|
|
if (name === 'RMB') {
|
|
|
- this.rmb_click_flag = false
|
|
|
+ this.crname_click_flag.rmb_click_flag = false
|
|
|
} else if (name === 'USD') {
|
|
|
- this.usd_click_flag = false
|
|
|
+ this.crname_click_flag.usd_click_flag = false
|
|
|
}
|
|
|
this.$emit('crnameFilterEvent', this.crname_arr)
|
|
|
+ this.$emit('crnameFlagEvent', this.crname_click_flag)
|
|
|
},
|
|
|
click_kind_exp: function (id, index) {
|
|
|
let idx = this.getIndex(this.kind_arr, id)
|
|
|
@@ -299,6 +303,33 @@
|
|
|
this.$emit('brandFilterEvent', this.brand_arr)
|
|
|
this.brand_exp_arr.splice(index, index + 1)
|
|
|
},
|
|
|
+ restore: function (name) {
|
|
|
+ if (name === 'kind') {
|
|
|
+ this.list_kind.concat(this.kind_exp_arr)
|
|
|
+ this.kind_exp_arr = []
|
|
|
+ this.kind_arr = []
|
|
|
+ this.$emit('kindFilterEvent', this.kind_arr)
|
|
|
+ } else if (name === 'brand') {
|
|
|
+ this.list_brand.concat(this.brand_exp_arr)
|
|
|
+ this.brand_exp_arr = []
|
|
|
+ this.brand_arr = []
|
|
|
+ this.$emit('brandFilterEvent', this.brand_arr)
|
|
|
+ } else if (name === 'store') {
|
|
|
+ this.list_store_type.concat(this.type_arr)
|
|
|
+ this.type_arr = []
|
|
|
+ this.$emit('typeFilterEvent', this.type_arr)
|
|
|
+ this.co_click_flag = false
|
|
|
+ this.ag_click_flag = false
|
|
|
+ this.di_click_flag = false
|
|
|
+ this.or_click_flag = false
|
|
|
+ } else if (name === 'crname') {
|
|
|
+ this.list_crname.concat(this.crname_arr)
|
|
|
+ this.crname_arr = []
|
|
|
+ this.$emit('crnameFilterEvent', this.crname_arr)
|
|
|
+ this.rmb_click_flag = false
|
|
|
+ this.usd_click_flag = false
|
|
|
+ }
|
|
|
+ },
|
|
|
getIndex: function (arr, obj) {
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
if (arr[i] === obj) {
|