regular_visit_details.axml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <view class='page' ref='saveChildRef0'>
  2. <image src='{{qrCode}}' style='display: none;'>
  3. </image>
  4. <canvas
  5. class='canvas-code'
  6. style='background:#fff;width:176px;height: 176px; display:block; left:-800rpx;position:absolute;'
  7. id='myQrcode'
  8. >
  9. </canvas>
  10. <zyh-details-card
  11. title='{{isRegular?international.Visiting_information[language]:international.Visit_information[language]}}'
  12. regularList='{{regularList}}'
  13. status='{{regularList.reviewStatus}}'
  14. isRegular='{{isRegular}}'
  15. language='{{language}}'
  16. ref='saveChildRef1'
  17. >
  18. </zyh-details-card>
  19. <view a:if='{{regularList.reviewStatus===0&&isRegular}}'>
  20. <view a:if='{{regularList.name}}' class='picker-area card'>
  21. <view class='choose'>
  22. <view a:if='{{regularList.name}}' class='btn-area'>
  23. <btn
  24. class="{{reviewStatus==2?'white':'reject'}}"
  25. data-type='2'
  26. onTap='antmoveAction'
  27. data-antmove-tap='chooseFun'
  28. >
  29. {{international.agree[language]}}
  30. </btn>
  31. <btn
  32. class="{{reviewStatus==1?'white':'reject'}}"
  33. data-type='1'
  34. onTap='antmoveAction'
  35. data-antmove-tap='chooseFun'
  36. >
  37. {{international.reject[language]}}
  38. </btn>
  39. </view>
  40. </view>
  41. <view style="{{reviewStatus==1?'display:none;':'' }}">
  42. <van-cell
  43. title='{{international.Channel_access[language]}}'
  44. border='{{ false }}'
  45. onClick='showSN'
  46. ref='saveChildRef2'
  47. >
  48. <text>
  49. {{snListLength?'已选择'+snListLength+'个通道':'请选择通道权限'}}
  50. </text>
  51. <van-icon class='icon' name='arrow' ref='saveChildRef3'>
  52. </van-icon>
  53. </van-cell>
  54. <zjy-radio-checkbox
  55. list='{{machineList}}'
  56. range-key='sn'
  57. data-type='snList'
  58. type='checkbox'
  59. chooseBuilding='{{chooseSN}}'
  60. className='block'
  61. sn='{{true}}'
  62. onChange='getValue'
  63. ref='saveChildRef4'
  64. >
  65. </zjy-radio-checkbox>
  66. <van-cell
  67. title='{{international.Personnel_type[language]}}'
  68. border='{{ false }}'
  69. class='label-sm'
  70. ref='saveChildRef5'
  71. >
  72. <zyh-radio-group
  73. list='{{personTypeList}}'
  74. value='{{personnelType}}'
  75. label-key="{{language=='ch'?'name_ch':'name_en'}}"
  76. value-key='id'
  77. data-type='personnelType'
  78. onChange='getValue'
  79. ref='saveChildRef6'
  80. >
  81. </zyh-radio-group>
  82. </van-cell>
  83. </view>
  84. <van-cell-group a:if='{{reviewStatus==1}}' ref='saveChildRef7'>
  85. <van-cell border='{{ false }}' class='label-sm remark-bgc' ref='saveChildRef8'>
  86. <van-field
  87. value='{{ remark }}'
  88. type='textarea'
  89. placeholder='请填写备注~'
  90. autosize='{{true}}'
  91. border='{{ false }}'
  92. input-class='textarea'
  93. onInput='onInput'
  94. ref='saveChildRef9'
  95. >
  96. </van-field>
  97. </van-cell>
  98. </van-cell-group>
  99. </view>
  100. <btn
  101. class="sure-btn {{(reviewStatus==2&&snListLength)|| (reviewStatus==1&&remark)?'':'reject'}}"
  102. onTap='antmoveAction'
  103. data-antmove-tap='handle'
  104. >
  105. {{international.submit[language]}}
  106. </btn>
  107. </view>
  108. <btn
  109. a:if='{{regularList.reviewStatus==2}}'
  110. class='sure-btn'
  111. disabled="{{!isRegular && !uniqueId}}"
  112. onTap='antmoveAction'
  113. data-antmove-tap='visitoryDownFaceAgain'
  114. >
  115. {{ isRegular ? international.AgainIssued[language] : (uniqueId ? '授权一脸通行' : '已授权一脸通行') }}
  116. </btn>
  117. </view>