Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-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 10bc84a0
authored
Aug 23, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值
1 parent
1f16e458
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
191 additions
and
176 deletions
pages/tab/outputValue/components/merchant/merchant.js
pages/tab/outputValue/outputValue.js
pages/tab/outputValue/components/merchant/merchant.js
View file @
10bc84a
...
@@ -19,10 +19,10 @@ Component({
...
@@ -19,10 +19,10 @@ Component({
// 场景(1精品升级,3众筹,0会员权益)
// 场景(1精品升级,3众筹,0会员权益)
sceneType
:
''
sceneType
:
''
}
}
},
observer
:
function
(
n
)
{
n
&&
this
.
search
()
}
}
// observer: function (n) {
// n && this.merchantRefresh()
// }
}
}
},
},
...
@@ -33,196 +33,210 @@ Component({
...
@@ -33,196 +33,210 @@ Component({
IMG_URL
,
IMG_URL
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
formData
:
{},
formData
:
{},
serviceName
:
'四川精手指鑫都汽车服务有限公司'
,
serviceName
:
''
,
totalObj
:
{
totalObj
:
{},
scene1Total
:
'72536'
,
// totalObj: {
scene0Total
:
'76400'
,
// scene1Total: '72536',
scene3Total
:
'15486'
,
// scene0Total: '76400',
total
:
'164422'
// scene3Total: '15486',
},
// total: '164422'
// },
// 1精品升级(太阳膜),3众筹,0会员权益)
// 1精品升级(太阳膜),3众筹,0会员权益)
merchantList
:
[],
merchantList
:
[],
// 服务商-多4s店-全部
// 服务商-多4s店-全部
allMerchantList
:
[{
//
allMerchantList: [{
yearMonth
:
'2023-08'
,
//
yearMonth: '2023-08',
curMonthTotalData
:
{
//
curMonthTotalData: {
scene1Total
:
'5986'
,
//
scene1Total: '5986',
scene0Total
:
'76400'
,
//
scene0Total: '76400',
scene3Total
:
'11000'
,
//
scene3Total: '11000',
total
:
'19567'
//
total: '19567'
},
//
},
merchantDataList
:
[{
//
merchantDataList: [{
merchantId
:
44211638
,
//
merchantId: 44211638,
merchantName
:
'四川申蓉汇亚汽车贸易有限公司'
,
//
merchantName: '四川申蓉汇亚汽车贸易有限公司',
productCodes
:
[
'PC009'
],
//
productCodes: ['PC009'],
curMonthTotalData
:
{
//
curMonthTotalData: {
scene1Total
:
'5026'
,
//
scene1Total: '5026',
scene0Total
:
'11000'
,
//
scene0Total: '11000',
scene3Total
:
'2581'
,
//
scene3Total: '2581',
total
:
'18607'
//
total: '18607'
},
//
},
lastMonthTotalData
:
{
//
lastMonthTotalData: {
scene1Total
:
'51122'
,
//
scene1Total: '51122',
scene0Total
:
'2355'
,
//
scene0Total: '2355',
scene3Total
:
'65400'
,
//
scene3Total: '65400',
total
:
'0'
//
total: '0'
}
//
}
},
{
//
}, {
merchantId
:
44211638
,
//
merchantId: 44211638,
merchantName
:
'四川港宏新通汽车销售服务有限公司'
,
//
merchantName: '四川港宏新通汽车销售服务有限公司',
productCodes
:
[
'PC003'
,
'PC005'
,
'PC006'
,
'PC007'
,
'PC009'
],
//
productCodes: ['PC003', 'PC005', 'PC006', 'PC007', 'PC009'],
curMonthTotalData
:
{
//
curMonthTotalData: {
scene1Total
:
'960'
,
//
scene1Total: '960',
scene0Total
:
'0'
,
//
scene0Total: '0',
scene3Total
:
'0'
,
//
scene3Total: '0',
total
:
'960'
//
total: '960'
},
//
},
lastMonthTotalData
:
{
//
lastMonthTotalData: {
scene1Total
:
'123223'
,
//
scene1Total: '123223',
scene0Total
:
'0'
,
//
scene0Total: '0',
scene3Total
:
'0'
,
//
scene3Total: '0',
total
:
'0'
//
total: '0'
}
//
}
}]
//
}]
}],
//
}],
// 指定场景
// 指定场景
otherMerchantList
:
[{
// otherMerchantList: [{
yearMonth
:
'2023-08'
,
// yearMonth: '2023-08',
curMonthTotalData
:
{
// curMonthTotalData: {
totalCustomer
:
'22'
,
// totalCustomer: '22',
total
:
'133862000'
,
// total: '133862000',
notUpgradeCount
:
'22'
,
// notUpgradeCount: '22',
bizTotal
:
'960523'
,
// bizTotal: '960523',
custUnitPrice
:
'1523'
,
// custUnitPrice: '1523',
upgradeCount
:
'66'
,
// upgradeCount: '66',
activityTotal
:
'25'
,
// activityTotal: '25',
orderTotal
:
'22'
,
// orderTotal: '22',
upgradeRate
:
'65'
,
// upgradeRate: '65',
productCode
:
'pc001'
// productCode: 'pc001'
},
// },
merchantDataList
:
[{
// merchantDataList: [{
merchantId
:
111
,
// merchantId: 111,
merchantName
:
'广西弘泽汽车销售服务有限公司'
,
// merchantName: '广西弘泽汽车销售服务有限公司',
bizTotal
:
'39000'
,
// bizTotal: '39000',
curDayTotalData
:
{
// curDayTotalData: {
totalCustomer
:
'177'
,
// totalCustomer: '177',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'18228'
,
// bizTotal: '18228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'177'
,
// upgradeCount: '177',
activityTotal
:
''
,
// activityTotal: '',
orderTotal
:
''
,
// orderTotal: '',
upgradeRate
:
'89'
,
// upgradeRate: '89',
productCode
:
''
// productCode: ''
},
// },
curMonthTotalData
:
[{
// curMonthTotalData: [{
totalCustomer
:
'2000'
,
// totalCustomer: '2000',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'258228'
,
// bizTotal: '258228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'2000'
,
// upgradeCount: '2000',
activityTotal
:
'1'
,
// activityTotal: '1',
orderTotal
:
'22'
,
// orderTotal: '22',
upgradeRate
:
'12'
,
// upgradeRate: '12',
productCode
:
''
,
// productCode: '',
productName
:
'数字化美容'
// productName: '数字化美容'
},
{
// }, {
totalCustomer
:
'2000'
,
// totalCustomer: '2000',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'258228'
,
// bizTotal: '258228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'2000'
,
// upgradeCount: '2000',
activityTotal
:
'3'
,
// activityTotal: '3',
orderTotal
:
'50'
,
// orderTotal: '50',
upgradeRate
:
'12'
,
// upgradeRate: '12',
productCode
:
''
,
// productCode: '',
productName
:
'座椅通风'
// productName: '座椅通风'
},
{
// }, {
totalCustomer
:
'2000'
,
// totalCustomer: '2000',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'258228'
,
// bizTotal: '258228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'2000'
,
// upgradeCount: '2000',
activityTotal
:
'1'
,
// activityTotal: '1',
orderTotal
:
'22'
,
// orderTotal: '22',
upgradeRate
:
'12'
,
// upgradeRate: '12',
productCode
:
''
,
// productCode: '',
productName
:
'AR导航'
// productName: 'AR导航'
}]
// }]
},
{
// }, {
merchantId
:
222
,
// merchantId: 222,
merchantName
:
'益阳佳烨丰田汽车销售服务有限公司啦啦啦啦'
,
// merchantName: '益阳佳烨丰田汽车销售服务有限公司啦啦啦啦',
bizTotal
:
'19000'
,
// bizTotal: '19000',
curDayTotalData
:
{
// curDayTotalData: {
totalCustomer
:
''
,
// totalCustomer: '',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'18228'
,
// bizTotal: '18228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'2000'
,
// upgradeCount: '2000',
activityTotal
:
''
,
// activityTotal: '',
orderTotal
:
''
,
// orderTotal: '',
upgradeRate
:
'89'
,
// upgradeRate: '89',
productCode
:
''
// productCode: ''
},
// },
curMonthTotalData
:
[{
// curMonthTotalData: [{
totalCustomer
:
''
,
// totalCustomer: '',
total
:
''
,
// total: '',
notUpgradeCount
:
'199'
,
// notUpgradeCount: '199',
bizTotal
:
'258228'
,
// bizTotal: '258228',
custUnitPrice
:
'559'
,
// custUnitPrice: '559',
upgradeCount
:
'2000'
,
// upgradeCount: '2000',
activityTotal
:
'1'
,
// activityTotal: '1',
orderTotal
:
'22'
,
// orderTotal: '22',
upgradeRate
:
'5'
,
// upgradeRate: '5',
productCode
:
''
,
// productCode: '',
productName
:
'AR导航'
// productName: 'AR导航'
}]
// }]
}]
// }]
}]
// }]
},
lifetimes
:
{
attached
()
{
this
.
getMerchant
()
}
},
},
// lifetimes: {
// attached() {
// this.getMerchantList()
// }
// },
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
search
()
{
// search() {
console
.
log
(
this
.
data
.
searchForm
,
'searchForm---'
)
// console.log(this.data.searchForm, 'searchForm---')
let
{
sceneType
}
=
this
.
data
.
searchForm
// let { sceneType } = this.data.searchForm
let
{
allMerchantList
,
otherMerchantList
}
=
this
.
data
// let { allMerchantList, otherMerchantList } = this.data
this
.
setData
({
// this.setData({
merchantList
:
!
sceneType
?
allMerchantList
:
otherMerchantList
// merchantList: !sceneType ? allMerchantList : otherMerchantList
})
// })
// },
merchantRefresh
(
isReset
=
false
)
{
this
.
getTotal
()
this
.
getMerchantList
(
isReset
)
},
getTotal
()
{
},
},
getMerchant
(
isReset
=
false
)
{
getMerchant
List
(
isReset
=
false
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
params
=
{
console
.
log
(
this
.
data
.
searchForm
,
'searchForm---'
)
partnerMerchantId
:
userInfo
.
subLoginUser
.
merchantId
let
{
searchForm
}
=
this
.
data
}
outputApi
.
getStaffList
(
params
).
then
(
res
=>
{
if
(
isReset
)
{
this
.
setData
({
this
.
setData
({
busiScrollTop
:
0
serviceName
:
userInfo
.
subLoginUser
.
merchantName
})
})
let
params
=
{
partnerMerchantId
:
userInfo
.
subLoginUser
.
merchantId
,
merchantId
:
searchForm
.
shopMerchantIds
.
length
?
searchForm
.
shopMerchantIds
[
0
]
:
''
}
}
this
.
setData
({
// outputApi.getStaffList(params).then(res => {
triggered
:
false
// if (isReset) {
})
// let _list = []
// _list = res || []
// this.setData({
// this.setData({
// merchantList: _list
// busiScrollTop: 0
// })
// }
// this.setData({
// triggered: false
// })
// // let _list = []
// // _list = res || []
// // this.setData({
// // merchantList: _list
// // })
// })
// })
})
},
},
}
}
...
...
pages/tab/outputValue/outputValue.js
View file @
10bc84a
...
@@ -71,6 +71,7 @@ Page({
...
@@ -71,6 +71,7 @@ Page({
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
if
(
!
isNoBack
)
this
.
back
()
if
(
!
isNoBack
)
this
.
back
()
let
merchantModule
=
this
.
selectComponent
(
'#merchant'
)
let
merchantModule
=
this
.
selectComponent
(
'#merchant'
)
merchantModule
.
merchantRefresh
&&
merchantModule
.
merchantRefresh
(
true
)
let
employessModule
=
this
.
selectComponent
(
'#employess'
)
let
employessModule
=
this
.
selectComponent
(
'#employess'
)
employessModule
.
getListData
&&
employessModule
.
getListData
(
true
)
employessModule
.
getListData
&&
employessModule
.
getListData
(
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