Skip to content

Commit 688dad3

Browse files
author
puhui999
committed
订单列表:添加配送方式筛选
1 parent 5c7796c commit 688dad3

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/views/mall/trade/order/index.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,17 @@
6464
/>
6565
</el-select>
6666
</el-form-item>
67-
<!-- TODO @puhui999:要不加个 deliveryType 筛选;配送方式;然后如果选了快递,就有【快递公司】筛选;如果选了自提,就有【自提门店】;然后把他们这 3 个,坐在一个 el-form-item 里;
68-
目的是;有的时候,会筛选门店,然后做核销;这个时候,就需要筛选自提门店;
69-
-->
70-
<el-form-item label="快递公司" prop="type">
67+
<el-form-item label="配送方式" prop="deliveryType">
68+
<el-select v-model="queryParams.deliveryType" class="!w-280px" clearable placeholder="全部">
69+
<el-option
70+
v-for="dict in getIntDictOptions(DICT_TYPE.TRADE_DELIVERY_TYPE)"
71+
:key="dict.value"
72+
:label="dict.label"
73+
:value="dict.value"
74+
/>
75+
</el-select>
76+
</el-form-item>
77+
<el-form-item v-if="queryParams.deliveryType === 1" label="快递公司">
7178
<el-select v-model="queryParams.logisticsId" class="!w-280px" clearable placeholder="全部">
7279
<el-option
7380
v-for="item in deliveryExpressList"
@@ -77,7 +84,7 @@
7784
/>
7885
</el-select>
7986
</el-form-item>
80-
<el-form-item label="自提门店" prop="type">
87+
<el-form-item v-if="queryParams.deliveryType === 2" label="自提门店">
8188
<el-select
8289
v-model="queryParams.pickUpStoreId"
8390
class="!w-280px"
@@ -337,11 +344,13 @@ const queryParams = reactive({
337344
userMobile: '',
338345
receiverName: '',
339346
receiverMobile: '',
347+
340348
terminal: '',
341349
type: null,
342350
status: null,
343351
payChannelCode: '',
344352
createTime: [],
353+
deliveryType: null,
345354
spuName: '',
346355
itemCount: '',
347356
pickUpStoreId: [],

0 commit comments

Comments
 (0)