|
@@ -28,15 +28,26 @@
|
|
|
<el-option label="支付宝" :value="3"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="支付状态:" prop="orderFlag">
|
|
|
+ <el-select v-model="queryParams.orderFlag" style="width: 240px" placeholder="请选择支付方式" clearable size="small">
|
|
|
+ <el-option label="未支付" :value="0"/>
|
|
|
+ <el-option label="支付等待中" :value="1"/>
|
|
|
+ <el-option label="支付失败" :value="2"/>
|
|
|
+ <el-option label="卡充值失败" :value="3"/>
|
|
|
+ <el-option label="支付成功" :value="4"/>
|
|
|
+ <el-option label="取消支付" :value="5"/>
|
|
|
+ <el-option label="已成功" :value="6"/>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="支付金额:" prop="Money">
|
|
|
- <el-input-number
|
|
|
+ <el-input-number
|
|
|
v-model="queryParams.startMoney"
|
|
|
clearable
|
|
|
size="small"
|
|
|
type="number"
|
|
|
style="width: 240px"
|
|
|
- @keyup.enter.native="handleQuery"></el-input-number> ~
|
|
|
- <el-input-number
|
|
|
+ @keyup.enter.native="handleQuery"></el-input-number> ~
|
|
|
+ <el-input-number
|
|
|
v-model="queryParams.endMoney"
|
|
|
placeholder=""
|
|
|
clearable
|
|
@@ -75,6 +86,17 @@
|
|
|
<el-table-column label="姓名" align="center" prop="userName" />
|
|
|
<el-table-column label="手机号" align="center" prop="userPhone"/>
|
|
|
<el-table-column label="金额" align="center" prop="money"/>
|
|
|
+ <el-table-column label="支付状态" align="center" prop="orderFlag">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.orderFlag == 0" style="color:#909399">未支付</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 1" style="color:#000000">支付等待中</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 2" style="color:#E6A23C">支付失败</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 3" style="color:#F56C6C">卡充值失败</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 4" style="color:#409EFF">支付成功</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 5" style="color:#303133">取消支付</span>
|
|
|
+ <span v-if="scope.row.orderFlag == 6" style="color:#67C23A">已成功</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="支付方式" align="center" prop="payType">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.payType == 1 ? '现金支付':scope.row.payType ==2 ? '微信':scope.row.payType ==3 ? '支付宝': '' }}</span>
|
|
@@ -86,8 +108,30 @@
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
|
|
|
+ <template slot-scope="scope" >
|
|
|
+ <el-button v-if="scope.row.orderFlag ==3"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['system:admin:edit']"
|
|
|
+ >变更状态</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
+ <!-- 修改订单状态对话框 -->
|
|
|
+ <!-- <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body :before-close="cancel" :close-on-click-modal="false">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="120px" >
|
|
|
+ <el-form-item label="支付状态标识" prop="orderFlag">
|
|
|
+ <el-input v-model="form.orderFlag" placeholder="支付状态标识" @input="onInput()"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog> -->
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
@@ -99,7 +143,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listDetal, exportDetail } from "@/api/recharge/detailed";
|
|
|
+import { listDetal, exportDetail, updataChannel } from "@/api/recharge/detailed";
|
|
|
|
|
|
export default {
|
|
|
name: "admin",
|
|
@@ -113,6 +157,10 @@ export default {
|
|
|
total: 0,
|
|
|
// 参数表格数据
|
|
|
adminList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
// 日期范围
|
|
|
dateRange: [],
|
|
|
// 查询参数
|
|
@@ -127,16 +175,31 @@ export default {
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ name: [
|
|
|
+ { required: true, message: "渠道名称不能为空", trigger: "blur" }
|
|
|
+ ],
|
|
|
+ aliasName: [
|
|
|
+ { required: true, message: "渠道标识不能为空", trigger: "blur" }
|
|
|
+ ],
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //强制el-input刷新
|
|
|
+ onInput(){
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
/** 查询参数列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
+ console.log(this.dateRange)
|
|
|
listDetal(this.addDateRange(this.queryParams,this.dateRange,'section')).then(response => {
|
|
|
+ console.log(response)
|
|
|
this.adminList = response.data.records;
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
@@ -162,6 +225,15 @@ export default {
|
|
|
this.queryParams.current = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(row) {
|
|
|
+ Object.assign(this.form, row.id ? this.adminList.find(val=>val.id === row.id) : this.adminList.find(val=>val.id === this.ids[0]))
|
|
|
+ updataChannel(this.form).then(response => {
|
|
|
+ console.log(response)
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
this.dateRange = [];
|
|
@@ -191,4 +263,4 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
};
|
|
|
-</script>
|
|
|
+</script>
|