joinpayMchCheck.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <view class="content">
  3. <view class="body user-insert">账号:{{joinpayMchCheck.userName}}</view>
  4. <view class="" v-if="joinpayMchCheck.idCardNo!=null">
  5. <form >
  6. <view class="body user-insert-line">旧银行卡号:{{oldJoinpayMchCheck.bankAccountNo}}</view>
  7. <view class="body user-insert-line">旧银行账户名:{{oldJoinpayMchCheck.bankAccountName}}</view>
  8. <view class="body user-insert-line">旧法人姓名:{{oldJoinpayMchCheck.legalPerson}}</view>
  9. <view class="body user-insert-line">旧身份证:{{oldJoinpayMchCheck.idCardNo}}</view>
  10. <view class="body user-insert-line">旧银联号:{{oldJoinpayMchCheck.bankChannelNo}}</view></br>
  11. </form>
  12. <view class="body user-insert">-------------------------------</view>
  13. <form >
  14. <view class="body user-insert-line">新银行卡号:{{joinpayMchCheck.bankAccountNo}}</view>
  15. <view class="body user-insert-line">新银行账户名:{{joinpayMchCheck.bankAccountName}}</view>
  16. <view class="body user-insert-line">新法人姓名:{{joinpayMchCheck.legalPerson}}</view>
  17. <view class="body user-insert-line">新身份证:{{joinpayMchCheck.idCardNo}}</view>
  18. <view class="body user-insert-line">新银联号:{{joinpayMchCheck.bankChannelNo}}</view>
  19. <view class="body user-insert-line">提交时间:{{joinpayMchCheck.createDate}}</view>
  20. <view class="btn-area">
  21. <button type="primary" @click="agree(joinpayMchCheck.id)" style="margin-right: 20px;" >通过</button>
  22. <button type="primary" @click="unagree(joinpayMchCheck.id)" >撤销</button>
  23. </view>
  24. </form>
  25. </view>
  26. <view class="" v-else>
  27. <form >
  28. <view class="body user-insert-line">旧杉德宝账号:{{oldJoinpayMchCheck.bankAccountNo}}</view>
  29. <view class="body user-insert-line">旧杉德宝账户名:{{oldJoinpayMchCheck.bankAccountName}}</view>
  30. <view class="body user-insert-line">旧杉德宝类型:{{oldJoinpayMchCheck.bankAccountType==0?'企业':'个人'}}</view>
  31. <view class="body user-insert-line">旧联行号:{{oldJoinpayMchCheck.bankChannelNo}}</view>
  32. <view class="body user-insert-line">旧开户行:{{oldJoinpayMchCheck.bankChannelName}}</view>
  33. </form>
  34. <view class="body user-insert">-------------------------------</view>
  35. <form >
  36. <view class="body user-insert-line">新杉德宝账号:{{joinpayMchCheck.bankAccountNo}}</view>
  37. <view class="body user-insert-line">新杉德宝账户名:{{joinpayMchCheck.bankAccountName}}</view>
  38. <view class="body user-insert-line">新杉德宝类型:{{joinpayMchCheck.bankAccountType==0?'企业':'个人'}}</view>
  39. <view class="body user-insert-line">联行号:{{joinpayMchCheck.bankChannelNo}}</view>
  40. <view class="body user-insert-line">开户行:{{joinpayMchCheck.bankChannelName}}</view>
  41. <view class="body user-insert-line">提交时间:{{joinpayMchCheck.createDate}}</view>
  42. <view class="btn-area">
  43. <button type="primary" @click="agreeShande(joinpayMchCheck.id)" style="margin-right: 20px;" >通过</button>
  44. <button type="primary" @click="unagreeShande(joinpayMchCheck.id)" >撤销</button>
  45. </view>
  46. </form>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data(){
  53. return{
  54. oldJoinpayMchCheck:{},
  55. joinpayMchCheck:{},
  56. }
  57. },
  58. onLoad: function(option) {
  59. const joinpayMchCheck = JSON.parse(decodeURIComponent(option.joinpayMchCheck));
  60. //idCardNo
  61. this.joinpayMchCheck = joinpayMchCheck;
  62. this.getOldJoinpayMch(joinpayMchCheck.adminId);
  63. },
  64. onShow() {
  65. },
  66. methods: {
  67. getOldJoinpayMch(adminId){
  68. var token = uni.getStorageSync("token");
  69. if(this.joinpayMchCheck.idCardNo!=null){
  70. uni.request({
  71. url: this.serverurl + '/TJoinpayMch/getMch',
  72. data: {
  73. "adminId": adminId,
  74. },
  75. header: {
  76. 'token': token
  77. },
  78. method: "POST",
  79. success: (res) => {
  80. var date = res.data.data;
  81. this.oldJoinpayMchCheck = date;
  82. },
  83. });
  84. }else{
  85. uni.request({
  86. url: this.serverurl + '/TShandeMch/getMch',
  87. data: {
  88. "adminId": adminId,
  89. },
  90. header: {
  91. 'token': token
  92. },
  93. method: "POST",
  94. success: (res) => {
  95. var date = res.data.data;
  96. this.oldJoinpayMchCheck = date;
  97. },
  98. });
  99. }
  100. },
  101. agree(id){
  102. var that = this;
  103. uni.showModal({
  104. title: '提示',
  105. content: '是否通过?',
  106. success: function(res) {
  107. if (res.confirm) {
  108. var token = uni.getStorageSync("token");
  109. uni.request({
  110. url: that.serverurl + '/TJoinpayMchCheck/agree?id=' + id,
  111. header: {
  112. 'token': token
  113. },
  114. method: "GET",
  115. success: (res) => {
  116. uni.showToast({
  117. title: res.data.message,
  118. duration: 2000
  119. });
  120. },
  121. });
  122. } else if (res.cancel) {}
  123. }
  124. });
  125. },
  126. unagree(id){
  127. var that = this;
  128. uni.showModal({
  129. title: '提示',
  130. content: '是否不通过?',
  131. success: function(res) {
  132. if (res.confirm) {
  133. var token = uni.getStorageSync("token");
  134. uni.request({
  135. url: that.serverurl + '/TJoinpayMchCheck/unagree?id=' + id,
  136. header: {
  137. 'token': token
  138. },
  139. method: "GET",
  140. success: (res) => {
  141. uni.showToast({
  142. title: res.data.message,
  143. duration: 2000
  144. });
  145. },
  146. });
  147. } else if (res.cancel) {}
  148. }
  149. });
  150. },
  151. agreeShande(id){
  152. var that = this;
  153. uni.showModal({
  154. title: '提示',
  155. content: '是否通过?',
  156. success: function(res) {
  157. if (res.confirm) {
  158. var token = uni.getStorageSync("token");
  159. uni.request({
  160. url: that.serverurl + '/TShandeMchCheck/agree?id=' + id,
  161. header: {
  162. 'token': token
  163. },
  164. method: "GET",
  165. success: (res) => {
  166. uni.showToast({
  167. title: res.data.message,
  168. duration: 2000
  169. });
  170. },
  171. });
  172. } else if (res.cancel) {}
  173. }
  174. });
  175. },
  176. unagreeShande(id){
  177. var that = this;
  178. uni.showModal({
  179. title: '提示',
  180. content: '是否不通过?',
  181. success: function(res) {
  182. if (res.confirm) {
  183. var token = uni.getStorageSync("token");
  184. uni.request({
  185. url: that.serverurl + '/TShandeMchCheck/unagree?id=' + id,
  186. header: {
  187. 'token': token
  188. },
  189. method: "GET",
  190. success: (res) => {
  191. uni.showToast({
  192. title: res.data.message,
  193. duration: 2000
  194. });
  195. },
  196. });
  197. } else if (res.cancel) {}
  198. }
  199. });
  200. }
  201. }
  202. }
  203. </script>
  204. <style>
  205. .content{
  206. padding-top:20upx;
  207. margin-left:20upx;
  208. }
  209. .body {
  210. background-color: #FFFFFF;
  211. padding: 10upx 20upx 10upx 20upx;
  212. display: flex;
  213. flex-direction: row;
  214. justify-content: flex-start;
  215. }
  216. .input {
  217. /* padding: 10upx 20upx 10upx 0upx; */
  218. padding-left: 20upx;
  219. padding-top: 10upx;
  220. background-color: #FFFFFF;
  221. width: 500upx;
  222. height: 50upx;
  223. box-shadow: 0upx 0upx 20upx #D3D3D3;
  224. border-radius: 5upx;
  225. }
  226. .button {
  227. margin: 0 auto;
  228. display: inline-block;
  229. }
  230. button[type=primary] {
  231. background-color: #007aff;
  232. color: #fff;
  233. display: inline-block;
  234. }
  235. .btn-area{
  236. padding-top:60upx;
  237. margin: 0 auto;
  238. width: 50%;
  239. }
  240. .user-insert-line {
  241. width: 500upx;
  242. height: 23px;
  243. border-bottom:solid black 1px;
  244. margin: 0 auto;
  245. }
  246. .user-insert{
  247. width: 400upx;
  248. margin: 0 auto;
  249. }
  250. view{
  251. font-size: 30rpx;
  252. }
  253. </style>