visitor_make.axml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <view class='page-container-classname' ref='saveChildRef0'>
  2. <import-sjs from='../../utils/util/util.sjs' name='util'>
  3. </import-sjs>
  4. <zyh-navigator
  5. showArrow='{{type == 2 ? false : true}}'
  6. title='{{international.Visitors_appointment[language]}}'
  7. title-style='white'
  8. bg-color='#2F6FD1'
  9. ref='saveChildRef1'
  10. >
  11. </zyh-navigator>
  12. <view>
  13. <view class='top'>
  14. <view class='top-area'>
  15. </view>
  16. </view>
  17. <view class='top-item'>
  18. <zyh-dot-line
  19. currentIndex='{{currentIndex}}'
  20. swiperDx='{{swiperDx}}'
  21. width='140'
  22. list='{{stepsList}}'
  23. language='{{language}}'
  24. ref='saveChildRef2'
  25. >
  26. </zyh-dot-line>
  27. <custom-swiper
  28. class='swiper'
  29. duration='200'
  30. disableTouch="{{true}}"
  31. current='{{currentIndex}}'
  32. onTransition='getSwiperPercent'
  33. onAnimationEnd='changeSwiper'
  34. >
  35. <custom-swiper-item>
  36. <scroll-view class='scroll-area' scroll-y='true'>
  37. <zyh-face-verify
  38. a:if='{{!isDisabled}}'
  39. language='{{language}}'
  40. isDisabled='{{isDisabled}}'
  41. userInfo='{{userInfo}}'
  42. type='访客'
  43. onCertificationState='getCertificationState'
  44. onUpdateState='getUpdateState'
  45. ref='saveChildRef3'
  46. >
  47. </zyh-face-verify>
  48. <view a:if='{{isDisabled}}' class='card card-cont'>
  49. <view class='title'>
  50. {{international.visitor_information[language]}}
  51. </view>
  52. <van-cell
  53. title='{{international.name[language]}}'
  54. border='{{ false }}'
  55. class='label-sm'
  56. ref='saveChildRef4'
  57. >
  58. <text>
  59. {{userInfo.username}}
  60. </text>
  61. </van-cell>
  62. <van-cell
  63. title='{{international.idNumber[language]}}'
  64. border='{{ false }}'
  65. class='label-sm'
  66. ref='saveChildRef5'
  67. >
  68. <text>
  69. {{util.desensitization(userInfo.idNumber, 6, 14)}}
  70. </text>
  71. </van-cell>
  72. <van-cell
  73. title='{{international.phone[language]}}'
  74. border='{{ false }}'
  75. class='label-sm'
  76. ref='saveChildRef6'
  77. >
  78. <text>
  79. {{util.desensitization(userInfo.phone, 3, 7)}}
  80. </text>
  81. </van-cell>
  82. <van-cell border='{{ false }}' class='label-sm' ref='saveChildRef7'>
  83. <view slot='title'>
  84. <text class="{{form.company?'text-green':'text-red'}}">
  85. *
  86. </text>
  87. <text class='van-cell-text'>
  88. {{international.unit[language]}}
  89. </text>
  90. </view>
  91. <zyh-input
  92. value='{{form.company}}'
  93. placeholder='{{international.enter_unit[language]}}'
  94. data-type='company'
  95. onChange='getValue'
  96. ref='saveChildRef8'
  97. >
  98. </zyh-input>
  99. </van-cell>
  100. <van-cell
  101. title='{{international.License_number[language]}}'
  102. border='{{ false }}'
  103. class='label-sm'
  104. ref='saveChildRef9'
  105. >
  106. <add-car-number
  107. value='{{form.carno}}'
  108. placeholder='{{international.enter_plate_number[language]}}'
  109. data-type='carno'
  110. onChange='getValue'
  111. onShowChange="carNumberShowChange"
  112. ref='saveChildRef10'
  113. >
  114. </add-car-number>
  115. </van-cell>
  116. </view>
  117. </scroll-view>
  118. <view a:if='{{isDisabled}}' class='btn-area-one'>
  119. <btn
  120. a:if="{{ !carNumberShow }}"
  121. class="{{stepsList[0].complete?'bg-blue':'bg-grey'}}"
  122. disabled='{{!stepsList[0].complete}}'
  123. onTap='antmoveAction'
  124. data-antmove-tap='next_step'
  125. >
  126. {{international.next_step[language]}}
  127. </btn>
  128. </view>
  129. </custom-swiper-item>
  130. <custom-swiper-item>
  131. <scroll-view class='scroll-area' scroll-y='true'>
  132. <view class='card card-cont'>
  133. <view class='title'>
  134. {{international.Visit_information[language]}}
  135. </view>
  136. <van-cell border='{{ false }}' class='label-sm' ref='saveChildRef11'>
  137. <view slot='title'>
  138. <text class="{{form.visiteePhone?'text-green':'text-red'}}">
  139. *
  140. </text>
  141. <text class='van-cell-text'>
  142. {{international.number_person_interviewed[language]}}
  143. </text>
  144. </view>
  145. <custom-input
  146. type='text'
  147. value='{{form.visiteePhone}}'
  148. maxLength='{{11}}'
  149. placeholder='{{international.enter_number[language]}}'
  150. disabled='{{isAudit}}'
  151. onBlur='visiteePhoneFun'
  152. >
  153. </custom-input>
  154. </van-cell>
  155. <view a:if='{{building_list.length>0}}'>
  156. <van-cell border='{{ false }}' class='label-sm' ref='saveChildRef12'>
  157. <view slot='title'>
  158. <text class='van-cell-text'>
  159. {{international.Of_building[language]}}
  160. </text>
  161. </view>
  162. <zyh-picker
  163. list='{{building_list}}'
  164. index='{{buildingIndex}}'
  165. range-key='username'
  166. placeholder='{{[international.select_interviewed[language]]}}'
  167. data-type='visiteeBuilding'
  168. isAudit='{{isAudit}}'
  169. onChange='getValue'
  170. ref='saveChildRef13'
  171. >
  172. </zyh-picker>
  173. </van-cell>
  174. <van-cell
  175. title='{{international.Of_unit[language]}}'
  176. border='{{ false }}'
  177. class='label-sm'
  178. ref='saveChildRef14'
  179. >
  180. <zyh-picker
  181. list='{{companyList}}'
  182. index='{{companyIndex}}'
  183. range-key='companyName'
  184. placeholder='{{[international.select_interviewee[language]]}}'
  185. data-type='visiteeCompany'
  186. isAudit='{{isAudit}}'
  187. onChange='getValue'
  188. ref='saveChildRef15'
  189. >
  190. </zyh-picker>
  191. </van-cell>
  192. </view>
  193. <van-cell
  194. a:if='{{companyList.length > 0}}'
  195. title='{{international.Name_nterviewee[language]}}'
  196. border='{{ false }}'
  197. class='label-sm'
  198. ref='saveChildRef16'
  199. >
  200. <zyh-input
  201. value='{{form.visiteeXm}}'
  202. placeholder='{{international.enterName_nterviewee[language]}}'
  203. data-type='visiteeXm'
  204. isAudit='{{isAudit}}'
  205. onChange='getValue'
  206. ref='saveChildRef17'
  207. >
  208. </zyh-input>
  209. </van-cell>
  210. <van-cell border='{{ false }}' class='label-sm' ref='saveChildRef18'>
  211. <view slot='title'>
  212. <text class="{{form.reason?'text-green':'text-red'}}">
  213. *
  214. </text>
  215. <text class='van-cell-text'>
  216. {{international.Visit_for[language]}}
  217. </text>
  218. </view>
  219. <zyh-picker
  220. list='{{reasonList}}'
  221. index='{{reasonIndex}}'
  222. range-key='name'
  223. placeholder='{{[international.select_occasion[language]]}}'
  224. data-type='reason'
  225. isAudit='{{isAudit}}'
  226. onChange='getValue'
  227. ref='saveChildRef19'
  228. >
  229. </zyh-picker>
  230. </van-cell>
  231. <van-cell
  232. a:if='{{type===2}}'
  233. title='{{international.Personnel_type[language]}}'
  234. border='{{ false }}'
  235. class='label-sm'
  236. ref='saveChildRef20'
  237. >
  238. <zyh-radio-group
  239. list='{{personTypeList}}'
  240. value='{{personTypIndex}}'
  241. label-key="{{language=='ch'?'name_ch':'name_en'}}"
  242. value-key='id'
  243. data-type='personnelType'
  244. isAudit='{{isAudit}}'
  245. onChange='getValue'
  246. ref='saveChildRef21'
  247. >
  248. </zyh-radio-group>
  249. </van-cell>
  250. <van-cell
  251. title='{{international.start_time[language]}}'
  252. border='{{ false }}'
  253. class='label-sm'
  254. ref='saveChildRef22'
  255. >
  256. <zyh-picker
  257. type='date-time'
  258. dateTime='{{form.startTime}}'
  259. delay='{{0}}'
  260. placeholder="{{['请选择日期','请选择时间']}}"
  261. data-type='startTime'
  262. isAudit='{{isAudit}}'
  263. onChange='getValue'
  264. ref='saveChildRef23'
  265. >
  266. </zyh-picker>
  267. </van-cell>
  268. <van-cell
  269. title='{{international.end_time[language]}}'
  270. border='{{ false }}'
  271. class='label-sm'
  272. ref='saveChildRef24'
  273. >
  274. <zyh-picker
  275. type='date-time'
  276. dateTime='{{form.endTime}}'
  277. delay='{{12*60*60*1000}}'
  278. placeholder="{{['请选择日期','请选择时间']}}"
  279. data-type='endTime'
  280. isAudit='{{isAudit}}'
  281. onChange='getValue'
  282. ref='saveChildRef25'
  283. >
  284. </zyh-picker>
  285. </van-cell>
  286. </view>
  287. <view a:if='{{threeCodeList.length>0}}' class='card card-cont'>
  288. <three_yards
  289. xcPhone='{{userInfo.phone}}'
  290. startTime='{{startTime}}'
  291. hsHour='{{hsHour}}'
  292. threeCodeList='{{threeCodeList}}'
  293. language='{{language}}'
  294. buildingId='{{form.visiteeBuildingId}}'
  295. onIsthreeYards='isthreeYards'
  296. ref='saveChildRef26'
  297. >
  298. </three_yards>
  299. </view>
  300. <custom-field
  301. a:if='{{isShowApplet}}'
  302. orgId='{{form.visiteeBuildingId}}'
  303. currentIndex='{{currentIndex}}'
  304. onIsFillFields='isFillFields'
  305. ref='saveChildRef27'
  306. >
  307. </custom-field>
  308. </scroll-view>
  309. <view class='btn-area-two'>
  310. <btn class='bg-grey' onTap='antmoveAction' data-antmove-tap='previous_step'>
  311. {{international.previous_step[language]}}
  312. </btn>
  313. <btn
  314. class="{{stepsList[1].complete?'bg-blue':'bg-grey'}}"
  315. disabled='{{!stepsList[1].complete}}'
  316. onTap='antmoveAction'
  317. data-antmove-tap='submit'
  318. >
  319. {{type===1?international.submit[language]:international.acceptInvitation[language]}}
  320. </btn>
  321. </view>
  322. </custom-swiper-item>
  323. </custom-swiper>
  324. </view>
  325. </view>
  326. </view>