driverIdentityLook.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <template>
  2. <view class="center">
  3. <view>
  4. <view class="fujians" v-if="idup != ''">
  5. <view class="c-row ">
  6. <text class="picturebiaoti">身份证正面</text>
  7. </view>
  8. <image v-bind:src="idup" class="picture"></image>
  9. </view>
  10. <view class="fujians" v-if="idlow != ''">
  11. <view class="c-row">
  12. <text class="picturebiaoti">身份证反面</text>
  13. </view>
  14. <image v-bind:src="idlow" class="picture"></image>
  15. </view>
  16. <view class="personalcss">
  17. <view class="c-row ">
  18. <text class="tit">姓名</text>
  19. <view class="con-list">
  20. {{drivers.driverName}}
  21. </view>
  22. </view>
  23. <view class="c-row ">
  24. <text class="tit">身份证号</text>
  25. <view class="con-list">
  26. {{drivers.numberCard}}
  27. </view>
  28. </view>
  29. <view class="c-row ">
  30. <text class="tit">手机号</text>
  31. <view class="con-list">
  32. {{drivers.driverPhone}}
  33. </view>
  34. </view>
  35. <view class="c-row">
  36. <text class="tit">常驻城市</text>
  37. <view class="con-list">
  38. {{drivers.residentCityProvincial}}
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 车辆信息 -->
  43. <view class="information">
  44. <view class="c-row">
  45. <text class="tit" style="line-height: 36px;">货车信息</text>
  46. <view class="con-list">
  47. <image v-bind:src="opencar" class="open" opencarboolean @click="opencarclick"></image>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="informations" v-if="opencarboolean == true">
  53. <view v-for="(item , index) in drivers.driverCarInfoList" :Key="index" >
  54. <view class="c-row ">
  55. <text class="tit">车辆 -{{index+1}}</text>
  56. </view>
  57. <view class="c-row ">
  58. <text class="tit">车牌号</text>
  59. <view class="con-list">
  60. {{item.carNumber}}
  61. </view>
  62. </view>
  63. <view class="c-row ">
  64. <text class="tit">车型</text>
  65. <view class="con-list">
  66. {{item.carModel}}
  67. </view>
  68. </view>
  69. <view class="c-row ">
  70. <text class="tit">不含车头车长(米)</text>
  71. <view class="con-list">
  72. {{item.carLength}}
  73. </view>
  74. </view>
  75. <view class="c-row ">
  76. <text class="tit">载重(吨)</text>
  77. <view class="con-list">
  78. {{item.carLoad}}
  79. </view>
  80. </view>
  81. <view class="c-row ">
  82. <text class="tit">出厂年份</text>
  83. <view class="con-list">
  84. {{item.yearManufacture}}
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="information">
  90. <view class="c-row">
  91. <text class="tit" style="line-height: 36px;">账户信息</text>
  92. <view class="con-list">
  93. <image v-bind:src="openuser" class="open" openuserboolean @click="openuserclick"></image>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="informations" v-if="openuserboolean == true">
  98. <!-- <view class="labels">账户信息</view> -->
  99. <view v-for="(items , index) in drivers.driverPayeeInfoList" :Key="index">
  100. <view class="c-row ">
  101. <text class="tit">账户 - {{index+1}}</text>
  102. </view>
  103. <view class="c-row ">
  104. <text class="tit">账户类型</text>
  105. <view class="con-list">
  106. {{items.accountType}}
  107. </view>
  108. </view>
  109. <view class="c-row ">
  110. <text class="tit">银行卡照片</text>
  111. <view class="con-list" @click="bankimgs(index)">
  112. <view v-if="items.bankimg.length==0">未上传</view>
  113. <image v-for='item in items.bankimg' v-bind:src="item" style="width: 40px; height: 40px;" v-if="items.bankimg.length>0"></image>
  114. </view>
  115. </view>
  116. <view class="c-row ">
  117. <text class="tit">银行卡号</text>
  118. <view class="con-list">
  119. {{items.bankCard}}
  120. </view>
  121. </view>
  122. <view class="c-row ">
  123. <text class="tit">开户行</text>
  124. <view class="con-list">
  125. {{items.bankDeposit}}
  126. </view>
  127. </view>
  128. <view class="c-row ">
  129. <text class="tit">开户支行</text>
  130. <view class="con-list">
  131. {{items.bankDepositBranch}}
  132. </view>
  133. </view>
  134. <view class="c-row ">
  135. <text class="tit">收款人姓名</text>
  136. <view class="con-list">
  137. {{items.payeeName}}
  138. </view>
  139. </view>
  140. <view class="c-row ">
  141. <text class="tit">收款人身份证号</text>
  142. <view class="con-list">
  143. {{items.payeeNumberCard}}
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="information">
  149. <view class="c-row">
  150. <text class="tit" style="line-height: 36px;">附件信息</text>
  151. <view class="con-list">
  152. <image v-bind:src="openfujian" class="open" openfujianboolean @click="openfujianclick"></image>
  153. </view>
  154. </view>
  155. </view>
  156. <view v-if="openfujianboolean == true">
  157. <view class="fujians" v-if="travels != ''">
  158. <view class="c-row ">
  159. <text class="picturebiaoti">行驶证</text>
  160. </view>
  161. <image v-bind:src="travels" class="picture"></image>
  162. </view>
  163. <view class="fujians" v-if="drives != ''">
  164. <view class="c-row ">
  165. <text class="picturebiaoti">驾驶证</text>
  166. </view>
  167. <image v-bind:src="drives" class="picture"></image>
  168. </view>
  169. <view class="fujians" v-if="practices != ''">
  170. <view class="c-row ">
  171. <text class="picturebiaoti">道路运营证</text>
  172. </view>
  173. <image v-bind:src="practices" class="picture"></image>
  174. </view>
  175. <view class="fujians" v-if="operates != ''">
  176. <view class="c-row ">
  177. <text class="picturebiaoti">从业资格证</text>
  178. </view>
  179. <image v-bind:src="operates" class="picture"></image>
  180. </view>
  181. </view>
  182. </view>
  183. </template>
  184. <script>
  185. export default {
  186. data() {
  187. return {
  188. drivers: {},
  189. id: [],
  190. address: [],
  191. travels: "",
  192. drives: "",
  193. practices: "",
  194. operates: "",
  195. idup: "",
  196. idlow: "",
  197. opencar: "../../static/img/authentication/down2@3x.png",
  198. openuser: "../../static/img/authentication/down2@3x.png",
  199. openfujian:"../../static/img/authentication/down2@3x.png",
  200. opencarboolean:false,
  201. openuserboolean:false,
  202. openfujianboolean:false,
  203. bankimg:[],
  204. }
  205. },
  206. onLoad(option) {
  207. this.getList(option.id)
  208. },
  209. methods: {
  210. opencarclick() {
  211. if (this.opencarboolean == false) {
  212. this.opencarboolean = true;
  213. this.opencar = "../../static/img/authentication/up2%20(3).png"
  214. } else if (this.opencarboolean == true) {
  215. this.opencarboolean = false;
  216. this.opencar = "../../static/img/authentication/down2@3x.png"
  217. }
  218. },
  219. openuserclick() {
  220. if (this.openuserboolean == false) {
  221. this.openuserboolean = true;
  222. this.openuser = "../../static/img/authentication/up2%20(3).png"
  223. } else if (this.openuserboolean == true) {
  224. this.openuserboolean = false;
  225. this.openuser = "../../static/img/authentication/down2@3x.png"
  226. }
  227. },
  228. openfujianclick(){
  229. if (this.openfujianboolean == false) {
  230. this.openfujianboolean = true;
  231. this.openfujian = "../../static/img/authentication/up2%20(3).png"
  232. } else if (this.openfujianboolean == true) {
  233. this.openfujianboolean = false;
  234. this.openfujian = "../../static/img/authentication/down2@3x.png"
  235. }
  236. },
  237. getList(ids) {
  238. this.$api.doRequest('get', '/driverViewInfo/getDriver', {
  239. id: ids
  240. }, 'application/json;charset=UTF-8').then(res => {
  241. this.procurementPlanInfos = res.data.data
  242. this.drivers = res.data.data
  243. if (this.drivers.cardAddressUrl != "") {
  244. this.id = this.drivers.cardAddressUrl.split(","),
  245. this.idup = this.id[0]
  246. this.idlow = this.id[1]
  247. }
  248. if (this.drivers.addressUrl != "") {
  249. this.address = this.drivers.addressUrl.split(","),
  250. this.travels = this.address[0]
  251. this.drives = this.address[1]
  252. this.practices = this.address[2]
  253. this.operates = this.address[3]
  254. }
  255. if(this.drivers.driverPayeeInfoList){
  256. for (var i = 0; i < this.drivers.driverPayeeInfoList.length; i++) {
  257. if(this.drivers.driverPayeeInfoList[i].payeeAddressUrl){
  258. this.$set(this.drivers.driverPayeeInfoList[i],'bankimg',this.drivers.driverPayeeInfoList[i].payeeAddressUrl.split(","))
  259. }else{
  260. this.drivers.driverPayeeInfoList[i].bankimg=[]
  261. }
  262. }
  263. }
  264. })
  265. .catch(res => {
  266. if(res.message){
  267. uni.showToast({
  268. title: res.message,
  269. icon: 'none',
  270. duration: 2000
  271. })
  272. }
  273. else{
  274. uni.showToast({
  275. title: "系统异常,请联系管理员",
  276. icon: 'none',
  277. duration: 2000
  278. })
  279. }
  280. });
  281. },
  282. }
  283. }
  284. </script>
  285. <style>
  286. .center {
  287. padding: 10px 20px;
  288. background-color: #F5F6FA;
  289. }
  290. .labels {
  291. font-size: 16px;
  292. font-weight: 400;
  293. }
  294. .c-row {
  295. display: -webkit-box;
  296. display: -webkit-flex;
  297. display: flex;
  298. -webkit-box-align: center;
  299. -webkit-align-items: center;
  300. align-items: center;
  301. padding: 20rpx 30rpx;
  302. position: relative;
  303. }
  304. .con-list {
  305. -webkit-box-flex: 1;
  306. -webkit-flex: 1;
  307. flex: 1;
  308. display: -webkit-box;
  309. display: -webkit-flex;
  310. display: flex;
  311. -webkit-box-orient: vertical;
  312. -webkit-box-direction: normal;
  313. -webkit-flex-direction: column;
  314. flex-direction: column;
  315. color: #AFB3BF;
  316. line-height: 40rpx;
  317. text-align: right;
  318. padding-right: 20rpx;
  319. font-size: 14px;
  320. }
  321. .picture {
  322. width: 100%;
  323. height: 220px;
  324. text-align: center;
  325. margin-top: 10rpx;
  326. }
  327. .tit{
  328. font-size: 14px;
  329. color: #333333;
  330. }
  331. .personalcss{
  332. background-color: #FFFFFF;
  333. border-radius: 20px;
  334. margin-top: 10px;
  335. }
  336. .open {
  337. width: 30rpx;
  338. height: 20rpx;
  339. position: absolute;
  340. right: 20px;
  341. margin-top: -10rpx;
  342. }
  343. .information {
  344. margin-top: 10px;
  345. width: 100%;
  346. height: 56px;
  347. background-color: #FFFFFF;
  348. border-radius: 16px;
  349. }
  350. .informations {
  351. margin-top: 10px;
  352. background-color: #FFFFFF;
  353. border-radius: 20px;
  354. }
  355. .fujians{
  356. margin: 0 auto;
  357. background-color: #FFFFFF;
  358. margin-top: 10rpx;
  359. border-radius: 20px;
  360. padding: 10px 10px;
  361. }
  362. .picturebiaoti{
  363. font-size: 17px;
  364. font-weight: 700;
  365. }
  366. </style>