Browse Source

fix(交通银行):交通银行修改

sufan 1 week ago
parent
commit
ae16dbf484

+ 9 - 0
src/api/accountCenter/openInfoManage.js

@@ -26,3 +26,12 @@ export function submitData(data) {
     data
   })
 }
+
+// 失败原因
+export function getFailList(params) {
+  return request({
+    url: '/bocom/register/findReason',
+    method: 'get',
+    params
+  })
+}

+ 9 - 0
src/views/accountCenter/openInfoManage/mainContent.vue

@@ -23,7 +23,16 @@
         :count="total"
       />
     </template>
+    <cy-dialog ref="failreasonDialog" title="报错原因" top="15vh">
+      <cy-comm-table
+        :columns="reasonColumns"
+        :data="reasonList"
+      />
+      <div class="submit-btn">
+        <el-button @click="() => { this.$refs.failreasonDialog.show = false }">取消</el-button>
+      </div>
 
+    </cy-dialog>
   </div>
 </template>
 

+ 76 - 11
src/views/accountCenter/openInfoManage/mainContentTable.js

@@ -1,4 +1,5 @@
 import { formatMoney } from '@/utils/index'
+import { getFailList } from '@/api/accountCenter/openInfoManage'
 export default {
   data() {
     return {
@@ -52,6 +53,25 @@ export default {
           prop: 'gmtCreate',
           showTooltip: true
         },
+        {
+          label: '法人授权状态',
+          prop: 'userAtuhSts',
+          showTooltip: true,
+          width: 120
+        },
+        {
+          label: '提示',
+          showTooltip: true,
+          render: (h, row) => {
+            if (row.customerStatus === '生效') {
+              if (row.userAtuhSts === '待用户授权') {
+                return <div>去授权</div>
+              } else if (row.userAtuhSts === '银行审核中' || row.userAtuhSts === '授权失败') {
+                return <div>联系客户</div>
+              }
+            }
+          }
+        },
         {
           label: '操作',
           show: true,
@@ -69,6 +89,20 @@ export default {
                 power: '',
                 category: 'edit',
                 rowPower: ['暂存', '审批退回']
+              },
+              {
+                msg: '去授权',
+                icon: 'iconfont icon-orange icon-a-Group1022',
+                power: '',
+                category: 'auth',
+                rowPower: ['待用户授权']
+              },
+              {
+                msg: '核验失败原因',
+                icon: 'iconfont icon-orange icon-icon-active',
+                power: '',
+                category: 'reason',
+                rowPower: ['开户失败']
               }
             ]
             const options = btnList.map(item => {
@@ -83,9 +117,20 @@ export default {
             })
             return <div>{ options }</div>
           },
-          width: 140
+          width: 170
         }
-      ]
+      ],
+      reasonColumns: [{
+        label: '序号',
+        index: true,
+        width: 200
+      },
+      {
+        label: '报错原因',
+        prop: 'reason',
+        showTooltip: true
+      }],
+      reasonList: []
     }
   },
   computed: {
@@ -93,8 +138,14 @@ export default {
       return ({ item, row }) => {
         const { rowPower } = item
         if (rowPower) {
-          if (rowPower.includes(row.stage)) {
-            return true
+          if (item.category === 'auth') {
+            return row.customerStatus === '生效' && rowPower.includes(row.userAtuhSts)
+          } else if (item.category === 'reason') {
+            return rowPower.includes(row.customerStatus)
+          } else {
+            if (rowPower.includes(row.stage)) {
+              return true
+            }
           }
         } else {
           return true
@@ -104,13 +155,27 @@ export default {
   },
   methods: {
     handlerOperate(type, row) {
-      this.$router.push({
-        name: 'OpenInfoManageDetails',
-        params: { id: row.id },
-        query: {
-          type
-        }
-      })
+      if (type === 'see' || type === 'edit') {
+        this.$router.push({
+          name: 'OpenInfoManageDetails',
+          params: { id: row.id },
+          query: {
+            type
+          }
+        })
+      } else if (type === 'auth') {
+        // 授权逻辑
+      } else if (type === 'reason') {
+        // 核验失败原因
+        this.$refs.failreasonDialog.show = true
+        getFailList({ id: row.id }).then((data) => {
+          this.reasonList = data.data.map(item => {
+            return {
+              reason: item
+            }
+          })
+        })
+      }
     }
   }
 }