companyIdentityLook.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <view class="center">
  3. <view v-if="deptList.customerTypeFlag == 2">
  4. <view class="fujians" v-if="license1 != ''">
  5. <view class="c-row b-b">
  6. <text class="picturebiaoti">营业执照</text>
  7. </view>
  8. <image v-bind:src="license1" class="picture"></image>
  9. </view>
  10. <view class="personalcss">
  11. <view class="c-row b-b">
  12. <text class="tit">公司名称</text>
  13. <view class="con-list">
  14. {{deptList.compName}}
  15. </view>
  16. </view>
  17. <view class="c-row ">
  18. <text class="tit">纳税人识别号</text>
  19. <view class="con-list">
  20. {{deptList.payTaxesCard}}
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="fujians" v-if="idup != ''">
  26. <view class="c-row b-b">
  27. <text class="picturebiaoti">身份证正面</text>
  28. </view>
  29. <image v-bind:src="idup" class="picture"></image>
  30. </view>
  31. <view class="fujians" v-if="idlow != ''">
  32. <view class="c-row b-b">
  33. <text class="picturebiaoti">身份证反面</text>
  34. </view>
  35. <image v-bind:src="idlow" class="picture"></image>
  36. </view>
  37. <view class="personalcss">
  38. <view class="c-row b-b">
  39. <text class="tit">姓名</text>
  40. <view class="con-list">
  41. {{deptList.customerName}}
  42. </view>
  43. </view>
  44. <view class="c-row ">
  45. <text class="tit">身份证号</text>
  46. <view class="con-list">
  47. {{deptList.customerNumberCard}}
  48. </view>
  49. </view>
  50. </view>
  51. <view class="fujians" v-if="bank1 != ''">
  52. <view class="c-row b-b">
  53. <text class="picturebiaoti">银行卡正面</text>
  54. </view>
  55. <image v-bind:src="bank1" class="picture"></image>
  56. </view>
  57. <view class="fujians" v-if="bank2 != ''">
  58. <view class="c-row b-b">
  59. <text class="picturebiaoti">银行卡反面</text>
  60. </view>
  61. <image v-bind:src="bank2" class="picture"></image>
  62. </view>
  63. <view class="personalcss">
  64. <view class="c-row b-b">
  65. <text class="tit">银行卡号</text>
  66. <view class="con-list">
  67. {{deptList.bankCard}}
  68. </view>
  69. </view>
  70. <view class="c-row b-b">
  71. <text class="tit">开户行</text>
  72. <view class="con-list">
  73. {{deptList.bankDeposit}}
  74. </view>
  75. </view>
  76. <view class="c-row b-b">
  77. <text class="tit">开户支行</text>
  78. <view class="con-list">
  79. {{deptList.bankDepositBranch}}
  80. </view>
  81. </view>
  82. <view class="c-row b-b">
  83. <text class="tit">手机号</text>
  84. <view class="con-list">
  85. {{deptList.customerPhone}}
  86. </view>
  87. </view>
  88. <view class="c-row " v-if="deptList.customerTypeFlag == 2">
  89. <text class="tit">公司地址</text>
  90. <view class="con-list">
  91. {{deptList.compAddress}}
  92. </view>
  93. </view>
  94. <view class="c-row b-b" v-if="deptList.customerTypeFlag == 1">
  95. <text class="tit">联系地址</text>
  96. <view class="con-list">
  97. {{deptList.compAddress}}
  98. </view>
  99. </view>
  100. <view class="c-row b-b">
  101. <text class="tit">供应商姓名</text>
  102. <view class="con-list">
  103. {{deptList.supplier}}
  104. </view>
  105. </view>
  106. <view class="c-row ">
  107. <text class="tit">供应商电话</text>
  108. <view class="con-list">
  109. {{deptList.supplierPhone}}
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </template>
  115. <script>
  116. import {
  117. mapState
  118. } from 'vuex';
  119. export default {
  120. name: "buy",
  121. data() {
  122. return {
  123. radios: 2,
  124. deptList:{},
  125. consentStatus:true,
  126. consentStatus1:false,
  127. parameter:{},
  128. businessman:{},
  129. id:[],
  130. idup:"",
  131. idlow:"",
  132. license1:"",
  133. bank1:"",
  134. bank2:"",
  135. bankid:[],
  136. payeeAddress:[],
  137. };
  138. },
  139. onLoad(option) {
  140. this.parameter.id = option.id,
  141. this.getList()
  142. },
  143. computed: {
  144. ...mapState(['hasLogin','userInfo'])
  145. },
  146. methods: {
  147. getList(ids) {
  148. this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
  149. this.deptList = res.data.data
  150. if(this.deptList.businessLicenseAddressUrl != ""){
  151. this.license1 = this.deptList.businessLicenseAddressUrl
  152. }
  153. if(this.deptList.cardAddressUrl != ""){
  154. this.id = this.deptList.cardAddressUrl.split(",")
  155. this.idup = this.id[0]
  156. this.idlow = this.id[1]
  157. }
  158. if(this.deptList.payeeAddressUrl != ""){
  159. this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
  160. this.bank1 = this.payeeAddress[0]
  161. this.bank2 = this.payeeAddress[1]
  162. }
  163. })
  164. .catch(res => {
  165. if(res.errmsg){
  166. uni.showToast({
  167. title: res.errmsg,
  168. icon: 'none',
  169. duration: 2000
  170. })
  171. }
  172. else{
  173. uni.showToast({
  174. title: "系统异常,请联系管理员",
  175. icon: 'none',
  176. duration: 2000
  177. })
  178. }
  179. });
  180. },
  181. consent(){
  182. if(this.consentStatus == false && this.consentStatus1 == true){
  183. this.consentStatus = true
  184. this.consentStatus1 = false
  185. }else if(this.consentStatus == true && this.consentStatus1 == false){
  186. this.consentStatus = false
  187. this.consentStatus1 = true
  188. }
  189. },
  190. }
  191. }
  192. </script>
  193. <style>
  194. .center {
  195. padding: 10px 20px;
  196. }
  197. .c-row {
  198. display: -webkit-box;
  199. display: -webkit-flex;
  200. display: flex;
  201. -webkit-box-align: center;
  202. -webkit-align-items: center;
  203. align-items: center;
  204. padding: 20rpx 30rpx;
  205. position: relative;
  206. }
  207. .con-list {
  208. -webkit-box-flex: 1;
  209. -webkit-flex: 1;
  210. flex: 1;
  211. display: -webkit-box;
  212. display: -webkit-flex;
  213. display: flex;
  214. -webkit-box-orient: vertical;
  215. -webkit-box-direction: normal;
  216. -webkit-flex-direction: column;
  217. flex-direction: column;
  218. color: #303133;
  219. line-height: 40rpx;
  220. text-align: right;
  221. padding-right: 20rpx;
  222. font-size: 14px;
  223. }
  224. .picture {
  225. width: 100%;
  226. height: 220px;
  227. text-align: center;
  228. margin-top: 10px;
  229. }
  230. .fujians{
  231. margin: 0 auto;
  232. background-color: #FFFFFF;
  233. margin-top: 30px;
  234. border-radius: 20px;
  235. padding: 10px 10px;
  236. }
  237. .picturebiaoti{
  238. font-size: 17px;
  239. font-weight: 700;
  240. }
  241. .personalcss{
  242. background-color: #FFFFFF;
  243. border-radius: 20px;
  244. margin-top: 10px;
  245. }
  246. </style>