Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bbada057
authored
Nov 07, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
245bba7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
57 deletions
tabWorkOrder/pages/staffDaily/staffDaily.js
tabWorkOrder/pages/staffDaily/staffDaily.wxml
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
bbada05
...
...
@@ -399,23 +399,23 @@ Page({
},
showStorePicker
()
{
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'merchant'
})
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'merchant'
})
},
showStaffPicker
()
{
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'staff'
})
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'staff'
})
},
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
...
...
@@ -540,7 +540,7 @@ Page({
showCancel
:
false
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{}
success
(
res
)
{
}
})
}
else
{
wx
.
$util
.
showToast
(
message
)
...
...
@@ -649,7 +649,7 @@ Page({
// 非调休 日报填报前参数校验
let
check
=
await
this
.
dailyReportCheck
(
orderObj
)
console
.
log
(
check
,
'check'
)
if
(
check
)
return
false
if
(
check
&&
(
!
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
))
)
return
false
// orderObj.reportType = reportType
// console.log(orderObj, 'orderObj')
wx
.
$util
.
showLoading
()
...
...
@@ -671,7 +671,7 @@ Page({
showCancel
:
false
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{}
success
(
res
)
{
}
})
}
else
{
wx
.
$util
.
showToast
(
message
)
...
...
@@ -780,11 +780,9 @@ Page({
0
:
'问界'
,
1
:
'鸿蒙'
}
context
+=
`【
${
bandType
[
el
.
brandType
]
||
item
.
firstBrandName
}
】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值
${
item
.
differenceValue
}
,请相关驻店销售对齐核销再次提交\t\n`
context
+=
`【
${
bandType
[
el
.
brandType
]
||
item
.
firstBrandName
}
】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值
${
item
.
differenceValue
}
,请相关驻店销售对齐核销再次提交\t\n`
el
.
deliveryCountinputError
=
true
el
.
equityToShopCountinputError
=
true
el
.
notDeliveryCountinputError
=
true
...
...
@@ -1316,7 +1314,7 @@ Page({
let
{
orderObj
,
staffCurrent
}
=
this
.
data
// 先查4s店对应的园区店,再用园区店查员工
api
.
querySceneRefByShop
({
scene
:
0
,
merchantId
:
orderObj
.
merchantId
})
.
querySceneRefByShop
({
scene
:
0
,
merchantId
:
orderObj
.
merchantId
,
pageSize
:
200
})
.
then
(
result
=>
{
// console.log(result, 'result')
let
{
code
,
data
,
message
}
=
result
...
...
@@ -1389,7 +1387,7 @@ Page({
wx
.
$util
.
message
(
message
)
}
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
inputSearch
(
e
)
{
let
{
pickerType
}
=
this
.
data
...
...
@@ -1409,7 +1407,8 @@ Page({
comApi
.
getMerchantListPage
({
scene
:
0
,
merchantName
:
value
merchantName
:
value
,
pageSize
:
200
})
.
then
(
result
=>
{
let
{
code
,
data
,
message
}
=
result
...
...
@@ -1597,7 +1596,7 @@ Page({
}
// }
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
/**
* 生命周期函数--监听页面加载
...
...
@@ -1719,5 +1718,5 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{}
onReady
:
function
()
{
}
})
tabWorkOrder/pages/staffDaily/staffDaily.wxml
View file @
bbada05
<!--tabWorkOrder/pages/staffDaily/staffDaily.wxml-->
<wxs src="../../index.wxs" module="filter" />
<!-- 权益日报 -->
<!-- <block wx:if="{{ flag }}"> -->
<view class="layout {{ flag?'opacity':'' }}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{ role!='other' && approvedSource != '3' ? true:false }}">
...
...
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
View file @
bbada05
...
...
@@ -393,23 +393,23 @@ Page({
},
showStorePicker
()
{
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'merchant'
})
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'merchant'
})
},
showStaffPicker
()
{
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'staff'
})
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
showPicker
:
true
,
pickerType
:
'staff'
})
},
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
...
...
@@ -534,7 +534,7 @@ Page({
showCancel
:
false
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{}
success
(
res
)
{
}
})
}
else
{
wx
.
$util
.
showToast
(
message
)
...
...
@@ -554,7 +554,8 @@ Page({
carBandList
,
hwObjArray
,
hwOhterObjArray
,
otherObjArray
otherObjArray
,
userInfo
}
=
this
.
data
// 是督导和老板,提交评论
// console.log(approvedSource != '', approvedSource, 'approvedSource')
...
...
@@ -646,7 +647,8 @@ Page({
// 非调休 日报填报前参数校验
let
check
=
await
this
.
dailyReportCheck
(
orderObj
)
console
.
log
(
check
,
'check'
)
if
(
check
)
return
false
// 超管和区域运维跳过校验提示
if
(
check
&&
(
!
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
)))
return
false
// return
wx
.
$util
.
showLoading
()
api
...
...
@@ -667,7 +669,7 @@ Page({
showCancel
:
false
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{}
success
(
res
)
{
}
})
}
else
{
// console.log(object);
...
...
@@ -776,11 +778,9 @@ Page({
0
:
'问界'
,
1
:
'鸿蒙'
}
context
+=
`【
${
bandType
[
el
.
brandType
]
||
item
.
firstBrandName
}
】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值
${
item
.
differenceValue
}
,请相关驻店销售对齐核销再次提交\t\n`
context
+=
`【
${
bandType
[
el
.
brandType
]
||
item
.
firstBrandName
}
】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值
${
item
.
differenceValue
}
,请相关驻店销售对齐核销再次提交\t\n`
el
.
deliveryCountinputError
=
true
el
.
equityToShopCountinputError
=
true
el
.
notDeliveryCountinputError
=
true
...
...
@@ -1304,7 +1304,7 @@ Page({
let
{
orderObj
,
staffCurrent
}
=
this
.
data
// 先查4s店对应的园区店,再用园区店查员工
api
.
querySceneRefByShop
({
scene
:
0
,
merchantId
:
orderObj
.
merchantId
})
.
querySceneRefByShop
({
scene
:
1
,
merchantId
:
orderObj
.
merchantId
,
pageSize
:
200
})
.
then
(
result
=>
{
// console.log(result, 'result')
let
{
code
,
data
,
message
}
=
result
...
...
@@ -1376,7 +1376,7 @@ Page({
wx
.
$util
.
message
(
message
)
}
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
inputSearch
(
e
)
{
let
{
pickerType
}
=
this
.
data
...
...
@@ -1395,8 +1395,10 @@ Page({
let
{
pickerType
,
subIndex
,
orderObj
}
=
this
.
data
comApi
.
getMerchantListPage
({
scene
:
0
,
merchantName
:
value
scene
:
1
,
merchantName
:
value
,
pageSize
:
200
// pageSize: 80
})
.
then
(
result
=>
{
let
{
code
,
data
,
message
}
=
result
...
...
@@ -1415,7 +1417,8 @@ Page({
}
if
(
pickerType
==
'merchant'
)
{
this
.
setData
({
merchantRangeList
:
data
.
list
merchantRangeList
:
data
.
list
,
merchantRangeListTotal
:
data
.
total
})
}
// 初始化才执行下一步操作
...
...
@@ -1580,7 +1583,7 @@ Page({
}
// }
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
/**
* 生命周期函数--监听页面加载
...
...
@@ -1693,5 +1696,5 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{}
onReady
:
function
()
{
}
})
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment