Commit 08862720 by 李伟康

- 调整录单页面的查询逻辑

1 parent 9384dd47
......@@ -175,7 +175,7 @@ export default {
focusIndex: -1,
showphoto: false,
formatList: [],
merchantOrder: true, //门店订单
merchantOrder: false, //门店订单
}
},
watch: {
......@@ -189,6 +189,8 @@ export default {
this.pageNum = 1
this.scrollTop = 1000
this.list = []
this.customerInfo = {}
if (this.channelType == 1) this.merchantOrder = true
setTimeout(() => {
this.scrollTop = 0
}, 100)
......@@ -216,7 +218,11 @@ export default {
},
shopMerchantId () {
return uni.$storage.get('userInfo').shopMerchantId
}
},
channelType () {
const { channelType } = uni.$storage.get('userInfo')
return channelType
},
},
mounted () {
if (this.show) this.init()
......@@ -224,9 +230,10 @@ export default {
methods: {
init () {
this.customerInfo = this.watchCustomerInfo
if (!this.customerInfo.carModel && !this.isByd) this.$refs.carBrandListVisible.autoSelect()
else this.search()
// this.customerInfo = this.watchCustomerInfo
// if (!this.customerInfo.carModel && !this.isByd) this.$refs.carBrandListVisible.autoSelect()
// else
this.search()
},
search () {
if (this.list.length == 0) {
......@@ -243,10 +250,10 @@ export default {
mask: true
});
let params = {
merchantId:shopMerchantId,
merchantId: shopMerchantId,
pageNum,
pageSize,
carModel,
carModel:carModel || '',
orderStatus: 3,
merchantOrder
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!