joinpayMchCheck.vue 7.0 KB

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