Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 352f4b6b
authored
Jan 16, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+v5.5.3' of 192.168.3.233:saas_plus/regional-assistant into SAAS+v5.5.3
2 parents
29ff472e
ed6e5f49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
33 deletions
packageWorkspace/api.js
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
packageWorkspace/api.js
View file @
352f4b6
...
@@ -407,4 +407,9 @@ module.exports = {
...
@@ -407,4 +407,9 @@ module.exports = {
userStat
(
data
)
{
userStat
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.user.stat"
,
data
);
return
api
.
post
(
"dj.api.smartcarlife.user.stat"
,
data
);
},
},
/** 2.1 会员权益产值统计 */
outputValueStatistics
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics'
,
data
)
},
};
};
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
View file @
352f4b6
...
@@ -114,38 +114,84 @@ Page({
...
@@ -114,38 +114,84 @@ Page({
if
(
!
userInfo
)
{
if
(
!
userInfo
)
{
return
;
return
;
}
}
wx
.
$util
.
showLoading
(
"加载中..."
);
// sceneType 1是精品0是权益
api
if
(
userInfo
.
sceneType
==
1
)
{
.
userStat
({
wx
.
$util
.
showLoading
(
"加载中..."
);
merchantId
:
userInfo
?.
shopMerchantId
||
undefined
,
api
})
.
userStat
({
.
then
((
result
)
=>
{
merchantId
:
userInfo
?.
shopMerchantId
||
undefined
,
let
{
code
,
data
}
=
result
;
})
if
(
code
==
0
)
{
.
then
((
result
)
=>
{
const
needDefaultCodeList
=
Object
.
keys
(
reportFirstAutoObj
);
let
{
code
,
data
}
=
result
;
console
.
log
(
needDefaultCodeList
,
"needDefaultCodeList----"
);
if
(
code
==
0
)
{
if
(
needDefaultCodeList
.
includes
(
routeParams
.
code
))
{
const
needDefaultCodeList
=
Object
.
keys
(
reportFirstAutoObj
);
reportFirstAutoObj
[
routeParams
.
code
]?.
list
.
forEach
((
item
)
=>
{
if
(
needDefaultCodeList
.
includes
(
routeParams
.
code
))
{
tmlpFormData
[
item
.
attrName
]
=
reportFirstAutoObj
[
routeParams
.
code
]?.
list
.
forEach
((
item
)
=>
{
data
[
item
.
valueObj
].
totalOrderMoney
+
""
;
tmlpFormData
[
item
.
attrName
]
=
});
data
[
item
.
valueObj
].
totalOrderMoney
+
""
;
this
.
setData
(
});
{
this
.
setData
(
tmlpFormData
:
tmlpFormData
,
{
tabChange
:
false
,
tmlpFormData
:
tmlpFormData
,
},
tabChange
:
false
,
()
=>
{
},
this
.
setData
({
()
=>
{
tabChange
:
true
,
this
.
setData
({
});
tabChange
:
true
,
}
});
);
}
);
}
}
}
}
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
wx
.
hideLoading
();
wx
.
hideLoading
();
});
}
else
{
this
.
getOutputValueStatistics
(
userInfo
)
}
},
async
getOutputValueStatistics
(
userInfo
)
{
let
today
=
new
Date
()
const
{
routeParams
,
tmlpFormData
,
tmlpInitData
}
=
this
.
data
;
let
thisMonth
=
new
Date
(
new
Date
().
setDate
(
1
)).
format
(
'yyyy-MM-dd'
)
const
dataobj
=
{
today
:
{
startTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
},
month
:
{
startTime
:
thisMonth
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
},
}
let
resObj
=
{
staffTodayTotal
:
{},
staffMonthTotal
:
{}
}
resObj
.
staffTodayTotal
=
await
api
.
outputValueStatistics
({
...
dataobj
.
today
,
shopMerchantId
:
userInfo
?.
default4SStoreInfo
?.
merchantId
})
resObj
.
staffMonthTotal
=
await
api
.
outputValueStatistics
({
...
dataobj
.
month
,
shopMerchantId
:
userInfo
?.
default4SStoreInfo
?.
merchantId
})
console
.
log
(
resObj
)
const
needDefaultCodeList
=
Object
.
keys
(
reportFirstAutoObj
);
if
(
needDefaultCodeList
.
includes
(
routeParams
.
code
))
{
reportFirstAutoObj
[
routeParams
.
code
]?.
list
.
forEach
((
item
)
=>
{
tmlpFormData
[
item
.
attrName
]
=
resObj
[
item
.
valueObj
]?.
data
.
totalOutputValue
+
""
;
});
});
this
.
setData
(
{
tmlpFormData
:
tmlpFormData
,
tabChange
:
false
,
},
()
=>
{
this
.
setData
({
tabChange
:
true
,
});
}
);
}
},
},
async
initData
(
options
)
{
async
initData
(
options
)
{
...
@@ -815,8 +861,8 @@ Page({
...
@@ -815,8 +861,8 @@ Page({
if
(
k
.
key
.
includes
(
"attendingStaff"
))
{
if
(
k
.
key
.
includes
(
"attendingStaff"
))
{
this
.
data
[
"staffCheckList"
+
trainSuffix
]
=
k
.
value
this
.
data
[
"staffCheckList"
+
trainSuffix
]
=
k
.
value
?
k
.
value
.
split
(
","
).
map
((
item
)
=>
{
?
k
.
value
.
split
(
","
).
map
((
item
)
=>
{
return
{
staffName
:
item
};
return
{
staffName
:
item
};
})
})
:
[];
:
[];
}
}
if
(
k
.
key
.
includes
(
"trainingPhotos"
)
&&
k
.
value
)
{
if
(
k
.
key
.
includes
(
"trainingPhotos"
)
&&
k
.
value
)
{
...
@@ -1107,7 +1153,7 @@ Page({
...
@@ -1107,7 +1153,7 @@ Page({
confirmText
:
"好的"
,
confirmText
:
"好的"
,
confirmColor
:
"#347BFF"
,
confirmColor
:
"#347BFF"
,
showCancel
:
false
,
showCancel
:
false
,
success
(
res
)
{},
success
(
res
)
{
},
});
});
return
true
;
return
true
;
}
}
...
...
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