shish hace 1 año
padre
commit
db80ef5331
Se han modificado 1 ficheros con 10 adiciones y 4 borrados
  1. 10 4
      ghs/src/views/member/list.vue

+ 10 - 4
ghs/src/views/member/list.vue

@@ -50,7 +50,7 @@
 			</template>
 
 			<template #table-column-debtAmount="{scope}">
-				{{ scope.row.debtAmount?parseFloat(scope.row.debtAmount):0 }}
+				<span style="cursor: pointer;" @click="goDebtChange(scope.row)">{{ scope.row.debtAmount?parseFloat(scope.row.debtAmount):0 }}</span>
 			</template>
 
 			<template #table-column-balance="{scope}">
@@ -58,10 +58,10 @@
 			</template>
 
 			<template #table-column-actDebt="{scope}">
-				<span v-if="Number(scope.row.debtAmount) > Number(scope.row.balance)" style="color:blue;font-weight:bold;cursor: pointer;" @click="goChange(scope.row)">
+				<span v-if="Number(scope.row.debtAmount) > Number(scope.row.balance)" style="font-weight:bold;cursor: pointer;" @click="goDebtChange(scope.row)">
 					{{ parseFloat((Number(scope.row.debtAmount)-Number(scope.row.balance)).toFixed(2)) }}
 				</span>
-				<span v-else style="font-weight:bold;cursor: pointer;" @click="goChange(scope.row)">-</span>
+				<span v-else style="font-weight:bold;cursor: pointer;" @click="goDebtChange(scope.row)">-</span>
 			</template>
 
 			<template #table-column-debt="{scope}">
@@ -279,6 +279,12 @@ export default {
 				}
 			})
 		},
+		goDebtChange(data){
+			let query = {};
+			query.customId = data.id
+			query.customName = data.name
+			this.$router.push({ path: '/member/custom-debt-list', query });
+		},
 		goBalanceChange(data){
 			let query = {};
 			query.customId = data.id
@@ -479,7 +485,7 @@ export default {
 						},
 						{
 							prop: 'actDebt',
-							label: '待结欠款',
+							label: '剩余欠款',
 							align: 'center',
 							width: 100
 						},