Commit 08862720 by 李伟康

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

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