| 1234567891011121314151617181920212223242526272829 |
- <My_empty wx:if="{{list.length==0}}" />
- <navigator class="offer-list" url="/packageA/salesForecasting/detail?sa_salesforecastbillid={{item.sa_salesforecastbillid}}" wx:for="{{list}}" wx:key="billnum">
- <view class="title">
- <text class="line-1">单号:{{item.billnum}}</text>
- <view class="status" style="background-color: {{backColor.getColor(item.status)}};">{{item.status}}</view>
- </view>
- <view class="tag-box">
- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:key="index" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
- </view>
- <view class="exp line-1">提报要求:<text>{{item.remarks}}</text></view>
- <view class="exp line-1">提报开始时间:<text>{{item.periodstart}}</text></view>
- <view class="exp line-1">提报截止时间:<text>{{item.periodend||' --'}}</text></view>
- <view class="exp line-1">预测金额:<text>{{item.amount}}</text></view>
- </navigator>
- <wxs module="backColor">
- module.exports.getColor = function (status) {
- var color = null;
- if (status == '待提报') {
- color = '#3874F6';
- } else if (status == '提报中') {
- color = '#52C41A';
- } else {
- color = '#BBBBBB';
- };
- return color
- }
- </wxs>
|