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 28d3bc4b
authored
Jan 12, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
报告管理-接待缺失报备需求开发
1 parent
f29373f9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
139 additions
and
22 deletions
packageEquity/pages/missingReception/missingReception.js
packageUsedCar/pages/evaluationForm/confirmCar/confirmCar.js
packageUsedCar/pages/evaluationForm/signInfo/signInfo.js
packageUsedCar/pages/indexPage/reportManage/addReport/addReport.js
packageUsedCar/pages/indexPage/reportManage/reportList/reportList.js
packageUsedCar/pages/indexPage/reportManage/reportList/reportList.wxml
tabIndex/api.js
tabIndex/pages/index/index.js
tabIndex/pages/index/index.wxml
packageEquity/pages/missingReception/missingReception.js
View file @
28d3bc4
...
...
@@ -162,7 +162,8 @@ Page({
}
=
this
.
data
,
{
uuid
,
merchantId
,
shopMerchantId
shopMerchantId
,
sceneType
}
=
userInfo
const
{
code
,
...
...
@@ -172,7 +173,7 @@ Page({
merchantId
:
shopMerchantId
,
yqMerchantId
:
merchantId
,
staffUuid
:
uuid
,
sceneType
:
0
,
sceneType
:
sceneType
,
reportStartDate
:
timeBean
.
reportStartDate
,
reportEndDate
:
timeBean
.
reportEndDate
,
})
...
...
@@ -216,7 +217,8 @@ Page({
}
=
this
.
data
,
{
uuid
,
shopMerchantName
,
shopMerchantId
shopMerchantId
,
sceneType
}
=
this
.
data
.
userInfo
,
{
code
,
data
,
...
...
@@ -225,7 +227,8 @@ Page({
staffUuid
:
uuid
,
merchantId
:
shopMerchantId
,
merchantName
:
shopMerchantName
,
reportDate
:
currentDate
reportDate
:
currentDate
,
sceneType
:
sceneType
})
wx
.
hideLoading
()
let
total
=
0
...
...
@@ -316,7 +319,8 @@ Page({
shopMerchantId
,
phone
,
uuid
,
name
name
,
sceneType
}
=
userInfo
list
.
map
((
e
,
index
)
=>
{
if
(
!
e
.
reasonCode
)
this
.
setData
({
...
...
@@ -353,7 +357,7 @@ Page({
staffUuid
:
uuid
,
staffName
:
name
,
staffPhone
:
phone
,
sceneType
:
0
sceneType
:
sceneType
})
if
(
code
!=
0
)
throw
message
}
...
...
packageUsedCar/pages/evaluationForm/confirmCar/confirmCar.js
View file @
28d3bc4
...
...
@@ -229,6 +229,7 @@ Page({
_this
.
closeChangeUploadType
()
wx
.
chooseImage
({
count
:
count
,
sizeType
:
[
'original'
],
success
(
res
)
{
for
(
const
file
of
res
.
tempFiles
)
{
if
(
file
.
size
>
10
*
1024
*
1024
)
{
...
...
@@ -337,6 +338,7 @@ Page({
wx
.
chooseMedia
({
count
:
count
,
mediaType
:
field
.
video
?
[
'image'
,
'video'
]
:
[
'image'
],
sizeType
:
field
.
video
?
[
'original'
,
'compressed'
]
:
[
'original'
],
maxDuration
:
60
,
success
(
res
)
{
const
ext
=
res
.
tempFiles
?.
length
==
1
&&
res
.
tempFiles
[
0
].
tempFilePath
&&
res
.
tempFiles
[
0
].
tempFilePath
.
split
(
'.'
).
pop
().
toLowerCase
()
...
...
packageUsedCar/pages/evaluationForm/signInfo/signInfo.js
View file @
28d3bc4
...
...
@@ -748,6 +748,7 @@ Page({
_this.closeChangeUploadType()
wx.chooseImage({
count: count,
sizeType: ['original'],
success(res) {
for (const file of res.tempFiles) {
if (file.size > 10 * 1024 * 1024) {
...
...
@@ -861,6 +862,7 @@ Page({
wx.chooseMedia({
count: count,
mediaType: field == 'thirdPartyTransactionVoucher' ? ['image', 'video'] : ['image'],
sizeType: field == 'thirdPartyTransactionVoucher' ? ['original', 'compressed'] : ['original'],
maxDuration: 60,
success(res) {
const ext = res.tempFiles?.length == 1 && res.tempFiles[0].tempFilePath && res.tempFiles[0].tempFilePath.split('.').pop().toLowerCase()
...
...
packageUsedCar/pages/indexPage/reportManage/addReport/addReport.js
View file @
28d3bc4
...
...
@@ -280,6 +280,7 @@ Page({
vin
:
vin
,
licenseUrl
:
motorRegistrationCertificateUrl
}).
then
(
res
=>
{
this
.
setData
({
confirmFlag
:
false
})
wx
.
$util
.
hideLoading
()
if
(
res
.
data
.
code
==
0
)
{
wx
.
navigateBack
()
...
...
@@ -287,6 +288,7 @@ Page({
wx
.
$util
.
showToast
(
res
.
data
.
msg
||
'请求失败'
)
}
}).
catch
(
error
=>
{
this
.
setData
({
confirmFlag
:
false
})
wx
.
$util
.
hideLoading
()
})
},
...
...
packageUsedCar/pages/indexPage/reportManage/reportList/reportList.js
View file @
28d3bc4
...
...
@@ -219,6 +219,13 @@ Page({
this
.
getList
();
},
handleDetail
(
e
)
{
let
{
value
}
=
e
.
currentTarget
.
dataset
if
(
value
.
reportUrl
&&
value
.
status
==
1
)
{
wx
.
$router
.
jumpH5
(
value
.
reportUrl
)
}
},
addReport
()
{
wx
.
navigateTo
({
url
:
'/packageUsedCar/pages/indexPage/reportManage/addReport/addReport'
...
...
packageUsedCar/pages/indexPage/reportManage/reportList/reportList.wxml
View file @
28d3bc4
...
...
@@ -7,7 +7,7 @@
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="请输入车架号" class="input" confirm-type="search" value="{{ keyWord }}" placeholder-class="input-placeholder" bindinput="searchInput" bindconfirm="searchConfirm" />
<input type="text" placeholder="请输入车架号" class="input" confirm-type="search" value="{{ keyWord }}" placeholder-class="input-placeholder"
maxlength="17"
bindinput="searchInput" bindconfirm="searchConfirm" />
<block wx:if="{{ keyWord }}">
<view bindtap="handleReset" class="clearBtn">
<image src="/images/clear.png" class="search-clear" />
...
...
@@ -27,7 +27,7 @@
<view class="top-empty"></view>
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:for="{{ i }}" wx:key="index">
<view class="list-item">
<view class="list-item"
bindtap="handleDetail" data-value="{{item}}"
>
<view class="top flex">
<view class="flex">
<image class="type-icon" src="{{IMG_URL}}usedCar/{{item.reportType == 1 ? 'maintenance_icon' : 'accident_icon'}}.png" mode=""/>
...
...
tabIndex/api.js
View file @
28d3bc4
...
...
@@ -86,5 +86,18 @@ module.exports = {
'dj.api.smartcarlife.construction.count.technician.items'
,
data
)
},
/**
*
* 门店号是否是直营门店校验
*/
checkMerchantDirect
(
data
)
{
return
api
.
post
(
'dj.api.car.boutique.resident.direct.sale.merchant'
,
data
)
},
/**
* 查询给定日期如果填了日报是否缺失接待记录
*/
checkMissingReception
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.missing.reception.report.mini.check'
,
data
)
}
}
tabIndex/pages/index/index.js
View file @
28d3bc4
...
...
@@ -21,6 +21,7 @@ const app = getApp()
let
time
=
null
let
modalQueue
=
[]
import
commonApi
from
'~/api/api'
import
dayjs
from
'dayjs'
Page
({
/**
* 页面的初始数据
...
...
@@ -51,6 +52,7 @@ Page({
background
:
[
'demo-text-1'
,
'demo-text-2'
,
'demo-text-3'
],
todoList
:
[],
stodoList
:
[],
missingRecordTodoList
:
[],
todos
:
{
1
:
'日报填写提醒'
,
2
:
'今日尚未开单'
,
...
...
@@ -489,7 +491,7 @@ Page({
id
:
taskId
})
}
if
([
'话术萃取'
,
'话术核验'
].
includes
(
item
.
name
))
{
if
([
'话术萃取'
,
'话术核验'
,
'接待缺失报备'
].
includes
(
item
.
name
))
{
return
wx
.
$router
.
go
(
item
.
path
,
{
params
:
item
.
params
})
...
...
@@ -1653,6 +1655,69 @@ Page({
noCheckdailyReport
:
true
})
}
if
(
isStaff
||
userInfo
.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
{
/**门店是否直营 */
api
.
checkMerchantDirect
({
merchantId
:
userInfo
.
shopMerchantId
,
scene
:
1
}).
then
(
async
res
=>
{
if
(
res
.
data
)
{
if
(
newMenu
.
every
(
item
=>
item
.
name
!=
'接待缺失报备'
))
{
newMenu
.
push
({
name
:
'接待缺失报备'
,
path
:
'packageEquity.missingReception'
,
icon
:
'missing-reception'
,
noCheckdailyReport
:
true
})
}
if
(
menu
.
every
(
item
=>
item
.
name
!=
'接待缺失报备'
))
{
menu
.
push
({
name
:
'接待缺失报备'
,
path
:
'packageEquity.missingReception'
,
icon
:
'missing-reception'
,
noCheckdailyReport
:
true
})
}
let
{
uuid
,
merchantId
,
shopMerchantId
}
=
userInfo
api
.
checkMissingReception
({
merchantId
:
shopMerchantId
,
yqMerchantId
:
merchantId
,
staffUuid
:
uuid
,
sceneType
:
1
,
reportStartDate
:
dayjs
().
subtract
(
6
,
'day'
).
format
(
'YYYY-MM-DD'
),
reportEndDate
:
dayjs
().
format
(
'YYYY-MM-DD'
)
}).
then
(
result
=>
{
let
missingRecordTodoList
=
[]
if
(
result
.
code
==
0
)
{
result
.
data
.
reverse
().
map
(
e
=>
{
if
(
e
.
missingReceptionRecord
&&
!
e
.
hasReceptionReport
&&
!
missingRecordTodoList
.
length
)
missingRecordTodoList
.
push
(
e
)
})
}
this
.
setData
({
missingRecordTodoList
})
})
}
else
{
let
delIndex
=
newMenu
.
findIndex
(
item
=>
item
.
name
==
'接待缺失报备'
)
if
(
delIndex
!=
-
1
)
newMenu
=
newMenu
.
splice
(
delIndex
,
1
)
let
delMIndex
=
menu
.
findIndex
(
item
=>
item
.
name
==
'接待缺失报备'
)
if
(
delMIndex
!=
-
1
)
menu
=
menu
.
splice
(
delMIndex
,
1
)
this
.
setData
({
missingRecordTodoList
:
[]
})
}
})
}
this
.
setData
(
{
menu
,
...
...
@@ -1674,6 +1739,16 @@ Page({
)
this
.
getIsBusinessSchoolEnableCurrentUser
()
},
gotoMissingReception
()
{
const
[
item
]
=
this
.
data
.
missingRecordTodoList
wx
.
$router
.
_to
(
'/packageEquity/pages/missingReception/missingReception'
,
{
reportDate
:
item
.
reportDate
},
'navigateTo'
)
},
getAwaitAuditCount
(
userInfo
,
index
)
{
getWaitAuditCountAPI
({
sceneType
:
userInfo
?.
sceneType
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
...
...
tabIndex/pages/index/index.wxml
View file @
28d3bc4
...
...
@@ -134,23 +134,35 @@
</view>
</view>
<view wx:if="{{ userInfo.loginRole != 7 }}">
<block wx:if="{{ isWait&&
todoList.length>0
}}">
<block wx:if="{{ isWait&&
(todoList.length>0 || missingRecordTodoList.length > 0)
}}">
<view class="todo-list">
<view class="title">今日待办·{{todoList.length}}</view>
<view class="title">今日待办·{{todoList.length
+ missingRecordTodoList.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>
<block wx:if="{{todoList.length}}">
<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 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>
</block>
<block wx:if="{{missingRecordTodoList.length}}" wx:key="idx" wx:for-index="idx">
<view class="todo-item" wx:if="{{ispopUp || (!ispopUp && stodoList.length < 2)}}">
<view class="todo-item-title">
<image src="{{IMG_URL}}warn.png" />
<text>接待缺失报备</text>
</view>
<view class="todo-item-info">请报备缺失接待客户的原因</view>
<view class="todo-item-btn" bindtap="gotoMissingReception">去报备</view>
</view>
</block>
</view>
<view class="pack-up {{ !ispopUp?'pack-up-active':'' }}" wx:if="{{
todoList.length
>2 }}" bindtap="packupList">
<view class="pack-up {{ !ispopUp?'pack-up-active':'' }}" wx:if="{{
(missingRecordTodoList.length + todoList.length)
>2 }}" bindtap="packupList">
<image src="{{ IMG_URL }}pack-up.png" />
</view>
</view>
...
...
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