Commit 10bc84a0 by chenwq

看产值

1 parent 1f16e458
......@@ -19,10 +19,10 @@ Component({
// 场景(1精品升级,3众筹,0会员权益)
sceneType: ''
}
},
observer: function (n) {
n && this.search()
}
// observer: function (n) {
// n && this.merchantRefresh()
// }
}
},
......@@ -33,196 +33,210 @@ Component({
IMG_URL,
bgUrl: `${IMG_URL}/personal/empty_tran.png`,
formData: {},
serviceName: '四川精手指鑫都汽车服务有限公司',
totalObj: {
scene1Total: '72536',
scene0Total: '76400',
scene3Total: '15486',
total: '164422'
},
serviceName: '',
totalObj: {},
// totalObj: {
// scene1Total: '72536',
// scene0Total: '76400',
// scene3Total: '15486',
// total: '164422'
// },
// 1精品升级(太阳膜),3众筹,0会员权益)
merchantList: [],
// 服务商-多4s店-全部
allMerchantList: [{
yearMonth: '2023-08',
curMonthTotalData: {
scene1Total: '5986',
scene0Total: '76400',
scene3Total: '11000',
total: '19567'
},
merchantDataList: [{
merchantId: 44211638,
merchantName: '四川申蓉汇亚汽车贸易有限公司',
productCodes: ['PC009'],
curMonthTotalData: {
scene1Total: '5026',
scene0Total: '11000',
scene3Total: '2581',
total: '18607'
},
lastMonthTotalData: {
scene1Total: '51122',
scene0Total: '2355',
scene3Total: '65400',
total: '0'
}
}, {
merchantId: 44211638,
merchantName: '四川港宏新通汽车销售服务有限公司',
productCodes: ['PC003', 'PC005', 'PC006', 'PC007', 'PC009'],
curMonthTotalData: {
scene1Total: '960',
scene0Total: '0',
scene3Total: '0',
total: '960'
},
lastMonthTotalData: {
scene1Total: '123223',
scene0Total: '0',
scene3Total: '0',
total: '0'
}
}]
}],
// allMerchantList: [{
// yearMonth: '2023-08',
// curMonthTotalData: {
// scene1Total: '5986',
// scene0Total: '76400',
// scene3Total: '11000',
// total: '19567'
// },
// merchantDataList: [{
// merchantId: 44211638,
// merchantName: '四川申蓉汇亚汽车贸易有限公司',
// productCodes: ['PC009'],
// curMonthTotalData: {
// scene1Total: '5026',
// scene0Total: '11000',
// scene3Total: '2581',
// total: '18607'
// },
// lastMonthTotalData: {
// scene1Total: '51122',
// scene0Total: '2355',
// scene3Total: '65400',
// total: '0'
// }
// }, {
// merchantId: 44211638,
// merchantName: '四川港宏新通汽车销售服务有限公司',
// productCodes: ['PC003', 'PC005', 'PC006', 'PC007', 'PC009'],
// curMonthTotalData: {
// scene1Total: '960',
// scene0Total: '0',
// scene3Total: '0',
// total: '960'
// },
// lastMonthTotalData: {
// scene1Total: '123223',
// scene0Total: '0',
// scene3Total: '0',
// total: '0'
// }
// }]
// }],
// 指定场景
otherMerchantList: [{
yearMonth: '2023-08',
curMonthTotalData: {
totalCustomer: '22',
total: '133862000',
notUpgradeCount: '22',
bizTotal: '960523',
custUnitPrice: '1523',
upgradeCount: '66',
activityTotal: '25',
orderTotal: '22',
upgradeRate: '65',
productCode: 'pc001'
},
merchantDataList: [{
merchantId: 111,
merchantName: '广西弘泽汽车销售服务有限公司',
bizTotal: '39000',
curDayTotalData: {
totalCustomer: '177',
total: '',
notUpgradeCount: '199',
bizTotal: '18228',
custUnitPrice: '559',
upgradeCount: '177',
activityTotal: '',
orderTotal: '',
upgradeRate: '89',
productCode: ''
},
curMonthTotalData: [{
totalCustomer: '2000',
total: '',
notUpgradeCount: '199',
bizTotal: '258228',
custUnitPrice: '559',
upgradeCount: '2000',
activityTotal: '1',
orderTotal: '22',
upgradeRate: '12',
productCode: '',
productName: '数字化美容'
}, {
totalCustomer: '2000',
total: '',
notUpgradeCount: '199',
bizTotal: '258228',
custUnitPrice: '559',
upgradeCount: '2000',
activityTotal: '3',
orderTotal: '50',
upgradeRate: '12',
productCode: '',
productName: '座椅通风'
}, {
totalCustomer: '2000',
total: '',
notUpgradeCount: '199',
bizTotal: '258228',
custUnitPrice: '559',
upgradeCount: '2000',
activityTotal: '1',
orderTotal: '22',
upgradeRate: '12',
productCode: '',
productName: 'AR导航'
}]
}, {
merchantId: 222,
merchantName: '益阳佳烨丰田汽车销售服务有限公司啦啦啦啦',
bizTotal: '19000',
curDayTotalData: {
totalCustomer: '',
total: '',
notUpgradeCount: '199',
bizTotal: '18228',
custUnitPrice: '559',
upgradeCount: '2000',
activityTotal: '',
orderTotal: '',
upgradeRate: '89',
productCode: ''
},
curMonthTotalData: [{
totalCustomer: '',
total: '',
notUpgradeCount: '199',
bizTotal: '258228',
custUnitPrice: '559',
upgradeCount: '2000',
activityTotal: '1',
orderTotal: '22',
upgradeRate: '5',
productCode: '',
productName: 'AR导航'
}]
}]
}]
},
lifetimes: {
attached() {
this.getMerchant()
}
// otherMerchantList: [{
// yearMonth: '2023-08',
// curMonthTotalData: {
// totalCustomer: '22',
// total: '133862000',
// notUpgradeCount: '22',
// bizTotal: '960523',
// custUnitPrice: '1523',
// upgradeCount: '66',
// activityTotal: '25',
// orderTotal: '22',
// upgradeRate: '65',
// productCode: 'pc001'
// },
// merchantDataList: [{
// merchantId: 111,
// merchantName: '广西弘泽汽车销售服务有限公司',
// bizTotal: '39000',
// curDayTotalData: {
// totalCustomer: '177',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '18228',
// custUnitPrice: '559',
// upgradeCount: '177',
// activityTotal: '',
// orderTotal: '',
// upgradeRate: '89',
// productCode: ''
// },
// curMonthTotalData: [{
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '12',
// productCode: '',
// productName: '数字化美容'
// }, {
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '3',
// orderTotal: '50',
// upgradeRate: '12',
// productCode: '',
// productName: '座椅通风'
// }, {
// totalCustomer: '2000',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '12',
// productCode: '',
// productName: 'AR导航'
// }]
// }, {
// merchantId: 222,
// merchantName: '益阳佳烨丰田汽车销售服务有限公司啦啦啦啦',
// bizTotal: '19000',
// curDayTotalData: {
// totalCustomer: '',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '18228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '',
// orderTotal: '',
// upgradeRate: '89',
// productCode: ''
// },
// curMonthTotalData: [{
// totalCustomer: '',
// total: '',
// notUpgradeCount: '199',
// bizTotal: '258228',
// custUnitPrice: '559',
// upgradeCount: '2000',
// activityTotal: '1',
// orderTotal: '22',
// upgradeRate: '5',
// productCode: '',
// productName: 'AR导航'
// }]
// }]
// }]
},
// lifetimes: {
// attached() {
// this.getMerchantList()
// }
// },
/**
* 组件的方法列表
*/
methods: {
search() {
// search() {
// console.log(this.data.searchForm, 'searchForm---')
// let { sceneType } = this.data.searchForm
// let { allMerchantList, otherMerchantList } = this.data
// this.setData({
// merchantList: !sceneType ? allMerchantList : otherMerchantList
// })
// },
merchantRefresh(isReset = false) {
this.getTotal()
this.getMerchantList(isReset)
},
getTotal() {
},
getMerchantList(isReset = false) {
let { userInfo } = wx.$storage.get()
console.log(this.data.searchForm, 'searchForm---')
let { sceneType } = this.data.searchForm
let { allMerchantList, otherMerchantList } = this.data
let { searchForm } = this.data
this.setData({
merchantList: !sceneType ? allMerchantList : otherMerchantList
serviceName: userInfo.subLoginUser.merchantName
})
},
getMerchant(isReset = false) {
let { userInfo } = wx.$storage.get()
let params = {
partnerMerchantId: userInfo.subLoginUser.merchantId
partnerMerchantId: userInfo.subLoginUser.merchantId,
merchantId: searchForm.shopMerchantIds.length ? searchForm.shopMerchantIds[0] : ''
}
outputApi.getStaffList(params).then(res => {
if (isReset) {
this.setData({
busiScrollTop: 0
})
}
this.setData({
triggered: false
})
// let _list = []
// _list = res || []
// this.setData({
// merchantList: _list
// })
})
// outputApi.getStaffList(params).then(res => {
// if (isReset) {
// this.setData({
// busiScrollTop: 0
// })
// }
// this.setData({
// triggered: false
// })
// // let _list = []
// // _list = res || []
// // this.setData({
// // merchantList: _list
// // })
// })
},
}
......
......@@ -71,6 +71,7 @@ Page({
console.log(this.data.screenFormData, 'screenFormData')
if (!isNoBack) this.back()
let merchantModule = this.selectComponent('#merchant')
merchantModule.merchantRefresh && merchantModule.merchantRefresh(true)
let employessModule = this.selectComponent('#employess')
employessModule.getListData && employessModule.getListData(true)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!