Browse Source

fix:修改资方还款列表还款方式展示

lazy 3 weeks ago
parent
commit
08bded7af3

+ 12 - 1
src/views/capitalFinancingManage/payment/components/PayInfo.vue

@@ -34,7 +34,7 @@
       </el-form-item>
       </el-form-item>
       <el-form-item label="还款方式" prop="repayType">
       <el-form-item label="还款方式" prop="repayType">
         <el-input
         <el-input
-          v-model="ruleForm.repayType"
+          :value="getPayWayStatus(ruleForm.repayType)"
           :disabled="disabled"
           :disabled="disabled"
           placeholder="请输入还款方式"
           placeholder="请输入还款方式"
         />
         />
@@ -174,6 +174,17 @@ export default {
         '03': '还款中'
         '03': '还款中'
       }
       }
 
 
+      return map[status] || ''
+    },
+    getPayWayStatus(status) {
+      const map = {
+        1: '全部归还',
+        2: '归还欠款',
+        3: '提前还款',
+        7: '提前还当期',
+        8: '代偿还款'
+      }
+
       return map[status] || ''
       return map[status] || ''
     }
     }
   }
   }

+ 15 - 2
src/views/capitalFinancingManage/payment/index.vue

@@ -140,9 +140,11 @@ export default {
         },
         },
         {
         {
           label: '还款方式',
           label: '还款方式',
-          prop: 'repayType',
           showTooltip: true,
           showTooltip: true,
-          width: 120
+          width: 120,
+          render: (h, row) => {
+            return <div>{ this.getPayWayStatus(row.repayType) }</div>
+          }
         },
         },
         {
         {
           label: '用户唯一标识',
           label: '用户唯一标识',
@@ -289,6 +291,17 @@ export default {
         '03': '还款中'
         '03': '还款中'
       }
       }
 
 
+      return map[status] || ''
+    },
+    getPayWayStatus(status) {
+      const map = {
+        1: '全部归还',
+        2: '归还欠款',
+        3: '提前还款',
+        7: '提前还当期',
+        8: '代偿还款'
+      }
+
       return map[status] || ''
       return map[status] || ''
     }
     }
   }
   }