Commit aa7351a1 by 张立顺

fix bug

1 parent 605a7456
...@@ -278,7 +278,6 @@ Component({ ...@@ -278,7 +278,6 @@ Component({
if (data) { if (data) {
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), subLoginUser: data.subLoginUser }) wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), subLoginUser: data.subLoginUser })
wx.$util.hideLoading() wx.$util.hideLoading()
// wx.$storage.rm('dateStaffPop')
this.eventCallback(item, userInfo?.sceneType, false, data) this.eventCallback(item, userInfo?.sceneType, false, data)
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
......
...@@ -972,68 +972,6 @@ Component({ ...@@ -972,68 +972,6 @@ Component({
} }
}); });
}, },
// checkStaffOrderStatus() {
// let userInfo = wx.$util.getUserInfo();
// let dateStaffPop = wx.$storage.get("dateStaffPop");
// let nowDate = new Date().format("yyyy-MM-dd");
// let {
// sceneType,
// default4SStoreInfo: { merchantId },
// } = userInfo;
// let dayBoolean = dateStaffPop?.date && nowDate == dateStaffPop?.date;
// let flag = dateStaffPop?.[sceneType]?.[merchantId];
// console.log(flag, "flag", dateStaffPop?.[sceneType], dateStaffPop?.[sceneType]?.[merchantId]);
// // let num = 0
// // 当天已查询过
// if (dayBoolean && flag) {
// // num = dateStaffPop?.num || 0
// // num = num + 1
// // num = 1
// return;
// }
//
// orderStaffValid({
// sceneType: userInfo.sceneType,
// })
// .then((result) => {
// console.log(result, "orderStaffValid");
// if (result.data) {
// if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false;
// wx.__HAS_NOREPORT_MODAL = true;
// wx.showModal({
// title: "开单预警",
// content: "您已超过三天未开单",
// showCancel: false,
// // cancelText: '取消', // '取消
// cancelColor: "#292D33",
// confirmText: "确定",
// confirmColor: "#347BFF",
// success(res) {
// // if (res.confirm) {
// // wx.$router.go('tabWorkOrder.staffDaily', {
// // reportDate: hasNeedReport.date
// // })
// // }
// },
// complete: () => {
// // 这个延迟的目的是为了避免短时间内重复弹出
// // 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
// setTimeout(() => {
// wx.__HAS_NOREPORT_MODAL = false;
// }, 2000);
// },
// });
// wx.$storage.set("dateStaffPop", {
// date: new Date().format("yyyy-MM-dd"),
// 0: {
// [userInfo.default4SStoreInfo.merchantId]: true,
// ...dateStaffPop[0],
// },
// });
// }
// })
// .catch((err) => {});
// },
getStaffTargetTask() { getStaffTargetTask() {
return new Promise((resolve) => { return new Promise((resolve) => {
let userInfo = wx.$util.getUserInfo(); let userInfo = wx.$util.getUserInfo();
......
...@@ -716,9 +716,10 @@ Page({ ...@@ -716,9 +716,10 @@ Page({
// && e.status != 1 待跟进现在也能撤销 // && e.status != 1 待跟进现在也能撤销
let orderType = let orderType =
(userInfo.userType == 1 || userInfo.userType == 2) && (userInfo.userType == 1 || userInfo.userType == 2) &&
e.status != 9 && e.status != 9 &&e.status != 14 &&
![1, 3, 4].includes(e.selectPayType) && ![1, 3, 4].includes(e.selectPayType)
e.approveStatus != 0 // &&
// e.approveStatus != 0
// let orderType = userInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1 // let orderType = userInfo.userType !== 1 && e.status != 9 && e.status != 1 && e.selectPayType != 3 && e.selectPayType != 1
// console.log(userType); // console.log(userType);
// console.log(orderType); // console.log(orderType);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!