Commit 75174f85 by zhangxw

筛选参数修改

1 parent 78a33d08
...@@ -62,7 +62,7 @@ Page({ ...@@ -62,7 +62,7 @@ Page({
pageSize: 10, pageSize: 10,
pageNum: currentPage, pageNum: currentPage,
merchantNoList: selectInfo?.yqMerchantId ? [selectInfo?.yqMerchantId] : allServiceIds, merchantNoList: selectInfo?.yqMerchantId ? [selectInfo?.yqMerchantId] : allServiceIds,
staffBusinessType: selectInfo.staffBusinessType staffType: selectInfo.staffBusinessType
} }
if (nothing || isAsk) { if (nothing || isAsk) {
return return
......
...@@ -17,7 +17,7 @@ Component({ ...@@ -17,7 +17,7 @@ Component({
thisPage.setData({ thisPage.setData({
isShowFilterScreen: true isShowFilterScreen: true
}) })
if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 未选择时间默认展示当前月份 if (!this.data.screenFlag) this.setDate() // 默认展示当前月份
this.setViewData() this.setViewData()
} }
} }
...@@ -214,6 +214,7 @@ Component({ ...@@ -214,6 +214,7 @@ Component({
formData.sceneType = sceneList.filter(val => val.active)[0]?.id || '' formData.sceneType = sceneList.filter(val => val.active)[0]?.id || ''
formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid}) formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid})
this.triggerEvent('screenFlag') this.triggerEvent('screenFlag')
this.setData({screenFlag: true})
const thisPage = wx.$router.getPageInstance() const thisPage = wx.$router.getPageInstance()
if (formData?.partnerMerchantIds[0] !== userInfo.subLoginUser.merchantId) { if (formData?.partnerMerchantIds[0] !== userInfo.subLoginUser.merchantId) {
USERAPI.switchSubLoginInfo({ merchantId: formData?.partnerMerchantIds[0] }).then(res => { USERAPI.switchSubLoginInfo({ merchantId: formData?.partnerMerchantIds[0] }).then(res => {
......
...@@ -97,6 +97,7 @@ Component({ ...@@ -97,6 +97,7 @@ Component({
...thisPage.data.screenFormData ...thisPage.data.screenFormData
} }
delete params.shopMerchantNames delete params.shopMerchantNames
delete params.sceneType // 删除场景参数
if (nothing || isAsk) { if (nothing || isAsk) {
return return
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!