Commit bd2e6b56 by wangzhihui

独立版本

1 parent 7e48dc93
Showing 75 changed files with 359 additions and 1129 deletions
......@@ -41,12 +41,7 @@
"iconPath": "images/tab-order.png",
"selectedIconPath": "images/tab-order-active.png"
},
{
"pagePath": "pages/tabDateIndex/pages/tabDateIndex",
"text": "预约管理",
"iconPath": "images/tab-date.png",
"selectedIconPath": "images/tab-date-active.png"
},
{
"pagePath": "pages/materails/index",
"text": "营销素材",
......
......@@ -20,18 +20,18 @@
<view class="nickname">{{userInfo.nickname}}</view>
</view> -->
</view>
<view class="point-box" wx:if="{{isForbidden}}">
<!-- <view class="point-box" wx:if="{{isForbidden}}">
<view class="change_btn" bind:tap="toPoint">我的积分</view>
<image class="icon_card" bindtap="jumpAccount" src="{{IMG_URL}}bank-card.png" mode="" />
</view>
</view> -->
<!-- <view class="change_btn" bindtap="changeAccount">切换账号</view> -->
</view>
<view class="user-info">
<!-- <view class="user-info">
<view class="user-text">
<view class="item">所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view> -->
</view>
<block>
<view class="set_box">
......@@ -47,7 +47,7 @@
</view>
</view>
</block>
<view class="collegeCon">
<!-- <view class="collegeCon">
<view class="set_box" wx:if="{{ showCollege }}">
<view class="set_item" bindtap="goCollegeScene">
<view class="title">工资绩效(员工绩效)</view>
......@@ -55,7 +55,7 @@
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
</view>
</view> -->
<view class="logout-box">
<view class="logout text-center" bindtap="changeAccount">切换账号</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
......
/* integration/pages/bankAccount/detail/detail.wxss */
\ No newline at end of file
/* integration/pages/bankAccount/list/list.wxss */
\ No newline at end of file
/* integration/pages/point/index/index.wxss */
\ No newline at end of file
/* integration/pages/point/record/record.wxss */
\ No newline at end of file
/* integration/pages/point/success/success.wxss */
\ No newline at end of file
/* integration/pages/point/toCash/toCash.wxss */
\ No newline at end of file
/* packageCrowdFunding/pages/activityPage/activityPay/activityPay.wxss */
\ No newline at end of file
/* packageCrowdFunding/pages/activityPage/balanceNote/balanceNote.wxss */
\ No newline at end of file
/* packageCrowdFunding/pages/activityPage/newOrder/newOrder.wxss */
\ No newline at end of file
......@@ -35,11 +35,11 @@ Page({
iconPath: "/images/tab-order.png",
selectedIconPath: "/images/tab-order-active.png",
},
{
name: "权益提单",
iconPath: "/images/tab-equity.png",
selectedIconPath: "/images/tab-equity-active.png",
},
// {
// name: "权益提单",
// iconPath: "/images/tab-equity.png",
// selectedIconPath: "/images/tab-equity-active.png",
// },
{
name: "营销素材",
iconPath: "/images/tab-material.png",
......
......@@ -31,9 +31,9 @@
<!-- wx:if="{{ tabIndex == 0}}" wx:if="{{ tabIndex == 1}}" -->
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" staffUuid="{{staffUuid}}" />
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" navBarHeight="{{ navBarHeight }}" waitInputCount="{{waitInputCount}}" mode="{{ mode }}" showScreen="{{showScreen}}" show="{{tabIndex == 0}}"></home>
<equity-list id="page-2" outTabIndex="{{ tabIndex }}" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 2?'':'hide' }}" />
<makert-material id="page-3" navBarHeight="{{ navBarHeight }}" class="pagedetail {{tabIndex == 3?'':'hide'}}"></makert-material>
<tab-mine showCollege="{{ enableBusinessSchool }}" id="page-4" class="pagedetail {{ tabIndex == 4?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
<!-- <equity-list id="page-2" outTabIndex="{{ tabIndex }}" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 2?'':'hide' }}" /> -->
<makert-material id="page-2" navBarHeight="{{ navBarHeight }}" class="pagedetail {{tabIndex == 2?'':'hide'}}"></makert-material>
<tab-mine showCollege="{{ enableBusinessSchool }}" id="page-3" class="pagedetail {{ tabIndex == 3?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block>
</view>
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0 }}">
......
/* packageEquity/pages/aiCheck/chat/chat.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/defense/defense.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/detail/detail.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/redundance/redundance.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/result/result.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/scene/scene.wxss */
\ No newline at end of file
/* packageEquity/pages/aiCheck/start/start.wxss */
\ No newline at end of file
/* packageEquity/pages/aiExcercise/ai/ai.wxss */
\ No newline at end of file
/* packageEquity/pages/aiExcercise/detail/detail.wxss */
\ No newline at end of file
/* packageEquity/pages/aiExcercise/list/list.wxss */
\ No newline at end of file
/* packageEquity/pages/aiExcercise/result/result.wxss */
\ No newline at end of file
/* packageEquity/pages/aiInspection/aiInspection.wxss */
\ No newline at end of file
/* packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxss */
\ No newline at end of file
/* packageEquity/pages/aiInspectionReception/aiInspectionReception.wxss */
\ No newline at end of file
/* packageEquity/pages/beforeCreate/beforeCreate.wxss */
\ No newline at end of file
/* packageEquity/pages/carEquity/previewList/previewList.wxss */
\ No newline at end of file
/* packageEquity/pages/carQuotation/CarQuotationDetail/CarQuotationDetail.wxss */
\ No newline at end of file
/* packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.wxss */
\ No newline at end of file
/* packageEquity/pages/carQuotation/reception/reception.wxss */
\ No newline at end of file
/* packageEquity/pages/carQuotation/schemeConfirmation/schemeConfirmation.wxss */
\ No newline at end of file
/* packageEquity/pages/carQuotation/signature/signature.wxss */
\ No newline at end of file
/* packageEquity/pages/clueDetail/clueDetail.wxss */
\ No newline at end of file
/* packageEquity/pages/clueList/clueList.wxss */
\ No newline at end of file
/* packageEquity/pages/collegeScene/collegeScene.wxss */
\ No newline at end of file
/* packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi.wxss */
\ No newline at end of file
/* packageEquity/pages/createDeafeatOrderBefore/createDeafeatOrderBefore.wxss */
\ No newline at end of file
/* packageEquity/pages/deliveryTarget/deliveryTarget.wxss */
\ No newline at end of file
/* packageEquity/pages/employeeInspection/employeeInspection.wxss */
\ No newline at end of file
/* packageEquity/pages/equityQualityOrderList/equityQualityOrderList.wxss */
\ No newline at end of file
......@@ -374,22 +374,22 @@ Component({
menuList,
mode
} = this.data;
if (
isStaff &&
menuList.every((item) => item.menuText != "战败下单" && mode)
) {
menuList.push({
menuText: "战败下单",
icon: "deafeat_order",
// path: "packageEquity.createDeafeatOrder",
path: "packageEquity.createDeafeatOrderBefore",
sortVal: 3
});
}
if (menuList.some((item) => item.menuText == "战败下单" && mode == 0)) {
menuList = menuList.filter((item) => item.menuText != "战败下单");
}
console.log('menuList', mode, menuList,);
// if (
// isStaff &&
// menuList.every((item) => item.menuText != "战败下单" && mode)
// ) {
// menuList.push({
// menuText: "战败下单",
// icon: "deafeat_order",
// // path: "packageEquity.createDeafeatOrder",
// path: "packageEquity.createDeafeatOrderBefore",
// sortVal: 3
// });
// }
// if (menuList.some((item) => item.menuText == "战败下单" && mode == 0)) {
// menuList = menuList.filter((item) => item.menuText != "战败下单");
// }
// console.log('menuList', mode, menuList,);
// 将menuList排序
menuList.sort((a, b) => a.sortVal - b.sortVal)
this.setData({
......@@ -463,35 +463,35 @@ Component({
sortVal: 2
});
}
if (
isStaff &&
menuList.every((item) => item.menuText != "战败下单" && mode)
) {
menuList.push({
menuText: "战败下单",
icon: "deafeat_order",
path: "packageEquity.createDeafeatOrder",
path: "packageEquity.createDeafeatOrderBefore",
sortVal: 3
});
}
if ((userInfo.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != "BI报表")) {
menuList.unshift({
menuText: "BI报表",
path: "tabOperating.index",
recordId: 11,
icon: "business_data",
sortVal: 11
})
}
if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) {
menuList.unshift({
menuText: "积分审批",
path: "pages.pointsReview",
icon: "points_review",
sortVal: 12
})
}
// if (
// isStaff &&
// menuList.every((item) => item.menuText != "战败下单" && mode)
// ) {
// menuList.push({
// menuText: "战败下单",
// icon: "deafeat_order",
// path: "packageEquity.createDeafeatOrder",
// path: "packageEquity.createDeafeatOrderBefore",
// sortVal: 3
// });
// }
// if ((userInfo.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != "BI报表")) {
// menuList.unshift({
// menuText: "BI报表",
// path: "tabOperating.index",
// recordId: 11,
// icon: "business_data",
// sortVal: 11
// })
// }
// if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) {
// menuList.unshift({
// menuText: "积分审批",
// path: "pages.pointsReview",
// icon: "points_review",
// sortVal: 12
// })
// }
// if (
// userInfo.isSuper &&
// menuList.every((item) => item.menuText != "质检管理")
......@@ -516,57 +516,57 @@ Component({
});
}
// 驻店负责人
if (
app.globalData.isStaff &&
userInfo?.loginRoleOnSelectMerchant == 4 &&
menuList.every((item) => item.menuText != "交车目标")
) {
menuList.push({
menuText: "交车目标",
path: "packageEquity.deliveryTarget",
icon: "delivery_target",
sortVal: 9
});
}
if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != "培训资料")) {
menuList.push({
menuText: "培训资料",
icon: "peixun_icon",
path: "packageEquity.trainingMaterials",
sortVal: 7
});
}
if (!app.globalData.isStaff || userInfo?.loginRoleOnSelectMerchant != 4) {
let index = menuList?.findIndex((val) => val.menuText == "交车目标");
index > -1 && menuList.splice(index, 1);
}
// if (
// app.globalData.isStaff &&
// userInfo?.loginRoleOnSelectMerchant == 4 &&
// menuList.every((item) => item.menuText != "交车目标")
// ) {
// menuList.push({
// menuText: "交车目标",
// path: "packageEquity.deliveryTarget",
// icon: "delivery_target",
// sortVal: 9
// });
// }
// if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != "培训资料")) {
// menuList.push({
// menuText: "培训资料",
// icon: "peixun_icon",
// path: "packageEquity.trainingMaterials",
// sortVal: 7
// });
// }
// if (!app.globalData.isStaff || userInfo?.loginRoleOnSelectMerchant != 4) {
// let index = menuList?.findIndex((val) => val.menuText == "交车目标");
// index > -1 && menuList.splice(index, 1);
// }
// 督导和销售
if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menuList.every((item) => item.menuText != '工作日报')) {
menuList.push({
menuText: "工作日报",
path: "tabWorkOrder.supervisorDaily",
icon: "supervisorDaily",
})
}
if (
(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5) &&
menuList.every((item) => item.menuText != "驻店管理")
) {
menuList.push({
menuText: "驻店管理",
path: "tabWorkOrder.residentManage",
recordId: 13,
icon: "residentManage"
});
}
// if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menuList.every((item) => item.menuText != '工作日报')) {
// menuList.push({
// menuText: "工作日报",
// path: "tabWorkOrder.supervisorDaily",
// icon: "supervisorDaily",
// })
// }
// if (
// (userInfo?.isSuper ||
// userInfo?.loginRole == 3 ||
// userInfo.loginRole == 5) &&
// menuList.every((item) => item.menuText != "驻店管理")
// ) {
// menuList.push({
// menuText: "驻店管理",
// path: "tabWorkOrder.residentManage",
// recordId: 13,
// icon: "residentManage"
// });
// }
this.checkIsPadOrNot();
this.getData();
// 隐藏待办事项模块
// if (isStaff) this.getStaffRemindList();
this.getTotal(this.data.dataActive);
let eventArr = [this.getYqStoreConfig(), this.getInspectionBadgeCode(), this.getBusiness(), this.getStoreList()]
let eventArr = [ this.getInspectionBadgeCode()]
if (isStaff) eventArr.push(this.getStaffTargetTask())
Promise.all(eventArr).then(() => {
this.menuListRest(); // 解决融合和非融合互相切换导致战败按钮问题
......@@ -1039,28 +1039,29 @@ Component({
return wx.$router.go(item.path, {
id: taskId,
});
} else {
if (item.menuText === "培训资料") {
let params = {
merchantId: userInfo?.default4SStoreInfo?.merchantId,
staffUuid: userInfo?.uuid,
scene: 0,
taskId: 5,
};
commonApi.shutDownTaskApi(params);
}
}
else {
// if (item.menuText === "培训资料") {
// let params = {
// merchantId: userInfo?.default4SStoreInfo?.merchantId,
// staffUuid: userInfo?.uuid,
// scene: 0,
// taskId: 5,
// };
// commonApi.shutDownTaskApi(params);
// }
// console.log(merchantBrand.findIndex((i) => ["鸿蒙智行"].includes(i.name)) == -1);
// debugger
if (item.menuText == '战败下单' && merchantBrand.findIndex((i) => ["鸿蒙智行"].includes(i.name)) == -1) {
// if (item.menuText == '战败下单' && merchantBrand.findIndex((i) => ["鸿蒙智行"].includes(i.name)) == -1) {
item.path = 'packageEquity.createDeafeatOrder'
}
if (item.menuText == '战败下单') {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return false;
}
// item.path = 'packageEquity.createDeafeatOrder'
// }
// if (item.menuText == '战败下单') {
// // 校验是否填写昨日日报
// let staffCheck = await checkDailyReport(true);
// if (staffCheck) return false;
// }
return wx.$router.go(item.path, {
scene: 0,
params: item.params || {},
......
......@@ -102,10 +102,9 @@
</block>
</view> -->
</view>
<view class="receive-list" wx:if="{{storeRangeList.length || userInfo.loginRole== 3 || userInfo.loginRole== 5}}">
<!-- <view class="receive-list" wx:if="{{storeRangeList.length || userInfo.loginRole== 3 || userInfo.loginRole== 5}}">
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view>
<!-- <text class="title">接待记录</text> -->
<text class="name text-hide">{{searchForm.merchantNames.length > 1 ? '部分门店' : searchForm.merchantNames.length ? filter.filterMerchantName(searchForm.merchantNames) : !userInfo.isSuper && userInfo.loginRole != 3 ? userInfo.default4SStoreInfo.merchantName : '全部门店'}}</text>
</view>
<view bindtap="showScreenPop">
......@@ -162,7 +161,7 @@
</block>
<view class="seize-box"></view>
</view>
</view>
</view> -->
</scroll-view>
</view>
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
\ No newline at end of file
/* packageEquity/pages/receptionDetail/receptionDetail.wxss */
\ No newline at end of file
/* packageEquity/pages/receptionRecords/receptionRecords.wxss */
\ No newline at end of file
/* packageEquity/pages/residentTarget/residentTarget.wxss */
\ No newline at end of file
/* packageEquity/pages/trainingMaterials/pages/playVideo/index.wxss */
\ No newline at end of file
/* packageEquity/pages/trainingMaterials/trainingMaterials.wxss */
\ No newline at end of file
/* pages/log/log.wxss */
\ No newline at end of file
/* pages/pointsReview/pointsReview.wxss */
\ No newline at end of file
/* pages/tabDateIndex/pages/tabDateIndex.wxss */
\ No newline at end of file
......@@ -17,13 +17,12 @@
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="point-box" wx:if="{{isForbidden}}">
<!-- <view class="point-box" wx:if="{{isForbidden}}">
<view class="change_btn" bind:tap="toPoint">我的积分</view>
<image class="icon_card" bindtap="jumpAccount" src="{{IMG_URL}}bank-card.png" mode="" />
</view>
<!-- <view class="change_btn" bindtap="changeAccount">切换账号</view> -->
</view> -->
</view>
<view class="user-info">
<!-- <view class="user-info">
<view class="user-text">
<view class="item">
所属园区店:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
......@@ -43,57 +42,51 @@
</view>
</view>
</view>
</view>
</view> -->
</view>
<view class="set_box">
<view class="set_item " bindtap="showWork" wx:if="{{isForbidden}}">
<view class="title">工位设置
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
<!-- <view class="set_item " bindtap="showWork" wx:if="{{isForbidden}}">
<view class="title">工位设置
</view>
<!-- font-size: var(--fontSize32); -->
<view class="set_tips" wx:if="{{workCount>0}}"><text style="color: #333333; font-weight: 500;">{{workCount}}</text> 个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
</view> -->
<view class="set_item " bindtap="showMerchantPop" wx:if="{{isForbidden}}">
<view class="title">录单设置
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置录单必填项</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="changeScene">
<view class="title">场景切换
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goReservationCouponPage" wx:if="{{isForbidden}}">
<!-- <view class="set_item " bindtap="goReservationCouponPage" wx:if="{{isForbidden}}">
<view class="title">领券预约
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置接待电话</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goTechnicianSetupPage" wx:if="{{isForbidden}}">
</view> -->
<!-- <view class="set_item " bindtap="goTechnicianSetupPage" wx:if="{{isForbidden}}">
<view class="title">技师设置
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置园区店技师</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goConstructSetupPage" wx:if="{{isForbidden}}">
</view> -->
<!-- <view class="set_item " bindtap="goConstructSetupPage" wx:if="{{isForbidden}}">
<view class="title">完成施工
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置施工完成上传图片</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
</view> -->
<view class="set_item " bindtap="goVersionPage">
<view class="title">更新日志
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="../../images/right.png" mode="" />
......
......@@ -202,10 +202,10 @@
<image src="{{ IMG_URL }}upgrade/scancode_verification02.png" />
新增工单
</view>
<view class="btn text-center" bindtap="scan">
<!-- <view class="btn text-center" bindtap="scan">
<image src="{{ IMG_URL }}upgrade/create_newworkorder01.png" />
扫码核销
</view>
</view> -->
</view>
</block>
<block wx:if="{{ !userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && !showIcon1 }}">
......
/* pages/tabWorkOrder/pages/index/index.wxss */
\ No newline at end of file
/* pages/wxLogin/wxLogin.wxss */
\ No newline at end of file
/* subvehicleConversion/pages/activityPage/order/order.wxss */
\ No newline at end of file
/* subvehicleConversion/pages/activityPage/visitor/visitor.wxss */
\ No newline at end of file
/* tabDate/pages/detail/detail.wxss */
\ No newline at end of file
......@@ -26,12 +26,8 @@ Page({
navBarHeight: 0,
delayShow: false,
showRemark: false,
methodUpdateInfo: {
value: ''
},
isStaff: false,
showOrderpop: false,
waitInputCount: 0,
shopSideSelectPopup: false,
flag: true,
dateObj: {
......@@ -45,66 +41,8 @@ Page({
background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
todoList: [],
stodoList: [],
todos: {
1: '日报填写提醒',
2: '今日尚未开单',
3: '工牌处于离线状态',
4: '客户跟进提醒',
5: '培训提醒',
6: '资料查看提醒',
7: '上班打卡',
8: '下班打卡'
},
selectType: 1,
styleHight: 'auto',
ispopUp: true,
isPad: false,
isWait: false //今日待办
},
// 查询员工待办事项列表
getStaffRemindList() {
let userInfo = wx.$util.getUserInfo()
let params = {
merchantId: userInfo?.shopMerchantId,
staffUuid: userInfo?.uuid,
scene: 1
}
commonApi.getStaffRemindList(params).then(result => {
this.setData({
todoList: result.data || []
})
})
},
closeRemind(e) {
let userInfo = wx.$util.getUserInfo(),
taskId = e.currentTarget.dataset.id
let params = {
merchantId: userInfo?.shopMerchantId,
staffUuid: userInfo?.uuid,
scene: 1,
taskId
}
commonApi.shutDownTaskApi(params).then(result => {
if (result.data) {
this.getStaffRemindList()
wx.showToast({
title: '关闭成功',
icon: 'success'
})
// if (taskId == 5) {
// //培训提醒
// return wx.$router.go("packageEquity.trainingMaterials");
// }
// if (taskId == 6) {
// // 资料查看提醒
// return wx.switchTab({
// url: '/pages/materails/index',
// })
// }
}
})
isPad: false
},
checkStaffOrderStatus() {
// 开单预警弹框
......@@ -163,50 +101,6 @@ Page({
})
})
},
goto(e) {
let url,
id = e.currentTarget.dataset.id
switch (id) {
case 1:
//日报填写提醒
let currentDate = new Date()
// 获取上一天的日期
let previousDate = new Date(currentDate)
previousDate.setDate(currentDate.getDate() - 1)
// toISOString 方法会丢失时区 导致与北京时间差八小时
let hour = previousDate.getHours() + 8
previousDate.setHours(hour)
// 格式化日期为"yyyy-mm-dd"
let formattedDate = previousDate.toISOString().split('T')[0]
wx.$router.go('tabWorkOrder.upgradeStaffDaily', {
// reportDate: hasNeedReport.date
reportDate: formattedDate
})
break
case 2:
//开单提醒
wx.$router.go('tabWorkOrder.createOrder')
break
case 4:
//预约客户提醒
wx.$router.go('tabDate.apprManage')
break
}
},
packupList() {
if (this.data.ispopUp) {
this.setData({
stodoList: this.data.todoList.slice(0, 2),
ispopUp: false
})
} else {
this.setData({
styleHight: 'auto',
ispopUp: true
})
}
},
changeSwiper(e) {
this.setData({
changeSelectIndex: e.detail.current
......@@ -238,62 +132,7 @@ Page({
orderCreateType: 'additionRecordOrder'
})
},
remarkConfirm(e) {
let { methodUpdateInfo } = this.data
let { detail: filmTimes } = e
methodUpdateInfo.filmTimes = filmTimes
api
.updateCouponDayReport(methodUpdateInfo)
.then(result => {
if (result.code == 0) {
methodUpdateInfo.value = ''
this.setData({
methodUpdateInfo
})
this.getMerchantCouponList()
} else {
wx.showToast({
title: '修改失败',
icon: 'error'
})
}
})
.catch(err => {
console.log(err)
})
},
// 切换过滤筛选个人产值
changeStaticData(e) {
let { index } = e.currentTarget.dataset
this.setData({
changeSelectIndex: index
})
},
changeTableData(e) {
let { startDate, maxDate, isYqdSuper } = this.data
let { merchantId, filmTimes, merchantName } = e.currentTarget.dataset.item
// 不是管理员不开启这个权限
if (!isYqdSuper) return
if (startDate != maxDate) {
return wx.showToast({
title: '只能修改当天数据',
icon: 'none'
})
}
let methodUpdateInfo = {
merchantId,
merchantName,
filmTimes: filmTimes,
startDate: maxDate,
endDate: maxDate
}
this.setData({
showRemark: true,
methodUpdateInfo
})
},
navbarReady(e) {
let navBarHeight = e.detail.height
this.setData({
......@@ -432,26 +271,10 @@ Page({
})
}
if (item.name == '营销素材') {
let params = {
merchantId: userInfo?.default4SStoreInfo?.merchantId,
staffUuid: userInfo?.uuid,
scene: 1,
taskId: 6
}
commonApi.shutDownTaskApi(params)
return wx.switchTab({
url: item.url
})
}
if (item.name == '培训资料') {
let params = {
merchantId: userInfo?.default4SStoreInfo?.merchantId,
staffUuid: userInfo?.uuid,
scene: 1,
taskId: 5
}
commonApi.shutDownTaskApi(params)
}
if (item.name == '生意助手') {
wx.navigateToMiniProgram({
appId: 'wx2c28337db96364d2',
......@@ -554,209 +377,10 @@ Page({
selectType: type
})
},
changeDate(e) {
let { name } = e.currentTarget.dataset
let data = new Date(),
value = name == 'today' ? 0 : 1,
startDate,
endDate
// 选择 今日
if (!value) {
startDate = data.format('yyyy-MM-dd')
endDate = data.format('yyyy-MM-dd')
} else {
// 选择 本月
const year = data.getFullYear()
const month = data.getMonth()
startDate = new Date(year, month, 1).format('yyyy-MM-dd')
endDate = new Date(year, month + 1, 0).format('yyyy-MM-dd')
}
let { tableBtn } = this.data
this.setData({
startDate,
endDate,
['tableBtn[1].text']: '本月'
})
this.setTab(tableBtn, value)
this.restPageNum()
},
// 切换日历
tapCalendar() {
console.log(this.data.whiteArrow)
this.setData({
whiteArrow: !this.data.whiteArrow
})
},
monthSelect(e) {
let { date } = e.detail
let { label, date: selectDate } = date
this.setData({
['dateObj.label']: label + '份',
['dateObj.dataMonth']: selectDate
})
let { merchantRange } = this.data
this.getOutputValue({
merchantRange
})
},
rangeSelect(e) {
let { tableBtn } = this.data
let {
date: { start, end }
} = e.detail
this.setData({
startDate: start,
endDate: end
})
let startStr = start.replace(/-/g, '.')
let endStr = end.replace(/-/g, '.')
let str = `${startStr.substring(2, startStr.length)}-${endStr.substring(
2,
endStr.length
)}`
tableBtn[1].text = str
this.setTab(tableBtn, 1)
this.restPageNum()
},
setTime() {
let _this = this
time = setTimeout(() => {
_this.getWaitOrder()
}, 10 * 1000)
},
// 10s轮询一次待补录
getWaitOrder() {
let { isStaff } = this.data
isStaff &&
api
.waitinputorder()
.then(result => {
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => { })
},
setTab(tableBtn, index) {
console.log(index)
tableBtn.map(i => (i.active = false))
tableBtn[index].active = true
this.setData({
tableBtn
})
},
changeTableSort(e) {
let { index } = e.currentTarget.dataset
console.log(index)
let { tableSort, tableObj } = this.data
if (tableSort == index) {
tableObj[index].sort = !tableObj[index].sort
} else {
tableObj[index].sort = true
}
this.setData({
tableSort: index,
tableObj
})
this.sortTable(tableObj)
},
restPageNum() {
this.setData({
pageNum: 1
})
this.getMerchantCouponList()
},
scrollonReachBottom() {
console.log('scrollonReachBottom')
let { pages, pageNum } = this.data
// 判断当前页是否是末页
if (pages == pageNum) return wx.$util.showToast('列表已到底')
this.setData({
pageNum: pageNum + 1
})
this.getMerchantCouponList()
},
sortTable(tableObj) {
let { tableSort, table } = this.data
let { key, sort } = tableObj[tableSort]
const objectArraySort = keyName => {
return (objectN, objectM) => {
const valueN = objectN[keyName]
const valueM = objectM[keyName]
if (valueN > valueM) return sort ? 1 : -1
else if (valueN < valueM) return sort ? -1 : 1
else return 0
}
}
table.sort(objectArraySort(key, sort))
this.setData({
table
})
},
getMerchantCouponList() {
let {
orderByTypeEnum,
tableSort,
tableObj,
startDate,
endDate,
totalTableSum,
tableWidth,
table,
pageNum
} = this.data
let target = tableObj[tableSort].sort
let orderByType = orderByTypeEnum[target][tableSort]
api
.getMerchantCouponList({
orderByType,
startDate,
endDate,
pageSize: 999999,
pageNum
})
.then(res => {
let { code, message, data } = res
// let table = [];
if (code == 0) {
table =
pageNum == 1
? data?.page?.list || []
: [...table, ...(data?.page?.list || [])]
let sumWidth = 0
totalTableSum.forEach((element, index) => {
element.total = data[element.name] || 0
let sumList = ['orderMoneyTotalSum', 'customerUnitMoneySum']
if (sumList.includes(element.name)) {
let length = element.total?.toString().length || 0
let labelWidth = length > 5 ? length * 20 : 118
tableObj[index].width = labelWidth + 'rpx'
sumWidth = sumWidth + labelWidth
}
})
// 处理列表宽度问题
tableWidth = 118 * 5 + 232 + 30 + sumWidth
this.setData({
tableFlag: true,
table,
totalTableSum,
tableWidth,
tableObj,
pages: data?.page?.pages
})
} else {
this.showToast(message)
}
})
},
checkShowOrderPop(options) {
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
if (userInfo?.subLoginUser?.merchantId == options.merchantId) {
......@@ -767,71 +391,6 @@ Page({
}
}
},
getOutputValue(yqdInfo) {
let { dateObj, userInfo } = this.data
let { subIndex, merchantRange } = yqdInfo
// yqMerchantId 不是全部就必要要带过去
// 1-超管 2-商户管理员 3-区域运营 4-驻店人员
const yqMerchantId = merchantRange[subIndex]?.merchantId || ''
const merchantId = userInfo?.isSuper ? '' : userInfo?.shopMerchantId
const loginRole = userInfo?.loginRole
this.setData({
loginRole
})
if (!loginRole) return false //没有不用展示就是没有
let params = {
dataMonth: dateObj.dataMonth,
yqMerchantId,
merchantId
}
api
.goodsOrderOutputValueBelong(params)
.then(result => {
let { code, data } = result
if (code == 0) {
let rateValue = NP.divide(
data?.totalOutputValue || 0,
data?.totalTargetOutputValue || 0
)
rateValue = NP.times(rateValue, 100)
rateValue = NP.round(rateValue, 2)
console.log(rateValue, 'rateValue')
if (data.areaSupervisionList && data.areaSupervisionList.length) {
data.areaSupervisionList.forEach(item => {
let rateValue = NP.divide(
item?.outputValue || 0,
item?.targetOutputValue || 0
)
rateValue = NP.times(rateValue, 100)
rateValue = NP.round(rateValue, 2)
item.rateValue = rateValue
// 百分比
item.rateValuePercent = rateValue + '%'
})
}
if (data.outoutValueList && data.outoutValueList.length) {
data.outoutValueList.forEach(item => {
let rateValue = NP.divide(
item?.outputValue || 0,
item?.targetOutputValue || 0
)
rateValue = NP.times(rateValue, 100)
rateValue = NP.round(rateValue, 2)
item.rateValue = rateValue
item.rateValuePercent = rateValue + '%'
})
}
this.setData({
outputValueObj: {
...data,
rateValue,
rateValuePercent: rateValue ? rateValue + '%' : '0%'
}
})
}
})
.catch(err => { })
},
getUserStat(userInfo) {
api
.userStat({
......@@ -915,11 +474,8 @@ Page({
getYQInfo(userInfo).then(result => {
wx.$util.hideLoading()
this.totalListSet()
this.getMerchantCouponList()
this.initTime()
this.getUserStat(userInfo)
this.getOutputValue(result)
if (this.data.isWait) this.getStaffRemindList()
this.setData({
...result
})
......@@ -1047,43 +603,43 @@ Page({
yqMerchantId
})
//是否配置园区店面档案互通 Y / N
if (data) {
const culeIndex = menu.findIndex(e => e.name == '客户线索')
if (data.customerExchangeFlag == 'Y') {
if (culeIndex == -1)
menu.push({
name: '客户线索',
url: 'packageEquity.clueList',
recordId: 11,
icon: 'customer_clue',
tipsNum: 0,
noCheckdailyReport: true
})
this.getCustomerClueRemind()
}
if (data.customerExchangeFlag == 'N' && culeIndex != -1)
menu.splice(culeIndex, 1)
}
// if (data) {
// const culeIndex = menu.findIndex(e => e.name == '客户线索')
// if (data.customerExchangeFlag == 'Y') {
// if (culeIndex == -1)
// menu.push({
// name: '客户线索',
// url: 'packageEquity.clueList',
// recordId: 11,
// icon: 'customer_clue',
// tipsNum: 0,
// noCheckdailyReport: true
// })
// this.getCustomerClueRemind()
// }
// if (data.customerExchangeFlag == 'N' && culeIndex != -1)
// menu.splice(culeIndex, 1)
// }
this.setData({
menu
})
},
/**客户线索新增客户提醒 */
async getCustomerClueRemind() {
const { sceneType, shopMerchantId: merchantId } = wx.$util.getUserInfo(),
{ menu } = this.data,
{ data, code } = await commonApi.getCustomerClueRemind({
sceneType,
merchantId: [merchantId]
})
if (code == 0) {
const index = menu.findIndex(e => e.name == '客户线索')
this.setData({
[`menu[${index}].tipsNum`]: data
})
}
},
// async getCustomerClueRemind() {
// const { sceneType, shopMerchantId: merchantId } = wx.$util.getUserInfo(),
// { menu } = this.data,
// { data, code } = await commonApi.getCustomerClueRemind({
// sceneType,
// merchantId: [merchantId]
// })
// if (code == 0) {
// const index = menu.findIndex(e => e.name == '客户线索')
// this.setData({
// [`menu[${index}].tipsNum`]: data
// })
// }
// },
checkIsPadOrNot() {
wx.getRendererUserAgent({
......@@ -1201,106 +757,106 @@ Page({
const isNoStaff = userInfo?.loginRole != 4 && userInfo?.loginRole != null
// 不是员工类型
if (isNoStaff) {
menu = [
{
name: '预约管理',
url: 'pages.tabDateIndex',
recordId: 8,
icon: 'booking_management'
}
]
}
// if (isNoStaff) {
// menu = [
// {
// name: '预约管理',
// url: 'pages.tabDateIndex',
// recordId: 8,
// icon: 'booking_management'
// }
// ]
// }
//超管、督导驻店日报、BI报表、生意助手
if (userInfo?.loginRole === 3 || userInfo?.loginRole === 5 || userInfo?.isSuper) {
menu = []
}
if (
(app.globalData.isStaff ||
userInfo?.isSuper ||
userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
menu.every(item => item.name != '驻店日报')
) {
menu.push({
name: '驻店日报',
url: 'tabWorkOrder.upgradeStaffDaily',
recordId: 13,
icon: 'staffreport',
noCheckdailyReport: true
})
}
if (
(userInfo?.isSuper || userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
menu.every(item => item.name != 'BI报表')
) {
menu.push({
name: 'BI报表',
url: 'tabOperating.index',
recordId: 11,
icon: 'business_data'
})
}
// if (
// (app.globalData.isStaff ||
// userInfo?.isSuper ||
// userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
// menu.every(item => item.name != '驻店日报')
// ) {
// menu.push({
// name: '驻店日报',
// url: 'tabWorkOrder.upgradeStaffDaily',
// recordId: 13,
// icon: 'staffreport',
// noCheckdailyReport: true
// })
// }
// if (
// (userInfo?.isSuper || userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
// menu.every(item => item.name != 'BI报表')
// ) {
// menu.push({
// name: 'BI报表',
// url: 'tabOperating.index',
// recordId: 11,
// icon: 'business_data'
// })
// }
//区域督导和超管角色
if (
(userInfo?.isSuper || userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
menu.every(item => item.name != '生意助手')
) {
menu.push({
name: '生意助手',
type: 'mini',
recordId: 12,
icon: 'boutique-syzs'
})
}
if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menu.every((item) => item.name != '积分审批')) {
menu.push({
name: '积分审批',
url: 'pages.pointsReview',
icon: 'points_review'
})
}
// if (
// (userInfo?.isSuper || userInfo?.loginRole === 3 || userInfo?.loginRole === 5) &&
// menu.every(item => item.name != '生意助手')
// ) {
// menu.push({
// name: '生意助手',
// type: 'mini',
// recordId: 12,
// icon: 'boutique-syzs'
// })
// }
// if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menu.every((item) => item.name != '积分审批')) {
// menu.push({
// name: '积分审批',
// url: 'pages.pointsReview',
// icon: 'points_review'
// })
// }
// 督导和销售
if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menu.every((item) => item.name != '工作日报')) {
menu.push({
name: "工作日报",
url: "tabWorkOrder.supervisorDaily",
icon: "supervisorDaily",
})
}
if (checklist.includes(userInfo?.accountName)) {
menu = menu.filter(e => e.name != '预约管理')
}
// if ((userInfo?.loginRole == 3 || userInfo?.loginRole == 5) && menu.every((item) => item.name != '工作日报')) {
// menu.push({
// name: "工作日报",
// url: "tabWorkOrder.supervisorDaily",
// icon: "supervisorDaily",
// })
// }
// if (checklist.includes(userInfo?.accountName)) {
// menu = menu.filter(e => e.name != '预约管理')
// }
// 新加培训资料
if (newMenu.every(item => item.name != '培训资料')) {
newMenu.push({
name: '培训资料',
url: 'packageEquity.trainingMaterials',
recordId: 14,
icon: 'peixun_icon',
noCheckdailyReport: true
})
}
if (userInfo?.isSuper && menu.every(item => item.name != '工资绩效')) {
newMenu.push({
name: '工资绩效',
icon: 'businessschoo',
path: ''
})
}
if (
(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5) &&
menu.every((item) => item.name != "驻店管理")
) {
menu.push({
name: "驻店管理",
url: "tabWorkOrder.residentManage",
recordId: 13,
icon: "residentManage",
noCheckdailyReport: true,
});
}
// if (newMenu.every(item => item.name != '培训资料')) {
// newMenu.push({
// name: '培训资料',
// url: 'packageEquity.trainingMaterials',
// recordId: 14,
// icon: 'peixun_icon',
// noCheckdailyReport: true
// })
// }
// if (userInfo?.isSuper && menu.every(item => item.name != '工资绩效')) {
// newMenu.push({
// name: '工资绩效',
// icon: 'businessschoo',
// path: ''
// })
// }
// if (
// (userInfo?.isSuper ||
// userInfo?.loginRole == 3 ||
// userInfo.loginRole == 5) &&
// menu.every((item) => item.name != "驻店管理")
// ) {
// menu.push({
// name: "驻店管理",
// url: "tabWorkOrder.residentManage",
// recordId: 13,
// icon: "residentManage",
// noCheckdailyReport: true,
// });
// }
this.setData({
menu,
isNoStaff,
......@@ -1354,9 +910,6 @@ Page({
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5
)
},
() => {
if (this.data.isWait) this.getStaffRemindList()
}
)
......@@ -1412,8 +965,7 @@ Page({
}
}
}
// 如果是员工 开启订单补录轮询
this.getWaitOrder()
if (userInfo) {
this.initData(userInfo)
......
......@@ -3,7 +3,6 @@
"usingComponents": {
"order-switchPopup": "/components/orderSwitchPopup/orderSwitchPopup",
"side-select-popup": "/components/SideSelectPopup/SideSelectPopup",
"CalendarMonthSingle": "/components/CalendarMonthSingle/CalendarMonth",
"van-progress": "@vant/weapp/progress/index",
"store-picker": "/components/storePicker/storePicker",
"recording-order-popup": "/tabIndex/components/recordingOrderPopup/recordingOrderPopup",
......
......@@ -82,28 +82,7 @@
<view class="dots">
<view wx:for="{{ 3 }}" wx:key="item" wx:for-index="idx" class="dot {{ changeSelectIndex==idx?'active':'' }}"></view>
</view>
</view>
<block wx:if="{{ isWait&&todoList.length>0 }}">
<view class="todo-list">
<view class="title">今日待办·{{todoList.length}}</view>
<view class="todo-items">
<view class="todo-item" wx:for="{{ ispopUp?todoList:stodoList }}" wx:for-index="idx" wx:key="idx">
<view class="todo-item-title">
<image src="{{ IMG_URL}}{{item.taskType=='1'?'warn':'task' }}.png" />
<text>{{todos[item.taskId]}}</text>
</view>
<view class="todo-item-info">{{item.content }}</view>
<view class="todo-item-btn" wx:if="{{ item.taskId==2 }}" bindtap="goto" data-id="{{ item.taskId }}">去开单</view>
<view class="todo-item-btn" wx:elif="{{ item.taskId==4 }}" data-id="{{ item.taskId }}" bindtap="goto">去处理</view>
<view class="todo-item-btn" wx:elif="{{ item.taskId==1 }}" data-id="{{ item.taskId }}" bindtap="goto">去填写</view>
<view class="todo-item-btn" wx:else bindtap="closeRemind" data-id="{{ item.taskId }}">关闭提醒</view>
</view>
</view>
<view class="pack-up {{ !ispopUp?'pack-up-active':'' }}" wx:if="{{ todoList.length>2 }}" bindtap="packupList">
<image src="{{ IMG_URL }}pack-up.png" />
</view>
</view>
</block>
</view>
<block wx:if="{{ !isNoStaff }}">
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
......@@ -141,264 +120,9 @@
</block>
</div>
</block>
<!-- <view class="top_box">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="value"><text style="font-size: var(--fontSize28);margin-right: var(--fontSize4);">¥</text>{{userStat[item.valueObj]['totalOrderMoney'] || 0}}</view>
<view class="tips_box">
<text>{{item.tipsLabel}}</text>
<text class="num_text">{{userStat[item.valueObj]['totalUpgrade'] || 0}}</text>
</view>
</view>
</view> -->
<!-- <view class="main"> -->
<!-- <view class="StatisticsCon">
<view class="totalCon">
<view class="item">
<view class="label">个人产值</view>
<veiw class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">
<text class="unit">¥ </text>
{{userStat[changeBtnData[changeSelectIndex].valueObj].totalOrderMoney||0}}
</veiw>
<veiw class="number" wx:else>
<text class="unit">¥ </text>
{{userStat[changeBtnData[changeSelectIndex].valueFn].totalOrderMoney||0}}
</veiw>
</view>
<view class="item">
<view class="label">转化率</view>
<veiw class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">{{userStat[changeBtnData[changeSelectIndex].valueObj].upgradeRate||0}}%</veiw>
<veiw class="number" wx:else>{{userStat[changeBtnData[changeSelectIndex].valueFn].upgradeRate||0}}%</veiw>
</view>
</view>
<view class="customStatistic">
<veiw class="customItem" wx:for="{{ totalList }}" data-item="{{item}}" bindtap="navTabPage" wx:key="index">
<veiw class="label">
<view class="icon">
<image src="{{IMG_URL}}staticIcon/{{item.icon}}.png" mode="" binderror="" bindload=""></image>
</view>
<view class="name_label">{{item.name}}</view>
</veiw>
<view class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<view>{{userStat[changeBtnData[changeSelectIndex].valueObj][item.itemName]||0}}</view>
</view>
<view class="number" wx:else>
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<text>{{userStat[changeBtnData[changeSelectIndex].valueFn][item.itemName]||0}}</text>
</view>
</veiw>
</view>
</view> -->
<!-- <block wx:if="{{ !isNoStaff }}">
<view class="conTitle utils isNoStaff">展业工具<text class="conTitle_tips">太阳膜产品请使用车膜下单及战败下单</text></view>
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{IMG_URL}}upgrade/{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{item.hot}}">热</view>
<view class="hot_icon" wx:if="{{item.tipsNum}}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{item.noRead}}"></view>
</view>
</block>
</div>
</block> -->
<!-- <block wx:if="{{ isNoStaff }}">
<view class="conTitle utils">展业工具</view>
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{IMG_URL}}upgrade/{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{item.tipsNum}}">{{item.tipsNum}}</view>
</view>
</block>
</div>
</block> -->
<view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait }}">
<view class="title">
<view class="conTitle">我的绩效</view>
<CalendarMonthSingle monType="{{ true }}" allowSameDay shortcut bindselect="monthSelect" bindtapCalendar="tapCalendar" dateType="single" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ dateObj.today }}" forceFullSucreen="{{ bottomLift>0?true:false }}" isComponents>
<view class="item dateNum">
{{dateObj.label}}
<view class="arrow {{ whiteArrow?'move':'' }}">
<image src="../../images/arrSolid.png" />
</view>
</view>
</CalendarMonthSingle>
</view>
<!-- 督导显示 -->
<view class="totalPerformanceCon" wx:if="{{ loginRole&&loginRole!=4 }}">
<view class="merchantNum">
汇总
<view class="num">{{outputValueObj.shopCount||0}}</view>
家门店
</view>
<view class="total">
<view class="contentBox">
<view class="lableBox">
<view class="label">产值完成比</view>
<view class="value persent">{{outputValueObj.rateValuePercent}}</view>
</view>
<view class="line"></view>
<view class="lableBox">
<view class="label">当月完成</view>
<view class="value">
<text class="unit">¥ </text>
{{outputValueObj.totalOutputValue||0}}
</view>
</view>
<view class="line"></view>
<view class="lableBox">
<view class="label">当月目标</view>
<view class="value">
<text class="unit">¥ </text>
{{outputValueObj.totalTargetOutputValue||0}}
</view>
</view>
</view>
</view>
<view class="mrechantItemCon" wx:if="{{ outputValueObj.outoutValueList.length }}">
<view class="selfPerformanceCon" wx:for="{{ outputValueObj.outoutValueList }}" wx:key="index">
<view class="header">
<view class="merchantName">{{item.merchantName}}</view>
<view class="staffName">{{item.residentManager||''}}</view>
</view>
<view class="label">当月目标</view>
<view class="content">
<view class="lable">
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="value">
<text class="unit">¥ </text>
{{item.targetOutputValue||0}}
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 驻店负责人显示 -->
<view wx:elif="{{ loginRole&&loginRole == 4 && outputValueObj.outoutValueList.length }}">
<view class="selfPerformanceCon staffCon" wx:for="{{ outputValueObj.outoutValueList||[] }}" wx:key="index">
<view class="header">
<view class="merchantName">{{item.merchantName}}</view>
<view class="staffName">{{item.residentManager||''}}</view>
</view>
<view class="label">当月目标</view>
<view class="content">
<view class="lable">
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="value">
<text class="unit">¥ </text>
{{item.targetOutputValue||0}}
</view>
</view>
</view>
</view>
</view>
<view class="nothingTips" wx:elif="{{ loginRole&&loginRole == 4 && !items.outoutValueList.length }}">
<view class="text">本月绩效未设置</view>
<view class="text2">
请联系督导
<text wx:for="{{ item.areaSupervisionList }}" wx:for-index="ind" wx:key="ind" wx:for-item="areaItem">{{areaItem.userName}}</text>
上报月度产值目标
</view>
</view>
</view>
<!-- 员工不给看统计数据 -->
<view class="content" wx:if="{{ userInfo.loginRole&&userInfo.loginRole!=4 }}">
<view class="box table">
<view class="table-control conTitle utils">
业务数据
<view class="table-control-btn">
<block wx:for="{{ tableBtn }}" wx:key="index">
<block wx:if="{{ item.type == 'date' && delayShow }}">
<calendar allowSameDay shortcut bindselect="rangeSelect" rangeAll dateType="range" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ maxDate }}">
<view class="{{ item.active?'active':'' }} table-control-btn-view">{{item.text}}</view>
</calendar>
</block>
<block wx:else>
<view class="{{ item.active?'active':'' }} table-control-btn-view" data-name="{{ item.type }}" bindtap="changeDate">{{item.text}}</view>
</block>
</block>
</view>
</view>
<scroll-view scroll-x scroll-y show-scrollbar="{{ false }}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="304" refresher-triggered="{{ triggered }}" class="table">
<view class="table-box" style="width: var(--fontSize{{ tableWidth }})">
<view class="table-header" style="width: var(--fontSize{{ tableWidth }})">
<view class="label">合作门店</view>
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="index">
<view class="value {{ tableSort == index?'active':'' }}" style="width: {{ item.width }};" bindtap="changeTableSort" id="header-{{ index }}" data-index="{{ index }}">
<view class="lable">
<view class="name">{{item.name}}{{item.unit}}</view>
</view>
<view class="sort-list">
<view class="up {{ item.sort?'sort-active':'' }}" />
<view class="down {{ !item.sort?'sort-active':'' }}" />
</view>
</view>
</block>
</view>
</view>
<view class="table-total" style="width: var(--fontSize{{ tableWidth }})">
<view class="totalLabel average">累计</view>
<view class="values">
<block wx:for="{{ totalTableSum }}" wx:for-index="index" wx:key="index" wx:for-item="item">
<view class="th" style="width:{{ tableObj[index]['width'] }};">
<block wx:if="{{ item.name == 'upgradeRateSum' }}">{{item.total || 0}}%</block>
<block wx:else>{{item.total || 0}}</block>
</view>
</block>
</view>
</view>
<view class="table-body">
<block wx:if="{{ tableFlag }}">
<block wx:if="{{ table.length > 0 }}">
<block wx:for="{{ table }}" wx:key="index">
<view class="th" style="width: var(--fontSize{{ tableWidth }})">
<view class="name">
<view class="labelName {{ item.merchantName.length<=10?'oneLine':'' }}">{{item.merchantName}}</view>
</view>
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<block wx:if="{{ i.key == 'filmTimes' }}">
<view class="text-center" style="width:100%;height: 100%;color:{{ isYqdSuper?'#347BFF':'#333333' }}" data-item="{{ item }}" bindtap="changeTableData">{{item[i.key] || 0}}</view>
</block>
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:else>{{item[i.key] || 0}}</block>
</view>
</block>
</view>
</view>
</block>
</block>
</block>
</view>
</view>
</scroll-view>
<block wx:if="{{ table.length <= 0 }}">
<view class="nothing">暂无数据</view>
</block>
</view>
</view>
<!-- </view> -->
</block>
</view>
</view>
<view class="waitOrderCon" wx:if="{{ waitInputCount }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
......@@ -411,7 +135,6 @@
</view>
</view>
</modal>
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" isLimitNum="{{ false }}" title="{{ '修改贴膜台次' }}" btnName="{{ '确认' }}" bind:confirm="remarkConfirm" placeholder="{{ '请输入整数' }}" maxlength="4" value="{{ methodUpdateInfo.filmTimes }}" isInt="{{ true }}" />
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<block wx:if="{{ userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 }}">
<side-select-by-page-popup show="{{ shopSideSelectPopup }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
......@@ -419,11 +142,4 @@
<block wx:else>
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
</block>
<!-- <store-picker
subIndex="{{ subIndex }}"
pickList="{{ merchantRange }}"
show="{{ showPicker }}"
bindsearch="getStoreList"
bindconfirm="changePicker"
/> -->
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
\ No newline at end of file
/* tabIndex/pages/index/index.wxss */
\ No newline at end of file
......@@ -40,20 +40,20 @@ export default {
// recordId: 6,
// icon: "boutique_upgrade",
// },
{
name: "客户建档",
// name: '战败下单',
url: "tabWorkOrder.createArchives",
recordId: 8,
icon: "customer_filing",
},
{
name: "扫码下单",
url: "tabWorkOrder.createOrder",
type: "scanCode",
recordId: 7,
icon: "scancode_verification",
},
// {
// name: "客户建档",
// // name: '战败下单',
// url: "tabWorkOrder.createArchives",
// recordId: 8,
// icon: "customer_filing",
// },
// {
// name: "扫码下单",
// url: "tabWorkOrder.createOrder",
// type: "scanCode",
// recordId: 7,
// icon: "scancode_verification",
// },
// {
// name: '预约管理',
......@@ -61,59 +61,28 @@ export default {
// recordId: 9,
// icon: 'booking_management'
// },
{
name: "生意助手",
type: "mini",
recordId: 12,
icon: "boutique-syzs",
},
// {
// name: "生意助手",
// type: "mini",
// recordId: 12,
// icon: "boutique-syzs",
// },
// {
// name: "驻店日报",
// url: "tabWorkOrder.staffDaily",
// recordId: 13,
// icon: "staffreport",
// },
{
name: "营销素材",
url: "/pages/materails/index",
recordId: 9,
icon: "icon-market",
},
// {
// name: "营销素材",
// url: "/pages/materails/index",
// recordId: 9,
// icon: "icon-market",
// },
],
newMenu: [],
totalTableSum: [
{
name: "filmTimesTotalSum",
},
{
name: "usedTotalSum",
},
{
name: "experienceTotalSum",
},
{
name: "upgradeTotalSum",
},
{
name: "orderMoneyTotalSum",
},
{
name: "customerUnitMoneySum",
},
{
name: "upgradeRateSum",
},
],
tableHeight: (20 + 1) * 96,
tableWidth: 118 * 7 + 232 + 10,
pageNum: 1,
tipsProps: {
tipsText: "该门店产生异常订单,请点击补录!",
showTips: true,
type: 2,
typeText: "补录订单",
},
totalList: [
// {
// name: '服务客户',
......@@ -189,67 +158,10 @@ export default {
type: "date",
},
],
tableSort: 4,
//排序类型(1:发券数升序,2:发券数降序,3:核销数升序,4:核销数降序,5:转化数升序,6:转化数降序,
// 7:转化金额升序,8:转化金额降序,9:客单价升序,10:客单价降序,11:转化率升序,12:转化率降序)
orderByTypeEnum: {
true: [1, 3, 13, 5, 7, 9, 11],
false: [2, 4, 14, 6, 8, 10, 12],
},
tableObj: [
{
name: "贴膜",
// unit: '(张)',
unit: "/台",
// key: 'getTotal',//发券数
key: "filmTimes",
width: "var(--fontSize110)",
},
{
name: "核销",
// unit: '(张)',
unit: "/张",
key: "usedTotal",
width: "var(--fontSize110)",
},
{
name: "体验",
// unit: '(位)',
unit: "/位",
key: "experienceTotal",
width: "var(--fontSize110)",
},
{
name: "转化",
// unit: '(单)',
unit: "/单",
key: "upgradeTotal",
width: "var(--fontSize110)",
},
{
name: "营业额",
// unit: '(元)',
unit: "",
key: "orderMoneyTotal",
sort: false,
// width: 'var(--fontSize124)'
width: "var(--fontSize110)",
},
{
name: "客单价",
// unit: '(元)',
unit: "",
key: "customerUnitMoney",
width: "var(--fontSize110)",
},
{
name: "转化率",
// unit: '(率)',
unit: "",
key: "upgradeRate",
width: "var(--fontSize110)",
},
],
table: [],
loginRoleLabel: {
1: "超管",
......
/* tabMine/pages/collectCoupons/collectCoupons.wxss */
\ No newline at end of file
/* tabMine/pages/completeBuild/completeBuild.wxss */
\ No newline at end of file
/* tabMine/pages/technicianSetup/technicianSetup.wxss */
\ No newline at end of file
/* tabOperating/pages/index/index.wxss */
\ No newline at end of file
/* tabOperating/pages/operatingShow/operatingShow.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/createOrder/createOrder.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/residentManage/residentManage.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/staffDaily/staffDaily.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/supervisorDaily/supervisorDaily.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.wxss */
\ 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!