Commit f1bf6d51 by 前端

fixed

1 parent 374b76ad
...@@ -240,6 +240,14 @@ class ActivityApi { ...@@ -240,6 +240,14 @@ class ActivityApi {
...data ...data
}) })
} }
/**看产值-车损权益升级-产值总览当日 */
merchantsOutputToday(data) {
return api.post({
method: `scrm.api.boutiquecoupon.store.assistant.merchants.total.output.value.statistics.today`,
...data
})
}
/**看产值-车损权益升级-产值报表 */ /**看产值-车损权益升级-产值报表 */
merchantsOutputReport(data) { merchantsOutputReport(data) {
return api.post({ return api.post({
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
// 配置预发布的小程序aapId // 配置预发布的小程序aapId
export const preReleaseAppId = 'wxc50d04ae5aa9984a' export const preReleaseAppId = '55555'
// 小程序id // 小程序id
export const appId = 'wxc50d04ae5aa9984a' export const appId = 'wxc50d04ae5aa9984a'
......
<view class='tips'> <view class='tips'>
<view class='choose-box' bindtap="choose"> <view class='choose-box' bindtap="choose">
<view class='icon'> <view class='icon'>
<image src="{{agree?'./images/ok.png':'./images/box.png'}}" class='check-img' /> <icon wx:if="{{agree}}" class="icon-small" type="success" size="14" color="#4466F0"></icon>
<icon wx:else class="icon-small" type="circle" size="14" color="#4466F0"></icon>
</view> </view>
</view> </view>
阅读并同意以下协议 阅读并同意以下协议
......
...@@ -90,16 +90,16 @@ Component({ ...@@ -90,16 +90,16 @@ Component({
unit: '' unit: ''
}], }],
todayOutputValue: [{ todayOutputValue: [{
label: '发券量/张', label: '报价量',
name: 'avgQuotationPrice', name: 'quotationCount',
unit: '' unit: ''
}, { }, {
label: '升级订单/单', label: '成交量',
name: 'avgQuotationPrice', name: 'successCount',
unit: '' unit: ''
}, { }, {
label: '营业额(总)/元', label: '产值',
name: 'avgQuotationPrice', name: 'outputValue',
unit: '' unit: ''
}], }],
}, },
...@@ -131,14 +131,11 @@ Component({ ...@@ -131,14 +131,11 @@ Component({
initLocal(val) { initLocal(val) {
this.setData({ this.setData({
type: val, type: val,
listData: [],
activeTrigger: false, activeTrigger: false,
activePageNum: 1, noResult: false,
activeTotal: 0, outputData: {},
pageNum: 1, sfaffList: [],
total: 0, tabelTh: []
pageSize: 10,
noResult: false
}, () => { }, () => {
thisPage = wx.$router.getPageInstance() thisPage = wx.$router.getPageInstance()
this.getActivityInfo() this.getActivityInfo()
...@@ -148,6 +145,7 @@ Component({ ...@@ -148,6 +145,7 @@ Component({
this.initSearch() this.initSearch()
this.getOutput() this.getOutput()
this.getStaffOutput() this.getStaffOutput()
this.merchantsOutputToday()
this.getHistogram() this.getHistogram()
this.getTrend() this.getTrend()
}, },
...@@ -220,7 +218,7 @@ Component({ ...@@ -220,7 +218,7 @@ Component({
// 看产值-产值总览 // 看产值-产值总览
getOutput() { getOutput() {
const { const {
type type,
} = this.data } = this.data
let apiName = 'boutiquecouponOutputValue' let apiName = 'boutiquecouponOutputValue'
let params = { let params = {
...@@ -234,7 +232,19 @@ Component({ ...@@ -234,7 +232,19 @@ Component({
} }
ActivityApi[apiName](params).then(res => { ActivityApi[apiName](params).then(res => {
this.setData({ this.setData({
outputData: res outputData: { ...this.data.outputData, ...res }
})
console.log(this.data.outputData)
})
},
merchantsOutputToday() {
const {
type,
} = this.data
if (type != 2) return
ActivityApi.merchantsOutputToday({ merchantIds: [thisPage.data.merchantId] }).then(res => {
this.setData({
outputData: { ...this.data.outputData, ...res }
}) })
}) })
}, },
......
...@@ -129,7 +129,7 @@ Component({ ...@@ -129,7 +129,7 @@ Component({
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
let params = { let params = {
...sortSearchData, ...sortSearchData,
merchantIds: [userInfo.subLoginUser.merchantId], merchantIds: userInfo.subLoginUser.permissionMerchantIds,
} }
outputApi.getBusiStatistics(params).then(res => { outputApi.getBusiStatistics(params).then(res => {
this.resetBusiData() this.resetBusiData()
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 0rpx 24rpx 0rpx 40rpx; padding: 0rpx 24rpx 0rpx 40rpx;
input { input {
flex: 1;
height: 64rpx; height: 64rpx;
line-height: 64rpx; line-height: 64rpx;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!