| 123456789101112131415161718192021222324252627282930 |
- <My_empty wx:if="{{list.length==0}}" />
- <navigator class="offer-list" data-id="{{item.sa_quotedpriceid}}" bindtap="toDetail" wx:for="{{list}}" wx:key="billno">
- <view class="title">
- <text class="line-1">单号:{{item.billno}}</text>
- <view class="status" style="background-color: {{backColor.getColor(item.status)}};">{{item.status}}</view>
- </view>
- <view class="tag-box">
- <van-tag custom-class='tag' color='#FA8C16' text-color='#fff' round>{{item.quotedpricetype}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
- </view>
- <view class="exp line-1">客户:<text>{{item.enterprisename}}</text></view>
- <view class="exp line-1">报价日期:<text>{{item.billdate}}</text></view>
- <view class="exp line-1">特价:<text>{{item.specialoffer==1?'是':'否'}}</text></view>
- <van-button custom-class='copy' data-item="{{item}}" catch:tap='copyItem'>复制</van-button>
- </navigator>
- <wxs module="backColor">
- module.exports.getColor = function (status) {
- var color = null;
- if (status == '新建') {
- color = '#3874F6';
- } else if (status == '提交') {
- color = '#52C41A';
- } else {
- color = '#FA8C16';
- };
- return color
- }
- </wxs>
|