index.axml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 class="search-item">
  49. <text>来访单位:</text>
  50. <input
  51. class="input m-r"
  52. value="{{searchForm.data.company}}"
  53. onInput="getVal"
  54. data-key="company"
  55. placeholder="来访单位"
  56. placeholder-class="time-placeholder"
  57. />
  58. </view>
  59. <view class="search-item">
  60. <text>来访人:</text>
  61. <input
  62. class="input m-r"
  63. value="{{searchForm.data.visiteeXm}}"
  64. onInput="getVal"
  65. data-key="visiteeXm"
  66. placeholder="来访人"
  67. placeholder-class="time-placeholder"
  68. />
  69. </view>
  70. <view class="search-item">
  71. <text>来访人部门:</text>
  72. <input
  73. class="input m-r"
  74. value="{{searchForm.data.visiteeBm}}"
  75. onInput="getVal"
  76. data-key="visiteeBm"
  77. placeholder="来访人部门"
  78. placeholder-class="time-placeholder"
  79. />
  80. </view>
  81. <view class="search-item">
  82. <text>车牌号:</text>
  83. <input
  84. class="input m-r"
  85. value="{{searchForm.data.carno}}"
  86. onInput="getVal"
  87. data-key="carno"
  88. placeholder="来访人"
  89. placeholder-class="time-placeholder"
  90. />
  91. </view>
  92. <view style="display: inline-block;">
  93. <picker
  94. value="{{searchForm.data.isSignOut}}"
  95. range="{{signOutList}}"
  96. range-key="name"
  97. onChange='getVal'
  98. data-key="isSignOut"
  99. >
  100. <view class="search-item flex">
  101. <text>是否签离:</text>
  102. <view class="{{searchForm.data.isSignOutName?'input m-r ':'input m-r time-placeholder'}}">
  103. {{searchForm.data.isSignOutName?searchForm.data.isSignOutName:'是否签离'}}
  104. </view>
  105. </view>
  106. </picker>
  107. </view>
  108. <view class="search-item wid1 flex">
  109. <text>来访时间:</text>
  110. <view
  111. class="{{searchForm.data.startTime?'input wid-time':'input wid-time time-placeholder'}}"
  112. onTap="datePicker"
  113. data-key="startTime"
  114. >
  115. {{searchForm.data.startTime ? searchForm.data.startTime : '起始时间'}}
  116. </view>
  117. <view class="pad">
  118. </view>
  119. <view
  120. class="{{searchForm.data.endTime?'input wid-time':'input wid-time time-placeholder'}}"
  121. onTap="datePicker"
  122. data-key="endTime"
  123. >
  124. {{searchForm.data.endTime ? searchForm.data.endTime : '结束时间'}}
  125. </view>
  126. </view>
  127. <view class="search-item wid1 flex">
  128. <text>签离时间:</text>
  129. <view
  130. class="{{searchForm.data.signOutStartTime?'input wid-time':'input wid-time time-placeholder'}}"
  131. onTap="datePicker"
  132. data-key="signOutStartTime"
  133. >
  134. {{searchForm.data.signOutStartTime ? searchForm.data.signOutStartTime : '起始时间'}}
  135. </view>
  136. <view class="pad">
  137. </view>
  138. <view
  139. class="{{searchForm.data.signOutEndTime?'input wid-time':'input wid-time time-placeholder'}}"
  140. onTap="datePicker"
  141. data-key="signOutEndTime"
  142. >
  143. {{searchForm.data.signOutEndTime ? searchForm.data.signOutEndTime : '结束时间'}}
  144. </view>
  145. </view>
  146. <view style="display: inline-block;">
  147. <picker
  148. value="{{searchForm.data.reason}}"
  149. range="{{causeMatterList}}"
  150. range-key="name"
  151. onChange='getVal'
  152. data-key="reason"
  153. >
  154. <view class="search-item flex">
  155. <text>事由:</text>
  156. <view class="{{searchForm.data.reason?'input m-r ':'input m-r time-placeholder'}}">
  157. {{searchForm.data.reason?searchForm.data.reason:'请选择事由'}}
  158. </view>
  159. </view>
  160. </picker>
  161. </view>
  162. </view>
  163. <view class="flex1">
  164. <view class="inquire magnify" onTap="getTable">查询</view>
  165. <view class="clear magnify" onTap="clearFun">清空</view>
  166. </view>
  167. </view>
  168. <image
  169. class="close"
  170. mode="scaleToFill"
  171. src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/close.png"
  172. onTap="closeFun"
  173. />
  174. </view>
  175. <view class="table">
  176. <view class="flex3">
  177. <view class="table-tit">
  178. <view class="table-item one m-l-one">序号</view>
  179. <view class="table-item two">姓名</view>
  180. <view class="table-item three">身份证号</view>
  181. <view class="table-item four">手机号</view>
  182. <view class="table-item five">来访单位</view>
  183. <view class="table-item eight">受访人</view>
  184. <view class="table-item nine">受访部门</view>
  185. <view class="table-item ten">来访&签离时间</view>
  186. <view class="table-item twelve">来访&签离地点</view>
  187. <view class="table-item six">车牌</view>
  188. <view class="table-item seven">事由</view>
  189. </view>
  190. <view a:for="{{ tableList }}" class="table-content">
  191. <view class="table-item col one">
  192. {{(index+1+((searchForm.pageNum-1)*searchForm.pageSize))}}
  193. </view>
  194. <view class="table-item col two">
  195. {{util.desensitization(item.name,1,2,'VisitorLog',1,notDesensitizedColumn)}}
  196. </view>
  197. <view class="table-item col three">
  198. {{util.desensitization(item.idNumber,6,14,'VisitorLog',2,notDesensitizedColumn)}}
  199. </view>
  200. <view class="table-item col four">
  201. {{util.desensitization(item.phone,3,7,'VisitorLog',3,notDesensitizedColumn)}}
  202. </view>
  203. <view class="table-item col five ">{{item.company}}</view>
  204. <view class="table-item col eight">{{item.visiteeXm}}</view>
  205. <view class="table-item col nine">{{item.visiteeBm}}</view>
  206. <view class="table-item col ten">
  207. <view a:if="{{ item.startTime }}">
  208. 来:{{item.startTime}}
  209. </view>
  210. <view a:if="{{ item.signOutTime }}">
  211. 离:{{item.signOutTime}}
  212. </view>
  213. </view>
  214. <view class="table-item col twelve">
  215. <view a:if="{{ item.machineId }}">
  216. 来:{{item.registerAddress}}【{{item.machineId}}】
  217. </view>
  218. <view a:if="{{ item.signOutSn }}">
  219. 离:{{item.signOutAddress}}【{{item.signOutSn}}】
  220. </view>
  221. </view>
  222. <view class="table-item col six">{{item.carno}}</view>
  223. <view class="table-item col seven">{{item.reason}}</view>
  224. <view
  225. a:if="{{ !item.isSignOut }}"
  226. class="eleven magnify"
  227. onTap="signOff"
  228. data-item="{{item}}"
  229. data-index="{{index}}"
  230. >
  231. 签离
  232. </view>
  233. </view>
  234. </view>
  235. <tail-tip total='{{total}}' pageNum='{{pageNum}}'>
  236. </tail-tip>
  237. </view>
  238. <view a:if="{{ total>0 }}" class="bottom flex1">
  239. <view class="previous" onTap="previousFun">上一页</view>
  240. <view class="next" onTap="nextFun">下一页</view>
  241. <view class="total">共{{total}}条记录【 {{searchForm.pageNum}}/{{allPageNum}}】</view>
  242. </view>
  243. </view>
  244. </view>
  245. </view>