Commit 51e1ec26 by 李伟康

commit 修改录单记录参数

1 parent ffe5edc9
...@@ -149,7 +149,6 @@ export default { ...@@ -149,7 +149,6 @@ export default {
}, },
data () { data () {
return { return {
shopMerchantId: '',
scrollTop: 0, scrollTop: 0,
formObject: [ formObject: [
{ {
...@@ -189,6 +188,9 @@ export default { ...@@ -189,6 +188,9 @@ export default {
watchCustomerInfo () { watchCustomerInfo () {
return this.$store.state.user.customerInfo return this.$store.state.user.customerInfo
}, },
shopMerchantId(){
return uni.$storage.get('userInfo').shopMerchantId
}
}, },
mounted () { mounted () {
if (this.show) this.init() if (this.show) this.init()
...@@ -201,8 +203,6 @@ export default { ...@@ -201,8 +203,6 @@ export default {
else this.search() else this.search()
}, },
search () { search () {
const { shopMerchantId } = uni.$storage.get('userInfo')
this.shopMerchantId = shopMerchantId
if (this.list.length == 0) { if (this.list.length == 0) {
this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
this.isEnd = true this.isEnd = true
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
}, },
async getQuotationList () { async getQuotationList () {
const { shopMerchantId, pageNum, pageSize } = this, const { shopMerchantId, pageNum, pageSize } = this,
goodsName = this.customerInfo.carModel carModel = this.customerInfo.carModel
try { try {
uni.showLoading({ uni.showLoading({
mask: true mask: true
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
merchantId: shopMerchantId, merchantId: shopMerchantId,
pageNum, pageNum,
pageSize, pageSize,
goodsName, carModel,
orderStatus: 3 orderStatus: 3
}); });
uni.hideLoading(); uni.hideLoading();
...@@ -247,12 +247,12 @@ export default { ...@@ -247,12 +247,12 @@ export default {
this.formatList = _list this.formatList = _list
this.flag = true; this.flag = true;
this.total = total; this.total = total;
if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list) if (!carModel && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
} catch (error) { } catch (error) {
uni.hideLoading() uni.hideLoading()
this.flag = true; this.flag = true;
this.isEnd = true this.isEnd = true
if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`) if (!carModel && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
} }
}, },
pageonReachBottom () { pageonReachBottom () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!