|
@@ -27,12 +27,35 @@
|
|
|
@click="handleDelete">删 除
|
|
@click="handleDelete">删 除
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="userInfo" slot-scope="scope">
|
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
|
+ <div style="display: flex;justify-content: center;align-items: center;">
|
|
|
|
|
+ <el-avatar size="large" :src="scope.row.avatar"></el-avatar>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="padding: 10px;">
|
|
|
|
|
+ <div >昵称:{{scope.row.nickName}}</div>
|
|
|
|
|
+ <div>手机:{{scope.row.phone}}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 操作菜单 -->
|
|
|
|
|
+ <template slot-scope="scope" slot="menu">
|
|
|
|
|
+ <el-button v-if="scope.row.withdrawStatus==0" size="mini" @click.stop="confirm(scope.row)" type="primary">确定发款</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="withdrawStatus" slot-scope="scope">
|
|
|
|
|
+ <el-tag type="warning" v-if="scope.row.withdrawStatus==0">未发款</el-tag>
|
|
|
|
|
+ <el-tag type="success" v-if="scope.row.withdrawStatus==1">已发款</el-tag>
|
|
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import {getList, getDetail, add, update, remove} from "@/api/withdrawrecords/withdrawrecords";
|
|
import {getList, getDetail, add, update, remove} from "@/api/withdrawrecords/withdrawrecords";
|
|
|
|
|
+ import {dateFormat} from "../../util/date.js"
|
|
|
import {mapGetters} from "vuex";
|
|
import {mapGetters} from "vuex";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -55,12 +78,13 @@
|
|
|
searchMenuSpan: 6,
|
|
searchMenuSpan: 6,
|
|
|
border: true,
|
|
border: true,
|
|
|
index: true,
|
|
index: true,
|
|
|
- viewBtn: true,
|
|
|
|
|
|
|
+ viewBtn: false,
|
|
|
selection: true,
|
|
selection: true,
|
|
|
dialogClickModal: false,
|
|
dialogClickModal: false,
|
|
|
column: [
|
|
column: [
|
|
|
{
|
|
{
|
|
|
label: "用户id",
|
|
label: "用户id",
|
|
|
|
|
+ hide:true,
|
|
|
prop: "userId",
|
|
prop: "userId",
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
@@ -68,6 +92,46 @@
|
|
|
trigger: "blur"
|
|
trigger: "blur"
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ slot:true,
|
|
|
|
|
+ label:"用户信息",
|
|
|
|
|
+ prop:"userInfo"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:"手机号",
|
|
|
|
|
+ prop:"phone",
|
|
|
|
|
+ search:true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:"昵称",
|
|
|
|
|
+ prop:"nickName",
|
|
|
|
|
+ search:true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "openid",
|
|
|
|
|
+ prop: "openid",
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: "请输入用户id",
|
|
|
|
|
+ trigger: "blur"
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:"提现状态",
|
|
|
|
|
+ search:true,
|
|
|
|
|
+ type: "select",
|
|
|
|
|
+ dicData:[
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'未发款',
|
|
|
|
|
+ value:0
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'已发款',
|
|
|
|
|
+ value:1
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ prop:'withdrawStatus'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "备注说明",
|
|
label: "备注说明",
|
|
|
prop: "note",
|
|
prop: "note",
|
|
@@ -119,6 +183,31 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ confirm(row){
|
|
|
|
|
+ let _this=this
|
|
|
|
|
+ this.$alert('确定发款?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ callback: () => {
|
|
|
|
|
+ _this.doConfirm(row)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ async doConfirm(row){
|
|
|
|
|
+ let grantTime=dateFormat(new Date())
|
|
|
|
|
+ let params={
|
|
|
|
|
+ id:row.id,
|
|
|
|
|
+ grantTime,
|
|
|
|
|
+ withdrawStatus:1
|
|
|
|
|
+ }
|
|
|
|
|
+ let res=await update(params)
|
|
|
|
|
+ if (res.data.success) {
|
|
|
|
|
+ this.onLoad(this.page);
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: "发款成功!"
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
rowSave(row, done, loading) {
|
|
rowSave(row, done, loading) {
|
|
|
add(row).then(() => {
|
|
add(row).then(() => {
|
|
|
this.onLoad(this.page);
|
|
this.onLoad(this.page);
|