| 123456789101112131415161718192021222324252627282930 |
- <My_empty wx:if="{{list.length==0}}" />
- <navigator class="offer-list" url="/packageA/offers/detail?sa_quotedpriceid={{item.sa_quotedpriceid}}" 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:key="index" wx:for-item='tag' color='#3874f6' 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.projectname||' --'}}</text></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>
- </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>
|