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 6a3d8a28
authored
Nov 20, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权限控制
1 parent
0616ee55
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
91 additions
and
44 deletions
components/TabMine/TabMine.wxml
config.js
packageEquity/pages/index/index.js
tabMine/pages/collectCoupons/collectCoupons.js
tabMine/pages/completeBuild/completeBuild.js
tabMine/pages/completeBuild/completeBuild.sass
tabMine/pages/completeBuild/completeBuild.wxml
tabMine/pages/technicianSetup/technicianSetup.js
tabMine/pages/technicianSetup/technicianSetup.sass
tabMine/pages/technicianSetup/technicianSetup.wxml
components/TabMine/TabMine.wxml
View file @
6a3d8a2
<!--components/tabMine/TabMine.wxml-->
<!--components/tabMine/TabMine.wxml-->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view>2222</view>
<view class="bg"></view>
<view class="bg"></view>
<block>
<block>
<view class="main" style="margin-top:104rpx">
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-box">
<view class="user-avatar">
<view class="user-avatar">
...
@@ -28,7 +27,7 @@
...
@@ -28,7 +27,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<block
>
<block
>
<!-- <view class="scene_box">
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="title">场景</view>
<view class="select_item">
<view class="select_item">
...
@@ -58,23 +57,21 @@
...
@@ -58,23 +57,21 @@
<view class="set_tips">设置录单必填项</view>
<view class="set_tips">设置录单必填项</view>
</view> -->
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="title">场景切换
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">{{selectedSceneName}}</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode=""
/>
</view>
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="title">更新日志
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""
/>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode=""
/>
</view>
</view>
</view>
</view>
</block>
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</view>
</block>
</block>
\ No newline at end of file
\ No newline at end of file
config.js
View file @
6a3d8a2
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
1
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageEquity/pages/index/index.js
View file @
6a3d8a2
...
@@ -65,13 +65,20 @@ Component({
...
@@ -65,13 +65,20 @@ Component({
value
:
'avgQuotationPrice'
,
value
:
'avgQuotationPrice'
,
icon
:
'icon_11'
,
icon
:
'icon_11'
,
unit
:
true
unit
:
true
},
{
label
:
'报价单量'
,
value
:
'totalOrderCount'
,
icon
:
'icon_4'
},
{
label
:
'成交单量'
,
value
:
'totalSuccessOrderCount'
,
icon
:
'icon_7'
}],
}],
menuList
:
[{
menuList
:
[{
menuText
:
'新建工单'
,
menuText
:
'新建工单'
,
icon
:
'create_order'
,
icon
:
'create_order'
,
path
:
''
path
:
''
}
}],
],
loginRoleLabel
:
{
loginRoleLabel
:
{
1
:
'超管'
,
1
:
'超管'
,
2
:
'商户管理员'
,
2
:
'商户管理员'
,
...
@@ -95,7 +102,7 @@ Component({
...
@@ -95,7 +102,7 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
onLoad
()
{
onLoad
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
...
@@ -115,19 +122,17 @@ Component({
...
@@ -115,19 +122,17 @@ Component({
code
,
code
,
message
message
}
=
res
}
=
res
let
data
=
res
.
data
?
let
data
=
res
.
data
?
{
{
...
res
.
data
,
...
res
.
data
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurnover
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
todayTurDecimal
:
res
.
data
.
todayTurnover
?
((
res
.
data
.
todayTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
// totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
totalTurnover
:
res
.
data
.
totalTurnover
?
Math
.
round
(
res
.
data
.
totalTurnover
/
100
):
'0'
,
totalTurnover
:
res
.
data
.
totalTurnover
?
Math
.
round
(
res
.
data
.
totalTurnover
/
100
)
:
'0'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
totalTurDecimal
:
res
.
data
.
totalTurnover
?
((
res
.
data
.
totalTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
1
]
:
'00'
,
monthTurnover
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
monthTurnover
:
res
.
data
.
monthTurnover
?
((
res
.
data
.
monthTurnover
/
100
).
toFixed
(
2
)
+
''
).
split
(
'.'
)[
0
]
:
'0'
,
// monthTurnover: 12233,
// monthTurnover: 12233,
// monthTurDecimal: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
// monthTurDecimal: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
}
:
}
:
{}
{}
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
setData
({
this
.
setData
({
statisticsObj
:
data
statisticsObj
:
data
...
@@ -141,32 +146,39 @@ Component({
...
@@ -141,32 +146,39 @@ Component({
getData
()
{
getData
()
{
// const userInfo = wx.$util.getUserInfo()
// const userInfo = wx.$util.getUserInfo()
const
{
dataActive
,
merchantId
}
=
this
.
data
const
{
dataActive
,
merchantId
}
=
this
.
data
let
today
=
new
Date
()
let
today
=
new
Date
()
let
thisMonth
=
new
Date
(
new
Date
().
setDate
(
1
)).
format
(
'yyyy-MM-dd'
)
let
thisMonth
=
new
Date
(
new
Date
().
setDate
(
1
)).
format
(
'yyyy-MM-dd'
)
const
dataobj
=
{
const
dataobj
=
{
today
:{
today
:
{
startTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
startTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
},
},
month
:{
month
:
{
startTime
:
thisMonth
+
' 00:00:00'
,
startTime
:
thisMonth
+
' 00:00:00'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
endTime
:
today
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
,
},
},
total
:{
total
:
{
startTime
:
''
,
startTime
:
''
,
endTime
:
''
,
endTime
:
''
,
}
}
}
}
outputValueStatistics
({
outputValueStatistics
({
...
dataobj
[
dataActive
],
...
dataobj
[
dataActive
],
}).
then
(
res
=>
{
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
data
.
conversionRate
=
NP
.
times
(
data
.
conversionRate
,
100
)
data
.
conversionRate
=
NP
.
times
(
data
.
conversionRate
,
100
)
data
.
avgPrice
=
NP
.
divide
(
data
.
avgPrice
,
100
)
data
.
avgPrice
=
NP
.
divide
(
data
.
avgPrice
,
100
)
data
.
avgPrice
=
NP
.
round
(
data
.
avgPrice
,
0
)
data
.
avgPrice
=
NP
.
round
(
data
.
avgPrice
,
0
)
data
.
totalOutputValue
=
NP
.
round
(
data
.
totalOutputValue
,
0
)
data
.
totalOutputValue
=
NP
.
round
(
data
.
totalOutputValue
,
0
)
this
.
setData
({
this
.
setData
({
staticData
:
data
||
{}
staticData
:
data
||
{}
})
})
...
@@ -175,8 +187,10 @@ Component({
...
@@ -175,8 +187,10 @@ Component({
}
}
})
})
},
},
changeDataSelect
(
e
)
{
changeDataSelect
(
e
)
{
let
{
name
}
=
e
.
currentTarget
.
dataset
let
{
name
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
dataActive
:
name
dataActive
:
name
})
})
...
@@ -200,7 +214,9 @@ Component({
...
@@ -200,7 +214,9 @@ Component({
// }
// }
// },
// },
navGo
()
{
navGo
()
{
let
{
mode
}
=
this
.
data
let
{
mode
}
=
this
.
data
wx
.
$router
.
go
(
mode
?
'createOrderCarQuotationSimple'
:
'createOrderCarQuotation'
)
wx
.
$router
.
go
(
mode
?
'createOrderCarQuotationSimple'
:
'createOrderCarQuotation'
)
// console.log(e)
// console.log(e)
// const thisPage = wx.$router.getPageInstance()
// const thisPage = wx.$router.getPageInstance()
...
...
tabMine/pages/collectCoupons/collectCoupons.js
View file @
6a3d8a2
...
@@ -94,6 +94,10 @@ Page({
...
@@ -94,6 +94,10 @@ Page({
changeYQSwitch
(
e
)
{
changeYQSwitch
(
e
)
{
console
.
log
(
'e'
,
e
);
console
.
log
(
'e'
,
e
);
let
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
value
value
}
=
e
.
detail
}
=
e
.
detail
let
{
let
{
...
@@ -108,6 +112,10 @@ Page({
...
@@ -108,6 +112,10 @@ Page({
change4sSwitch
(
e
)
{
change4sSwitch
(
e
)
{
console
.
log
(
'e'
,
e
);
console
.
log
(
'e'
,
e
);
let
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
value
value
}
=
e
.
detail
}
=
e
.
detail
let
{
let
{
...
@@ -134,9 +142,11 @@ Page({
...
@@ -134,9 +142,11 @@ Page({
submitContactInfo
()
{
submitContactInfo
()
{
let
{
let
{
info
info
,
userInfo
}
=
this
.
data
}
=
this
.
data
console
.
log
(
'info'
,
info
);
console
.
log
(
'info'
,
info
);
if
(
userInfo
.
userType
==
2
)
return
if
(
!
info
.
contactName
)
{
if
(
!
info
.
contactName
)
{
return
wx
.
$util
.
showToast
(
'请输入姓名'
)
return
wx
.
$util
.
showToast
(
'请输入姓名'
)
}
}
...
@@ -152,8 +162,10 @@ Page({
...
@@ -152,8 +162,10 @@ Page({
editYQInfo
()
{
editYQInfo
()
{
let
{
let
{
info
info
,
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
info
.
isEdit
=
true
info
.
isEdit
=
true
this
.
setData
({
this
.
setData
({
info
info
...
@@ -179,6 +191,10 @@ Page({
...
@@ -179,6 +191,10 @@ Page({
editShopInfo
(
e
)
{
editShopInfo
(
e
)
{
let
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
index
index
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
...
@@ -190,8 +206,10 @@ Page({
...
@@ -190,8 +206,10 @@ Page({
index
index
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
let
{
let
{
info
info
,
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
if
(
!
info
.
shopMerchantConfigList
[
index
].
contactName
)
{
if
(
!
info
.
shopMerchantConfigList
[
index
].
contactName
)
{
return
wx
.
$util
.
showToast
(
'请输入姓名'
)
return
wx
.
$util
.
showToast
(
'请输入姓名'
)
}
}
...
...
tabMine/pages/completeBuild/completeBuild.js
View file @
6a3d8a2
...
@@ -91,6 +91,10 @@ Page({
...
@@ -91,6 +91,10 @@ Page({
//是否开启电子签名
//是否开启电子签名
changeSwitch
(
e
)
{
changeSwitch
(
e
)
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
console
.
log
(
'e'
,
e
);
console
.
log
(
'e'
,
e
);
let
{
let
{
value
value
...
...
tabMine/pages/completeBuild/completeBuild.sass
View file @
6a3d8a2
...
@@ -131,3 +131,6 @@ page {
...
@@ -131,3 +131,6 @@ page {
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.disabled
{
opacity
:
.5
;
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/completeBuild/completeBuild.wxml
View file @
6a3d8a2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="createData">
<view class="createData">
<view class="label">是否开启客户电子签名及评分选项</view>
<view class="label">是否开启客户电子签名及评分选项</view>
<switch color="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
<switch c
lass=" {{userInfo.userType == 2 ?'disabled':''}}" c
olor="#347BFF" isYqdSuper="{{isYqdSuper}}" checked="{{saturdayFlag}}" bindchange="changeSwitch" data-target="saturdayFlag" />
</view>
</view>
<view class="box">
<view class="box">
<view class="box-label">客户电子签名及施工页面:</view>
<view class="box-label">客户电子签名及施工页面:</view>
...
...
tabMine/pages/technicianSetup/technicianSetup.js
View file @
6a3d8a2
...
@@ -32,6 +32,7 @@ Page({
...
@@ -32,6 +32,7 @@ Page({
technicianList
,
technicianList
,
userInfo
userInfo
}
=
this
.
data
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
technicianList
.
unshift
({
technicianList
.
unshift
({
staffName
:
''
,
staffName
:
''
,
staffPhone
:
''
,
staffPhone
:
''
,
...
@@ -45,6 +46,10 @@ Page({
...
@@ -45,6 +46,10 @@ Page({
},
},
editTechicianInfo
(
e
)
{
editTechicianInfo
(
e
)
{
let
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
index
index
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
...
...
tabMine/pages/technicianSetup/technicianSetup.sass
View file @
6a3d8a2
...
@@ -146,3 +146,7 @@ page {
...
@@ -146,3 +146,7 @@ page {
.placeholder-class
{
.placeholder-class
{
color
:
#BEC1C7
;
color
:
#BEC1C7
;
}
}
.disabled
{
opacity
:
.5
;
}
\ No newline at end of file
\ No newline at end of file
tabMine/pages/technicianSetup/technicianSetup.wxml
View file @
6a3d8a2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="scrollCon">
<view class="scrollCon">
<view class="merchantNameCon">
<view class="merchantNameCon">
<view class="name">{{userInfo.merchantName}}</view>
<view class="name">{{userInfo.merchantName}}</view>
<view class="addIcon" bind:tap="addTechnicalItem">
<view class="addIcon
{{userInfo.userType == 2 ?'disabled':''}}
" bind:tap="addTechnicalItem">
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon-plus.png" />
<image class="icon-plus" src="{{IMG_URL}}/miniProgram/icon-plus.png" />
技师
技师
</view>
</view>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</view>
</view>
<view class="phone">手机号 {{item.staffPhone}}</view>
<view class="phone">手机号 {{item.staffPhone}}</view>
</view>
</view>
<image class="icon-edit" bind:tap="editTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
<image class="icon-edit
{{userInfo.userType == 2 ?'disabled':''}}
" bind:tap="editTechicianInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
<!-- <view class="top">
<!-- <view class="top">
<view class="message">
<view class="message">
...
...
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