|
|
@@ -4,7 +4,7 @@
|
|
|
<div class="storeIns">
|
|
|
<div class="sign">选择商家:</div>
|
|
|
<div class="storeInList" v-for="storeIn in store">
|
|
|
- <div class="choose" :class="{'storeIn-active' : storeIn.isSelected, 'storeIn' : !storeIn.isSelected}" @click="addStore(storeIn)">
|
|
|
+ <div class="choose" :class="{'storeIn-active' : storeIn.isSelected, 'storeIn' : !storeIn.isSelected}" @click="store.length==1?'':addStore(storeIn)">
|
|
|
<a class="storeLogo">
|
|
|
<img :src="storeIn.logoUrl || '/images/component/default.png'" :alt="storeIn.storeName" :title="storeIn.storeName">
|
|
|
</a>
|
|
|
@@ -46,20 +46,31 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody class="text-center">
|
|
|
- <tr style="cursor: pointer;" v-for="list in storeList.content">
|
|
|
- <td><a :href="'/store/' + list.storeid + '/' + list.batchCode">{{list.code}}</a></td>
|
|
|
- <td><a :href="'/store/' + list.storeid + '/' + list.batchCode">{{list.produceDate}}</a></td>
|
|
|
- <td><a :href="'/store/' + list.storeid + '/' + list.batchCode">{{list.packaging || '暂无包装方式'}}</a></td>
|
|
|
+ <tr style="cursor: pointer;" v-for="list in storeList.content" @click="goProductDetail(list.storeid, list.batchCode)">
|
|
|
+ <td>
|
|
|
+ <a v-if="list.code">{{list.code}}</a>
|
|
|
+ <a v-if="!list.code">—</a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a v-if="list.produceDate">{{list.produceDate}}</a>
|
|
|
+ <a v-if="!list.produceDate">—</a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a v-if="list.packaging">{{list.packaging}}</a>
|
|
|
+ <a v-if="!list.packaging">—</a>
|
|
|
+ </td>
|
|
|
<td style="text-align: left;padding-left: 25px;">
|
|
|
- <a :href="'/store/' + list.storeid + '/' + list.batchCode">
|
|
|
- <div>
|
|
|
+ <a>
|
|
|
+ <div v-if="list.reserve">
|
|
|
<span>库存:</span>
|
|
|
<span>{{list.reserve}}</span>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div v-if="!list.reserve" style="text-align: center;margin-left: 0;"><span>—</span></div>
|
|
|
+ <div v-if="list.reserve && list.reserve>0">
|
|
|
<span>起拍:</span>
|
|
|
- <span>{{list.minBuyQty}}</span>
|
|
|
+ <span v-if="list.minBuyQty">{{list.minBuyQty}}</span>
|
|
|
</div>
|
|
|
+
|
|
|
<!--<div>-->
|
|
|
<!--<span>倍数:</span>-->
|
|
|
<!--<span>{{list.minPackQty}}</span>-->
|
|
|
@@ -67,14 +78,15 @@
|
|
|
</a>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a :href="'/store/' + list.storeid + '/' + list.batchCode">
|
|
|
+ <a>
|
|
|
<div v-for="price in list.prices">
|
|
|
- <span>{{price.start}}</span>+
|
|
|
+ <span v-if="list.prices">{{price.start}}</span>+
|
|
|
+ <span v-if="!list.prices">—</span>
|
|
|
</div>
|
|
|
</a>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a :href="'/store/' + list.storeid + '/' + list.batchCode">
|
|
|
+ <a>
|
|
|
<div v-show="list.currencyName.indexOf('USD')==-1 || !list.prices">
|
|
|
<span>—</span>
|
|
|
</div>
|
|
|
@@ -84,7 +96,7 @@
|
|
|
</a>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a :href="'/store/' + list.storeid + '/' + list.batchCode">
|
|
|
+ <a>
|
|
|
<div v-show="list.currencyName.indexOf('RMB')==-1 || !list.prices">
|
|
|
<span>—</span>
|
|
|
</div>
|
|
|
@@ -94,13 +106,16 @@
|
|
|
</a>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <a :href="'/store/' + list.storeid + '/' + list.batchCode">
|
|
|
+ <a>
|
|
|
<div v-show="list.b2cMinDelivery">
|
|
|
<span>交期:</span>
|
|
|
<span>{{list.b2cMinDelivery}}</span>
|
|
|
<span v-if="list.b2cMaxDelivery && list.b2cMaxDelivery !== list.b2cMinDelivery">-</span>
|
|
|
<span v-if="list.b2cMaxDelivery && list.b2cMaxDelivery !== list.b2cMinDelivery">{{list.b2cMaxDelivery}}</span>
|
|
|
</div>
|
|
|
+ <div v-if="!list.b2cMinDelivery">
|
|
|
+ <span>—</span>
|
|
|
+ </div>
|
|
|
</a>
|
|
|
</td>
|
|
|
<td>
|
|
|
@@ -216,6 +231,9 @@
|
|
|
this.params.filter.ignoreStore = !this.params.filter.ignoreStore
|
|
|
}
|
|
|
this.$store.dispatch('loadComponentInformation', this.params)
|
|
|
+ },
|
|
|
+ goProductDetail: function (storeid, batchcode) {
|
|
|
+ window.location.href = '/store/' + storeid + '/' + batchcode
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -251,6 +269,8 @@
|
|
|
}
|
|
|
.storeInfo .storeIn-active {
|
|
|
width: 98px;
|
|
|
+ height: 49px;
|
|
|
+ line-height: 49px;
|
|
|
float: left;
|
|
|
border: 1px solid #5078cb;
|
|
|
text-align: center;
|
|
|
@@ -265,6 +285,10 @@
|
|
|
text-align: center;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
+ .storeInList .choose a img{
|
|
|
+ max-width: 95px;
|
|
|
+ max-height: 46px;
|
|
|
+ }
|
|
|
a.storeLogo>img,.storeIn-active a.storeLogo>img {
|
|
|
max-width: 95px;
|
|
|
max-height: 46px;
|