index.axml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. <import-sjs from='../../../utils/index/utils.sjs' name='util'>
  2. <view class="page" >
  3. <view class="{{isPortraitScreen?'portrait-main':'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. <!--横版样式-->
  12. <!-- <block a:if="{{!isPortraitScreen}}">-->
  13. <view class="visitor-list-content">
  14. <view class="search-box flex-between">
  15. <view class="search-form flex-between">
  16. <view a:for="{{ searchList }}" class="form-item flex-align-center">
  17. <text>{{item.name}}</text>
  18. <input
  19. class="input"
  20. value="{{searchForm[item.val]}}"
  21. onInput="getVal"
  22. placeholder="{{item.placeholder}}"
  23. placeholder-class="time-placeholder"
  24. data-key="{{item.val}}"
  25. />
  26. </view>
  27. <view class="form-item flex-align-center">
  28. <text>车牌号</text>
  29. <view class="{{carnum && carnum != ''?'input':'input time-placeholder'}}" onTap="backKeyboard">
  30. {{carnum?carnum:'请选择车牌号'}}
  31. </view>
  32. </view>
  33. <view class="form-item flex-align-center">
  34. <text>是否签离</text>
  35. <picker
  36. value="{{searchForm.isSignOut}}"
  37. range="{{signOutList}}"
  38. range-key="name"
  39. onChange='getVal'
  40. data-key="isSignOut"
  41. >
  42. <view class="{{searchForm.isSignOutName?'input':'input time-placeholder'}}">
  43. {{searchForm.isSignOutName?searchForm.isSignOutName:'请选择是否签离'}}
  44. </view>
  45. </picker>
  46. </view>
  47. <view class="form-item flex-align-center">
  48. <text>来访时间</text>
  49. <view
  50. class="{{searchForm.startTime?'input wid-time':'input wid-time time-placeholder'}}"
  51. onTap="datePicker"
  52. data-key="startTime"
  53. >
  54. {{searchForm.startTime ? searchForm.startTime : '请选择起始时间'}}
  55. </view>
  56. <view class="pad">
  57. </view>
  58. <view
  59. class="{{searchForm.endTime?'input wid-time':'input wid-time time-placeholder'}}"
  60. onTap="datePicker"
  61. data-key="endTime"
  62. >
  63. {{searchForm.endTime ? searchForm.endTime : '请选择结束时间'}}
  64. </view>
  65. </view>
  66. <view class="form-item flex-align-center">
  67. <text>签离时间</text>
  68. <view
  69. class="{{searchForm.signOutStartTime?'input wid-time':'input wid-time time-placeholder'}}"
  70. onTap="datePicker"
  71. data-key="signOutStartTime"
  72. >
  73. {{searchForm.signOutStartTime ? searchForm.signOutStartTime : '请选择起始时间'}}
  74. </view>
  75. <view class="pad">
  76. </view>
  77. <view
  78. class="{{searchForm.signOutEndTime?'input wid-time':'input wid-time time-placeholder'}}"
  79. onTap="datePicker"
  80. data-key="signOutEndTime"
  81. >
  82. {{searchForm.signOutEndTime ? searchForm.signOutEndTime : '请选择结束时间'}}
  83. </view>
  84. </view>
  85. <view style="display: inline-block;">
  86. <picker
  87. value="{{searchForm.reason}}"
  88. range="{{causeMatterList}}"
  89. range-key="name"
  90. onChange='getVal'
  91. data-key="reason"
  92. >
  93. <view class="form-item flex-align-center">
  94. <text>事由:</text>
  95. <view class="{{searchForm.reason?'input':'input time-placeholder'}}">
  96. {{searchForm.reason?searchForm.reason:'请选择事由'}}
  97. </view>
  98. </view>
  99. </picker>
  100. </view>
  101. </view>
  102. <view class="search-btn flex-between">
  103. <view class="inquire magnify" onTap="inquireFun">查询</view>
  104. <view class="clear magnify" onTap="clearFun">清空</view>
  105. <image
  106. class="close"
  107. mode="scaleToFill"
  108. src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/close.png"
  109. onTap="closeFun"
  110. />
  111. </view>
  112. </view>
  113. <view style="display:flex;justify-content: flex-start;overflow:hidden">
  114. <view class="table-box table-box-fixed-left box-shadow-right">
  115. <view class="table-tit table-box-fixed-left flex-between">
  116. <view class="tit-item one">序号</view>
  117. <view class="tit-item two">姓名</view>
  118. </view>
  119. <view class="table-content table-box-fixed-left">
  120. <view a:for="{{ tableList }}" class="horizontal-box flex-between">
  121. <view class="table-item flex-column-center one">
  122. {{(index + 1 + (pagination.current - 1) * pagination.pageSize)}}
  123. </view>
  124. <view class="table-item flex-column-center two">
  125. {{util.desensitization(item.name,1,2,'VisitorLog',1,notDesensitizedColumn)}}
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="table-box table-box-fixed-center">
  131. <view class="table-tit flex-between">
  132. <view class="tit-item three">身份证号</view>
  133. <view class="tit-item four">手机号</view>
  134. <view class="tit-item five">来访单位</view>
  135. <view class="tit-item six">受访人</view>
  136. <view class="tit-item seven">受访部门</view>
  137. <view class="tit-item eight">来访&签离时间</view>
  138. <view class="tit-item nine">来访&签离地点</view>
  139. <view class="tit-item ten">车牌</view>
  140. <view class="tit-item eleven">事由</view>
  141. </view>
  142. <view class="table-content">
  143. <view a:for="{{ tableList }}" class="horizontal-box flex-between">
  144. <view class="table-item flex-column-center three">
  145. {{util.desensitization(item.idNumber,6,14,'VisitorLog',2,notDesensitizedColumn)}}
  146. </view>
  147. <view class="table-item flex-column-center four">
  148. {{util.desensitization(item.phone,3,7,'VisitorLog',3,notDesensitizedColumn)}}
  149. </view>
  150. <view class="table-item flex-column-center five ">{{item.company}}</view>
  151. <view class="table-item flex-column-center six">{{item.visiteeXm}}</view>
  152. <view class="table-item flex-column-center seven">{{item.visiteeBm}}</view>
  153. <view class="table-item flex-column-center eight">
  154. <view a:if="{{ item.startTime }}">
  155. 来:{{item.startTime}}
  156. </view>
  157. <view a:if="{{ item.signOutTime }}">
  158. 离:{{item.signOutTime}}
  159. </view>
  160. </view>
  161. <view class="table-item flex-column-center nine">
  162. <view a:if="{{ item.machineId }}">
  163. 来:{{item.registerAddress}}【{{item.machineId}}】
  164. </view>
  165. <view a:if="{{ item.signOutSn }}">
  166. 离:{{item.signOutAddress}}【{{item.signOutSn}}】
  167. </view>
  168. </view>
  169. <view class="table-item flex-column-center ten">{{item.carno}}</view>
  170. <view class="table-item flex-column-center eleven">{{item.reason}}</view>
  171. </view>
  172. <view a:if="{{ pagination.total == 0 }}" class="table-box ">
  173. <tail-tip total='{{pagination.total}}'>
  174. </tail-tip>
  175. </view>
  176. </view>
  177. </view>
  178. <view class="table-box table-box-fixed-right box-shadow-left">
  179. <view class="table-tit table-box-fixed-right flex-between">
  180. <view class="tit-item twelve"></view>
  181. </view>
  182. <view class="table-content table-box-fixed-right">
  183. <view a:for="{{ tableList }}" class="horizontal-box flex-between">
  184. <view class="table-item flex-column-center twelve item-fixed-right">
  185. <view
  186. a:if="{{ !item.isSignOut }}"
  187. class="checkOut magnify"
  188. onTap="signOff"
  189. data-item="{{item}}"
  190. data-index="{{index}}"
  191. >
  192. 签离
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. </view>
  199. <view a:if="{{ pagination.total>0 }}" class="pagination flex">
  200. <view class="total">
  201. 共{{pagination.total}}条记录【 {{pagination.current}}/{{pagination.pageNum}}】
  202. </view>
  203. <view class="previous magnify" onTap="previousFun">上一页</view>
  204. <view class="next magnify" onTap="nextFun">下一页</view>
  205. </view>
  206. </view>
  207. <!-- 键盘结构 -->
  208. <view class="keyboard-mask" hidden="{{hiddenPro&&hiddenStr}}" onTap="hidePopup">
  209. <view class="keyboard" catchTap="stopPropagation">
  210. <view class="keyboard-tit">
  211. 车牌选择
  212. </view>
  213. <view class="keyboard-mini">
  214. <!-- 限制键盘 -->
  215. <!-- 省键盘 -->
  216. <view class="provinces" hidden="{{hiddenPro}}">
  217. <view
  218. a:for="{{provinceArr}}"
  219. class="pro-li"
  220. catchTap="proTap"
  221. data-province="{{item}}"
  222. >
  223. {{item}}
  224. </view>
  225. </view>
  226. <!-- 号码键盘 -->
  227. <view class="keyNums" hidden="{{hiddenStr}}">
  228. <view
  229. a:for="{{strArr}}"
  230. class="pro-li"
  231. :key="{{index}}"
  232. catchTap="strTap"
  233. disabled="{{strDisabled||(notNum&&index<10)}}"
  234. data-str="{{item}}"
  235. >
  236. {{item}}
  237. </view>
  238. </view>
  239. <!-- 提交按钮 -->
  240. <view class="kb-btn-box">
  241. <view class="kb-delete-btn" catchTap="backSpace">删除</view>
  242. <view
  243. class="kb-sure-btn {{downBtn=='完成'?'down-blue':''}}"
  244. catchTap="applyNum"
  245. >
  246. {{downBtn}}
  247. </view>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. <!-- </block>-->
  253. <!--竖版样式-->
  254. <!--<block a:else>
  255. <view class="visitor-list-content">
  256. <view class="action_bar flex-between">
  257. <view class="back" onTap="closeFun">
  258. <image class="back-icon" mode="scaleToFill" src="../../../image/back.png" />
  259. </view>
  260. <view class="screen" onTap="getIsShow">
  261. 查询
  262. <image
  263. style="transform: rotate({{isShowSearch?'0deg':'180deg'}});"
  264. class="hidden-icon"
  265. mode="scaleToFill"
  266. src="../../../image/search.png"
  267. />
  268. </view>
  269. </view>
  270. <view class="search-box {{!isShowSearch ? 'search-content-min' : 'search-content-max'}} flex-column-center">
  271. <view class="search-form flex-between">
  272. <view a:for="{{ searchList }}" class="form-item flex-align-center">
  273. <text>{{item.name}}</text>
  274. <input
  275. class="input"
  276. value="{{searchForm[item.val]}}"
  277. onInput="getVal"
  278. placeholder="{{item.placeholder}}"
  279. placeholder-class="time-placeholder"
  280. data-key="{{item.val}}"
  281. />
  282. </view>
  283. <view class="form-item flex-align-center">
  284. <text>是否签离</text>
  285. <picker
  286. value="{{searchForm.isSignOut}}"
  287. range="{{signOutList}}"
  288. range-key="name"
  289. onChange='getVal'
  290. data-key="isSignOut"
  291. >
  292. <view class="{{searchForm.isSignOutName?'input':'input time-placeholder'}}">
  293. {{searchForm.isSignOutName?searchForm.isSignOutName:'请选择是否签离'}}
  294. </view>
  295. </picker>
  296. </view>
  297. <view class="form-item flex-align-center wid">
  298. <text>来访时间</text>
  299. <ant-range-picker
  300. slot="extra"
  301. visible="{{dateRangePickerVisible}}"
  302. placeholder="请选择来访时间"
  303. precision="second"
  304. format="YYYY-MM-DD HH:mm:ss"
  305. defaultValue="{{searchForm.defaultDateRange}}"
  306. value="{{searchForm.defaultDateRange}}"
  307. onVisibleChange="handleTriggerControlledDateRangePicker"
  308. onOk="handleRangeOk"
  309. className="cus-date-range"
  310. splitCharacter=" 至 "
  311. indicatorClassName="cus-date-range-indicator"
  312. >
  313. </ant-range-picker>
  314. &lt;!&ndash;<view
  315. class="{{searchForm.startTime?'input wid-time':'input wid-time time-placeholder'}}"
  316. onTap="datePicker"
  317. data-key="startTime"
  318. >
  319. {{searchForm.startTime ? searchForm.startTime : '请选择起始时间'}}
  320. </view>
  321. <view class="pad">
  322. </view>
  323. <view
  324. class="{{searchForm.endTime?'input wid-time':'input wid-time time-placeholder'}}"
  325. onTap="datePicker"
  326. data-key="endTime"
  327. >
  328. {{searchForm.endTime ? searchForm.endTime : '请选择结束时间'}}
  329. </view>&ndash;&gt;
  330. </view>
  331. </view>
  332. <view class="search-btn flex-between">
  333. <view class="inquire magnify" onTap="inquireFun">查询</view>
  334. <view class="clear magnify" onTap="clearFun">清空</view>
  335. </view>
  336. </view>
  337. <view class="table-box {{isShowSearch ? '' : 'table-box-h'}}">
  338. <view class="table-content">
  339. <view a:for="{{ tableList }}" class="item-card">
  340. <view class="card-tit">
  341. {{util.desensitization(item.name, 1, 2)}}{{item.idNumber ?`【${util.desensitization(item.idNumber, 6, 14)}】`:''}}{{item.phone ?`【${util.desensitization(item.phone, 3, 7)}】`:''}}
  342. </view>
  343. <view class="card-content">
  344. <view class="card-item">
  345. <view class="tit">
  346. 受访人
  347. </view>
  348. <view class="tit colon">
  349. </view>
  350. <view class="value">
  351. {{item.visiteeXm || '-'}}
  352. </view>
  353. </view>
  354. <view class="card-item">
  355. <view class="tit">
  356. 受访部门
  357. </view>
  358. <view class="tit colon">
  359. </view>
  360. <view class="value">
  361. {{item.visiteeBm || '-'}}
  362. </view>
  363. </view>
  364. <view class="card-item">
  365. <view class="tit">
  366. 车牌
  367. </view>
  368. <view class="tit colon">
  369. </view>
  370. <view class="value">
  371. {{item.carno || '-'}}
  372. </view>
  373. </view>
  374. <view class="card-item">
  375. <view class="tit">
  376. 事由
  377. </view>
  378. <view class="tit colon">
  379. </view>
  380. <view class="value">
  381. {{item.reason || '-'}}
  382. </view>
  383. </view>
  384. <view class="card-item">
  385. <view class="tit">
  386. 来访单位
  387. </view>
  388. <view class="tit colon">
  389. </view>
  390. <view class="value">
  391. {{item.company || '-'}}
  392. </view>
  393. </view>
  394. <view class="wid">
  395. <view class="tit">
  396. 来访
  397. </view>
  398. <view class="tit colon">
  399. </view>
  400. <view class="value">
  401. {{item.startTime}}&nbsp;{{item.registerAddress}}{{item.machineId ?`【${item.machineId}】` :''}}
  402. </view>
  403. </view>
  404. <view class="wid">
  405. <view class="tit">
  406. 签离
  407. </view>
  408. <view class="tit colon">
  409. </view>
  410. <view class="value">
  411. {{item.signOutTime}}&nbsp;{{item.signOutAddress}}{{item.signOutSn ?`【${item.signOutSn}】`:''}}
  412. </view>
  413. </view>
  414. </view>
  415. <view class="flex">
  416. <view
  417. a:if="{{ !item.isSignOut }}"
  418. class="checkOut magnify"
  419. onTap="signOff"
  420. data-item="{{item}}"
  421. data-index="{{index}}"
  422. >
  423. 签&nbsp;&nbsp;&nbsp;离
  424. </view>
  425. </view>
  426. </view>
  427. <tail-tip total="{{pagination.total}}">
  428. </tail-tip>
  429. </view>
  430. </view>
  431. <view a:if="{{ pagination.total>0 }}" class="pagination flex-between">
  432. <view class="previous magnify" onTap="previousFun">上一页</view>
  433. <view class="total">
  434. 共{{pagination.total}}条记录【 {{pagination.current}}/{{pagination.pageNum}}】
  435. </view>
  436. <view class="next magnify" onTap="nextFun">下一页</view>
  437. </view>
  438. </view>
  439. <bottom-parnel
  440. showBtn="{{false}}"
  441. suerName="{{'确定'}}"
  442. />
  443. </block>-->
  444. </view>
  445. </view>