audit-detail.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <view class="">
  3. <u-toast ref="uToast"/>
  4. <u-modal :show-cancel-button="true" @confirm="auditBtn(2)" title="审核意见" :mask-close-able="true" v-model="modelShow" >
  5. <view class="slot-content" style="margin: 30rpx;">
  6. <u-form label-width="150" ref="uForm">
  7. <u-form-item :border-bottom="false">
  8. <u-input height="150" placeholder="请输入审核意见" v-model="checkOpinion" />
  9. </u-form-item>
  10. </u-form>
  11. </view>
  12. </u-modal>
  13. <view class="data">
  14. <view class="top">
  15. <view class="left">
  16. <view class="title ">
  17. <text class="text-bold">住户姓名:</text>
  18. <text>{{dataDetail.name}}</text>
  19. <text v-if="dataDetail.sex==1" class="padding-left-10 text-sm ">[先生]</text>
  20. <text v-if="dataDetail.sex==2" class="padding-left-10 text-sm ">[女士]</text>
  21. </view>
  22. </view>
  23. <view class="right">
  24. <text class="text-orange">待审核</text>
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="left">
  29. <view style="padding: 0 30rpx;">
  30. <view class="flex justify-between">
  31. <view >
  32. <view class="content">
  33. <text class="cuIcon-mobilefill text-blue text-bold"></text>
  34. <text class="text-bold" style="padding: 0 10rpx;">手机号:</text>
  35. <text>{{dataDetail.phone}}</text>
  36. <image @click.stop="call(dataDetail.phone)" class="call" src="/static/call.png" ></image>
  37. </view>
  38. <view class="content">
  39. <text class="cuIcon-circlefill text-blue text-bold"></text>
  40. <text class="text-bold" style="padding: 0 10rpx;">小区:</text>
  41. <text>{{dataDetail.residentialName}}</text>
  42. </view>
  43. <view class="content">
  44. <text class="cuIcon-homefill text-blue text-bold"></text>
  45. <text class="text-bold" style="padding: 0 10rpx;">房间号:</text>
  46. <text>{{dataDetail.roomName}}</text>
  47. </view>
  48. </view>
  49. <view >
  50. <image @click="previewImg(dataDetail.faceUrl)" style="width: 200rpx;height: 200rpx;" :src="dataDetail.faceUrl?dataDetail.faceUrl:'https://szsq.nxzhsq.cn/community/miniofile/xlyq/face1.png'" ></image>
  51. <view class="text-center text-blue padding-top-10">
  52. (人脸图片)
  53. </view>
  54. </view>
  55. </view>
  56. <view class="content" style="padding-top: 20rpx;">
  57. <text class="cuIcon-peoplefill text-blue"></text>
  58. <text class="text-bold" style="padding: 0 10rpx;">住户类型:</text>
  59. <text v-if="dataDetail.type==0">业主</text>
  60. <text v-if="dataDetail.type==1">家属</text>
  61. <text v-if="dataDetail.type==2">租户</text>
  62. </view>
  63. <view class="content">
  64. <text class="cuIcon-infofill text-blue"></text>
  65. <text class="text-bold" style="padding: 0 10rpx;">证件类型:</text>
  66. <text v-if="dataDetail.nationality==0">身份证</text>
  67. <text v-if="dataDetail.nationality==1">港澳居民往来内地通行证</text>
  68. <text v-if="dataDetail.nationality==2">台湾居民往来大陆通行证</text>
  69. <text v-if="dataDetail.nationality==3">护照</text>
  70. </view>
  71. <view class="content">
  72. <text class="cuIcon-newsfill text-blue"></text>
  73. <text class="text-bold" style="padding: 0 10rpx;">身份证号:</text>
  74. <text >{{dataDetail.id_card || "未知"}}</text>
  75. </view>
  76. <view v-if="nationality==3" class="content">
  77. <text class="cuIcon-picfill text-blue"></text>
  78. <text class="text-bold" style="padding: 0 10rpx;">图片信息:</text>
  79. </view>
  80. <view v-if="nationality==3" class="cu-list grid col-2 no-border pab" >
  81. <view class="cu-item">
  82. <view class="flex justify-center align-center">
  83. <image :src="dataDetail.passportImgUri" style="width: 200rpx;height: 200rpx;"></image>
  84. </view>
  85. <text>护照图片</text>
  86. </view>
  87. <view class="cu-item">
  88. <view class="flex justify-center align-center">
  89. <image :src="dataDetail.entryImgUri" style="width: 200rpx;height: 200rpx;"></image>
  90. </view>
  91. <text>入境证明</text>
  92. </view>
  93. </view>
  94. <view v-if="nationality==3" class="" style="height: 150rpx;"></view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="footer-fixed " style="padding-bottom: 50rpx;z-index: 99;">
  99. <view class="flex justify-around">
  100. <view @click="auditBtn(1)" class="cu-btn round" style="padding: 40rpx;width: 45%;background-color: #61a300;color: #FFFFFF;">
  101. 通过
  102. </view>
  103. <view @click="fail" class="cu-btn round" style="padding: 40rpx;width: 45%;background-color: #cf521b;color: #FFFFFF;">
  104. 不通过
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </template>
  111. <script>
  112. var app=getApp()
  113. export default {
  114. name: 'card',
  115. data() {
  116. return {
  117. checkOpinion:'',
  118. modelShow:false,
  119. apply_user_id:'',
  120. dataDetail:{}
  121. };
  122. },
  123. onLoad(options) {
  124. this.apply_user_id=options.apply_user_id,
  125. this.dataDetail={
  126. name:options.name,
  127. phone:options.phone,
  128. residentialName:options.residentialName,
  129. roomName:options.roomName,
  130. type:options.type,
  131. id_card:options.id_card || '',
  132. sex:options.sex,
  133. nationality:options.nationality,
  134. faceUrl:options.faceUrl || '',
  135. passport_img_uri:options.passport_img_uri || '',
  136. entry_img_uri:options.entry_img_uri || ''
  137. }
  138. },
  139. onShow() {
  140. },
  141. methods:{
  142. call(phone){
  143. uni.makePhoneCall({
  144. phoneNumber:phone
  145. })
  146. },
  147. previewImg(img){
  148. let urls=[img]
  149. uni.previewImage({
  150. urls:urls
  151. })
  152. },
  153. fail(){
  154. this.modelShow=true
  155. },
  156. auditBtn(e) {
  157. let that = this;
  158. let params = {};
  159. if (e == 2 && that.checkOpinion == '') {
  160. app.globalData.autoFailHint("请先填写审核意见");
  161. this.modelShow=true
  162. return;
  163. }
  164. params['id'] = that.apply_user_id;
  165. params['auditStatus'] = e;
  166. params['checkOpinion'] = that.checkOpinion;
  167. params['name'] = that.dataDetail.name;
  168. params['idCard'] = that.dataDetail.id_card;
  169. params['operatorId'] = that.vuex_member.id;
  170. params['operatorName'] = that.vuex_member.name;
  171. that.$http.updateCheckState(params).then(res =>{
  172. //添加成功
  173. if (res.data.result_code==1) {
  174. uni.showModal({
  175. content:"操作成功",
  176. showCancel:false,
  177. success: (res) => {
  178. if (res.confirm) {
  179. uni.navigateBack({
  180. delta:1
  181. })
  182. }
  183. }
  184. })
  185. } else {
  186. app.globalData.autoFailHint(res.data.msg);
  187. }
  188. });
  189. }
  190. }
  191. };
  192. </script>
  193. <style lang="scss">
  194. page{
  195. background-color: #FFFFFF;
  196. }
  197. view{
  198. box-sizing: border-box;
  199. }
  200. .bg-blue{
  201. background-color: #59a5f0;
  202. color: #FFFFFF;
  203. }
  204. .data {
  205. background-color: #ffffff;
  206. border-radius: 6rpx;
  207. box-sizing: border-box;
  208. padding:0 20rpx 20rpx;
  209. font-size: 28rpx;
  210. .top {
  211. display: flex;
  212. justify-content: space-between;
  213. padding: 30rpx 0;
  214. border-bottom: 1rpx solid #EEEEEE;
  215. .left {
  216. display: flex;
  217. align-items: center;
  218. .title {
  219. margin: 0 10rpx;
  220. font-size: 30rpx;
  221. }
  222. }
  223. .right{
  224. margin-right: 10rpx;
  225. }
  226. }
  227. .item {
  228. margin-bottom: 10rpx;
  229. .content {
  230. padding: 30rpx 0 ;
  231. .call{
  232. width: 36rpx;
  233. height: 36rpx;
  234. margin-left: 10rpx;
  235. }
  236. }
  237. }
  238. .bottom {
  239. display: flex;
  240. margin-top: 30rpx;
  241. justify-content: flex-end;
  242. align-items: center;
  243. }
  244. }
  245. </style>