index.axml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <import-sjs from='../../../utils/index/utils.sjs' name='util'>
  2. <view class="page">
  3. <view class="main" onTap="clickAudio">
  4. <top-title urlPath='../../../' titleText="访客记录" />
  5. <!--<view class="tip"><image
  6. mode="scaleToFill"
  7. src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/tip.png"
  8. class="tip-icon"
  9. />
  10. 可以刷身份证签离</view> -->
  11. <view class="content">
  12. <view class="search-box flex1">
  13. <view class="flex">
  14. <view class="over1">
  15. <view class="search-item">
  16. <text>姓名:</text>
  17. <input
  18. class="input m-r"
  19. value="{{searchForm.data.name}}"
  20. onInput="getVal"
  21. data-key="name"
  22. placeholder="姓名"
  23. placeholder-class="time-placeholder"
  24. />
  25. </view>
  26. <view class="search-item">
  27. <text>身份证号:</text>
  28. <input
  29. class="input m-r"
  30. value="{{searchForm.data.idNumber}}"
  31. onInput="getVal"
  32. data-key="idNumber"
  33. placeholder="身份证号"
  34. placeholder-class="time-placeholder"
  35. />
  36. </view>
  37. <view class="search-item">
  38. <text>手机号:</text>
  39. <input
  40. class="input m-r"
  41. value="{{searchForm.data.phone}}"
  42. onInput="getVal"
  43. data-key="phone"
  44. placeholder="手机号"
  45. placeholder-class="time-placeholder"
  46. />
  47. </view>
  48. <view style="display: inline-block;">
  49. <picker
  50. value="{{searchForm.data.isSignOut}}"
  51. range="{{signOutList}}"
  52. range-key="name"
  53. onChange='getVal'
  54. data-key="isSignOut"
  55. >
  56. <view class="search-item flex">
  57. <text>是否签离:</text>
  58. <view class="{{searchForm.data.isSignOutName?'input m-r ':'input m-r time-placeholder'}}">
  59. {{searchForm.data.isSignOutName?searchForm.data.isSignOutName:'是否签离'}}
  60. </view>
  61. </view>
  62. </picker>
  63. </view>
  64. <view class="search-item wid1 flex">
  65. <text>来访时间:</text>
  66. <view
  67. class="{{searchForm.data.startTime?'input wid-time':'input wid-time time-placeholder'}}"
  68. onTap="datePicker"
  69. data-key="startTime"
  70. >
  71. {{searchForm.data.startTime ? searchForm.data.startTime : '起始时间'}}
  72. </view>
  73. <view class="pad">
  74. </view>
  75. <view
  76. class="{{searchForm.data.endTime?'input wid-time':'input wid-time time-placeholder'}}"
  77. onTap="datePicker"
  78. data-key="endTime"
  79. >
  80. {{searchForm.data.endTime ? searchForm.data.endTime : '结束时间'}}
  81. </view>
  82. </view>
  83. </view>
  84. <view class="flex1">
  85. <view class="inquire magnify" onTap="getTable">查询</view>
  86. <view class="clear magnify" onTap="clearFun">清空</view>
  87. </view>
  88. </view>
  89. <image
  90. class="close"
  91. mode="scaleToFill"
  92. src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/close.png"
  93. onTap="closeFun"
  94. />
  95. </view>
  96. <view class="table">
  97. <view class="flex3">
  98. <view class="table-tit">
  99. <view class="table-item one m-l-one">序号</view>
  100. <view class="table-item two">姓名</view>
  101. <view class="table-item three">身份证号</view>
  102. <view class="table-item four">手机号</view>
  103. <view class="table-item five">来访单位</view>
  104. <view class="table-item eight">受访人</view>
  105. <view class="table-item nine">受访部门</view>
  106. <view class="table-item ten">来访&签离时间</view>
  107. <view class="table-item twelve">来访&签离地点</view>
  108. <view class="table-item six">车牌</view>
  109. <view class="table-item seven">事由</view>
  110. </view>
  111. <view a:for="{{ tableList }}" class="table-content">
  112. <view class="table-item col one">
  113. {{(index+1+((searchForm.pageNum-1)*searchForm.pageSize))}}
  114. </view>
  115. <view class="table-item col two">
  116. {{util.desensitization(item.name,1,2,'VisitorLog',1,notDesensitizedColumn)}}
  117. </view>
  118. <view class="table-item col three">
  119. {{util.desensitization(item.idNumber,6,14,'VisitorLog',2,notDesensitizedColumn)}}
  120. </view>
  121. <view class="table-item col four">
  122. {{util.desensitization(item.phone,3,7,'VisitorLog',3,notDesensitizedColumn)}}
  123. </view>
  124. <view class="table-item col five ">{{item.company}}</view>
  125. <view class="table-item col eight">{{item.visiteeXm}}</view>
  126. <view class="table-item col nine">{{item.visiteeBm}}</view>
  127. <view class="table-item col ten">
  128. <view a:if="{{ item.startTime }}">
  129. 来:{{item.startTime}}
  130. </view>
  131. <view a:if="{{ item.signOutTime }}">
  132. 离:{{item.signOutTime}}
  133. </view>
  134. </view>
  135. <view class="table-item col twelve">
  136. <view a:if="{{ item.machineId }}">
  137. 来:{{item.registerAddress}}【{{item.machineId}}】
  138. </view>
  139. <view a:if="{{ item.signOutSn }}">
  140. 离:{{item.signOutAddress}}【{{item.signOutSn}}】
  141. </view>
  142. </view>
  143. <view class="table-item col six">{{item.carno}}</view>
  144. <view class="table-item col seven">{{item.reason}}</view>
  145. <view
  146. a:if="{{ !item.isSignOut }}"
  147. class="eleven magnify"
  148. onTap="signOff"
  149. data-item="{{item}}"
  150. data-index="{{index}}"
  151. >
  152. 签离
  153. </view>
  154. </view>
  155. </view>
  156. <tail-tip total='{{total}}' pageNum='{{pageNum}}'>
  157. </tail-tip>
  158. </view>
  159. <view a:if="{{ total>0 }}" class="bottom flex1">
  160. <view class="previous" onTap="previousFun">上一页</view>
  161. <view class="next" onTap="nextFun">下一页</view>
  162. <view class="total">共{{total}}条记录【 {{searchForm.pageNum}}/{{allPageNum}}】</view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>