Commit 1126e085 by 张立顺

fix

1 parent 7af1e439
...@@ -343,12 +343,12 @@ Component({ ...@@ -343,12 +343,12 @@ Component({
e.value = [e.uuid] e.value = [e.uuid]
arr.push(e) arr.push(e)
}) })
if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => { // if (!(userInfo?.isSuper || userInfo.loginRole == 3)) arr.map(e => {
if (type == 0) { // if (type == 0) {
e.active = false // e.active = false
if (e.uuid == userInfo.uuid) e.active = true // if (e.uuid == userInfo.uuid) e.active = true
} // }
}) // })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
...@@ -446,7 +446,7 @@ Component({ ...@@ -446,7 +446,7 @@ Component({
} }
}) })
}) })
if ((userInfo?.isSuper || userInfo.loginRole == 3))['selectedYqMerchantList', 'selectedMerchantList'].map(e => { if ((userInfo?.isSuper || userInfo.loginRole == 3)) ['selectedYqMerchantList', 'selectedMerchantList'].map(e => {
delete obj[e] delete obj[e]
}) })
if (isReset) obj = {} if (isReset) obj = {}
......
...@@ -339,7 +339,7 @@ Page({ ...@@ -339,7 +339,7 @@ Page({
merchantRange, merchantRange,
}); });
}) })
.catch((err) => {}); .catch((err) => { });
}, },
changePicker(e, value) { changePicker(e, value) {
let { let {
...@@ -492,6 +492,7 @@ Page({ ...@@ -492,6 +492,7 @@ Page({
if (!value) { if (!value) {
startDate = data.format("yyyy-MM-dd"); startDate = data.format("yyyy-MM-dd");
endDate = data.format("yyyy-MM-dd"); endDate = data.format("yyyy-MM-dd");
} else { } else {
// 选择 本月 // 选择 本月
const year = data.getFullYear(); const year = data.getFullYear();
...@@ -506,6 +507,7 @@ Page({ ...@@ -506,6 +507,7 @@ Page({
this.setData({ this.setData({
startDate, startDate,
endDate, endDate,
["tableBtn[1].text"]: '本月'
}); });
this.setTab(tableBtn, value); this.setTab(tableBtn, value);
this.getMerchantCouponList(); this.getMerchantCouponList();
...@@ -638,7 +640,7 @@ Page({ ...@@ -638,7 +640,7 @@ Page({
}); });
} }
}) })
.catch((err) => {}); .catch((err) => { });
}, },
getMerchantCouponList() { getMerchantCouponList() {
...@@ -776,7 +778,7 @@ Page({ ...@@ -776,7 +778,7 @@ Page({
}); });
} }
}) })
.catch((err) => {}); .catch((err) => { });
}, },
getUserStat(userInfo) { getUserStat(userInfo) {
api api
...@@ -806,7 +808,7 @@ Page({ ...@@ -806,7 +808,7 @@ Page({
}); });
} }
}) })
.catch((err) => {}); .catch((err) => { });
}, },
totalListSet() { totalListSet() {
let { let {
...@@ -922,7 +924,7 @@ Page({ ...@@ -922,7 +924,7 @@ Page({
// if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false; // if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false;
// wx.__HAS_NOREPORT_MODAL = true; // wx.__HAS_NOREPORT_MODAL = true;
if (wx.__HAS_NOTLOGIN_MODAL || userInfo?.isSuper || userInfo?.loginRole == 3) return false if (wx.__HAS_NOTLOGIN_MODAL || userInfo?.isSuper || userInfo?.loginRole == 3) return false
this.addModalToQueue('开单预警', '您已超过三天未开单', '确定', false, 1, () => {}) this.addModalToQueue('开单预警', '您已超过三天未开单', '确定', false, 1, () => { })
// this.showNextModal() // this.showNextModal()
// wx.showModal({ // wx.showModal({
// title: "开单预警", // title: "开单预警",
...@@ -1214,7 +1216,7 @@ Page({ ...@@ -1214,7 +1216,7 @@ Page({
.setTaskDialog({ .setTaskDialog({
id: data[0]?.id, id: data[0]?.id,
}) })
.then(() => {}); .then(() => { });
} }
} else { } else {
wx.$util.showToast(message); wx.$util.showToast(message);
...@@ -1280,7 +1282,7 @@ Page({ ...@@ -1280,7 +1282,7 @@ Page({
url: "pages.tabDateIndex", url: "pages.tabDateIndex",
recordId: 8, recordId: 8,
icon: "booking_management", icon: "booking_management",
}, ]; },];
// 判断是超管再加 这个菜单 // 判断是超管再加 这个菜单
// if (userInfo.isSuper) { // if (userInfo.isSuper) {
// menu.push({ // menu.push({
...@@ -1467,14 +1469,14 @@ Page({ ...@@ -1467,14 +1469,14 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
}); });
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!