childlist.wxml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="冷链列表">
  3. <!-- <view slot="content">冷链列表</view> -->
  4. </cu-custom>
  5. <view class="worker_search">
  6. <view class="worker_search_con">
  7. <input type="text" placeholder="请输入查询信息" value="{{keyword}}" bindinput="setKeyword"></input>
  8. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  9. </view>
  10. </view>
  11. <view class="query_list">
  12. <view class="querLabel">
  13. <text>冷链状态</text>
  14. <view>
  15. <view class="label" bindtap="allStatus">{{text}}<image src="/img/down.png"></image></view>
  16. <view class="status" style="{{isStatus ? 'display: block;':'display: none;'}}">
  17. <text wx:for="{{status}}" wx:for-item="item" bindtap="setStatus" data-type="{{item.type}}">
  18. {{item.statu}}
  19. </text>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- <view class="query_item" wx:for="{{list}}" wx:key="id">
  24. <view>
  25. <view class="query_item_txt"><text class="query_item_label">编号:</text> {{item.code || "N/A"}}</view>
  26. <view class="query_item_txt">
  27. <text class="query_item_label">包装类型:</text>
  28. <text wx:if="{{item.packageType == 10}}">支</text>
  29. <text wx:if="{{item.packageType == 20}}">包</text>
  30. <text wx:if="{{item.packageType == 30}}">箱</text>
  31. <text wx:if="{{item.packageType == 40}}">托盘</text>
  32. <text wx:if="{{item.packageType == 50}}">其他</text>
  33. </view>
  34. <view class="query_item_txt">
  35. <text class="query_item_label">产品名称: </text>
  36. {{item.productName || "N/A"}}
  37. </view>
  38. <view class="query_item_txt">
  39. <text class="query_item_label">状态: </text>
  40. <text class="query_wx" wx:if="{{item.transportStatus == 00}}">在库</text>
  41. <text class="query_jb" wx:if="{{item.transportStatus == 10}}">运输中</text>
  42. <text class="query_zc" wx:if="{{item.transportStatus == 20}}">已结束</text>
  43. </view>
  44. <view class="query_item_txt"><text class="query_item_label">开始时间: </text> {{item.createTime || "N/A"}}</view>
  45. </view>
  46. <navigator url="/pages/query/details?id={{item.id}}" class="query_btn" wx:if="{{item.id}}">查看详情</navigator>
  47. </view> -->
  48. <view>
  49. <scroll-view scroll-y enable-back-to-top>
  50. <view>
  51. <block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="id">
  52. <view class="query_item {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart" bindtouchmove="touchMove" data-index="{{ index }}">
  53. <view class="info">
  54. <view>
  55. <view class="query_item_txt"><text class="query_item_label">编号:</text> {{item.code || "N/A"}}</view>
  56. <view class="query_item_txt">
  57. <text class="query_item_label">包装类型:</text>
  58. <text wx:if="{{item.packageType == 10}}">支</text>
  59. <text wx:if="{{item.packageType == 20}}">包</text>
  60. <text wx:if="{{item.packageType == 30}}">箱</text>
  61. <text wx:if="{{item.packageType == 40}}">托盘</text>
  62. <text wx:if="{{item.packageType == 50}}">其他</text>
  63. </view>
  64. <view class="query_item_txt">
  65. <text class="query_item_label">产品名称: </text>
  66. {{item.productName || "N/A"}}
  67. </view>
  68. <view class="query_item_txt">
  69. <text class="query_item_label">状态: </text>
  70. <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 00}}">已入库</text>
  71. <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 10}}">已出库</text>
  72. <text class="{{item.status == 00 ? 'query_zc': item.status == 10 ? 'query_jb': 'query_wx'}}" wx:if="{{item.transportStatus == 20}}">已结束</text>
  73. </view>
  74. <view class="query_item_txt"><text class="query_item_label">开始时间: </text> {{item.createTime || "N/A"}}
  75. </view>
  76. </view>
  77. <navigator url="/pages/query/details?id={{item.id}}&pid={{item.pid}}" class="query_btn" wx:if="{{item.id}}">查看详情
  78. </navigator>
  79. </view>
  80. <view class="scrollText">
  81. <view class="edit" bindtap="editList" data-index="{{ index }}" data-item="{{item}}"> 修改 </view>
  82. <view class="del" bindtap="delList" data-id="{{ item.id }}"> 删除 </view>
  83. </view>
  84. </view>
  85. </block>
  86. </view>
  87. </scroll-view>
  88. </view>
  89. </view>
  90. <view class="addLabel" bindtap="addLabel">
  91. <text>添加</text>
  92. </view>