oil-station/fuintAdmin/src/views/member/userInfo.vue

1778 lines
62 KiB
Vue
Raw Normal View History

2023-10-17 19:01:29 +08:00
<template>
2023-10-18 18:31:46 +08:00
<div class="app-container">
<el-card>
2023-10-19 18:47:09 +08:00
<div slot="header" style="display: flex;justify-content: space-between;padding-right: 0px">
2023-10-18 18:31:46 +08:00
<div>
2023-10-19 18:47:09 +08:00
<el-page-header @back="goBack" content="详情页面"></el-page-header>
</div>
<div>
2024-01-10 15:43:57 +08:00
<el-button type="primary" plain round @click="subCard">子卡管理<i
class="el-icon-bank-card el-icon--right"></i></el-button>
<!-- <el-button type="primary" plain round>会员码</el-button>-->
2023-10-18 18:31:46 +08:00
</div>
</div>
<div>基础资料</div>
<div style="display: flex;margin-top: 20px">
<div class="left">
<div>
2024-01-04 18:44:52 +08:00
<img v-if="form.avatar" :src="baseUrl+form.avatar" style="width: 80px;height: 80px;border-radius: 50%">
2023-10-18 18:31:46 +08:00
<img v-else src="@/assets/images/avatar.png" style="width: 80px;height: 80px">
</div>
2024-01-10 15:43:57 +08:00
<!-- <el-button type="warning" plain round size="mini" style="margin: 10px" @click="bindIdCard">绑定实体卡</el-button><br>-->
<el-button type="primary" icon="el-icon-bank-card" round style="margin: 10px;width: 50%;height: 40px"
@click="userRecharge">会员充值
</el-button>
2023-10-18 18:31:46 +08:00
</div>
<div class="right">
<el-descriptions>
2024-01-10 15:43:57 +08:00
<el-descriptions-item label="手机号">{{ form.mobile }}
2023-10-18 18:31:46 +08:00
<el-tag size="mini" @click="replaceMobile">更换</el-tag>
</el-descriptions-item>
2023-11-30 11:48:14 +08:00
<el-descriptions-item label="会员昵称">
2024-01-10 15:43:57 +08:00
<span style="color: #00afff" @click="changeName">{{ form.name ? form.name : "--" }}</span>
2023-11-30 11:48:14 +08:00
</el-descriptions-item>
2024-01-10 15:43:57 +08:00
<!-- <el-descriptions-item label="实体卡号">{{form.idcard ? form.idcard : "&#45;&#45;"}}</el-descriptions-item>-->
<!-- <el-descriptions-item label="绑定信息">&#45;&#45;</el-descriptions-item>-->
2023-10-18 18:31:46 +08:00
<el-descriptions-item label="会员状态">
<dict-tag :options="dict.type.zhzt" :value="form.status"/>
</el-descriptions-item>
2024-01-10 15:43:57 +08:00
<el-descriptions-item label="加油次数">{{ form.consumeNum }}</el-descriptions-item>
<el-descriptions-item label="加油总金额">{{ form.refuelMoney ? form.refuelMoney : "--" }}
</el-descriptions-item>
<!-- <el-descriptions-item label="所属油站">{{ store.name }}</el-descriptions-item>-->
<el-descriptions-item label="注册时间">{{ form.createTime }}</el-descriptions-item>
2024-01-10 13:45:02 +08:00
<el-descriptions-item label="关联子卡">
<span style="color: #00afff" @click="subCard">子卡管理</span>
2023-10-19 18:47:09 +08:00
</el-descriptions-item>
<el-descriptions-item label="会员等级">
2024-01-10 13:45:02 +08:00
{{ grade ? grade.name : "--" }}
2023-10-19 18:47:09 +08:00
</el-descriptions-item>
2024-01-10 15:43:57 +08:00
<!-- <el-descriptions-item label="储值优惠">&#45;&#45;</el-descriptions-item>-->
<!-- <el-descriptions-item label="每日笔数">-->
<!-- <span style="color: #00afff" @click="configuration">跟随全局总配置</span>-->
<!-- </el-descriptions-item>-->
2023-10-19 18:47:09 +08:00
<el-descriptions-item label="固定等级">
<span style="color: #00afff" @click="level">
2024-01-10 15:43:57 +08:00
{{ form.fixingLevel ? fixingLevelinfo(fixingLevelList, form.fixingLevel) : "--" }}
<!-- <dict-tag :options="dict.type.zcrzdj" :value="form.fixingLevel"/>-->
2024-01-03 18:40:21 +08:00
</span>
2023-10-19 18:47:09 +08:00
</el-descriptions-item>
2024-01-10 15:43:57 +08:00
<el-descriptions-item label="备注信息">{{
form.description ? form.description : "--"
}}
</el-descriptions-item>
2023-10-18 18:31:46 +08:00
</el-descriptions>
</div>
</div>
</el-card>
<el-card style="margin: 20px 0">
<div>会员资产</div>
<div>
<template>
<div>
<el-row :gutter="20">
<el-col :span="4">
<div class="sta">
<el-statistic
group-separator=","
2023-11-30 11:48:14 +08:00
:value="form.points"
2023-10-18 18:31:46 +08:00
title="累计积分"
></el-statistic>
</div>
</el-col>
<el-col :span="4">
<div class="sta">
<el-statistic
group-separator=","
2023-11-30 11:48:14 +08:00
:value="form.growthValue"
title="成长值">
2023-10-18 18:31:46 +08:00
</el-statistic>
</div>
</el-col>
<el-col :span="4">
<div class="sta">
<el-statistic
group-separator=","
:precision="2"
2023-11-30 11:48:14 +08:00
:value="form.cardBalance"
2023-10-18 18:31:46 +08:00
title="账户余额"
></el-statistic>
</div>
</el-col>
<el-col :span="4">
<div class="sta">
<el-statistic
group-separator=","
:precision="2"
2023-11-30 11:48:14 +08:00
:value="form.refuelMoney"
title="囤油卡余额"
>
2024-01-10 15:43:57 +08:00
<!-- <span></span>-->
2023-11-30 11:48:14 +08:00
</el-statistic>
2023-10-18 18:31:46 +08:00
</div>
</el-col>
</el-row>
</div>
</template>
</div>
</el-card>
2024-01-12 13:58:51 +08:00
<el-card :key="childComponentKey">
2023-10-18 18:31:46 +08:00
<template>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="加油订单" name="refuelOrder">
2024-01-12 13:58:51 +08:00
<oilOrder :key="childComponentKey" :pUserId="form.id"></oilOrder>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
<el-tab-pane label="商品订单" name="shopOrder">
2024-01-12 13:58:51 +08:00
<goodsOrder :key="childComponentKey" :pUserId="form.id"></goodsOrder>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
<el-tab-pane label="余额记录" name="balanceRecord">
2024-01-12 13:58:51 +08:00
<balanceRecord :key="childComponentKey" :pUserId="form.id"></balanceRecord>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
<el-tab-pane label="积分记录" name="pointRecord">
2024-01-12 13:58:51 +08:00
<pointsRecord :key="childComponentKey" :pUserId="form.id"></pointsRecord>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
<el-tab-pane label="卡券列表" name="cardList">
2024-01-12 13:58:51 +08:00
<couponList :key="childComponentKey" :pUserId="form.id"></couponList>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
<el-tab-pane label="成长值记录" name="growthValue">
2024-01-12 13:58:51 +08:00
<growthValueRecord :key="childComponentKey" :pUserId="form.id"></growthValueRecord>
2023-10-18 18:31:46 +08:00
</el-tab-pane>
2023-12-07 10:22:52 +08:00
<!-- <el-tab-pane label="加油金记录" name="refuelMoney"> -->
2024-01-10 15:43:57 +08:00
<!-- <refuelMoneyRecord :pUserId="form.id"></refuelMoneyRecord> -->
2023-12-07 10:22:52 +08:00
<!-- </el-tab-pane> -->
2023-10-18 18:31:46 +08:00
</el-tabs>
</template>
</el-card>
2024-01-10 15:43:57 +08:00
<!-- 会员充值-->
2023-10-31 18:18:30 +08:00
<el-dialog :close-on-click-modal="false" width="60%" :title="title" :visible.sync="openRecharge" append-to-body>
2023-10-20 18:42:38 +08:00
<template>
<el-tabs v-model="activeRecharge" type="card" @tab-click="handleClick">
<el-tab-pane label="储值卡" name="balance">
<div>
<el-row>
2023-11-13 16:54:15 +08:00
<el-col :span="1.5">
<div style="height: 50px;line-height: 50px">充值金额</div>
</el-col>
2024-01-10 15:43:57 +08:00
<el-col :span="22">
<div v-if="cardValueList.length>0"
style="display: flex;margin: 13px 5px;box-sizing: border-box;flex-wrap: wrap; ">
2023-10-20 18:42:38 +08:00
<div class="mon"
2023-11-13 16:54:15 +08:00
v-for="(item,index) in cardValueList" :key="index"
2023-10-20 18:42:38 +08:00
:class="activeKey === index ? 'select' : ''"
2023-11-13 16:54:15 +08:00
@click="rechargeCard(index)">
<div class="top1"><span class="amount1">{{ item.rechargeBalance }}</span></div>
<div>赠送<span class="amount">{{ item.giftBalance }}</span></div>
2023-10-20 18:42:38 +08:00
</div>
</div>
2023-11-13 16:54:15 +08:00
<div style="width: 30%;margin-left: 13px;margin-top: 8px;"
:class="activeKey === cardValueList.length ? 'select' : ''"
@click="rechargeCard(cardValueList.length,-1)">
2023-10-20 18:42:38 +08:00
<el-input placeholder="请输入充值金额"
2023-10-31 18:18:30 +08:00
size="medium"
2024-01-11 13:34:42 +08:00
v-model="cardValueForm.amount"
@input="valueAmoutChange(cardValueForm.amount)"
2024-01-11 13:34:42 +08:00
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
2024-01-10 15:43:57 +08:00
>
2023-10-20 18:42:38 +08:00
<template slot="prepend">自定义</template>
<template slot="append"></template>
</el-input>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex;justify-content: space-between;margin: 20px 0">
<div class="jine">
<div class="zeng">赠送金额</div>
<div>
<el-input placeholder="0.00"
2023-11-13 16:54:15 +08:00
v-model="cardValueForm.giftBalance"
2023-10-20 18:42:38 +08:00
disabled>
<template slot="append"></template>
</el-input>
<span class="bom">赠送金额 仅自定义金额模式下可手动输入赠送活动充值赠送金额不可手动更改</span>
</div>
</div>
2023-11-24 18:13:11 +08:00
2023-10-20 18:42:38 +08:00
<div class="jine">
2023-11-13 16:54:15 +08:00
<div class="zeng">赠送积分</div>
2023-10-20 18:42:38 +08:00
<div>
2023-11-13 16:54:15 +08:00
<el-input placeholder="0"
v-model="cardValueForm.points"
2023-10-20 18:42:38 +08:00
disabled>
2023-11-13 16:54:15 +08:00
<template slot="append">积分</template>
2023-10-20 18:42:38 +08:00
</el-input>
2024-01-10 15:43:57 +08:00
<span
class="bom">赠送积分 仅自定义金额模式下可手动输入,活动充值赠送积分不可手动更改[需开启积分活动有效]</span>
2023-10-20 18:42:38 +08:00
</div>
</div>
2023-11-13 16:54:15 +08:00
2023-10-20 18:42:38 +08:00
<div class="jine">
2023-11-13 16:54:15 +08:00
<div class="zeng" style="width: 100px;">赠成长值</div>
2023-10-20 18:42:38 +08:00
<div>
<el-input placeholder="0"
2023-11-13 16:54:15 +08:00
v-model="cardValueForm.growthValue"
2023-10-20 18:42:38 +08:00
disabled>
2023-11-13 16:54:15 +08:00
<template slot="append">成长值</template>
2023-10-20 18:42:38 +08:00
</el-input>
2023-11-13 16:54:15 +08:00
<!-- <span class="bom">赠送加油金金额 仅自定义金额模式下可手动输入赠送活动充值赠送金额不可手动更改</span> -->
2023-10-20 18:42:38 +08:00
</div>
</div>
2023-11-13 16:54:15 +08:00
2023-10-20 18:42:38 +08:00
<div class="jine">
<div class="zeng">提成员工</div>
<div>
2024-01-10 15:43:57 +08:00
<el-input :readonly="true" placeholder="请选择提成员工" v-model="cardValueForm.realName">
<el-button slot="append" @click="chooseStaff">选择员工</el-button>
2023-10-20 18:42:38 +08:00
</el-input>
2023-11-13 16:54:15 +08:00
<span class="bom">仅系统储值档次支持提成员工选择自定义充值金额匹配低一档次</span>
2023-10-20 18:42:38 +08:00
</div>
</div>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex">
<div style="width: 7%">充值备注</div>
<el-input
type="textarea"
placeholder=""
2023-11-13 16:54:15 +08:00
v-model="cardValueForm.remark"
2023-10-20 18:42:38 +08:00
maxlength="255"
show-word-limit
>
</el-input>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex;margin: 20px 0">
<div style="width: 7%">支付方式</div>
<div>
2024-01-10 15:43:57 +08:00
<el-radio v-for="dict in payList" v-model="cardValueForm.paymentType"
v-if="dict.dictValue!='APPLET_CODE'"
:key="dict.dictValue" :label="dict.dictValue" :value="dict.dictValue" border>
2024-01-10 13:45:02 +08:00
{{ dict.dictLabel }}
</el-radio>
2023-10-20 18:42:38 +08:00
</div>
</div>
</el-col>
</el-row>
<div style="margin: 20px 0;text-align: center">
2023-11-13 16:54:15 +08:00
<el-button type="primary" @click="confirm(1)">确认充值</el-button>
2023-10-20 18:42:38 +08:00
<el-button @click="cancel"> </el-button>
</div>
</div>
</el-tab-pane>
2023-11-13 16:54:15 +08:00
<el-tab-pane label="存油卡" name="literCard">
2023-10-20 18:42:38 +08:00
<el-row>
<el-col :span="24">
<div style="display: flex">
<div style="width: 7%;line-height: 40px">油品类型</div>
2024-01-10 15:43:57 +08:00
<el-radio-group v-model="tabOilType" style="margin-bottom: 30px;">
<el-radio-button v-for="(item,index) in oilTypeList" :label="item.oilType"
2024-01-11 13:34:42 +08:00
@click.native="tabOilTypeClick(item.oilType)">
{{ item.type }}
2024-01-10 15:43:57 +08:00
</el-radio-button>
2023-10-20 18:42:38 +08:00
</el-radio-group>
</div>
</el-col>
</el-row>
<el-row>
2023-11-13 16:54:15 +08:00
<el-col :span="1.5">
<div style="height: 50px;line-height: 50px;">充值金额</div>
</el-col>
<el-col :span="22">
<div style="display: flex;margin: 20px 5px;box-sizing: border-box;flex-wrap: wrap;">
2023-10-20 18:42:38 +08:00
<div class="mon2"
2023-11-13 16:54:15 +08:00
v-for="(item,index) in cardFuelDieselList" :key="index"
2024-01-10 15:43:57 +08:00
:class="activeKey === index ? 'select' : ''"
2023-10-20 18:42:38 +08:00
@click="recharge(index)">
2023-11-13 16:54:15 +08:00
<div class="top1"><span class="amount1">{{ item.incomeLitres }}</span>L</div>
<div>售价<span class="amount">{{ item.rechargeBalance }}</span></div>
<div>锁价<span class="amount">{{ item.lockupPrice }}</span>/</div>
2023-10-20 18:42:38 +08:00
</div>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex;margin: 20px 0">
<div class="jine">
<div class="zeng">赠送积分</div>
<div>
2023-11-13 16:54:15 +08:00
<el-input placeholder="0" disabled v-model="cardFuelDieselForm.points">
2023-10-20 18:42:38 +08:00
<template slot="append">积分</template>
</el-input>
2024-01-10 15:43:57 +08:00
<span
class="bom">升数卡充值不支持自定义积分,选择对应充值活动获得对应积分[需开启积分活动有效]</span>
2023-10-20 18:42:38 +08:00
</div>
</div>
2023-11-24 17:59:53 +08:00
<div style="display:flex;margin-left: 20px">
2023-10-20 18:42:38 +08:00
<div style="line-height: 40px;width: 20%">提成员工</div>
<div>
2024-01-10 15:43:57 +08:00
<el-input :readonly="true" placeholder="请选择提成员工" v-model="cardFuelDieselForm.realName">
<el-button slot="append" @click="chooseStaff">选择员工</el-button>
2023-10-20 18:42:38 +08:00
</el-input>
</div>
2023-11-24 17:59:53 +08:00
</div>
2023-10-20 18:42:38 +08:00
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex">
<div style="width: 7%">充值备注</div>
<el-input
type="textarea"
placeholder=""
v-model="rechargeDesc"
maxlength="255"
show-word-limit
>
</el-input>
</div>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div style="display: flex;margin: 20px 0">
<div style="width: 7%">支付方式</div>
<div>
2024-01-11 13:34:42 +08:00
<el-radio v-for="dict in payList" v-model="cardFuelDieselForm.paymentType"
v-if="dict.dictValue!=='APPLET_CODE'"
:key="dict.dictValue" :label="dict.dictValue" :value="dict.dictValue" border>{{ dict.dictLabel }}
2024-01-10 15:43:57 +08:00
</el-radio>
2023-10-20 18:42:38 +08:00
</div>
</div>
</el-col>
</el-row>
<div style="margin: 20px 0;text-align: center">
2023-11-13 16:54:15 +08:00
<el-button type="primary" @click="confirm(2)">确认充值</el-button>
2023-10-20 18:42:38 +08:00
<el-button @click="cancel"> </el-button>
</div>
</el-tab-pane>
</el-tabs>
</template>
</el-dialog>
2023-11-30 11:48:14 +08:00
2024-01-10 15:43:57 +08:00
<!-- 选择员工-->
<el-dialog :close-on-click-modal="false" width="50%" height="50%" title="选择员工" :visible.sync="openStaff"
append-to-body>
2023-11-13 16:54:15 +08:00
<select-staff @send-data="handleDataFromChild">
2023-10-18 18:31:46 +08:00
2023-11-13 16:54:15 +08:00
</select-staff>
</el-dialog>
2023-11-30 11:48:14 +08:00
2023-10-20 18:42:38 +08:00
<!-- 确认充值-->
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openConfirm" width="500px" append-to-body>
2023-11-24 17:59:53 +08:00
<div v-if="isPay"
2023-11-13 16:54:15 +08:00
v-loading="loading">
2023-11-24 18:13:11 +08:00
2023-10-20 18:42:38 +08:00
<div style="text-align: center;font-size: 15px;font-weight: bold">付款金额</div>
<div style="text-align: center;font-size: 30px;font-weight: bold;color: red;margin: 10px 0">
2023-11-23 18:33:25 +08:00
{{ realyPayBills }}
2023-11-13 16:54:15 +08:00
<!-- <el-tag
2023-10-20 18:42:38 +08:00
effect="dark">
汽油
2023-11-13 16:54:15 +08:00
</el-tag> -->
2023-10-20 18:42:38 +08:00
</div>
2023-11-14 18:53:58 +08:00
<!-- <div style="text-align: center;margin-bottom: 10px">赠送金额</div> -->
2023-10-20 18:42:38 +08:00
<div>
2024-01-10 15:43:57 +08:00
<el-input v-model="authCode" @keydown.enter.native="collection"
placeholder="扫描或输入付款码、支持微信、支付宝、云闪付">
2023-10-20 18:42:38 +08:00
<i
slot="suffix">
2024-01-10 15:43:57 +08:00
<svg t="1697791915471" class="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" p-id="1479" width="32" height="32">
<path
d="M149.333333 170.858667A21.546667 21.546667 0 0 1 170.858667 149.333333H384V106.666667H170.858667A64.213333 64.213333 0 0 0 106.666667 170.858667V384h42.666666V170.858667zM170.858667 874.666667A21.546667 21.546667 0 0 1 149.333333 853.141333V640H106.666667v213.141333A64.213333 64.213333 0 0 0 170.858667 917.333333H384v-42.666666H170.858667zM853.12 149.333333A21.546667 21.546667 0 0 1 874.666667 170.858667V384h42.666666V170.858667A64.213333 64.213333 0 0 0 853.141333 106.666667H640v42.666666h213.141333zM874.666667 853.141333A21.546667 21.546667 0 0 1 853.141333 874.666667H640v42.666666h213.141333A64.213333 64.213333 0 0 0 917.333333 853.141333V640h-42.666666v213.141333zM106.666667 490.666667h810.666666v42.666666H106.666667v-42.666666z"
fill="#3D3D3D" p-id="1480"></path>
</svg>
2023-10-20 18:42:38 +08:00
</i>
</el-input>
</div>
<div class="demo-image">
<div class="block" style="text-align: center">
<el-image
style="width: 200px; height: 200px"
fit="cover"
src="https://oil.wudb.cn/static/img/scan-demo.fcb8b1ab.png"></el-image>
</div>
</div>
<el-divider></el-divider>
<div style="display: flex;justify-content: space-around">
<el-button @click="cancelCollection">取消收款</el-button>
2023-11-13 16:54:15 +08:00
<el-button type="primary" @click="collection">确定收款</el-button>
</div>
</div>
<div v-else>
<div v-if="isPaySuccess">
<el-result icon="success" title="收款成功">
<template slot="extra">
<el-button type="primary" @click="handClose"> </el-button>
</template>
</el-result>
</div>
<div v-else>
<el-result icon="error" title="支付失败,请重新支付">
<template slot="extra">
<el-button type="primary" @click="handClose"> </el-button>
</template>
</el-result>
2023-10-20 18:42:38 +08:00
</div>
2023-11-13 16:54:15 +08:00
</div>
2023-10-20 18:42:38 +08:00
</el-dialog>
<!-- 更换手机号对话框-->
2024-01-10 15:43:57 +08:00
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openMobile" style="margin-top: 200px"
width="500px" append-to-body>
2023-10-18 18:31:46 +08:00
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24">
<el-form-item label="新手机号" prop="mobile" style="width: 420px">
2024-01-10 18:09:46 +08:00
<el-input v-model.number="form.mobile" placeholder="请输入新手机号" maxlength="30"/>
2023-10-18 18:31:46 +08:00
<span style="font-size: 12px;color: grey">
手机号更换后,旧手机号将无法使用,更换后实时生效
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
2023-11-30 11:48:14 +08:00
<el-button @click="openMobile = false"> </el-button>
</div>
</el-dialog>
<!-- 更换用户昵称对话框-->
2024-01-10 15:43:57 +08:00
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openName" style="margin-top: 200px"
width="500px" append-to-body>
2023-11-30 11:48:14 +08:00
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24">
<el-form-item label="会员昵称" prop="name" style="width: 420px">
2024-01-10 15:43:57 +08:00
<el-input v-model="form.name" type="textarea" placeholder="请输入会员昵称" maxlength="30"/>
2023-11-30 11:48:14 +08:00
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="openName = false"> </el-button>
2023-10-18 18:31:46 +08:00
</div>
</el-dialog>
2023-10-19 18:47:09 +08:00
2024-01-10 15:43:57 +08:00
<!-- 副卡管理-->
2023-10-19 18:47:09 +08:00
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openSecondCard" width="60%" append-to-body>
<div style="display: flex;justify-content: space-between;margin: 10px 0">
<div style="font-size: 16px">副卡账户</div>
<el-button type="primary">创建副卡账户</el-button>
</div>
<div>
<el-alert
type="error"
title="关于副卡"
:closable="false">
<p v-for="(item,index) in aboutSecondCard" :id="index">
2024-01-10 15:43:57 +08:00
{{ item }}
2023-10-19 18:47:09 +08:00
</p>
</el-alert>
</div>
<div>
<el-table ref="tables" v-loading="loading" :data="list">
<el-table-column prop="date" label="账户ID"/>
<el-table-column prop="date" label="账户名称"/>
<el-table-column label="余额">
<el-table-column prop="name" label="储值卡"/>
<el-table-column prop="address" label="升数卡"/>
</el-table-column>
<el-table-column label="会员等级">
<el-table-column prop="name" label="汽油"/>
<el-table-column prop="address" label="柴油"/>
</el-table-column>
<el-table-column label="统计">
<el-table-column prop="name" label="可用积分"/>
<el-table-column prop="address" label="消费次数"/>
</el-table-column>
<el-table-column prop="date" label="实体卡号"/>
<el-table-column prop="date" label="状态"/>
<el-table-column prop="date" label="创建时间"/>
</el-table>
<pagination
:total="total"
:page.sync="queryParams.page"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</el-dialog>
2024-01-10 15:43:57 +08:00
<!-- 绑定实体卡-->
2023-10-20 18:42:38 +08:00
<el-dialog :close-on-click-modal="false" :title="title" width="450px" :visible.sync="openBindIdCard" append-to-body>
<div style="text-align: center">
<img v-if="form.avatar" :src="form.avatar" style="width: 80px;height: 80px">
<img v-else src="@/assets/images/avatar.png" style="width: 80px;height: 80px">
</div>
2024-01-10 15:43:57 +08:00
<p class="idcard" style="color: #00afff">{{ form.name }}</p>
<p class="idcard" style="font-size: 16px">{{ form.mobile }}</p>
2023-10-20 18:42:38 +08:00
<p class="idcard" style="font-size: 16px">请绑定实体卡号</p>
2023-10-19 18:47:09 +08:00
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
2023-10-20 18:42:38 +08:00
<div style="width: 80%;margin: 0 auto">
<el-input v-model="form.idcard" placeholder="请读卡或输入卡号"></el-input>
2024-01-10 15:43:57 +08:00
<p style="font-size: 12px;color: grey;">
实体卡号最低5位且不可重复绑定后不可删除如需更换卡号请在会员详情页面内进行卡片重新绑定</p>
2023-10-20 18:42:38 +08:00
</div>
2023-10-19 18:47:09 +08:00
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
2023-11-30 11:48:14 +08:00
<el-button @click="openBindIdCard = false"> </el-button>
2023-10-19 18:47:09 +08:00
</div>
</el-dialog>
2024-01-10 18:09:46 +08:00
<!-- 子卡管理-->
<el-dialog :title="title" :visible.sync="openSubCard" append-to-body>
2024-01-11 13:55:20 +08:00
<!-- <cardValueChild :pUserId="form.id" :handleUpdate="handleUpdate1" :handleAdd="handleAdd1"></cardValueChild>-->
<el-tabs v-model="subCardActive" @tab-click="handleClick">
<el-tab-pane label="子卡管理" name="subCardManage">
<div style="display: flex;justify-content: space-between;margin: 10px 0">
<div style="font-size: 16px">会员信息{{form.mobile}}</div>
<el-button type="primary" :disabled="cardValueChildList.length>=2" @click="handleAdd1">新增子卡</el-button>
</div>
<div>
<el-table ref="tables" v-loading="loading" :data="cardValueChildList">
<el-table-column label="子卡ID" prop="id" align="center" width="60"/>
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center"/>
<el-table-column label="创建时间" align="center" width="160" prop="createTime">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed='right'>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate1(scope.row)"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-document"
@click="handleOrder(scope.row)"
>交易记录</el-button>
</template>
</el-table-column>
</el-table>
<!-- <pagination-->
<!-- :total="total"-->
<!-- :page.sync="queryParams.page"-->
<!-- :limit.sync="queryParams.pageSize"-->
<!-- @pagination="getList"-->
<!-- />-->
</div>
<el-alert
title="关于子卡"
type="info"
style="margin-top: 20px"
:closable="false"
description="子卡为会员子母卡功能,子卡共享母卡的储值额度及信息,子卡为实体会员卡信息,消费需在小程序中才可进行使用">
</el-alert>
</el-tab-pane>
<el-tab-pane label="子卡消费记录" name="consumption">
<div style="display: flex;justify-content: space-between;margin: 10px 0">
<div style="font-size: 16px">
<el-form :model="subCardList" ref="queryForm" size="small" :inline="true" label-width="85px">
<el-form-item label="子卡手机号" prop="cardChildPhones">
<el-input
v-model="subCardList.cardChildPhones"
placeholder="请输入子卡手机号"
clearable
style="width: 240px;"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="支付状态" prop="status">
<el-select
v-model="subCardList.status"
placeholder="全部"
clearable
style="width: 240px"
>
<el-option
v-for="dict in dict.type.pay_status"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
</el-form-item>
</el-form>
</div>
</div>
<div>
<el-table ref="tables" v-loading="loading" :data="orderList">
<el-table-column type="expand">
<template slot-scope="props">
<el-form label-position="left" class="demo-table-expand" style="margin-left: 20px">
<el-form-item label="备注信息">
<span>{{ props.row.remark }}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column label="ID" prop="id" align="center" width="60"/>
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center" />
<el-table-column label="订单号" prop="orderNo" align="center" />
<el-table-column label="订单金额" prop="amount" align="center" />
<el-table-column label="消费金额" prop="payAmount" align="center" />
<el-table-column label="支付状态" prop="status" align="center" >
<template slot-scope="scope">
<dict-tag :options="dict.type.pay_status" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="支付时间" prop="payTime" align="center" >
<template slot-scope="scope">
<span>{{ scope.row.payTime ? parseTime(scope.row.payTime) :"--" }}</span>
</template>
</el-table-column>
</el-table>
<pagination
:total="total"
:page.sync="subCardList.page"
:limit.sync="subCardList.pageSize"
@pagination="getOrderList"
/>
</div>
<el-alert
title="关于子卡"
type="info"
style="margin-top: 20px"
:closable="false"
description="当前会员的所有子卡消费记录信息,可根据对应子卡卡号进行检索查询">
</el-alert>
</el-tab-pane>
</el-tabs>
2023-10-19 18:47:09 +08:00
</el-dialog>
2024-01-10 15:43:57 +08:00
<!-- 每日交易次数-->
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openConfig" style="margin-top: 200px"
width="400px" append-to-body>
2023-10-19 18:47:09 +08:00
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24">
<div style="margin-bottom: 20px">
2024-01-10 15:43:57 +08:00
{{ transaction }}
2023-10-19 18:47:09 +08:00
</div>
2024-01-10 15:43:57 +08:00
<el-input v-model="config"/>
2023-10-19 18:47:09 +08:00
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
2023-11-30 11:48:14 +08:00
<el-button @click="openConfig = false"> </el-button>
2023-10-19 18:47:09 +08:00
</div>
</el-dialog>
2024-01-10 15:43:57 +08:00
<!-- 固定等级-->
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openLevel" style="margin-top: 200px"
width="500px" append-to-body>
2023-10-19 18:47:09 +08:00
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24">
2023-10-20 18:42:38 +08:00
<el-form-item label="变更认证" prop="fixingLevel" style="width: 420px">
2023-10-19 18:47:09 +08:00
<el-select
v-model="form.fixingLevel"
clearable
style="width: 240px"
>
<el-option
2024-01-03 18:40:21 +08:00
v-for="item in fixingLevelList"
:key="item.id"
:label="item.name"
:value="item.id"
2023-10-19 18:47:09 +08:00
/>
2024-01-10 15:43:57 +08:00
<!-- <el-option-->
<!-- v-for="dict in dict.type.zcrzdj"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
2023-10-19 18:47:09 +08:00
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
2023-11-30 11:48:14 +08:00
<el-button @click="openLevel = false"> </el-button>
2023-10-19 18:47:09 +08:00
</div>
</el-dialog>
2024-01-11 13:55:20 +08:00
<!-- 添加或修改子卡信息-->
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="openSubCard1" width="30%">
<el-form ref="form1" :model="form1" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24">
<el-form-item label="主卡信息" prop="userId" style="width: 420px">
<el-select
v-model="form1.userId"
placeholder="全部"
clearable
disabled
style="width: 100%"
>
<el-option
:label="form.mobile"
:value="form.id"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="子卡手机号" prop="cardChildPhones" style="width: 420px">
<el-input
v-model.number="form1.cardChildPhones"
placeholder="请输入子卡手机号"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="openSubCard1 = false"> </el-button>
<el-button type="primary" @click="submitSubCard"> </el-button>
</span>
</el-dialog>
2023-10-17 19:01:29 +08:00
</div>
</template>
<script>
2023-10-18 18:31:46 +08:00
import {getUser, updateUser} from "@/api/staff/user/user";
import {ljStoreInfo} from "@/api/staff/store";
2024-01-10 13:45:02 +08:00
import {getUserGrade, getUserGradeInfo} from "@/api/staff/user/usergrade";
2023-11-13 16:54:15 +08:00
import {getList} from "@/api/EventMarketing/oilBlock";
2024-01-10 15:43:57 +08:00
import {
getCountOilTypeApi,
getCardValueListApi,
getPrepaidCardTopUpApi,
getCheckTheStatusOfYourPaymentApi,
getDicts,
getPrepaidFuelTopUpApi,
getCheckTheStatusOfYourPaymentByFuelApi
} from "@/api/EventMarketing/cardSet";
2023-10-19 18:47:09 +08:00
import {getSysConfig} from "@/api/staff/user/sysconfig";
2023-10-20 18:42:38 +08:00
import item from "../../layout/components/Sidebar/Item.vue";
2023-11-13 16:54:15 +08:00
import SelectStaff from "@/components/local/selectStaff";
2023-11-14 18:53:58 +08:00
import BigNumber from 'bignumber.js';
2023-11-30 18:30:46 +08:00
import oilOrder from "@/views/member/userInfoOrder/oilOrder.vue";
import goodsOrder from "@/views/member/userInfoOrder/goodsOrder.vue";
import balanceRecord from "@/views/member/userInfoOrder/balanceRecord.vue";
import pointsRecord from "@/views/member/userInfoOrder/pointsRecord.vue";
import couponList from "@/views/member/userInfoOrder/couponList.vue";
import growthValueRecord from "@/views/member/userInfoOrder/growthValueRecord.vue";
import refuelMoneyRecord from "@/views/member/userInfoOrder/refuelMoneyRecord.vue";
2024-01-10 18:09:46 +08:00
import cardValueChild from "@/views/member/userInfoOrder/cardValueChild.vue";
2024-01-03 18:40:21 +08:00
import {allFixingLevel, getFixingLevel} from "@/api/staff/user/fixinglevel";
2024-01-11 13:55:20 +08:00
import {
addCardValueChild,
cardValueChildInfo,
editCardValueChild,
listCardValueChild, listCardValueChildOrder
} from "@/api/staff/user/cardvaluechild";
2023-10-18 18:31:46 +08:00
2023-10-17 19:01:29 +08:00
export default {
2023-11-30 18:30:46 +08:00
components: {
SelectStaff,
oilOrder,
goodsOrder,
balanceRecord,
pointsRecord,
couponList,
growthValueRecord,
refuelMoneyRecord,
2024-01-10 18:09:46 +08:00
cardValueChild,
2023-11-30 18:30:46 +08:00
},
2023-10-20 18:42:38 +08:00
computed: {
item() {
return item
}
},
2024-01-11 13:55:20 +08:00
dicts: ['official', 'zhzt', 'zcrzdj', 'payment_type','pay_status'],
2024-01-10 15:43:57 +08:00
data() {
return {
2024-01-11 13:55:20 +08:00
orderList:[],
openSubCard1:false,
2024-01-10 15:43:57 +08:00
baseUrl: process.env.VUE_APP_BASE_API,
flag: null,
fixingLevelList: [],
2023-11-13 16:54:15 +08:00
// 充值余额列表
2024-01-10 15:43:57 +08:00
cardValueList: [],
2023-11-13 16:54:15 +08:00
cardValueForm: {
2024-01-10 15:43:57 +08:00
cardValueId: '', // 储值卡id
2023-11-24 18:13:11 +08:00
mtStaffId: '', //
2023-11-13 16:54:15 +08:00
realName: '',
staffMobile: '',
2024-01-10 15:43:57 +08:00
amount: '', // 自定义充值字段
bidBalance: '', // 储值卡面值
rechargeBalance: '', // 实际支付
giftBalance: '',// 赠送金额
points: '', //赠送积分
growthValue: '', // 赠送成长值
remark: '',
paymentType: 'WECHAT', // 支付方式
2024-01-12 13:58:51 +08:00
payType:'',
2023-11-14 18:53:58 +08:00
royaltyType: '',// 提成类型
2024-01-10 15:43:57 +08:00
percentageCommissions: null,
amountCommission: null,
rechargeType: '0'
2023-10-20 18:42:38 +08:00
},
2023-11-13 16:54:15 +08:00
// 存油卡列表
2024-01-10 15:43:57 +08:00
cardFuelDieselList: [],
sourceCardFuelDieselList: [],
2023-11-13 16:54:15 +08:00
cardFuelDieselForm: {
mtStaffId: '',
realName: '',
staffMobile: '',
2024-01-10 15:43:57 +08:00
points: '',
remark: '',
rechargeBalance: '', //实际支付
paymentType: 'WECHAT',
2024-01-12 13:58:51 +08:00
payType:'',
2024-01-10 15:43:57 +08:00
oilType: '',
type: '',
chainStorId: '',
incomeLitres: '',
2023-11-13 16:54:15 +08:00
},
2024-01-12 13:58:51 +08:00
childComponentKey:1,
2024-01-10 15:43:57 +08:00
authCode: '', // 支付码
2023-11-13 16:54:15 +08:00
2023-11-13 18:58:31 +08:00
timer: null,
2024-01-10 15:43:57 +08:00
realyPayBills: 0,
2023-11-13 16:54:15 +08:00
oilTypeList: {},
2024-01-10 15:43:57 +08:00
isPay: true,
isPaySuccess: false,
isQuery: true,
2023-11-13 16:54:15 +08:00
2024-01-10 15:43:57 +08:00
payList: [],
2023-10-20 18:42:38 +08:00
// 升数卡
2024-01-10 15:43:57 +08:00
literCard: [
{liter: 73.75, amount: 500, lockPrice: 6.78, point: 50},
{liter: 151.98, amount: 1000, lockPrice: 6.58, point: 100},
{liter: 318.47, amount: 2000, lockPrice: 6.28, point: 200},
{liter: 493.42, amount: 3000, lockPrice: 6.08, point: 300},
{liter: 896.06, amount: 5000, lockPrice: 5.58, point: 500},
{liter: 1968.50, amount: 10000, lockPrice: 5.08, point: 1000},
2023-10-20 18:42:38 +08:00
],
// 充值金额
2024-01-10 15:43:57 +08:00
amount: '',
2023-10-20 18:42:38 +08:00
// 充值备注
2024-01-10 15:43:57 +08:00
rechargeDesc: '',
2023-10-20 18:42:38 +08:00
// 支付方式
2024-01-10 15:43:57 +08:00
payment: '扫码支付',
activeKey: 0,
2023-10-19 18:47:09 +08:00
// 每日交易介绍
2024-01-10 15:43:57 +08:00
transaction: "",
config: '-1',
num: 1,
2023-10-19 18:47:09 +08:00
// 操作类型
2024-01-10 15:43:57 +08:00
type: 'add',
title: '',
2023-10-18 18:31:46 +08:00
// 是否显示修改对话框
openMobile: false,
2023-11-30 11:48:14 +08:00
openName: false,
2023-10-20 18:42:38 +08:00
openRecharge: false,
2024-01-10 15:43:57 +08:00
openSecondCard: false,
openBindIdCard: false,
openSubCard: false,
openConfig: false,
openLevel: false,
openConfirm: false,
openStaff: false,
growthValue: 'whole',
cardList: 'notUse',
2023-10-18 18:31:46 +08:00
tabPosition: 'giftCard',
balanceRecord: 'first',
2023-10-20 18:42:38 +08:00
tabOilType: '92',
2023-10-19 18:47:09 +08:00
// 关于副卡信息
2024-01-10 15:43:57 +08:00
aboutSecondCard: [],
2024-01-11 13:55:20 +08:00
cardValueChildList:[],
2023-10-18 18:31:46 +08:00
// 遮罩层
loading: false,
2024-01-10 15:43:57 +08:00
id: '',
2023-10-18 18:31:46 +08:00
// 会员信息
2024-01-10 15:43:57 +08:00
form: {},
2024-01-11 13:55:20 +08:00
form1: {},
2023-10-18 18:31:46 +08:00
// 店铺信息
2024-01-10 15:43:57 +08:00
store: '',
2023-10-18 18:31:46 +08:00
// 会员等级信息
2024-01-10 15:43:57 +08:00
grade: '',
2023-10-18 18:31:46 +08:00
activeName: 'refuelOrder',
2024-01-10 15:43:57 +08:00
subCardActive: 'subCardManage',
activeRecharge: 'balance',
tableData: [],
total: 0,
2023-10-18 18:31:46 +08:00
queryParams: {
page: 1,
pageSize: 10,
mobile: '',
id: '',
name: '',
status: '',
},
2024-01-11 13:55:20 +08:00
subCardList:{
page:1,
pageSize:10,
cardChildPhones:'',
userId:'',
status:''
},
2023-10-18 18:31:46 +08:00
list: [],
// 表单校验
rules: {
2024-01-10 15:43:57 +08:00
mobile: [{required: true, message: "请输入手机号", trigger: "blur"}],
name: [{required: true, message: "请输入会员昵称,内容不可为空", trigger: "blur"}],
type: [{required: true, message: "请选择操作类型", trigger: "blur"}],
fixingLevel: [{required: true, message: "请选择认证信息", trigger: "blur"}],
2024-01-11 13:55:20 +08:00
userId:[{ required: true, message: '请选择主卡信息', trigger: 'change' }],
cardChildPhones:[{required: true, message: "请输入子卡手机号", trigger: "blur"}],
2023-10-18 18:31:46 +08:00
}
}
},
2023-11-13 16:54:15 +08:00
mounted() {
if (this.oilTypeList.length > 0) {
this.selectOilType(this.oilTypeList[0].oilType);
}
},
2023-10-18 18:31:46 +08:00
created() {
this.id = this.$route.query.id;
this.getUserInfo();
2023-10-19 18:47:09 +08:00
this.getInformation();
2024-01-03 18:40:21 +08:00
this.getFixingLevelList();
2024-01-10 13:45:02 +08:00
this.getStore();
2024-01-11 13:55:20 +08:00
this.getCardList()
this.getOrderList()
2023-10-18 18:31:46 +08:00
},
methods: {
2024-01-11 13:55:20 +08:00
handleQuery(){
this.subCardList.page = 1;
this.getOrderList()
},
handleOrder(data){
this.subCardList.cardChildPhones = data.cardChildPhones
this.subCardActive = "consumption"
this.subCardList.page = 1;
this.getOrderList()
},
// 查询子卡的交易信息
getOrderList(){
this.subCardList.userId = this.id
listCardValueChildOrder(this.subCardList).then(res => {
this.orderList = res.data.records
this.total = res.data.total
})
},
// 查询当前用户的子卡信息
getCardList(){
listCardValueChild(this.id).then(res => {
this.cardValueChildList = res.data
})
},
handleAdd1(){
this.title = "添加子卡信息"
this.openSubCard1 = true
},
handleUpdate1(data){
cardValueChildInfo(data.id).then(res => {
this.form1 = res.data
this.title = "修改子卡信息"
this.openSubCard1 = true
})
},
// 添加或修改子卡信息
submitSubCard(){
this.$refs["form1"].validate(valid => {
if (valid) {
if (this.form1.id) {
editCardValueChild(this.form1).then(res => {
if (res.data==1){
this.$modal.msgSuccess("修改成功!")
this.openSubCard1 = false
this.getCardList()
}else {
this.$modal.msgError("手机号已存在,请重新添加")
}
})
}else {
addCardValueChild(this.form1).then(res => {
if (res.data.success=="添加成功!"){
this.$modal.msgSuccess("添加成功!")
this.openSubCard1 = false
this.getCardList()
}else {
this.$modal.msgError(res.data.error)
}
})
}
}
})
},
2024-01-10 15:43:57 +08:00
fixingLevelinfo(list, id) {
2024-01-03 18:40:21 +08:00
let name = "";
list.forEach(item => {
2024-01-10 15:43:57 +08:00
if (item.id = id) {
2024-01-03 18:40:21 +08:00
name = item.name;
}
})
return name;
},
// 获取固定等级列表信息
2024-01-10 15:43:57 +08:00
getFixingLevelList() {
2024-01-03 18:40:21 +08:00
allFixingLevel().then(res => {
2024-01-10 15:43:57 +08:00
if (res.code == 200) {
2024-01-03 18:40:21 +08:00
this.fixingLevelList = res.data
console.log(res.data)
}
})
},
2023-10-31 18:18:30 +08:00
// 选择员工
2024-01-10 15:43:57 +08:00
chooseStaff() {
2023-11-13 16:54:15 +08:00
this.openStaff = true
2023-10-31 18:18:30 +08:00
},
2023-10-18 18:31:46 +08:00
// 更换手机号
2024-01-10 15:43:57 +08:00
replaceMobile() {
2023-10-18 18:31:46 +08:00
this.openMobile = true;
this.title = '更换手机号'
},
2023-11-30 11:48:14 +08:00
// 更换会员昵称
2024-01-10 15:43:57 +08:00
changeName() {
2023-11-30 11:48:14 +08:00
this.openName = true;
this.title = '会员昵称'
},
2023-10-19 18:47:09 +08:00
// 副卡管理
2024-01-10 15:43:57 +08:00
secondCard() {
2023-10-19 18:47:09 +08:00
this.openSecondCard = true;
2024-01-10 15:43:57 +08:00
this.title = this.form.secondCard + '-副卡账户管理'
2023-10-19 18:47:09 +08:00
},
2023-10-20 18:42:38 +08:00
// 实体卡绑定
2024-01-10 15:43:57 +08:00
bindIdCard() {
2023-10-20 18:42:38 +08:00
this.openBindIdCard = true;
this.title = '实体卡绑定'
2023-10-19 18:47:09 +08:00
},
// 子卡管理
2024-01-10 15:43:57 +08:00
subCard() {
2023-10-19 18:47:09 +08:00
this.openSubCard = true;
this.title = '子卡管理'
},
// 每日笔数
2024-01-10 15:43:57 +08:00
configuration() {
2023-10-19 18:47:09 +08:00
this.openConfig = true;
this.title = '每日交易次数'
},
// 固定等级
2024-01-10 15:43:57 +08:00
level() {
2023-10-19 18:47:09 +08:00
this.openLevel = true;
this.title = '固定等级(原专车认证)'
},
2023-11-13 16:54:15 +08:00
// 储值卡查询
2023-11-14 18:53:58 +08:00
async getCardValueList() {
2023-11-13 16:54:15 +08:00
let quy = {
pageNo: 1,
pageSize: 10000,
isonline: 0
}
2024-01-10 15:43:57 +08:00
await getCardValueListApi(quy).then(res => {
2023-11-13 16:54:15 +08:00
this.cardValueList = res.data.records;
this.cardValueList.sort((a, b) => a.rechargeBalance - b.rechargeBalance);
2024-01-10 15:43:57 +08:00
console.log("this.grade.name",this.grade)
2023-11-13 16:54:15 +08:00
})
2024-01-11 13:34:42 +08:00
console.log("this.cardValueList", this.grade)
2024-01-10 15:43:57 +08:00
2023-11-14 18:53:58 +08:00
if (this.cardValueList.length > 0) {
2023-11-22 18:05:02 +08:00
// 过滤
2024-01-10 15:43:57 +08:00
if (this.grade && this.grade.name) {
this.cardValueList = this.cardValueList.filter(item => {
2024-01-11 13:34:42 +08:00
return item.groupOriented === "1" || item.membershipLevel.includes(this.grade.id);
2024-01-10 15:43:57 +08:00
});
this.rechargeCard(0);
} else {
2024-01-11 13:34:42 +08:00
this.cardValueList = this.cardValueList.filter(item => {
return item.groupOriented === "1";
});
2024-01-10 15:43:57 +08:00
}
2023-11-14 18:53:58 +08:00
}
2023-11-13 16:54:15 +08:00
},
valueAmoutChange(data) {
// this.cardValueForm.amount = null
this.$set(this.cardValueForm, 'amount', data);
2024-01-10 15:43:57 +08:00
console.log("data17.16", this.cardValueForm.amount)
if (!data) {
2024-01-11 13:34:42 +08:00
this.cardValueForm.amount = ''
2023-11-21 18:11:49 +08:00
2024-01-10 15:43:57 +08:00
} else {
this.cardValueForm.amount = data
2023-11-24 17:59:53 +08:00
}
2024-01-03 18:40:21 +08:00
2023-11-21 18:11:49 +08:00
this.cardValueForm.points = ''
2024-01-10 15:43:57 +08:00
this.cardValueForm.bidBalance = ''
this.cardValueForm.giftBalance = ''
2023-11-23 18:33:25 +08:00
this.cardValueForm.growthValue = ''
this.cardValueForm.rechargeBalance = ''
this.cardValueForm.royaltyType = ''
this.cardValueForm.percentageCommissions = ''
this.cardValueForm.amountCommission = ''
this.cardValueForm.rechargeType = 1
2023-11-21 18:11:49 +08:00
2023-11-13 16:54:15 +08:00
this.cardValueForm.rechargeBalance = data
2024-01-10 15:43:57 +08:00
if (this.cardValueList.length > 0) {
2023-11-13 16:54:15 +08:00
// const changeList = this.cardValueList
2024-01-10 15:43:57 +08:00
this.cardValueList.forEach(change => {
2023-11-13 16:54:15 +08:00
if (data >= change.rechargeBalance) {
this.cardValueForm.points = change.points
this.cardValueForm.bidBalance = change.bidBalance
this.cardValueForm.giftBalance = change.giftBalance
this.cardValueForm.growthValue = change.growthValue
2023-11-14 18:53:58 +08:00
this.cardValueForm.rechargeBalance = change.rechargeBalance
this.cardValueForm.royaltyType = change.royaltyType
this.cardValueForm.percentageCommissions = change.percentageCommissions
this.cardValueForm.amountCommission = change.amountCommission
2023-11-23 18:33:25 +08:00
// this.cardValueForm.rechargeBalance
2023-11-14 18:53:58 +08:00
// 计算员工提成金额
if (change.royaltyType === "3") {
// 当按比例提成时 计算对应的金额
const percentageCommissions = new BigNumber(change.percentageCommissions);
const totalAmount = new BigNumber(data);
const commissionAmount = totalAmount.multipliedBy(percentageCommissions).dividedBy(100).decimalPlaces(2);
this.cardValueForm.amountCommission = commissionAmount
}
2024-01-10 18:09:46 +08:00
2023-11-13 16:54:15 +08:00
}
})
}
},
// 存油卡查询
2023-11-23 18:33:25 +08:00
async getCardFuelDieselList() {
2023-11-13 16:54:15 +08:00
let quy = {
pageNo: 1,
pageSize: 10000,
activeStatus: 1,
2024-01-10 15:43:57 +08:00
status: 1,
activityProgress: 1
2023-11-13 16:54:15 +08:00
}
2024-01-10 15:43:57 +08:00
await getList(quy).then(res => {
2023-11-13 16:54:15 +08:00
this.sourceCardFuelDieselList = res.data.records
})
},
handleDataFromChild(data) {
this.openStaff = false
2023-11-24 10:23:59 +08:00
// this.cardFuelDieselForm= {
// mtStaffId: data.mtStaffId,
// realName: data.realName,
// staffMobile: data.staffMobile,
// },
2023-11-14 18:53:58 +08:00
2023-11-24 10:23:59 +08:00
// this.cardValueForm= {
// mtStaffId: data.mtStaffId,
// realName: data.realName,
// staffMobile: data.staffMobile,
// },
// console.log('Received data in parent:', data);
2024-01-10 15:43:57 +08:00
this.cardFuelDieselForm.mtStaffId = data.mtStaffId,
this.cardFuelDieselForm.realName = data.realName,
this.cardFuelDieselForm.staffMobile = data.staffMobile,
2023-11-24 10:23:59 +08:00
2024-01-10 15:43:57 +08:00
this.cardValueForm.mtStaffId = data.mtStaffId,
this.cardValueForm.realName = data.realName,
this.cardValueForm.staffMobile = data.staffMobile
2023-11-13 16:54:15 +08:00
},
2023-11-24 17:59:53 +08:00
refStaff() {
2024-01-10 15:43:57 +08:00
this.cardFuelDieselForm.mtStaffId = ''
this.cardFuelDieselForm.realName = ''
this.cardFuelDieselForm.staffMobile = ''
2023-11-24 17:59:53 +08:00
2024-01-10 15:43:57 +08:00
this.cardValueForm.mtStaffId = ''
this.cardValueForm.realName = ''
this.cardValueForm.staffMobile = ''
2023-11-24 17:59:53 +08:00
},
2023-11-13 16:54:15 +08:00
// 查询参加存油卡油品
getCountOilType() {
getCountOilTypeApi().then(res => {
this.oilTypeList = res.data
if (this.oilTypeList.length > 0) {
// 默认选中第一个
this.tabOilType = this.oilTypeList[0].oilType
2024-01-10 15:43:57 +08:00
this.selectOilType(this.oilTypeList[0].status, this.oilTypeList[0].oilType);
2023-11-13 16:54:15 +08:00
}
})
},
// 根据油品过滤查询存油卡
2024-01-10 15:43:57 +08:00
async tabOilTypeClick(data) {
2024-01-11 13:34:42 +08:00
console.log("aaaaaaaaaaaaaa",data)
2023-11-23 18:33:25 +08:00
await this.getCardFuelDieselList()
2023-11-22 18:05:02 +08:00
2023-11-13 16:54:15 +08:00
this.cardFuelDieselList = this.sourceCardFuelDieselList.filter(item => {
return item.oilType === data;
});
if (this.cardFuelDieselList.length > 0) {
this.recharge(0)
}
},
2024-01-10 15:43:57 +08:00
selectOilType(status, oilType) {
2023-11-13 16:54:15 +08:00
this.tabOilType = oilType;
2024-01-11 13:34:42 +08:00
console.log("453",oilType)
this.tabOilTypeClick(oilType);
2023-11-13 16:54:15 +08:00
},
// 查询员工
2023-10-20 18:42:38 +08:00
// 会员充值
2024-01-10 15:43:57 +08:00
userRecharge() {
2023-11-14 18:53:58 +08:00
2023-11-13 16:54:15 +08:00
this.getCardFuelDieselList()
this.getCardValueList()
this.getCountOilType()
2023-11-14 18:53:58 +08:00
this.getPayList();
2023-10-20 18:42:38 +08:00
this.openRecharge = true;
this.title = '会员充值'
2023-11-13 16:54:15 +08:00
// 存油卡列表
2023-10-20 18:42:38 +08:00
},
// 确认充值
2024-01-10 15:43:57 +08:00
confirm(flag) {
2023-11-13 16:54:15 +08:00
this.flag = flag
2023-11-23 18:33:25 +08:00
2024-01-10 15:43:57 +08:00
if (flag === 1) {
2024-01-11 13:34:42 +08:00
if (this.cardValueForm.paymentType === '') {
2023-11-23 18:33:25 +08:00
this.$message.error('请选择支付方式');
return
}
if (this.cardValueForm.amount != null) {
this.cardValueForm.rechargeType = 1
2024-01-10 15:43:57 +08:00
if (!this.cardValueForm.amount || this.cardValueForm.amount < 0) {
this.$message.error('请选择输入自定义金额');
return
}
2023-11-23 18:33:25 +08:00
this.realyPayBills = this.cardValueForm.amount
} else {
this.cardValueForm.rechargeType = 0
this.realyPayBills = this.cardValueForm.rechargeBalance
}
2024-01-10 15:43:57 +08:00
} else if (flag === 2) {
2024-01-11 13:34:42 +08:00
if (this.cardFuelDieselForm.paymentType === '') {
2024-01-10 15:43:57 +08:00
this.$message.error('请选择支付方式');
return
}
2023-11-23 18:33:25 +08:00
this.realyPayBills = this.cardFuelDieselForm.rechargeBalance
2023-11-13 16:54:15 +08:00
}
2023-10-20 18:42:38 +08:00
this.openConfirm = true;
2023-11-24 17:59:53 +08:00
this.isPay = true
2023-11-29 16:26:19 +08:00
// console.log("11111",this.isPay)
2023-11-24 17:59:53 +08:00
// this.isPaySuccess=false
2023-10-20 18:42:38 +08:00
this.title = this.payment
},
2023-11-13 16:54:15 +08:00
// 支付方式
2024-01-10 15:43:57 +08:00
payMethod(payType, flag) {
2023-11-13 16:54:15 +08:00
// this.map.payType = payType;
2023-11-14 18:53:58 +08:00
if (falg === 1) {
}
2023-11-29 16:26:19 +08:00
// console.log("payType",payType)
2023-11-14 18:53:58 +08:00
this.cardValueForm.paymentType = payType
2023-11-13 16:54:15 +08:00
},
2023-10-19 18:47:09 +08:00
// 获取副卡信息
2024-01-10 15:43:57 +08:00
getInformation() {
2023-10-19 18:47:09 +08:00
getSysConfig('second_card').then(response => {
this.aboutSecondCard = response.data.split(";")
});
getSysConfig('transaction').then(response => {
this.transaction = response.data
});
},
2024-01-10 15:43:57 +08:00
getList() {
2023-10-17 19:01:29 +08:00
2023-10-18 18:31:46 +08:00
},
// 获取详情
2024-01-10 15:43:57 +08:00
getUserInfo() {
2023-10-18 18:31:46 +08:00
let _this = this;
// 获取会员详情
getUser(this.id).then(response => {
this.form = response.data;
2023-11-29 16:26:19 +08:00
console.log(response.data)
2023-10-18 18:31:46 +08:00
this.getGrade(response.data.gradeId);
});
},
2023-10-20 18:42:38 +08:00
// 获取会员等级详情
2024-01-10 15:43:57 +08:00
getGrade(id) {
2024-01-10 13:45:02 +08:00
getUserGradeInfo(id).then(response => {
2023-10-18 18:31:46 +08:00
this.grade = response.data;
});
},
2024-01-10 15:43:57 +08:00
getStore() {
2024-01-10 13:45:02 +08:00
// 获取店铺详情
ljStoreInfo().then(response => {
this.store = response.data;
});
},
2023-11-13 16:54:15 +08:00
// 选择余额充值金额
2024-01-10 15:43:57 +08:00
rechargeCard(index, item) {
console.log("index", index)
// this.cardValueForm.amount = null,
2023-11-23 18:33:25 +08:00
this.cardValueForm.rechargeType = 0
2023-11-13 16:54:15 +08:00
this.activeKey = index;
if (item === -1) {
this.cardValueForm.points = 0
this.cardValueForm.giftBalance = 0
this.cardValueForm.growthValue = 0
this.cardValueForm.bidBalance = 0
2023-11-24 18:13:11 +08:00
2023-11-14 18:53:58 +08:00
// this.cardValueForm.bidBalance = 1
// this.cardValueForm.amount = 0
2023-11-13 16:54:15 +08:00
2024-01-10 15:43:57 +08:00
} else {
if (this.cardValueList <= 0) return
2024-01-10 15:43:57 +08:00
let file = {}
2023-11-13 16:54:15 +08:00
// 拿到金额
file = this.cardValueList[index]
2023-11-23 18:33:25 +08:00
this.realyPayBills = file.rechargeBalance
2023-11-13 16:54:15 +08:00
this.cardValueForm.rechargeBalance = file.rechargeBalance
this.cardValueForm.bidBalance = file.bidBalance
this.cardValueForm.points = file.points
this.cardValueForm.giftBalance = file.giftBalance
this.cardValueForm.growthValue = file.growthValue
this.cardValueForm.amount = null
2023-11-14 18:53:58 +08:00
this.cardValueForm.royaltyType = file.royaltyType
this.cardValueForm.percentageCommissions = file.percentageCommissions
this.cardValueForm.amountCommission = file.amountCommission
2023-11-29 16:26:19 +08:00
// console.log("file.royaltyType ", file.royaltyType )
2023-11-14 18:53:58 +08:00
// 计算员工提成金额
if (file.royaltyType === "3") {
// 当按比例提成时 计算对应的金额
const percentageCommissions = new BigNumber(file.percentageCommissions);
const totalAmount = new BigNumber(file.rechargeBalance);
const commissionAmount = totalAmount.multipliedBy(percentageCommissions).dividedBy(100).decimalPlaces(2);
this.cardValueForm.amountCommission = commissionAmount
}
2023-11-13 16:54:15 +08:00
}
},
2023-10-20 18:42:38 +08:00
// 选择充值金额
2024-01-10 15:43:57 +08:00
recharge(index, item) {
2023-10-20 18:42:38 +08:00
this.activeKey = index;
2024-01-10 15:43:57 +08:00
let file = {}
2023-11-13 16:54:15 +08:00
// 拿到金额
file = this.cardFuelDieselList[index]
2024-01-11 13:34:42 +08:00
console.log("file",file)
2023-11-13 16:54:15 +08:00
this.cardFuelDieselForm.points = file.points
this.cardFuelDieselForm.rechargeBalance = file.rechargeBalance
2023-11-14 18:53:58 +08:00
this.cardFuelDieselForm.oilType = file.oilType
this.cardFuelDieselForm.type = file.type
this.cardFuelDieselForm.chainStorId = file.chainStorId
this.cardFuelDieselForm.incomeLitres = file.incomeLitres
2024-01-11 13:34:42 +08:00
this.cardFuelDieselForm.lockupPrice = file.lockupPrice
this.cardFuelDieselForm.cardFuelId = file.id
2023-11-14 18:53:58 +08:00
2023-11-23 18:33:25 +08:00
// this.realyPayBills = file.rechargeBalance
2023-10-20 18:42:38 +08:00
},
2023-11-13 16:54:15 +08:00
2024-01-10 15:43:57 +08:00
async collection() {
2023-11-24 18:13:11 +08:00
2023-11-14 18:53:58 +08:00
let userForm = this.form
2023-11-13 16:54:15 +08:00
if (this.flag === 1) {
2024-01-11 13:34:42 +08:00
if (!this.authCode && this.cardValueForm.paymentType !== "CASH") {
this.$message.error('请先扫码');
return
}
2023-11-13 16:54:15 +08:00
// 会员id 会员名字会员手机号码
this.cardValueForm.mtUserId = userForm.id
this.cardValueForm.name = userForm.name
this.cardValueForm.mobile = userForm.mobile
// 支付码
this.cardValueForm.authCode = this.authCode
2023-11-23 18:33:25 +08:00
this.cardValueForm.realyPayBills = this.realyPayBills
2023-11-13 18:58:31 +08:00
2024-01-10 15:43:57 +08:00
let id;
await getPrepaidCardTopUpApi(this.cardValueForm).then(response => {
if (response.data != null) {
2023-11-14 18:53:58 +08:00
this.loading = true;
id = response.data.id
}
2023-11-13 16:54:15 +08:00
});
2023-11-14 18:53:58 +08:00
let this_ = this
2023-11-24 18:13:11 +08:00
//
2023-11-14 18:53:58 +08:00
let timer = setInterval(async () => {
2024-01-11 13:34:42 +08:00
await getCheckTheStatusOfYourPaymentApi(id).then(response => {
2024-01-10 15:43:57 +08:00
if (response.data != null) {
2024-01-11 13:34:42 +08:00
const payStatus = response.data.payStatus
if (payStatus === "unpaid") {
2024-01-10 15:43:57 +08:00
this_.isQuery = true;
2024-01-11 13:34:42 +08:00
}else if (payStatus === "paid") {
// 当支付成功时
2024-01-10 15:43:57 +08:00
this_.isPaySuccess = true;
this_.isQuery = false;
2024-01-11 13:34:42 +08:00
}else if (payStatus === "payFail") {
2024-01-10 15:43:57 +08:00
this_.isPaySuccess = false;
this_.isQuery = false;
2023-11-14 18:53:58 +08:00
}
2024-01-10 15:43:57 +08:00
}
})
2024-01-11 13:34:42 +08:00
}, 1000);
2023-11-13 18:58:31 +08:00
2024-01-10 15:43:57 +08:00
let timer2 = setInterval(function () {
2024-01-11 13:34:42 +08:00
if (!this_.isQuery) {
2024-01-10 15:43:57 +08:00
this_.loading = false;
this_.isPay = false;
2023-11-14 18:53:58 +08:00
clearInterval(timer);
2024-01-10 15:43:57 +08:00
clearTimeout(timer3);
2023-11-13 16:54:15 +08:00
2024-01-10 15:43:57 +08:00
}
}, 500)
var timer3 = setTimeout(function () {
clearInterval(timer2);
clearInterval(timer);
this_.loading = false;
this_.isPay = false;
this.isPaySuccess = false;
}, 30000)
2024-01-11 13:34:42 +08:00
2024-01-10 15:43:57 +08:00
} else if (this.flag === 2) {
2024-01-11 13:34:42 +08:00
if (!this.authCode && this.cardFuelDieselForm.paymentType !== "CASH") {
this.$message.error('请先扫码');
return
}
console.log("cardFuelDieselForm",this.cardFuelDieselForm)
2023-11-14 18:53:58 +08:00
this.cardFuelDieselForm.mtUserId = userForm.id
this.cardFuelDieselForm.name = userForm.name
this.cardFuelDieselForm.mobile = userForm.mobile
this.cardFuelDieselForm.authCode = this.authCode
2024-01-11 13:34:42 +08:00
console.log("this.cardFuelDieselForm",this.cardFuelDieselForm)
2023-11-14 18:53:58 +08:00
2024-01-10 15:43:57 +08:00
let id;
await getPrepaidFuelTopUpApi(this.cardFuelDieselForm).then(response => {
if (response.data != null) {
2023-11-14 18:53:58 +08:00
this.loading = true;
id = response.data.id
}
});
let timer = setInterval(async () => {
getCheckTheStatusOfYourPaymentByFuelApi(id).then(response => {
2024-01-10 15:43:57 +08:00
if (response.data != null) {
if (response.data.payStatus == "unpaid") {
this_.isQuery = true;
}
if (response.data.payStatus == "paid") {
this_.isPaySuccess = true;
this_.isQuery = false;
2023-11-14 18:53:58 +08:00
}
2024-01-10 15:43:57 +08:00
if (response.data.payStatus == "payFail") {
this_.isPaySuccess = false;
this_.isQuery = false;
2023-11-14 18:53:58 +08:00
}
2024-01-10 15:43:57 +08:00
}
})
}, 500);
2023-11-13 16:54:15 +08:00
2024-01-10 15:43:57 +08:00
let timer2 = setInterval(function () {
if (this_.isQuery == false) {
this_.loading = false;
this_.isPay = false;
2023-11-14 18:53:58 +08:00
clearInterval(timer);
2024-01-10 15:43:57 +08:00
clearInterval(timer2);
}
}, 500)
setTimeout(function () {
clearInterval(timer2);
clearInterval(timer);
this_.loading = false;
this_.isPay = false;
this.isPaySuccess = false;
2023-11-14 18:53:58 +08:00
2024-01-10 15:43:57 +08:00
}, 30000)
2023-11-14 18:53:58 +08:00
let this_ = this
2023-11-13 16:54:15 +08:00
}
2024-01-12 13:58:51 +08:00
this.$forceUpdate();
2023-11-14 18:53:58 +08:00
},
2024-01-11 13:34:42 +08:00
// 获取支付列表
2024-01-10 15:43:57 +08:00
getPayList() {
2023-11-29 16:26:19 +08:00
// console.log("payment_type1")
2024-01-10 15:43:57 +08:00
getDicts("payment_type").then(response => {
2023-11-29 16:26:19 +08:00
// console.log("payment_type2",response.data)
2023-11-14 18:53:58 +08:00
this.payList = response.data;
})
2023-11-13 16:54:15 +08:00
},
2023-11-14 18:53:58 +08:00
// 关闭支付窗口
2024-01-10 15:43:57 +08:00
handClose() {
this.isPay = true,
this.isPaySuccess = false,
this.isQuery = true,
this.openConfirm = false
this.openRecharge = false
2023-11-24 18:13:11 +08:00
2024-01-10 15:43:57 +08:00
// this.isPaySuccess = false;
this.authCode = null
this.activeRecharge = 'balance',
2023-11-14 18:53:58 +08:00
this.iniz()
2024-01-10 15:43:57 +08:00
this.cardFuelDieselForm = {}
2024-01-12 13:58:51 +08:00
this.childComponentKey = this.childComponentKey+1
2024-01-10 15:43:57 +08:00
},
2023-11-14 18:53:58 +08:00
iniz() {
2024-01-10 15:43:57 +08:00
this.cardValueForm = {
cardValueId: '', // 储值卡id
mtStaffId: '', //
realName: '',
staffMobile: '',
2024-01-10 15:43:57 +08:00
amount: '', // 自定义充值字段
bidBalance: '', // 储值卡面值
rechargeBalance: '', // 实际支付
giftBalance: '',// 赠送金额
points: '', //赠送积分
growthValue: '', // 赠送成长值
remark: '',
paymentType: '', // 支付方式
royaltyType: '',// 提成类型
2024-01-10 15:43:57 +08:00
percentageCommissions: null,
amountCommission: null,
rechargeType: '0'
}
2024-01-10 15:43:57 +08:00
// 刷新页面
this.getUserInfo();
this.getInformation();
this.getFixingLevelList();
this.getStore();
},
2023-10-18 18:31:46 +08:00
// 提交按钮
2024-01-10 15:43:57 +08:00
submitForm: function () {
2023-10-18 18:31:46 +08:00
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id) {
updateUser(this.form).then(response => {
2024-01-10 15:43:57 +08:00
if (response.data == 1) {
2024-01-10 13:45:02 +08:00
this.$modal.msgSuccess("修改成功");
this.openMobile = false;
this.openName = false;
this.openConfig = false;
this.openLevel = false;
this.openBindIdCard = false;
this.getUserInfo();
2024-01-10 15:43:57 +08:00
} else {
2024-01-10 13:45:02 +08:00
this.$modal.msgError("修改失败");
}
2023-10-18 18:31:46 +08:00
});
}
}
});
},
// 表单重置
reset() {
this.resetForm("form");
2024-01-10 15:43:57 +08:00
this.form = {}
2023-10-18 18:31:46 +08:00
},
// 取消按钮
cancel() {
2023-10-20 18:42:38 +08:00
this.openRecharge = false;
2023-11-14 18:53:58 +08:00
this.isPay = true;
this.openConfirm = false
this.openRecharge = false
2023-11-24 18:13:11 +08:00
2023-11-14 18:53:58 +08:00
this.isPaySuccess = false;
this.authCode = null
2024-01-10 15:43:57 +08:00
this.activeRecharge = 'balance',
2023-11-14 18:53:58 +08:00
2024-01-10 15:43:57 +08:00
this.cardValueForm = {}
2023-11-14 18:53:58 +08:00
this.cardFuelDieselForm = {}
2023-10-20 18:42:38 +08:00
},
2024-01-10 15:43:57 +08:00
cancelCollection() {
2023-10-20 18:42:38 +08:00
this.openConfirm = false;
2023-10-18 18:31:46 +08:00
},
handleClick(tab, event) {
2023-10-23 15:03:48 +08:00
// console.log(tab, event);
2023-11-24 17:59:53 +08:00
this.refStaff()
2023-11-23 18:33:25 +08:00
this.realyPayBills = 0
2023-10-18 18:31:46 +08:00
},
2023-10-19 18:47:09 +08:00
handleChange(value) {
2023-10-23 15:03:48 +08:00
// console.log(value);
2023-10-19 18:47:09 +08:00
},
2023-10-18 18:31:46 +08:00
// 返回
goBack() {
this.$router.back(-1);
}
2024-01-10 15:43:57 +08:00
// 积分表、储值卡详情表、积分详情表、储值卡表、储值卡模板表、用户储值卡关联表、
2023-10-18 18:31:46 +08:00
}
2023-10-17 19:01:29 +08:00
}
</script>
<style lang="scss" scoped>
2024-01-10 15:43:57 +08:00
.app-container {
width: 100%;
height: 100%;
background: #f6f8f9;
}
2023-10-20 18:42:38 +08:00
2024-01-10 15:43:57 +08:00
.left {
width: 20%;
display: table-cell;
/*垂直居中 */
vertical-align: middle;
/*水平居中*/
text-align: center;
}
2023-10-20 18:42:38 +08:00
2024-01-10 15:43:57 +08:00
.right {
flex: 1;
}
.sta {
height: 100px;
margin-top: 10px;
padding-top: 30px;
}
.idcard {
text-align: center;
font-weight: bold
}
.mon {
width: 20%;
height: 50px;
border: 0.5px #dadfe6 solid;
line-height: 25px;
border-radius: 5px;
text-align: center;
margin: 0 10px;
margin-bottom: 10px;
}
.select {
position: relative;
background-color: #fff;
box-shadow: 0px 2px 7px 0px rgba(85, 110, 97, 0.35);
border-radius: 5px;
border: 1px solid #00aaff;
}
.select:before {
content: '';
position: absolute;
right: 0;
bottom: 0;
border: 10px solid #00aaff;
border-top-color: transparent;
border-left-color: transparent;
}
.select:after {
content: '';
width: 4px;
height: 6px;
position: absolute;
right: 4px;
bottom: 3px;
border: 2px solid #fff;
border-top-color: transparent;
border-left-color: transparent;
transform: rotate(45deg);
}
.amount {
color: #00afff;
}
.amount1 {
color: #00afff;
font-size: 20px;
}
.top1 {
font-size: 16px;
}
.jine {
width: 24%;
display: flex;
}
.bom {
font-size: 12px;
color: grey;
}
.zeng {
width: 255px;
line-height: 40px;
}
.mon2 {
width: 20%;
height: 75px;
border: 0.5px #dadfe6 solid;
line-height: 25px;
border-radius: 5px;
text-align: center;
margin: 0 10px;
margin-bottom: 20px;
}
2023-10-17 19:01:29 +08:00
</style>