This commit is contained in:
cun-nan 2024-08-05 10:37:09 +08:00
parent a63ec4f751
commit d72428c868

View File

@ -67,17 +67,17 @@
:data="orderList"
style="width: 100%">
<el-table-column type="index" width="50" align="center" label="序号"/>
<el-table-column prop="storeName" align="center" label="车队名称"></el-table-column>
<el-table-column prop="parentName" align="center" label="卡名称"></el-table-column>
<el-table-column prop="payMoney" align="center" label="车队负责人"></el-table-column>
<el-table-column prop="count" align="center" label="手机号"></el-table-column>
<el-table-column prop="refMoney" align="center" label="会员等级"></el-table-column>
<el-table-column prop="refCount" align="center" label="油站负责人"></el-table-column>
<el-table-column align="center" prop="date" label="总余额"></el-table-column>
<el-table-column align="center" prop="date" label="充值本金"></el-table-column>
<el-table-column align="center" prop="date" label="赠送金额"></el-table-column>
<el-table-column align="center" prop="date" label="公司名称"></el-table-column>
<el-table-column align="center" prop="date" label="状态">
<el-table-column prop="fleetName" align="center" label="车队名称"></el-table-column>
<el-table-column prop="cardType" align="center" label="卡类型"></el-table-column>
<el-table-column prop="fleetLeader" align="center" label="车队负责人"></el-table-column>
<el-table-column prop="mobile" align="center" label="手机号"></el-table-column>
<el-table-column prop="gradeId" align="center" label="会员等级"></el-table-column>
<el-table-column prop="staffId" align="center" label="油站负责人"></el-table-column>
<el-table-column align="center" prop="totalBalance" label="总余额"></el-table-column>
<el-table-column align="center" prop="rechargeAmount" label="充值本金"></el-table-column>
<el-table-column align="center" prop="giveAmount" label="赠送金额"></el-table-column>
<el-table-column align="center" prop="corporateName" label="公司名称"></el-table-column>
<el-table-column align="center" prop="status" label="状态">
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
@ -88,9 +88,9 @@
</el-switch>
</template>
</el-table-column>
<el-table-column align="center" prop="date" label="备注"></el-table-column>
<el-table-column align="center" prop="date" label="创建人"></el-table-column>
<el-table-column align="center" prop="date" label="创建时间"></el-table-column>
<el-table-column align="center" prop="remark" label="备注"></el-table-column>
<el-table-column align="center" prop="createBy" label="创建人"></el-table-column>
<el-table-column align="center" prop="createTime" label="创建时间"></el-table-column>
<el-table-column align="center" label="操作">
<template slot-scope="scope">
<el-button
@ -125,25 +125,45 @@
<el-dialog :title="title" :visible.sync="open" width="30%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="车队名称" prop="realName">
<el-input v-model="form.realName" placeholder="请输入车队名称" maxlength="30" style="width: 270px"/>
<el-form-item label="车队名称" prop="fleetName">
<el-input v-model="form.fleetName" placeholder="请输入车队名称" maxlength="30" style="width: 270px"/>
</el-form-item>
<el-form-item label="卡类型" prop="gongneng">
<el-form-item label="卡类型" prop="cardType">
<!-- <el-checkbox-group v-model="form.gongneng">-->
<el-checkbox v-model="form.gongneng" label="储值卡"></el-checkbox>
<el-checkbox v-model="form.gongneng" label="囤油卡"></el-checkbox>
<el-checkbox v-model="form.cardType" label="储值卡"></el-checkbox>
<el-checkbox v-model="form.cardType" label="囤油卡"></el-checkbox>
<!-- </el-checkbox-group>-->
</el-form-item>
<el-form-item label="车队负责人" prop="pinpai">
<el-input v-model="form.pinpai" placeholder="请输入车队负责人姓名" maxlength="30" style="width: 270px"/>
<el-form-item label="车队负责人" prop="fleetLeader">
<el-input v-model="form.fleetLeader" placeholder="请输入车队负责人姓名" maxlength="30" style="width: 270px"/>
</el-form-item>
<el-form-item label="手机号" prop="zhongduan">
<el-input v-model="form.zhongduan" placeholder="请输入手机号" />
<el-form-item label="手机号" prop="mobile">
<el-input v-model="form.mobile" placeholder="请输入手机号" />
</el-form-item>
<el-form-item label="会员等级" prop="miyao">
<el-select v-model="form1.zhongduan" placeholder="请选择会员等级">
<el-form-item label="会员等级" prop="gradeId">
<el-select v-model="form1.gradeId" placeholder="请选择会员等级">
<el-option
v-for="item in userGradeList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="油站负责人" prop="staffId">
<el-select v-model="form1.staffId" placeholder="请选择油站负责人">
<el-option
v-for="item in staffList"
:key="item.id"
:label="item.realName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="会员标签" prop="userLabelId">
<el-select v-model="form1.userLabelId" placeholder="请选择会员标签">
<el-option
v-for="item in options"
:key="item.value"
@ -152,29 +172,6 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="油站负责人" prop="miyao">
<el-select v-model="form1.zhongduan" placeholder="请选择油站负责人">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="会员标签" prop="miyao">
<el-select v-model="form1.zhongduan" placeholder="请选择会员标签">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="关联员工" prop="staffId">
<el-input v-model="form.staffId" placeholder="请输入关联员工" />
</el-form-item>
<el-form-item label="用户状态" prop="status">
@ -188,7 +185,7 @@
</el-form-item>
<el-form-item label="备注" >
<el-input v-model="form.desc" placeholder="请输入备注" type="textarea"/>
<el-input v-model="form.remark" placeholder="请输入备注" type="textarea"/>
</el-form-item>
</el-form>
@ -202,23 +199,23 @@
<el-dialog :title="title" :visible.sync="open1" width="30%" append-to-body>
<el-form ref="form1" :model="form1" :rules="rules" label-width="120px">
<el-form-item label="车队名称" prop="realName">
<el-input v-model="form1.realName" placeholder="请输入车队名称" maxlength="30" style="width: 270px"/>
<el-form-item label="车队名称" prop="fleetName">
<el-input v-model="form1.fleetName" placeholder="请输入车队名称" maxlength="30" style="width: 270px"/>
</el-form-item>
<el-form-item label="充值金额" prop="pinpai">
<el-input v-model="form1.pinpai" placeholder="请输入充值金额" maxlength="30" style="width: 270px">
<el-form-item label="充值金额" prop="rechargeAmount">
<el-input v-model="form1.rechargeAmount" placeholder="请输入充值金额" maxlength="30" style="width: 270px">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="赠送金额" prop="zhongduan">
<el-input v-model="form1.zhongduan" placeholder="请输入赠送金额" >
<el-form-item label="赠送金额" prop="giveAmount">
<el-input v-model="form1.giveAmount" placeholder="请输入赠送金额" >
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="支付方式" prop="miyao">
<el-select v-model="form1.zhongduan" placeholder="请选择支付方式">
<el-form-item label="支付方式" prop="paymentType">
<el-select v-model="form1.paymentType" placeholder="请选择支付方式">
<el-option
v-for="item in options"
:key="item.value"
@ -229,10 +226,10 @@
</el-form-item>
<el-form-item label="备注" >
<el-input v-model="form1.desc" placeholder="请输入备注" type="textarea"/>
<el-input v-model="form1.remark" placeholder="请输入备注" type="textarea"/>
</el-form-item>
<el-form-item label="操作密码" prop="miyao">
<el-input v-model="form1.miyao" placeholder="请输入操作密码" type="password" />
<el-form-item label="操作密码" prop="password">
<el-input v-model="form1.password" placeholder="请输入操作密码" type="password" />
</el-form-item>
</el-form>
@ -246,7 +243,9 @@
<script>
import {delStaff} from "@/api/staff/staff";
import {delStaff, queryStaffs} from "@/api/staff/staff";
import {getFleetInfoList} from "@/api/fleet/fleetinfo";
import {listUserGrade} from "@/api/staff/user/usergrade";
export default {
dicts: ['zhzt'],
@ -263,6 +262,8 @@ export default {
//
orderList: [],
deptList: [],
userGradeList:[],
staffList:[],
form:{},
form1:{},
options: [{
@ -289,35 +290,59 @@ export default {
total: 0,
//
rules: {
realName: [
{required: true, message: "设备名称不能为空", trigger: "blur"},
fleetName: [
{required: true, message: "车队名称不能为空", trigger: "blur"},
],
pinpai: [
{required: true, message: "品牌不能为空", trigger: "blur"},
cardType: [
{required: true, message: "卡类型不能为空", trigger: "blur"},
],
gongneng: [
{required: true, message: "设备功能不能为空", trigger: "blur"}
fleetLeader: [
{required: true, message: "车队负责人不能为空", trigger: "blur"}
],
zhongduan: [
{required: true, message: "设备终端号不能为空", trigger: "blur"}
mobile: [
{required: true, message: "手机号不能为空", trigger: "blur"}
],
miyao: [
{required: true, message: "密钥不能为空", trigger: "blur"}
gradeId: [
{required: true, message: "会员等级不能为空", trigger: "blur"}
],
staffId: [
{required: true, message: "关联员工不能为空", trigger: "blur"}
{required: true, message: "油站负责人不能为空", trigger: "blur"}
],
status: [
{required: true, message: "状态不能为空", trigger: "blur"}
],
rechargeAmount: [
{required: true, message: "充值金额不能为空", trigger: "blur"}
],
giveAmount: [
{required: true, message: "赠送金额不能为空", trigger: "blur"}
],
paymentType: [
{required: true, message: "支付方式不能为空", trigger: "blur"}
],
password: [
{required: true, message: "操作密码不能为空", trigger: "blur"}
]
}
}
},
created() {
this.getList();
this.getUserGradeList()
this.getStaffList()
},
methods: {
//
getUserGradeList(){
listUserGrade({page:1,pageSize:1000}).then(res => {
this.userGradeList = res.data.records
})
},
getStaffList(){
queryStaffs().then(res => {
this.staffList = res.data
})
},
getDeptList() {
// getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
// this.deptList = response.data.records;
@ -330,6 +355,10 @@ export default {
dateRange.push(this.beginTime.toLocaleDateString())
dateRange.push(this.endTime.toLocaleDateString())
}
getFleetInfoList(this.addDateRange(this.queryParams, dateRange)).then(res => {
this.orderList = res.data.records
this.total = res .data.total
})
},
//
cancel() {