shish 1 an în urmă
părinte
comite
fa55bc6874
1 a modificat fișierele cu 34 adăugiri și 19 ștergeri
  1. 34 19
      ghs/src/views/member/custom-clear-list.vue

+ 34 - 19
ghs/src/views/member/custom-clear-list.vue

@@ -8,28 +8,37 @@
 				</el-tabs>
 			</template>
 
-			<template #table-column-amount="{scope}">
-				<span> {{ scope.row.io == 1 ? '+' : '-' }} {{ scope.row.amount }} </span>
-			</template>
-
 			<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)">
+				<span v-if="scope.row.payTime!='0000-00-00 00:00:00'">
 					{{ scope.row.payTime }}
 				</span>
 				<span v-else>-</span>
 			</template>
 
-			<template #table-column-capitalType="{scope}">
-				<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>
+			<template #table-column-onlinePay="{scope}">
+				<span v-if="scope.row.onlinePay==1">-</span>
+				<span v-else style="color:#409EFF;">是</span>
+			</template>
+
+			<template #table-column-payWay="{scope}">
+				<span v-if="scope.row.payWay==0">微信</span>
+				<span v-if="scope.row.payWay==1">支付宝</span>
+				<span v-if="scope.row.payWay==2">余额</span>
+				<span v-if="scope.row.payWay==3">欠账</span>
+				<span v-if="scope.row.payWay==4">现金</span>
+				<span v-if="scope.row.payWay==5">银行卡</span>
+			</template>
+
+			<template #table-column-status="{scope}">
+				<span v-if="scope.row.status==1">待付款</span>
+				<span v-if="scope.row.status==2">已付款</span>
+				<span v-if="scope.row.status==3">已取消</span>
 			</template>
 
 			<template #slot-search-list="{scope}">
 
 				<el-select @change="getCurrentCp" v-model="currentCustomName" filterable remote reserve-keyword placeholder="搜索客户" clearable 
-				:remote-method="searchCpInfo" :loading="loading" style="width:200px;margin-right:10px;" size="middle">
+				:remote-method="searchCustomInfo" :loading="loading" style="width:200px;margin-right:10px;" size="middle">
     				<el-option v-for="item in customInfoList" :key="item.id" :label="`${item.name}(${item.id})`" :value="item.id"> </el-option>
   				</el-select>
 
@@ -42,6 +51,10 @@
 
 			</template>
 
+			<template #slot-column-option="{scope}">
+				<el-button size="small" type="primary" @click="getDetail(scope.row)">详情</el-button>
+			</template>
+
 		</x-crud>
 	</div>
 </template>
@@ -56,7 +69,7 @@ export default {
 			tabIndex: '0',
 			tabsData: [
 				{
-					text: '列表',
+					text: '全部',
 					key: '0',
 					val: 0
 				},
@@ -112,19 +125,19 @@ export default {
 							prop: 'id',
 							label: 'ID',
 							align: 'center',
-							width: 100
+							width: 80
 						},
 						{
 							prop: 'addTime',
 							label: '创建时间',
 							align: 'center',
-							width: 160
+							width: 150
 						},
 						{
 							prop: 'payTime',
 							label: '结账时间',
 							align: 'center',
-							width: 160
+							width: 150
 						},
 						{
 							prop: 'orderSn',
@@ -136,7 +149,7 @@ export default {
 							prop: 'customId',
 							label: '客户ID',
 							align: 'center',
-							width: 100
+							width: 90
 						},
 						{
 							prop: 'customName',
@@ -148,7 +161,7 @@ export default {
 							prop: 'customMobile',
 							label: '手机号',
 							align: 'center',
-							width: 120
+							width: 110
 						},
 						{
 							prop: 'onlinePay',
@@ -190,7 +203,7 @@ export default {
 					op: {
 						visible: true,
 						props: {
-							width: 120,
+							width: 180,
 							align: 'center',
 							fixed: 'right',
 							label: '操作'
@@ -215,6 +228,8 @@ export default {
 				.done();
 				this.refreshData()
 		},
+		getDetail(){
+		},
 		getCurrentCp(e){
 			this.customId = e
 			this.refreshData()
@@ -229,7 +244,7 @@ export default {
 				}
 			})
 		},
-		searchCpInfo(query) {
+		searchCustomInfo(query) {
 			let that = this
 			if (query !== '') {
 				this.loading = true;