|
|
@@ -37,6 +37,12 @@
|
|
|
{{ item.dictLabel }}
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tab-list" style="margin-top: 10px;">
|
|
|
+ <div :class="{ 'tab': true, 'checked': item.checked }" v-for="(item) in deliveryTypeList"
|
|
|
+ :key="item.type" @click="choseDeliveryType(item)">
|
|
|
+ {{ item.name }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="tab-list" style="margin-top: 10px;">
|
|
|
<div :class="{ 'tab': true, 'checked': item.checked }" v-for="(item) in orderByClauseList"
|
|
|
:key="item.orderByClause" @click="changeOrderByClause(item)">
|
|
|
@@ -150,6 +156,29 @@ export default {
|
|
|
goodsName: '',
|
|
|
productAttribute: '',
|
|
|
orderByClause: 'asc',
|
|
|
+ deliveryType:'',
|
|
|
+ deliveryTypeList:[
|
|
|
+ {
|
|
|
+ type: '',
|
|
|
+ checked: true,
|
|
|
+ name: '全部'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 0,
|
|
|
+ checked: false,
|
|
|
+ name: '办公室领取'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 1,
|
|
|
+ checked: false,
|
|
|
+ name: '快递'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 2,
|
|
|
+ checked: false,
|
|
|
+ name: '卷码兑换'
|
|
|
+ },
|
|
|
+ ],
|
|
|
orderByClauseList: [
|
|
|
{
|
|
|
icon: 'el-icon-top',
|
|
|
@@ -232,6 +261,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ choseDeliveryType(item) {
|
|
|
+ this.deliveryTypeList.forEach((element) => {
|
|
|
+ element.checked = false;
|
|
|
+ });
|
|
|
+ item.checked = true;
|
|
|
+ this.deliveryType = item.type;
|
|
|
+ this.getList('goodsNotice');
|
|
|
+ },
|
|
|
choseProductAttributeType(item) {
|
|
|
this.options.forEach((element) => {
|
|
|
element.checked = false;
|
|
|
@@ -261,7 +298,8 @@ export default {
|
|
|
let params = {
|
|
|
name: this.goodsName,
|
|
|
productAttribute: this.productAttribute,
|
|
|
- orderByClause: this.orderByClause
|
|
|
+ orderByClause: this.orderByClause,
|
|
|
+ deliveryType: this.deliveryType
|
|
|
}
|
|
|
this.loading = true;
|
|
|
integralList(params).then(response => {
|