orderList.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <cu-custom bgColor="bg-color" isBack="{{true}}" title="订单列表"></cu-custom>
  2. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  3. <view class="query_top_hu"></view>
  4. <view class="worker_search">
  5. <view class="worker_search_con">
  6. <input type="text" placeholder="请输入关键字" value="{{keyword}}" bindinput="setKeyword"></input>
  7. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  8. </view>
  9. <view class="tabs">
  10. <view bindtap="setTab" data-type="dateTime">
  11. <!-- <view style="{{dateTime ? 'color:#2D59E6':''}}">{{dateTime ? dateTime:'下单时间'}}</view> -->
  12. <picker mode="date" value="{{orderTime}}" bindchange="setorderTime" bindcancel='orderTimeCancel' >
  13. <view class="picker" style="{{orderTime ?'color:#2D59E6':''}}">
  14. {{orderTime || "下单时间"}}
  15. </view>
  16. </picker>
  17. <image src="../../../img/query.png"></image>
  18. </view>
  19. <view bindtap="setTab" data-type="transportStatus">
  20. <view style="{{transportStatusInit ?'color:#2D59E6':''}}">{{transportStatusInit ? seleteName:'运输状态'}}</view>
  21. <image src="../../../img/query.png"></image>
  22. </view>
  23. <!-- <view>
  24. <picker mode="date" value="{{startDate}}" bindchange="setStartDate" bindcancel='pickerCancel' >
  25. <view class="picker" style="{{startDate ?'color:#2D59E6':''}}">
  26. {{startDate || "选择日期"}}
  27. </view>
  28. </picker>
  29. <image src="../../../img/query.png"></image>
  30. </view> -->
  31. </view>
  32. <view class="selectTab" style="{{isTab ? 'display:block':'display:none'}}">
  33. <view class="tabText">
  34. <block wx:for="{{tabDetail}}" wx:for-item="item" wx:for-index="index" wx:key='index'>
  35. <view bindtap="seleteTab" data-item="{{item}}" data-type="{{item.type}}"
  36. class="{{item.isSelete ? 'isActive' :''}}">{{item.name}}</view>
  37. </block>
  38. </view>
  39. <view class="tabBut">
  40. <text class="cancel" bindtap="cancel">重置</text>
  41. <text class="query" bindtap="searchType">确定</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="query_list">
  46. <view class="query_item" wx:for="{{list}}" wx:key="id">
  47. <view>
  48. <view class="query_item_txt"><text class="query_item_label">订单号:</text> <text>{{item.code || "N/A"}}</text></view>
  49. <view class="query_item_txt"><text class="query_item_label">下单日期:</text> <text>{{item.orderTime || "N/A"}}</text>
  50. </view>
  51. <view class="query_item_txt">
  52. <text class="query_item_label">客户名称: </text>
  53. <view> {{item.cusName || "N/A"}}</view>
  54. </view>
  55. <view class="query_item_txt">
  56. <text class="query_item_label">承运商: </text>
  57. <text> {{item.transportName || "N/A"}}</text>
  58. </view>
  59. <view class="query_item_txt">
  60. <text class="query_item_label">运抵省份: </text>
  61. <text> {{item.province || "N/A"}}</text>
  62. </view>
  63. <view class="query_item_txt">
  64. <text class="query_item_label">车牌: </text>
  65. <text> {{item.plateNum || "N/A"}}</text>
  66. </view>
  67. </view>
  68. <view class="query_btn" wx:if="{{item.chainId}}" bindtap="goChainInfo" data-id="{{item.chainId}}" data-cid="{{item.uid}}">
  69. 查看详情
  70. </view>
  71. </view>
  72. </view>
  73. <view class="no_data" wx:if="{{list.length<=0}}">
  74. <image src="/img/nodata_img2.png"></image>
  75. <view class="no_data_txt">暂无数据</view>
  76. </view>
  77. <view class="cha_win" bindtap="closeChaWin" style="{{isTab ? 'display:block':'display:none'}}"></view>