Commit d7bcbfa1 by 前端

UI修改

1 parent 73212fd7
...@@ -31,11 +31,10 @@ ...@@ -31,11 +31,10 @@
} }
.searchTime { .searchTime {
margin-top: 24rpx; padding: 24rpx 0rpx;
display: flex; display: flex;
align-items: center; align-items: center;
z-index: 9999; z-index: 9999;
margin-bottom: 20rpx;
position: relative; position: relative;
.time { .time {
...@@ -43,7 +42,7 @@ ...@@ -43,7 +42,7 @@
// border: 2rpx solid #EBEBEB; // border: 2rpx solid #EBEBEB;
// border-radius: 32rpx; // border-radius: 32rpx;
background: #FFFFFF; background: #FFFFFF;
border: 1rpx solid #C3C3C3; border: 2rpx solid #C3C3C3;
border-radius: 6rpx; border-radius: 6rpx;
font-weight: 400; font-weight: 400;
font-size: 20rpx; font-size: 20rpx;
...@@ -57,7 +56,7 @@ ...@@ -57,7 +56,7 @@
// color: #4466F0; // color: #4466F0;
color: #fff; color: #fff;
background: #3582EE; background: #3582EE;
border: 1prx solid #3582EE; border: 2rpx solid #3582EE;
} }
.time+.time { .time+.time {
......
...@@ -112,7 +112,7 @@ Page({ ...@@ -112,7 +112,7 @@ Page({
}, },
//查看报表 //查看报表
getReport() { getReport() {
const { type, timeType, merchantId, timeValue,selectValue } = this.data const { type, timeType, merchantId, timeValue, selectValue } = this.data
let apiName, params let apiName, params
const dataT = { const dataT = {
1: { 1: {
...@@ -143,7 +143,7 @@ Page({ ...@@ -143,7 +143,7 @@ Page({
month: () => { month: () => {
apiName = 'merchantsOutputReport', apiName = 'merchantsOutputReport',
params = { params = {
orderBy:selectValue, orderBy: selectValue,
merchantIds: [merchantId], merchantIds: [merchantId],
startTime: new Date(timeValue).format('yyyy-MM') + '-01' + ' 00:00:00', startTime: new Date(timeValue).format('yyyy-MM') + '-01' + ' 00:00:00',
endTime: new Date(this.getNextMonth(timeValue)).format('yyyy-MM') + '-01' + ' 00:00:00', endTime: new Date(this.getNextMonth(timeValue)).format('yyyy-MM') + '-01' + ' 00:00:00',
...@@ -151,6 +151,15 @@ Page({ ...@@ -151,6 +151,15 @@ Page({
} }
} }
} }
let orderValue = {
1: {
unit: '¥',
value: 'outputValue',mult:1
}, 2: {
unit: '',
value: 'successCount',mult:1
}, 3: { unit: '', value: 'quotationCount',mult:1 }, 4: { sign: '%', value: 'conversionRate',mult:100 }
}
dataT[type][timeType]() dataT[type][timeType]()
ActivityApi[apiName](params).then(res => { ActivityApi[apiName](params).then(res => {
const list = res.employeeOutputList || res.staffList const list = res.employeeOutputList || res.staffList
...@@ -159,7 +168,9 @@ Page({ ...@@ -159,7 +168,9 @@ Page({
const billboard = staffList.map((item, idx) => { const billboard = staffList.map((item, idx) => {
return { return {
sort: idx + 1, sort: idx + 1,
value: item.outputValue || item.orderMoneyTotal || 0, unit: (type == 2 && timeType == 'month')?orderValue[selectValue].unit:'¥',
sign: (type == 2 && timeType == 'month')?orderValue[selectValue].sign:'',
value: (type == 2 && timeType == 'month') ? item[orderValue[selectValue].value]*orderValue[selectValue].mult : (item.outputValue || item.orderMoneyTotal || 0),
name: item.transferName || item.employeeName name: item.transferName || item.employeeName
} }
}) })
......
...@@ -248,12 +248,7 @@ ...@@ -248,12 +248,7 @@
line-height: 48rpx; line-height: 48rpx;
margin-bottom: 22rpx; margin-bottom: 22rpx;
display: flex; display: flex;
justify-content: space-between;
.unit {
margin-left: auto;
font-size: 22rpx;
color: #5A6066;
}
} }
.select-up { .select-up {
font-weight: 400; font-weight: 400;
......
...@@ -69,7 +69,6 @@ ...@@ -69,7 +69,6 @@
</view> </view>
</view> </view>
</view> </view>
<text class="unit">累计产值(元)</text>
</view> </view>
<view class="billboard-border"> <view class="billboard-border">
<block wx:if="{{billboard.length}}"> <block wx:if="{{billboard.length}}">
...@@ -77,7 +76,7 @@ ...@@ -77,7 +76,7 @@
<view class="billboard-item-bar"> <view class="billboard-item-bar">
<view class="bill-border"> <view class="bill-border">
<view class="bill-name">{{item.name}}</view> <view class="bill-name">{{item.name}}</view>
<view class="bill-num" wx:if="{{item.name}}"><text class="unit">¥</text>{{item.value}}</view> <view class="bill-num" wx:if="{{item.name}}"><text class="unit" wx:if="{{item.unit}}">{{item.unit}}</text>{{item.value}}<text class="unit" wx:if="{{item.sign}}">{{item.sign}}</text></view>
</view> </view>
<glsx-image webp custom-class="bill-bg" src="store-assistant-assemble/output/bill0{{item.sort}}.png"></glsx-image> <glsx-image webp custom-class="bill-bg" src="store-assistant-assemble/output/bill0{{item.sort}}.png"></glsx-image>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!