Explorar o código

Merge branch 'deploy_qbyc' of http://git.chelingzhu.com/chelingzhu-web/zyyc_channe_html into deploy_qbyc

chenrui %!s(int64=4) %!d(string=hai) anos
pai
achega
d4046eab74
Modificáronse 1 ficheiros con 8 adicións e 7 borrados
  1. 8 7
      src/views/Service/PurchasedServiceList.vue

+ 8 - 7
src/views/Service/PurchasedServiceList.vue

@@ -2,7 +2,7 @@
 	<a-card :bordered="false">
 		<v-select v-show="false" ref="orderFlag" code="PAY_STATUS" placeholder="请选择订单状态" allowClear></v-select>
 		<div class="table-page-search-wrapper">
-			<a-form layout="inline" :form="form" @keyup.enter.native="$refs.table.refresh(true)">
+			<a-form layout="inline" :form="form" @keyup.enter.native="refresh">
 				<a-row :gutter="48">
 					<a-col :lg="6" :sm="12">
 						<a-form-item label="订单编号:" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
@@ -42,7 +42,7 @@
 						</a-form-item>
 					</a-col>
 					<a-col :lg="6" :sm="12">
-						<a-button type="primary" @click="$refs.table.refresh(true)" id="PurchasedServiceList-search">查询</a-button>
+						<a-button type="primary" @click="refresh" id="PurchasedServiceList-search">查询</a-button>
 						<a-button style="margin-left: 8px" @click="resetSearchForm" id="PurchasedServiceList-resetSearchForm">重置</a-button>
 						<a-button style="margin-left: 8px" class="export-btn" @click="handleExport" id="PurchasedServiceList-handleExport">导出</a-button>
 					</a-col>
@@ -229,9 +229,6 @@
 				]
 			}
 		},
-		mounted() {
-			this.getSalesChannel()
-		},
 		methods: {
 			// 禁止不可选日期
 			disabledDate(current) {
@@ -307,6 +304,11 @@
 					}
 				})
 			},
+			// 查询
+			refresh(){
+				this.$refs.table.refresh(true)
+				this.getTotal()
+			},
 			// 重置
 			resetSearchForm() {
 				this.queryParam.beginDate = getDate.getRecentday().starttime
@@ -323,7 +325,7 @@
 					salesChannelSettleStatus: '',
 					freeChoiceFlag: 1
 				}
-				this.$refs.table.refresh(true)
+				this.refresh()
 			},
 			// 导出
 			handleExport() {
@@ -372,7 +374,6 @@
 			next(vm => {
 				vm.resetSearchForm()
 				vm.getSalesChannel()
-				vm.getTotal()
 			})
 		}
 	}