|
@@ -14,21 +14,15 @@
|
|
|
<el-input v-model="queryParams.appUserName" placeholder="请输入客户名称" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="下单时间" prop="queryCreateTime">
|
|
|
- <el-date-picker clearable v-model="queryParams.queryCreateTime" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="充值卡使用状态" prop="rechargeStatus" label-width="130">
|
|
|
- <el-radio-group v-model="queryParams.rechargeStatus">
|
|
|
- <el-radio-button label="0">未使用</el-radio-button>
|
|
|
- <el-radio-button label="1">已使用</el-radio-button>
|
|
|
- </el-radio-group>
|
|
|
+ <el-date-picker clearable v-model="queryParams.queryCreateTime" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="下单时间" end-placeholder="结束日期"> </el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="消费工厂/门店" label-width="120px" prop="orgIndex" v-if="userInfoVO.userType == '00'">
|
|
|
- <el-select v-model="queryParams.orgIndex" placeholder="请选择" clearable>
|
|
|
- <el-option-group label="工厂">
|
|
|
- <template>
|
|
|
- <el-option v-for="factory in factoryList" :key="factory.id + factory.sourceType" :label="factory.name" :value="factory.id + ',' + factory.sourceType"> </el-option>
|
|
|
- </template>
|
|
|
- </el-option-group>
|
|
|
+ <el-select v-model="queryParams.orgIndex" placeholder="请选择门店" clearable>
|
|
|
+ <!-- <el-option-group label="工厂">-->
|
|
|
+ <!-- <template>-->
|
|
|
+ <!-- <el-option v-for="factory in factoryList" :key="factory.id + factory.sourceType" :label="factory.name" :value="factory.id + ',' + factory.sourceType"> </el-option>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- </el-option-group>-->
|
|
|
<el-option-group label="门店">
|
|
|
<template>
|
|
|
<el-option v-for="store in storeList" :key="store.id + store.sourceType" :label="store.name" :value="store.id + ',' + store.sourceType"> </el-option>
|
|
@@ -48,7 +42,7 @@
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" fit highlight-current-row border stripe :data="recordList" @selection-change="handleSelectionChange">
|
|
|
+ <Page uri="/mapi/recharge/card/batchRecord/listCardUseRecordByBatchNo" :request-params="queryParams" ref="pagination">
|
|
|
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
|
|
<el-table-column label="充值卡编号" align="center" prop="rechargeCardId" width="190" />
|
|
|
<!-- <el-table-column label="批次号" align="center" prop="batchNo" width="190"/>-->
|
|
@@ -85,9 +79,7 @@
|
|
|
{{ scope.row.isRefund == 'Y' && scope.row.welfarePayAmount.toString() != '0' ? '退款:' + scope.row.welfarePayAmount.toString().replace('-', '') : scope.row.welfarePayAmount.toString().replace('-', '') }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </Page>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -167,7 +159,6 @@ export default {
|
|
|
},
|
|
|
/** 查询充值订单列表 */
|
|
|
getList() {
|
|
|
- this.loading = true
|
|
|
this.queryParams.batchNo = this.batchNo
|
|
|
if (this.queryParams.orgIndex != null) {
|
|
|
this.queryParams.orgId = this.queryParams.orgIndex.split(',')[0]
|
|
@@ -182,10 +173,8 @@ export default {
|
|
|
param.endCreateTime = this.queryParams.queryCreateTime[1]
|
|
|
param.queryCreateTime = null
|
|
|
}
|
|
|
- listCardUseRecordByBatchNo(param).then((response) => {
|
|
|
- this.recordList = response.data.records
|
|
|
- this.total = response.data.total
|
|
|
- this.loading = false
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.pagination.handleSearch(true)
|
|
|
})
|
|
|
},
|
|
|
// 取消按钮
|