Commit 1b7faac8 by 李伟康

在历史记录页面添加门店订单筛选选项

1 parent 3b8b5a37
......@@ -40,6 +40,19 @@
</view>
显示凭证
</view>
<view
class="form-check flex"
@click="merchantOrder = !merchantOrder"
>
<view :class="['check-box flex',{'checked':merchantOrder}]">
<uni-icons
type="checkmarkempty"
:size="14"
color="#fff"
></uni-icons>
</view>
门店订单
</view>
</view>
</view>
<template v-if="list.length > 0">
......@@ -161,7 +174,8 @@ export default {
customerInfo: {},
focusIndex: -1,
showphoto: false,
formatList: []
formatList: [],
merchantOrder: true, //门店订单
}
},
watch: {
......@@ -179,6 +193,18 @@ export default {
this.scrollTop = 0
}, 100)
},
},
merchantOrder: {
immediate: true,
handler (newval) {
this.pageNum = 1
this.scrollTop = 1000
this.list = []
setTimeout(() => {
this.scrollTop = 0
this.search()
}, 100)
}
}
},
computed: {
......@@ -188,7 +214,7 @@ export default {
watchCustomerInfo () {
return this.$store.state.user.customerInfo
},
shopMerchantId(){
shopMerchantId () {
return uni.$storage.get('userInfo').shopMerchantId
}
},
......@@ -210,19 +236,21 @@ export default {
if (this.pageNum == 1) this.getQuotationList()
},
async getQuotationList () {
const { shopMerchantId, pageNum, pageSize } = this,
const { shopMerchantId, pageNum, pageSize, merchantOrder } = this,
carModel = this.customerInfo.carModel
try {
uni.showLoading({
mask: true
});
let { list, total } = await uni.$api.boutiqueApi.getQuotationList({
merchantId: shopMerchantId,
let params = {
merchantId:shopMerchantId,
pageNum,
pageSize,
carModel,
orderStatus: 3
});
orderStatus: 3,
merchantOrder
}
let { list, total } = await uni.$api.boutiqueApi.getQuotationList(params);
uni.hideLoading();
this.list = [...(pageNum == 1 ? [] : this.list), ...list];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!