index.wxml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <navigator url="/packageA/borrow/detail?id={{item.sa_orderid}}" class="item" wx:for="{{list}}" wx:key="sonum">
  2. <view class="top">
  3. 单据日期:{{item.billdate}}
  4. <view style="color: {{set.color(item.status)}};">
  5. {{item.status}}
  6. </view>
  7. </view>
  8. <view class="content">
  9. <view class="num">
  10. 单号:{{item.sonum}}
  11. </view>
  12. <view class="exp">
  13. 区域经理:{{item.name || ' --'}}
  14. </view>
  15. <view class="exp">
  16. 审核日期:{{item.checkdate || ' --'}}
  17. </view>
  18. <view class="exp">
  19. 合计数量:{{item.qty}}
  20. </view>
  21. <view class="amount">
  22. 合计:¥{{item.amount}}元
  23. </view>
  24. </view>
  25. <view wx:if="{{item.contacts.length}}" class="bottom line-1">
  26. <text style="margin-right: 10rpx;">{{item.contacts[0].name}}</text>
  27. <text style="margin-right: 10rpx;">{{item.contacts[0].phonenumber}}</text>
  28. <text style="margin-right: 10rpx;">{{item.contacts[0].address}}</text>
  29. </view>
  30. <view wx:else class="bottom">
  31. 暂无收货人
  32. </view>
  33. </navigator>
  34. <Yl_Empty wx:if="{{list.length==0}}" />
  35. <wxs module="set">
  36. module.exports = {
  37. color: function (statu) {
  38. var color = '#999999';
  39. switch (statu) {
  40. case "审核":
  41. color = '#FA8C16';
  42. break;
  43. case "提交":
  44. color = '#52C41A';
  45. break;
  46. case "新建":
  47. color = '#333333';
  48. break;
  49. };
  50. return color;
  51. }
  52. }
  53. </wxs>