|
@ -1,11 +1,11 @@ |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { onMounted, reactive } from 'vue' |
|
|
|
|
|
import { ref, computed, watch } from 'vue' |
|
|
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
|
|
import { Plus } from '@element-plus/icons-vue' |
|
|
|
|
|
|
|
|
import {onMounted, reactive} from 'vue' |
|
|
|
|
|
import {ref, computed, watch} from 'vue' |
|
|
|
|
|
import {ElMessage} from 'element-plus' |
|
|
|
|
|
import {Plus} from '@element-plus/icons-vue' |
|
|
import axios from 'axios' |
|
|
import axios from 'axios' |
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
|
|
|
|
|
import {ElMessageBox} from 'element-plus' |
|
|
import API from '@/util/http' |
|
|
import API from '@/util/http' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
// import _ from 'lodash' |
|
|
// import _ from 'lodash' |
|
@ -15,12 +15,11 @@ const addRe = ref({ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//这是获取用户信息的接口 |
|
|
//这是获取用户信息的接口 |
|
|
const adminData = ref({}) |
|
|
const adminData = ref({}) |
|
|
const getAdminData = async function () { |
|
|
const getAdminData = async function () { |
|
|
try { |
|
|
try { |
|
|
const result = await API({ url: '/admin/userinfo', data: {} }) |
|
|
|
|
|
|
|
|
const result = await API({url: '/admin/userinfo', data: {}}) |
|
|
adminData.value = result |
|
|
adminData.value = result |
|
|
addRefund.value.adminId = adminData.value.id |
|
|
addRefund.value.adminId = adminData.value.id |
|
|
console.log('请求成功', result) |
|
|
console.log('请求成功', result) |
|
@ -85,8 +84,9 @@ const add = async function () { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 发送POST请求 |
|
|
// 发送POST请求 |
|
|
const result = await API({ url: '/refund/add', |
|
|
|
|
|
data: processedRefund |
|
|
|
|
|
|
|
|
const result = await API({ |
|
|
|
|
|
url: '/refund/add', |
|
|
|
|
|
data: processedRefund |
|
|
}) |
|
|
}) |
|
|
if (result.code === 0) { |
|
|
if (result.code === 0) { |
|
|
ElMessage.error(result.msg) |
|
|
ElMessage.error(result.msg) |
|
@ -108,7 +108,7 @@ const addBefore = () => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
await getUser(refund.value.jwcode); |
|
|
|
|
|
|
|
|
await getUser(addRefund.value.jwcode); |
|
|
if (!user.value.jwcode) { |
|
|
if (!user.value.jwcode) { |
|
|
ElMessage.error('请先验证有效的精网号'); |
|
|
ElMessage.error('请先验证有效的精网号'); |
|
|
return; |
|
|
return; |
|
@ -119,13 +119,13 @@ const addBefore = () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ElMessageBox.confirm('确认添加?') |
|
|
ElMessageBox.confirm('确认添加?') |
|
|
.then(() => { |
|
|
|
|
|
add() |
|
|
|
|
|
console.log('添加成功') |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
console.log('取消添加') |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
.then(() => { |
|
|
|
|
|
add() |
|
|
|
|
|
console.log('添加成功') |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
console.log('取消添加') |
|
|
|
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
//提示 |
|
|
//提示 |
|
|
ElMessage({ |
|
|
ElMessage({ |
|
@ -139,7 +139,8 @@ const addBefore = () => { |
|
|
// 表单验证 |
|
|
// 表单验证 |
|
|
// 开始时间改变时,重新验证结束时间 |
|
|
// 开始时间改变时,重新验证结束时间 |
|
|
const Ref = ref(null) |
|
|
const Ref = ref(null) |
|
|
const startChange = (val) => {} |
|
|
|
|
|
|
|
|
const startChange = (val) => { |
|
|
|
|
|
} |
|
|
const validateJwCode = (rule, value, callback) => { |
|
|
const validateJwCode = (rule, value, callback) => { |
|
|
if (!value) { |
|
|
if (!value) { |
|
|
callback(new Error('精网号不能为空')); |
|
|
callback(new Error('精网号不能为空')); |
|
@ -152,16 +153,16 @@ const validateJwCode = (rule, value, callback) => { |
|
|
callback(); |
|
|
callback(); |
|
|
}; |
|
|
}; |
|
|
const rules = reactive({ |
|
|
const rules = reactive({ |
|
|
jwcode: [{ required: true, validator:validateJwCode, trigger: 'blur' }], |
|
|
|
|
|
refundType: [{ required: true, message: '请选择退款类型', trigger: 'blur' }], |
|
|
|
|
|
goodsName: [{ required: true, message: '请选择退款商品', trigger: 'blur' }], |
|
|
|
|
|
taskGold: [{ required: true, message: '请输入任务金币', trigger: 'blur' }], |
|
|
|
|
|
freeGold: [{ required: true, message: '请输入免费金币', trigger: 'blur' }], |
|
|
|
|
|
|
|
|
jwcode: [{required: true, validator: validateJwCode, trigger: 'blur'}], |
|
|
|
|
|
refundType: [{required: true, message: '请选择退款类型', trigger: 'blur'}], |
|
|
|
|
|
goodsName: [{required: true, message: '请选择退款商品', trigger: 'blur'}], |
|
|
|
|
|
taskGold: [{required: true, message: '请输入任务金币', trigger: 'blur'}], |
|
|
|
|
|
freeGold: [{required: true, message: '请输入免费金币', trigger: 'blur'}], |
|
|
permanentGold: [ |
|
|
permanentGold: [ |
|
|
{ required: true, message: '请输入永久金币', trigger: 'blur' } |
|
|
|
|
|
|
|
|
{required: true, message: '请输入永久金币', trigger: 'blur'} |
|
|
], |
|
|
], |
|
|
sumGold: [ |
|
|
sumGold: [ |
|
|
{ required: true, message: '请选择付款方式', trigger: 'blur' }, |
|
|
|
|
|
|
|
|
{required: true, message: '请选择付款方式', trigger: 'blur'}, |
|
|
{ |
|
|
{ |
|
|
validator: (rule, value) => { |
|
|
validator: (rule, value) => { |
|
|
if (value === 0) { |
|
|
if (value === 0) { |
|
@ -198,7 +199,7 @@ const user = ref({ |
|
|
}) |
|
|
}) |
|
|
const getUser = async function (jwcode) { |
|
|
const getUser = async function (jwcode) { |
|
|
trimJwCode(); |
|
|
trimJwCode(); |
|
|
cancelExceptJwcode(); |
|
|
|
|
|
|
|
|
// cancelExceptJwcode(); |
|
|
try { |
|
|
try { |
|
|
// 发送POST请求 |
|
|
// 发送POST请求 |
|
|
const result = await API({ |
|
|
const result = await API({ |
|
@ -236,10 +237,8 @@ const getUser = async function (jwcode) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 退款类型,写死为商品退款 |
|
|
// 退款类型,写死为商品退款 |
|
|
const refundType = ref([{ value: '商品退款', label: '商品退款' }]); |
|
|
|
|
|
|
|
|
const refundType = ref([{value: '商品退款', label: '商品退款'}]); |
|
|
|
|
|
|
|
|
// 获取退款类型 |
|
|
// 获取退款类型 |
|
|
// const getRefundTypes = async function () { |
|
|
// const getRefundTypes = async function () { |
|
@ -264,8 +263,6 @@ const refundType = ref([{ value: '商品退款', label: '商品退款' }]); |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据精网号查询商品 |
|
|
// 根据精网号查询商品 |
|
|
const goodsName = ref([]) |
|
|
const goodsName = ref([]) |
|
|
const getGoods = async function (jwcode) { |
|
|
const getGoods = async function (jwcode) { |
|
@ -316,7 +313,7 @@ const selectedGoodsGold = ref({ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 处理退款方式切换,当部分退款切换全部退款时,退款金额应自动重新填充 |
|
|
// 处理退款方式切换,当部分退款切换全部退款时,退款金额应自动重新填充 |
|
|
const handleRefundModelChange = () =>{ |
|
|
|
|
|
|
|
|
const handleRefundModelChange = () => { |
|
|
if (addRe.value.typeR === '0') { |
|
|
if (addRe.value.typeR === '0') { |
|
|
// 全部退款时 |
|
|
// 全部退款时 |
|
|
addRefund.value.permanentGold = selectedGoodsGold.value.permanentGold; |
|
|
addRefund.value.permanentGold = selectedGoodsGold.value.permanentGold; |
|
@ -423,213 +420,214 @@ onMounted(async function () { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<div > |
|
|
|
|
|
|
|
|
|
|
|
<el-form |
|
|
|
|
|
:model="addRefund" |
|
|
|
|
|
ref="Ref" |
|
|
|
|
|
:rules="rules" |
|
|
|
|
|
label-width="auto" |
|
|
|
|
|
style="max-width: 750px" |
|
|
|
|
|
class="form-style" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form-item prop="jwcode" label="精网号"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addRefund.jwcode" |
|
|
|
|
|
style="width: 220px" |
|
|
|
|
|
@change="getGoods(addRefund.jwcode)" |
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
@click="getUser(addRefund.jwcode)" |
|
|
|
|
|
style="margin-left: 20px" |
|
|
|
|
|
>查询</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="refundType" label="退款类型"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="addRefund.refundType" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in refundType" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="goodsName" label="商品名"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="addRefund.goodsName" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
@change="handleSelectionChange" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in goodsName" |
|
|
|
|
|
:key="item.key" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="refundModel" label="退款方式:"> |
|
|
|
|
|
<el-radio-group v-model="addRe.typeR" @change="handleRefundModelChange"> |
|
|
|
|
|
<el-radio value="0">全部退款</el-radio> |
|
|
|
|
|
<el-radio value="1">部分退款</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<div style="display: flex; align-items: center"> |
|
|
|
|
|
<el-form-item prop="permanentGold" label="永久金币" style="float: left"> |
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
|
|
|
|
<el-form |
|
|
|
|
|
:model="addRefund" |
|
|
|
|
|
ref="Ref" |
|
|
|
|
|
:rules="rules" |
|
|
|
|
|
label-width="auto" |
|
|
|
|
|
style="max-width: 750px" |
|
|
|
|
|
class="form-style" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form-item prop="jwcode" label="精网号"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="addRefund.permanentGold" |
|
|
|
|
|
style="width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handlePermanentGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
|
v-model="addRefund.jwcode" |
|
|
|
|
|
style="width: 220px" |
|
|
|
|
|
@change="getGoods(addRefund.jwcode)" |
|
|
|
|
|
|
|
|
|
|
|
/> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
@click="getUser(addRefund.jwcode)" |
|
|
|
|
|
style="margin-left: 20px" |
|
|
|
|
|
>查询 |
|
|
|
|
|
</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="refundType" label="退款类型"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="addRefund.refundType" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in refundType" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="goodsName" label="商品名"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="addRefund.goodsName" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
@change="handleSelectionChange" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in goodsName" |
|
|
|
|
|
:key="item.key" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="refundModel" label="退款方式:"> |
|
|
|
|
|
<el-radio-group v-model="addRe.typeR" @change="handleRefundModelChange"> |
|
|
|
|
|
<el-radio value="0">全部退款</el-radio> |
|
|
|
|
|
<el-radio value="1">部分退款</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<div style="display: flex; align-items: center"> |
|
|
|
|
|
<el-form-item prop="permanentGold" label="永久金币" style="float: left"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addRefund.permanentGold" |
|
|
|
|
|
style="width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handlePermanentGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item |
|
|
|
|
|
prop="freeGold" |
|
|
|
|
|
label="免费金币" |
|
|
|
|
|
style="margin-left: -20px; float: left" |
|
|
> |
|
|
> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addRefund.freeGold" |
|
|
|
|
|
style="float: left; width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handleFreeGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
/> |
|
|
|
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="taskGold" label="任务金币" style="margin-left: -20px"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addRefund.taskGold" |
|
|
|
|
|
style="float: left; width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handleTaskGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
/> |
|
|
|
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</div> |
|
|
|
|
|
<el-form-item prop="sumGold" label="退款金币总数"> |
|
|
|
|
|
<el-input disabled v-model="addRefund.sumGold" style="width: 100px"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item |
|
|
|
|
|
prop="freeGold" |
|
|
|
|
|
label="免费金币" |
|
|
|
|
|
style="margin-left: -20px; float: left" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<el-form-item prop="remark" label="备注"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="addRefund.freeGold" |
|
|
|
|
|
style="float: left; width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handleFreeGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
|
v-model="addRefund.remark" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
:rows="2" |
|
|
|
|
|
maxlength="100" |
|
|
|
|
|
show-word-limit |
|
|
|
|
|
type="textarea" |
|
|
/> |
|
|
/> |
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="taskGold" label="任务金币" style="margin-left: -20px"> |
|
|
|
|
|
|
|
|
<el-form-item prop="adminName" label="提交人"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="addRefund.taskGold" |
|
|
|
|
|
style="float: left; width: 100px" |
|
|
|
|
|
:disabled="addRe.typeR === '0' ? true : false" |
|
|
|
|
|
@input="handleTaskGoldInput($event)" |
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
:value="adminData.adminName" |
|
|
|
|
|
disabled |
|
|
|
|
|
placeholder="提交人姓名" |
|
|
/> |
|
|
/> |
|
|
<p>个</p> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</div> |
|
|
|
|
|
<el-form-item prop="sumGold" label="退款金币总数"> |
|
|
|
|
|
<el-input disabled v-model="addRefund.sumGold" style="width: 100px"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="remark" label="备注"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="addRefund.remark" |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
:rows="2" |
|
|
|
|
|
maxlength="100" |
|
|
|
|
|
show-word-limit |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item prop="adminName" label="提交人"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
:value="adminData.adminName" |
|
|
|
|
|
disabled |
|
|
|
|
|
placeholder="提交人姓名" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-button type="success" @click="cancel()" style="margin-left: 280px">重置</el-button> |
|
|
|
|
|
<el-button type="primary" @click="addBefore"> 提交 </el-button> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 客户信息栏 --> |
|
|
|
|
|
<el-card v-if="user.jwcode" style="width: 800px; float: right" class="customer-info"> |
|
|
|
|
|
<el-form |
|
|
|
|
|
:model="user" |
|
|
|
|
|
label-width="auto" |
|
|
|
|
|
style="max-width: 1000px" |
|
|
|
|
|
label-position="left" |
|
|
|
|
|
> |
|
|
|
|
|
<el-text size="large" style="margin-left: 20px">客户信息</el-text> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第一行:姓名 + 历史金币 --> |
|
|
|
|
|
<el-row style="margin-top: 20px"> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="姓名:"> |
|
|
|
|
|
<p>{{ user.name }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="历史金币总数"> |
|
|
|
|
|
<p v-if="!isNaN(Number(user.historySumGold))"> |
|
|
|
|
|
{{ Number(user.historySumGold) }} |
|
|
|
|
|
</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第二行:精网号 + 当前金币(独立行) --> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="精网号"> |
|
|
|
|
|
<p>{{ user.jwcode }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="当前金币总数" style="width: 500px"> |
|
|
|
|
|
|
|
|
<el-button type="success" @click="cancel()" style="margin-left: 280px">重置</el-button> |
|
|
|
|
|
<el-button type="primary" @click="addBefore"> 提交</el-button> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 客户信息栏 --> |
|
|
|
|
|
<el-card v-if="user.jwcode" style="width: 800px; float: right" class="customer-info"> |
|
|
|
|
|
<el-form |
|
|
|
|
|
:model="user" |
|
|
|
|
|
label-width="auto" |
|
|
|
|
|
style="max-width: 1000px" |
|
|
|
|
|
label-position="left" |
|
|
|
|
|
> |
|
|
|
|
|
<el-text size="large" style="margin-left: 20px">客户信息</el-text> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第一行:姓名 + 历史金币 --> |
|
|
|
|
|
<el-row style="margin-top: 20px"> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="姓名:"> |
|
|
|
|
|
<p>{{ user.name }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="历史金币总数"> |
|
|
|
|
|
<p v-if="!isNaN(Number(user.historySumGold))"> |
|
|
|
|
|
{{ Number(user.historySumGold) }} |
|
|
|
|
|
</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第二行:精网号 + 当前金币(独立行) --> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="精网号"> |
|
|
|
|
|
<p>{{ user.jwcode }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="当前金币总数" style="width: 500px"> |
|
|
<span |
|
|
<span |
|
|
style="color: #2fa1ff; margin-right: 5px" |
|
|
|
|
|
v-if="user.nowSumGold !== undefined" |
|
|
|
|
|
|
|
|
style="color: #2fa1ff; margin-right: 5px" |
|
|
|
|
|
v-if="user.nowSumGold !== undefined" |
|
|
>{{ user.nowSumGold }}</span> |
|
|
>{{ user.nowSumGold }}</span> |
|
|
</el-form-item> |
|
|
|
|
|
<!-- 金币详情独立显示 --> |
|
|
|
|
|
<el-form-item style="margin-top: -23px"> <!-- 负边距减少间距 --> |
|
|
|
|
|
<span |
|
|
|
|
|
style="color: #b1b1b1; margin-left: 0px" |
|
|
|
|
|
v-if="user.nowPermanentGold !== undefined" |
|
|
|
|
|
>(永久金币:{{ user.nowPermanentGold }}; |
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<!-- 金币详情独立显示 --> |
|
|
|
|
|
<el-form-item style="margin-top: -23px"> <!-- 负边距减少间距 --> |
|
|
|
|
|
<span |
|
|
|
|
|
style="color: #b1b1b1; margin-left: 0px" |
|
|
|
|
|
v-if="user.nowPermanentGold !== undefined" |
|
|
|
|
|
>(永久金币:{{ user.nowPermanentGold }}; |
|
|
免费金币:{{ user.nowFreeGold }}; |
|
|
免费金币:{{ user.nowFreeGold }}; |
|
|
任务金币:{{ user.nowTaskGold }})</span> |
|
|
任务金币:{{ user.nowTaskGold }})</span> |
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第三行:首次充值日期 + 充值次数 --> |
|
|
|
|
|
<el-row style="margin-top:-23px"> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="首次充值日期"> |
|
|
|
|
|
<p v-if="user.firstRecharge"> |
|
|
|
|
|
{{ moment(user.firstRecharge).format('YYYY-MM-DD HH:mm:ss') }} |
|
|
|
|
|
</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="充值次数"> |
|
|
|
|
|
<p style="color: #2fa1ff">{{ user.rechargeNum }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第四行:消费次数 + 所属门店 --> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="消费次数"> |
|
|
|
|
|
<p style="color: #2fa1ff">{{ user.consumeNum }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="所属门店"> |
|
|
|
|
|
<p>{{ user.market }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第三行:首次充值日期 + 充值次数 --> |
|
|
|
|
|
<el-row style="margin-top:-23px"> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="首次充值日期"> |
|
|
|
|
|
<p v-if="user.firstRecharge"> |
|
|
|
|
|
{{ moment(user.firstRecharge).format('YYYY-MM-DD HH:mm:ss') }} |
|
|
|
|
|
</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="14"> |
|
|
|
|
|
<el-form-item label="充值次数"> |
|
|
|
|
|
<p style="color: #2fa1ff">{{ user.rechargeNum }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第四行:消费次数 + 所属门店 --> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="消费次数"> |
|
|
|
|
|
<p style="color: #2fa1ff">{{ user.consumeNum }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="9"> |
|
|
|
|
|
<el-form-item label="所属门店"> |
|
|
|
|
|
<p>{{ user.market }}</p> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</el-card> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|