Commit dc553a3d by 张立顺

Merge branch 'SAAS+V4.43-0807' of http://192.168.3.233:8090/saas_plus/dj-car-bou…

…tique-work-wechat into SAAS+V4.43-0807
2 parents d758759a 78a55b3b
......@@ -348,8 +348,8 @@ page {
.logout-box {
/* position: sticky; */
/* position: -webkit-sticky; */
position: absolute;
position: -webkit-sticky;
top: calc(100% - var(--fontSize150));
left: 50%;
transform: translateX(-50%);
......
......@@ -23,7 +23,7 @@ const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
//手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false;
const manual = true;
const release = false;
// 判断小程序环境
......
......@@ -159,8 +159,9 @@ Page({
.then((res) => {
let {
code,
data: { loginControlList = [] },
} = res;
data
} = res
let loginControlList = data?.loginControlList || []
if (code == "0") {
// const loginControlList = []
// const loginControlList = [0, 1]
......@@ -176,7 +177,7 @@ Page({
5,
(res) => {
if (res.confirm) {
wx.$router.go("pages.accountItems");
wx.$router.reLaunch("pages.accountItems");
}
}
);
......
......@@ -330,6 +330,7 @@ Page({
};
});
const openId = wx.$util.getOpenId();
console.log(openId,'openId')
carLifeApi
.sparringCommit({
openId,
......
......@@ -268,6 +268,7 @@ page {
left: 0;
right: 0;
bottom: 0;
z-index: 100;
background: rgba(0, 0, 0, 0.5);
}
......
......@@ -53,11 +53,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.getUserProfile({
desc: '获取用户信息',
}).then(res=>{
console.log(res)
})
// wx.getRecorderManager().start({
// duration: 600000,
// numberOfChannels: 1,
......
<!--pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxml-->
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight}}px);margin-top:{{navBarHeight}}px;" hidden="{{!show}}">
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight }}px + 1px);margin-top:calc({{navBarHeight }}px - 1px);" hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px">
<!-- 非超管转化人员 -->
<view class="box" wx:if="{{!(userInfo.isSuper || userInfo.loginRole == 3)}}">
......
......@@ -160,6 +160,7 @@ Component({
userInfo: wx.$util.getUserInfo() || {},
});
// console.log(this.data.userInfo)
this.onLoad(true);
// this.getMerchant4SMode()
},
......@@ -201,17 +202,18 @@ Component({
// 获取数据
onLoad(noGetList) {
let userInfo = wx.$util.getUserInfo() || {};
this.setData({
nothing: false,
currentPage: 1,
storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo || {},
isOrder: !(userInfo?.isSuper || userInfo?.loginRole == 3)
isOrder: !(userInfo?.isSuper || userInfo?.loginRole == 3),
list: []
});
// this.getTotal()
if (!noGetList) this.getList(true);
this.getOrderStatistics();
this.getMerchantCarBrandList();
if (!userInfo?.isSuper && userInfo?.loginRole != 3) this.getMerchantCarBrandList();
},
handleClickOrderBtn(e) {
// console.log(e)
......@@ -379,6 +381,7 @@ Component({
flag: false,
});
this.getList(true);
this.getOrderStatistics();
},
handleReset() {
this.setData({
......@@ -557,16 +560,20 @@ Component({
}
if (staffUuid) {
obj.transferIds = [staffUuid];
} else {
} else if (storeInfo?.merchantId) {
obj.merchantIds = [storeInfo?.merchantId];
}
// console.log({
// ...obj,
// ...searchTemp
// }, '2222');
orderStatistics({
...obj,
...searchTemp
})
.then((result) => {
let { data, code } = result;
// debugger
if (code == 0) {
let labelList = [
"total",
......@@ -619,8 +626,8 @@ Component({
},
//滑动事件处理
touchmove: function (e) {
if(!this.data.isOrder){
return
if (!this.data.isOrder) {
return
}
// console.log(e)
// if (condition) {
......
......@@ -189,6 +189,7 @@ Component({
this.setData({
'form.selectedMerchantList': []
})
this.getStaffList(true)
},
staffChoose() {
this.setData({
......
......@@ -1107,7 +1107,7 @@ Component({
// });
// const { aiPhone } = await setConfigInfo({});
let index_d = menuList.findIndex((e) => e.menuText == "AI趣练");
if (index_d == -1 && (userInfo.isSuper || userInfo.loginRole === 3))
if (index_d == -1)
menuList.push({
menuText: "AI趣练",
icon: "ai_chat",
......
......@@ -206,7 +206,7 @@ Component({
if (i.firstClassify == '结束') i.firstClassify = '促成交'
})
} else {
if (!userInfo.isSuper) {
if (!userInfo.isSuper && userInfo.loginRole != 3) {
e.appealText = e.conversationDetailAppealId ? '已申诉' : '申诉'
e.appealClass = e.conversationDetailAppealId ? 'appeal-disabled' : ''
}
......
......@@ -35,7 +35,8 @@ Page({
async getSceneArr(yqMerchantId, loginUserObj) {
if (!loginUserObj?.isSuper && loginUserObj?.loginRole != 3) {
let checkAgree = await this.checkAgree(loginUserObj)
if (!checkAgree) return wx.$router.go('pages.accountItems')
// if (!checkAgree) return wx.$router.go('pages.accountItems')
if (!checkAgree) return false
}
// let checkAgree = await this.checkAgree()
// if (!checkAgree) return false
......@@ -247,8 +248,9 @@ Page({
api.getYqStoreConfig({ yqMerchantId }).then(res => {
let {
code,
data: { loginControlList = [] }
data
} = res
let loginControlList = data?.loginControlList || []
if (code == '0') {
// const loginControlList = []
// const loginControlList = [0, 1]
......
......@@ -16,7 +16,7 @@ Component({
this.setViewData()
let { userInfo } = this.data
// 非超管 获取转化人员 销售顾问
if (!userInfo?.isSuper) {
if (!(userInfo?.isSuper|| userInfo.loginRole == 3)) {
if (wx.$orderListDateListScreenRefresh) { // 切换门店将数据清空
this.setData({
'form.userIdList': [],
......
<!--pages/tabDateIndex/components/DateScreen/DateScreen.wxml-->
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight}}px);margin-top:{{navBarHeight}}px;"
hidden="{{!show}}">
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight}}px);margin-top:{{navBarHeight}}px;" hidden="{{!show}}">
<view class="main" style="min-height:calc(100% - {{btnHeight}}px)">
<!-- 非超管转化人员 -->
<view class="box" wx:if="{{!userInfo.isSuper}}">
<view class="box" wx:if="{{!(userInfo.isSuper|| userInfo.loginRole == 3)}}">
<view class="title">
<view class="title-left">
转化人员
<view class="title-tips" wx:if="{{!userInfo.isSuper}}">{{userInfo.merchantName}}</view>
<view class="title-tips" wx:if="{{!(userInfo.isSuper|| userInfo.loginRole == 3)}}">{{userInfo.merchantName}}</view>
</view>
<view wx:if="{{form.userIdList.length > 12}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
<view wx:if="{{form.userIdList.length > 12}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}"><image src="{{IMG_URL}}collapse_icon.png" mode=""/></view>
</view>
<view class="list-box">
<block wx:for="{{form.userIdList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose"
data-list-name="userIdList" data-index="{{index}}" hidden="{{index >= 12 && !employShowMore}}">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="userIdList" data-index="{{index}}" hidden="{{index >= 12 && !employShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管转化人员 选择园区店 -->
<view class="box" wx:if="{{userInfo.isSuper}}">
<view class="box" wx:if="{{(userInfo.isSuper|| userInfo.loginRole == 3)}}">
<view class="title">
<view class="title-left">
转化人员
</view>
<view wx:if="{{form.selectedYqMerchantList.length > 3}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}"><image src="{{IMG_URL}}collapse_icon.png" mode=""/></view>
<view wx:if="{{form.selectedYqMerchantList.length > 3}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedYqMerchantList.length?'active':''}}" bindtap="yqMerchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="1">自定义</view>
<block wx:for="{{form.selectedYqMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose"
data-list-name="selectedYqMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !employShowMore}}">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedYqMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !employShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
......@@ -41,38 +42,40 @@
</view>
</view>
<!-- 非超管销售顾问 -->
<view class="box" wx:if="{{!userInfo.isSuper}}">
<view class="box" wx:if="{{!(userInfo.isSuper|| userInfo.loginRole == 3)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!userInfo.isSuper}}">{{userInfo.shopMerchantName}}</view>
<view class="title-tips" wx:if="{{!(userInfo.isSuper|| userInfo.loginRole == 3)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.issuerUserIdList.length > 12}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
<view wx:if="{{form.issuerUserIdList.length > 12}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}"><image src="{{IMG_URL}}collapse_icon.png" mode=""/></view>
</view>
<view class="list-box">
<block wx:for="{{form.issuerUserIdList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="issuerUserIdList"
data-index="{{index}}" hidden="{{index >= 12 && !salesmanShowMore}}">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="issuerUserIdList" data-index="{{index}}" hidden="{{index >= 12 && !salesmanShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管销售顾问 选择4s店 -->
<view class="box" wx:if="{{userInfo.isSuper}}">
<view class="box" wx:if="{{(userInfo.isSuper|| userInfo.loginRole == 3)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!userInfo.isSuper}}">{{userInfo.shopMerchantName}}</view>
<view class="title-tips" wx:if="{{!(userInfo.isSuper|| userInfo.loginRole == 3)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.selectedMerchantList.length > 3}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
<view wx:if="{{form.selectedMerchantList.length > 3}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}"><image src="{{IMG_URL}}collapse_icon.png" mode=""/></view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedMerchantList.length?'active':''}}" bindtap="merchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="2">自定义</view>
<block wx:for="{{form.selectedMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose"
data-list-name="selectedMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !salesmanShowMore}}">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !salesmanShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
......@@ -86,8 +89,7 @@
<view class="list-box">
<block wx:for="{{form.dateTimeList}}" wx:key="index">
<block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' id="calendar" data-index="{{index}}" data-name="dateTimeList" dateType='range' calenderColor='#347BFF'
vertical minDate="2020-10-01" isComponents>
<calendar allowSameDay shortcut bindselect='rangeSelect' id="calendar" data-index="{{index}}" data-name="dateTimeList" dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" isComponents>
</calendar>
<view style="display: flex;align-items: center;width: 100%;">
<view bindtap="showCalendar" data-type="show" class="item custom-time text-center {{!item.startDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.startDate || '开始时间'}}</view>-
......@@ -95,8 +97,7 @@
</view>
</block>
<block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="dateTimeList"
data-index="{{index}}">{{item.name}}</view>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="dateTimeList" data-index="{{index}}">{{item.name}}</view>
</block>
</block>
</view>
......@@ -107,8 +108,7 @@
</view>
<view class="list-box">
<block wx:for="{{form.inviteStatusList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose"
data-list-name="inviteStatusList" data-index="{{index}}">{{item.name}}</view>
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="inviteStatusList" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
......@@ -118,4 +118,4 @@
<view class="btn done text-center" bindtap="confirm">确定</view>
</view>
</scroll-view>
<store-select-popup show="{{showStoreSelectPopup}}" type="{{storeType}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{storeType == 1 ? form.selectedYqMerchantList || [] : form.selectedMerchantList || []}}"></store-select-popup>
<store-select-popup show="{{showStoreSelectPopup}}" type="{{storeType}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{storeType == 1 ? form.selectedYqMerchantList || [] : form.selectedMerchantList || []}}"></store-select-popup>
\ No newline at end of file
......@@ -361,8 +361,8 @@ Page({
op[key] = val
})
this.setData({
...op
},
...op
},
() => {
this.noLoginFn()
}
......@@ -371,7 +371,7 @@ Page({
}
// }
})
.catch(err => {})
.catch(err => { })
},
noLoginFn() {
let that = this
......@@ -423,14 +423,13 @@ Page({
}).then(res => {
let {
code,
data: {
loginControlList = []
}
data
} = res
let loginControlList = data?.loginControlList || []
if (code == '0') {
// const loginControlList = []
// const loginControlList = [0, 1]
if (loginControlList.includes(envName) || loginControlList.length == 0) {
if (loginControlList && (loginControlList.includes(envName) || loginControlList.length == 0)) {
resolve(true)
} else {
wx.hideLoading()
......@@ -675,7 +674,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
onReady: function () { },
/**
* 生命周期函数--监听页面显示
......@@ -737,20 +736,20 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onHide: function () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
onReachBottom: function () { }
})
\ No newline at end of file
......@@ -849,17 +849,18 @@ page ::-webkit-scrollbar {
}
.table .table-body .th .name .labelName {
height: var(--fontSize54);
height: var(--fontSize58);
box-sizing: border-box;
word-break: break-all;
display: -webkit-box;
text-overflow: ellipsis;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.table .table-body .th .labelName.oneLine {
line-height: var(--fontSize54);
line-height: var(--fontSize58);
}
.table .table-body .th .values .td {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!