customerSee.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <template>
  2. <view class="content">
  3. <view class="data_css">
  4. <view class="wrap">
  5. <view class="c-row">
  6. <view class="title">客户姓名</view>
  7. <view class="con-list">
  8. {{dataInfo.customerName}}
  9. </view>
  10. </view>
  11. <view class="c-row" v-show="dataInfo.customerPhone">
  12. <view class="title">手机号</view>
  13. <view class="con-list">
  14. {{dataInfo.customerPhone}}
  15. </view>
  16. </view>
  17. <view class="c-row" v-show="dataInfo.compAddress">
  18. <view class="title">联系地址</view>
  19. <view class="con-list">
  20. {{dataInfo.compAddress}}
  21. </view>
  22. </view>
  23. <view class="c-row">
  24. <view class="title">身份证号</view>
  25. <view class="con-list">
  26. {{dataInfo.customerNumberCard}}
  27. </view>
  28. </view>
  29. </view>
  30. <view class="wrap">
  31. <view class="tips">身份证照片</view>
  32. <view class="img" v-if="dataInfo.cardAddressUrl.length > 0">
  33. <u-swiper :list="dataInfo.cardAddressUrl" @change="e => currentNum = e.current" radius="10"
  34. indicatorMode="dot" height="360" img-mode="true" :autoplay="true" @click="openDocument1">
  35. </u-swiper>
  36. </view>
  37. </view>
  38. <view class="wrap">
  39. <view class="c-row ">
  40. <view class="title">银行卡号</view>
  41. <view class="con-list">
  42. {{dataInfo.bankCard}}
  43. </view>
  44. </view>
  45. <view class="c-row ">
  46. <view class="title">开户行</view>
  47. <view class="con-list">
  48. {{dataInfo.bankDeposit}}
  49. </view>
  50. </view>
  51. <view class="c-row ">
  52. <view class="title">开户支行</view>
  53. <view class="con-list">
  54. {{dataInfo.bankDepositBranch}}
  55. </view>
  56. </view>
  57. </view>
  58. <view class="wrap">
  59. <view class="tips">银行卡照片</view>
  60. <view class="img" v-if="dataInfo.payeeAddressUrl.length > 0">
  61. <u-swiper :list="dataInfo.payeeAddressUrl" @change="e => currentNum = e.current" radius="10"
  62. indicatorMode="dot" height="360" img-mode="true" :autoplay="true" @click="openDocument2">
  63. </u-swiper>
  64. </view>
  65. </view>
  66. <view class="wrap">
  67. <view class="c-row ">
  68. <view class="title">供应商</view>
  69. <view class="con-list">
  70. {{dataInfo.supplier?dataInfo.supplier:"暂无"}}
  71. </view>
  72. </view>
  73. <view class="c-row ">
  74. <view class="title">供应商电话</view>
  75. <view class="con-list">
  76. {{dataInfo.supplierPhone?dataInfo.supplierPhone:"暂无"}}
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="btn">
  82. <view class="btn_left">
  83. <view class="noway" @click="submit(1)">
  84. 驳回
  85. </view>
  86. </view>
  87. <view class="btn_right">
  88. <view class="sure" @click="submit(2)">
  89. 通过
  90. </view>
  91. </view>
  92. </view>
  93. <u-modal v-model="auditShow" confirm-color='#22C572' confirm-text='确定' title='提示' :showCancelButton='false'
  94. :content="content" @confirm="next" @cancel="cancel"></u-modal>
  95. </view>
  96. </template>
  97. <script>
  98. export default {
  99. data() {
  100. return {
  101. dataInfo: {},
  102. auditShow: false,
  103. title: "提示",
  104. content: "",
  105. tips: "",
  106. currentNum: "",
  107. list3: [
  108. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  109. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  110. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  111. ],
  112. }
  113. },
  114. onShow() {
  115. },
  116. onLoad(options) {
  117. if (options.data) {
  118. this.dataInfo = JSON.parse(options.data)
  119. if (this.dataInfo.cardAddressUrl) {
  120. this.dataInfo.cardAddressUrl = this.dataInfo.cardAddressUrl.split(",")
  121. }
  122. if (this.dataInfo.payeeAddressUrl) {
  123. this.dataInfo.payeeAddressUrl = this.dataInfo.payeeAddressUrl.split(",")
  124. }
  125. }
  126. },
  127. methods: {
  128. cancel() {
  129. this.auditShow = false
  130. },
  131. next() {
  132. if (this.tips == 1) {
  133. this.reject()
  134. } else if (this.tips == 2) {
  135. this.adopt()
  136. }
  137. },
  138. openDocument1(e) {
  139. let imgUrl = this.dataInfo.cardAddressUrl[e]
  140. uni.downloadFile({
  141. url: imgUrl,
  142. success: function(res) {
  143. var filePath = res.tempFilePath;
  144. uni.openDocument({
  145. filePath: filePath,
  146. showMenu: true,
  147. success: function(res) {
  148. console.log('打开文档成功');
  149. }
  150. });
  151. }
  152. });
  153. },
  154. openDocument2(e) {
  155. let imgUrl = this.dataInfo.payeeAddressUrl[e]
  156. uni.downloadFile({
  157. url: imgUrl,
  158. success: function(res) {
  159. var filePath = res.tempFilePath;
  160. uni.openDocument({
  161. filePath: filePath,
  162. showMenu: true,
  163. success: function(res) {
  164. console.log('打开文档成功');
  165. }
  166. });
  167. }
  168. });
  169. },
  170. submit(num) {
  171. if (num == 1) {
  172. this.tips = 1
  173. this.content = "确定驳回客户信息?"
  174. } else {
  175. this.tips = 2
  176. this.content = "确定通过客户信息?"
  177. }
  178. this.auditShow = true
  179. },
  180. reject() {
  181. uni.showLoading({
  182. title: '加载中',
  183. mask: true
  184. })
  185. this.$api.doRequest('post', '/identityAuthenticationInfo/api/examine', {
  186. id: this.dataInfo.id,
  187. flag: 2,
  188. examiner: uni.getStorageSync('userInfo').userName
  189. }).then(res1 => {
  190. uni.hideLoading()
  191. this.$api.msg('驳回成功!')
  192. setTimeout(function() {
  193. uni.navigateBack({
  194. delta: 1
  195. });
  196. }, 2000);
  197. })
  198. },
  199. adopt() {
  200. uni.showLoading({
  201. title: '加载中',
  202. mask: true
  203. })
  204. this.$api.doRequest('post', '/identityAuthenticationInfo/api/examine', {
  205. id: this.dataInfo.id,
  206. flag: 1,
  207. examiner: uni.getStorageSync('userInfo').userName
  208. }).then(res1 => {
  209. uni.hideLoading()
  210. this.$api.msg('通过成功!')
  211. setTimeout(function() {
  212. uni.navigateBack({
  213. delta: 1
  214. });
  215. }, 2000);
  216. })
  217. }
  218. }
  219. }
  220. </script>
  221. <style lang="scss" scoped>
  222. .data_css {
  223. margin-bottom: 220rpx;
  224. }
  225. .wrap {
  226. padding-bottom: 10px;
  227. font-size: 14px;
  228. background: #fff;
  229. margin: 10px;
  230. border-radius: 10px;
  231. padding: 30rpx 30rpx;
  232. input {
  233. font-size: 14px;
  234. }
  235. .title {
  236. font-size: 28rpx;
  237. }
  238. .tips {
  239. font-size: 34rpx;
  240. font-weight: 600;
  241. border-bottom: 1px solid #EEEEEE;
  242. padding-bottom: 30rpx;
  243. }
  244. .c-row {
  245. display: -webkit-box;
  246. display: -webkit-flex;
  247. display: flex;
  248. -webkit-box-align: center;
  249. -webkit-align-items: center;
  250. align-items: center;
  251. padding: 40rpx 0;
  252. position: relative;
  253. border-bottom: 1px solid #EEEEEE;
  254. }
  255. .con-list {
  256. -webkit-box-flex: 1;
  257. -webkit-flex: 1;
  258. flex: 1;
  259. display: -webkit-box;
  260. display: -webkit-flex;
  261. display: flex;
  262. -webkit-box-orient: vertical;
  263. -webkit-box-direction: normal;
  264. -webkit-flex-direction: column;
  265. flex-direction: column;
  266. color: #AFB3BF;
  267. line-height: 40rpx;
  268. text-align: right;
  269. padding-right: 20rpx;
  270. }
  271. }
  272. .btn {
  273. width: 100%;
  274. height: 200rpx;
  275. background-color: #ffffff;
  276. position: fixed;
  277. bottom: 0px;
  278. display: flex;
  279. padding-top: 40rpx;
  280. .btn_left,
  281. .btn_right {
  282. width: 50%;
  283. text-align: center;
  284. // line-height: 160rpx;
  285. margin: 0 auto;
  286. }
  287. .noway,
  288. .sure {
  289. width: 80%;
  290. height: 90rpx;
  291. line-height: 90rpx;
  292. margin: 0 auto;
  293. border-radius: 45rpx;
  294. font-size: 32rpx;
  295. }
  296. .sure {
  297. background-color: #5C76DF;
  298. color: #ffffff;
  299. }
  300. .noway {
  301. background-color: #F7F8FA;
  302. color: #AFB3BF;
  303. }
  304. }
  305. .img {
  306. width: 100%;
  307. margin: 20rpx auto;
  308. text-align: center;
  309. // .img_css {
  310. // width: 96%;
  311. // height: 440rpx;
  312. // }
  313. }
  314. </style>