Przeglądaj źródła

做到了导出

shish 1 rok temu
rodzic
commit
4158538bc6
1 zmienionych plików z 18 dodań i 34 usunięć
  1. 18 34
      ghs/src/views/member/custom-debt-list.vue

+ 18 - 34
ghs/src/views/member/custom-debt-list.vue

@@ -12,30 +12,20 @@
 				<span> {{ scope.row.io == 1 ? '+' : '-' }} {{ scope.row.amount }} </span>
 				<span> {{ scope.row.io == 1 ? '+' : '-' }} {{ scope.row.amount }} </span>
 			</template>
 			</template>
 
 
-			<template #table-column-staffName="{scope}">
-				<span>{{ scope.row.staffName != '' ? scope.row.staffName : '-' }}</span>
+			<template #table-column-payTime="{scope}">
+				<span v-if="scope.row.payTime!='0000-00-00 00:00:00' && scope.row.payTime.substr(5,5)!=scope.row.addTime.substr(5,5)">
+					{{ item.payTime }}
+				</span>
+				<span v-else>-</span>
 			</template>
 			</template>
 
 
 			<template #table-column-capitalType="{scope}">
 			<template #table-column-capitalType="{scope}">
-				<span v-if="scope.row.capitalType == 75">售后返充</span>
-				<span v-else-if="scope.row.capitalType == 62">线下充值</span>
-				<span v-else-if="scope.row.capitalType == 66">线上充值</span>
-				<span v-else-if="scope.row.capitalType == 64">结账</span>
+				<span v-if="scope.row.capitalType == 20">结账</span>
+				<span v-else-if="scope.row.capitalType == 10">下单</span>
+				<span v-else-if="scope.row.capitalType == 40">售后</span>
 				<span v-else>其它</span>
 				<span v-else>其它</span>
 			</template>
 			</template>
 
 
-			<template #table-column-payWay="{scope}">
-				<span v-if="scope.row.capitalType == 62 || scope.row.capitalType == 66">
-					<span v-if="scope.row.payWay == 0">微信</span>
-					<span v-else-if="scope.row.payWay == 1">支付宝</span>
-					<span v-else-if="scope.row.payWay == 2">余额</span>
-					<span v-else-if="scope.row.payWay == 4">现金</span>
-					<span v-else-if="scope.row.payWay == 5">银行卡</span>
-					<span v-else>其它</span>
-				</span>
-				<span v-else>-</span>
-			</template>
-
 			<template #slot-search-list="{scope}">
 			<template #slot-search-list="{scope}">
 
 
 				<el-select @change="getCurrentCp" v-model="currentCustomName" filterable remote reserve-keyword placeholder="搜索客户" clearable 
 				<el-select @change="getCurrentCp" v-model="currentCustomName" filterable remote reserve-keyword placeholder="搜索客户" clearable 
@@ -126,7 +116,13 @@ export default {
 						},
 						},
 						{
 						{
 							prop: 'addTime',
 							prop: 'addTime',
-							label: '日期',
+							label: '创建日期',
+							align: 'center',
+							width: 180
+						},
+						{
+							prop: 'payTime',
+							label: '账单日期',
 							align: 'center',
 							align: 'center',
 							width: 180
 							width: 180
 						},
 						},
@@ -148,23 +144,11 @@ export default {
 							align: 'center',
 							align: 'center',
 							width: 120
 							width: 120
 						},
 						},
-						{
-							prop: 'payWay',
-							label: '支付方式',
-							align: 'center',
-							width: 120
-						},
 						{
 						{
 							prop: 'event',
 							prop: 'event',
 							label: '事项',
 							label: '事项',
 							align: 'center',
 							align: 'center',
-							width: 200
-						},
-						{
-							prop: 'staffName',
-							label: '人员',
-							align: 'center',
-							width: 100
+							width: 240
 						},
 						},
 						{
 						{
 							prop: 'amount',
 							prop: 'amount',
@@ -174,7 +158,7 @@ export default {
 						},
 						},
 						{
 						{
 							prop: 'balance',
 							prop: 'balance',
-							label: '余额',
+							label: '剩余欠款',
 							align: 'center',
 							align: 'center',
 							width: 120
 							width: 120
 						},
 						},
@@ -182,7 +166,7 @@ export default {
 							prop: 'remark',
 							prop: 'remark',
 							label: '备注',
 							label: '备注',
 							align: 'center',
 							align: 'center',
-							width: 200
+							width: 240
 						}
 						}
 					],
 					],
 					op: {
 					op: {