Merge remote-tracking branch 'origin/main'

This commit is contained in:
sw 2024-11-20 16:34:30 +08:00
commit bdf5a93298
24 changed files with 838 additions and 725 deletions

View File

@ -25,4 +25,12 @@ export function getGiftCategoryApi(data) {
})
}
// 删除有关信息
export function deleteGiftCategoryApi(id) {
return request({
url: 'business/integral/integralGiftCategory',
method: 'delete',
params: id
})
}

View File

@ -222,28 +222,33 @@
:data="tableData"
border
style="width: 100%">
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="typeText" label="活动类型"></el-table-column>
<el-table-column prop="name" label="活动名称"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容"></el-table-column>
<el-table-column prop="time" label="活动时间">
<el-table-column type="selection" align="center" width="55"></el-table-column>
<el-table-column type="index" label="序号" align="center" width="55"></el-table-column>
<el-table-column prop="typeText" label="活动类型" align="center"></el-table-column>
<el-table-column prop="name" label="活动名称" align="center"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容" align="center"></el-table-column>
<el-table-column prop="time" label="活动时间" align="center">
<template slot-scope="scope">
<span v-if="scope.row.time==0">不限时间</span>
<span v-else>{{ scope.row.activeStartTime }} ~ {{ scope.row.activeEndTime }}</span>
</template>
</el-table-column>
<el-table-column prop="userGradeName" label="适用会员等级">
<el-table-column prop="userGradeName" label="适用会员等级" align="center">
<template slot-scope="scope">
<span>{{ scope.row.userGradeName || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量">
<el-table-column prop="discountActiveDescribe" label="活动详情" align="center">
<template slot-scope="scope">
<span>{{ scope.row.discountActiveDescribe || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量" align="center">
<template slot-scope="scope">
<span>{{ scope.row.sendNum || 0 }}</span>
</template>
</el-table-column>
<el-table-column prop="activeStatus" label="状态">
<el-table-column prop="activeStatus" label="状态" align="center">
<template slot-scope="scope">
<el-switch
v-model="scope.row.activeStatus"
@ -255,8 +260,8 @@
</el-switch>
</template>
</el-table-column>
<el-table-column prop="createName" label="创建人"></el-table-column>
<el-table-column prop="createTime" label="创建时间"></el-table-column>
<el-table-column prop="createName" label="创建人" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
<el-table-column prop="date" label="操作" align="center">
<template slot-scope="scope">
<el-button
@ -321,23 +326,28 @@
type="selection"
width="55">
</el-table-column>
<el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="typeText" label="活动类型"></el-table-column>
<el-table-column prop="name" label="活动名称"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容"></el-table-column>
<el-table-column prop="time" label="活动时间">
<el-table-column type="index" label="序号" width="55" align="center"></el-table-column>
<el-table-column prop="typeText" label="活动类型" align="center"></el-table-column>
<el-table-column prop="name" label="活动名称" align="center"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容" align="center"></el-table-column>
<el-table-column prop="time" label="活动时间" align="center">
<template slot-scope="scope">
<span v-if="scope.row.time==0">不限时间</span>
<span v-else>{{ scope.row.activeStartTime }} ~ {{ scope.row.activeEndTime }}</span>
</template>
</el-table-column>
<el-table-column prop="userGradeName" label="适用会员等级">
<el-table-column prop="userGradeName" label="适用会员等级" align="center">
<template slot-scope="scope">
<span>{{ scope.row.userGradeName || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量"></el-table-column>
<el-table-column prop="activeStatus" label="状态">
<el-table-column prop="discountActiveDescribe" label="活动详情" align="center">
<template slot-scope="scope">
<span>{{ scope.row.discountActiveDescribe || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量" align="center"></el-table-column>
<el-table-column prop="activeStatus" label="状态" align="center">
<template slot-scope="scope">
<el-switch
v-model="scope.row.activeStatus"
@ -350,8 +360,8 @@
</template>
</el-table-column>
<el-table-column prop="createName" label="创建人"></el-table-column>
<el-table-column prop="createTime" label="创建时间"></el-table-column>
<el-table-column prop="createName" label="创建人" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
<el-table-column prop="date" label="操作" align="center">
<template slot-scope="scope">
<el-button

View File

@ -1,6 +1,6 @@
<template>
<div class="app-containers">
<!-- 存油卡-->
<!-- 存油卡-->
<div class="card-box" style="margin-bottom: 20px">
<div class="d-s">
@ -10,7 +10,7 @@
<div style="display: flex;justify-content: space-between;box-sizing: border-box;align-items: center;padding: 1px">
<div class="left-c">新型加油卡以储油为特色让车主提前锁定油价享受便捷灵活的加油体验</div>
<div>
<el-button type="primary" @click="addCrule()" >编辑囤油卡规则</el-button>
<el-button type="primary" @click="addCrule()">编辑囤油卡规则</el-button>
<el-button type="primary" style="margin-bottom: 10px " @click="addoilBlock()">新增囤油卡活动</el-button>
</div>
@ -50,7 +50,7 @@
<el-table-column prop="startTime" label="活动时间" align="center" width="165">
<template slot-scope="scope">
<span v-if="scope.row.activeTime == 1">不限时间</span>
<span v-if="scope.row.activeTime == 2">{{scope.row.startTime }}-{{scope.row.endTime }}</span>
<span v-if="scope.row.activeTime == 2">{{ scope.row.startTime }}-{{ scope.row.endTime }}</span>
</template>
</el-table-column>
<el-table-column
@ -65,13 +65,12 @@
</template>
</el-table-column>
<el-table-column label="销售信息" align="center">
<el-table-column prop="rechargeBalance" label="售出金额(元)" align="center" > </el-table-column>
<el-table-column prop="giftBalance" label="售出人数" align="center" > </el-table-column>
<el-table-column prop="points" label="会员人数" align="center" > </el-table-column>
<el-table-column prop="rechargeBalance" label="售出金额(元)" align="center"></el-table-column>
<el-table-column prop="giftBalance" label="售出人数" align="center"></el-table-column>
<el-table-column prop="points" label="会员人数" align="center"></el-table-column>
</el-table-column>
<el-table-column prop="createBy" label="操作人" align="center"> </el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center" width="160"> </el-table-column>
<el-table-column prop="createBy" label="操作人" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center" width="160"></el-table-column>
<el-table-column
@ -83,7 +82,8 @@
size="mini"
type="text"
@click="handleUpdate(scope.row)"
>修改</el-button>
>修改
</el-button>
<el-button
size="mini"
@ -113,7 +113,8 @@
<div class="box-der">
<div class="d-b">
<div class="d-s">
<el-input v-model="order.orderNo" style="width: 200px;margin-right: 10px" placeholder="请输入订单号"></el-input>
<el-input v-model="order.orderNo" style="width: 200px;margin-right: 10px"
placeholder="请输入订单号"></el-input>
<el-select v-model="order.ordertype" placeholder="请选择" style="width: 200px;margin-right: 10px">
<el-option
v-for="item in options"
@ -130,7 +131,7 @@
end-placeholder="结束日期">
</el-date-picker>
</div>
<el-button type="primary" icon="el-icon-search" @click="RecordList()" >搜索</el-button>
<el-button type="primary" icon="el-icon-search" @click="RecordList()">搜索</el-button>
</div>
<el-table
:data="orderData"
@ -188,7 +189,7 @@
</el-drawer>
<!-- 规则-->
<el-dialog :close-on-click-modal="false" title="编辑囤油卡规则" width="30%" :visible.sync="Crule" center>
<el-form :model="oilForm" :rules="ruleInfo" ref="oilForm" label-width="70px" class="demo-ruleForm" >
<el-form :model="oilForm" :rules="ruleInfo" ref="oilForm" label-width="70px" class="demo-ruleForm">
<el-form-item label="名称" prop="name">
<el-input disabled v-model="oilForm.name"></el-input>
</el-form-item>
@ -216,7 +217,7 @@
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
<div style="display: flex; align-items: center ">
<el-form-item label="油品油号" prop="oilNumberId">
<el-select style="width: 440px" v-model="ruleForm.oilNumberId" placeholder="请选择" @change="getoiltype" >
<el-select style="width: 440px" v-model="ruleForm.oilNumberId" placeholder="请选择" @change="getoiltype">
<el-option
v-for="dict in oilList"
:key="dict.id"
@ -254,7 +255,7 @@
<el-radio label="2">自定义时间</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="时间范围" v-if="ruleForm.activeTime == 2" prop="startTime">
<el-form-item label="时间范围" v-if="ruleForm.activeTime == 2" prop="endTime">
<div style="width: 100%;display: flex;align-items: center ">
<div style="width: 200px">
<el-date-picker
@ -297,92 +298,103 @@
</el-form>
<span slot="footer" class="dialog-footer" center>
<el-button @click="centerDialogVisible = false"> </el-button>
<el-button type="primary" @click="postadd(ruleForm)"> </el-button>
<el-button type="primary" @click="postadd('ruleForm')"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { getList,oilName,addList,eitList,getById,getoilnum,getstatistics,deleteById,cardFuleOrders} from "@/api/EventMarketing/oilBlock";
import {cardValueRule, saveOrUpdate} from "@/api/EventMarketing/SaveBlock";
export default {
import {
getList,
oilName,
addList,
eitList,
getById,
getoilnum,
getstatistics,
deleteById,
cardFuleOrders
} from "@/api/EventMarketing/oilBlock";
import {cardValueRule, saveOrUpdate} from "@/api/EventMarketing/SaveBlock";
export default {
dicts: ['oil_type'],
name: 'index',
data(){
return{
Crule:false,
gbPrice:null,
oilPrice:null,
tjlist:[],
value:'',
type:0,
dataRange:[],
orderShow:false,
centerDialogVisible:false,
value1:'',
total:0,
pageNo:1,
pageSize:10,
oilForm:{},
data() {
return {
Crule: false,
gbPrice: null,
oilPrice: null,
tjlist: [],
value: '',
type: 0,
dataRange: [],
orderShow: false,
centerDialogVisible: false,
value1: '',
total: 0,
pageNo: 1,
pageSize: 10,
oilForm: {},
ruleInfo: {
participationNo: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
activeName: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
refuelMoney: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
growthValue: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
points: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
giftBalance: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
membershipLevel:[
{ required: true, message: '不能为空', trigger: 'blur' },
membershipLevel: [
{required: true, message: '不能为空', trigger: 'blur'},
],
rechargeBalance: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
groupOriented: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
sort: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
employeeCommission: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
royaltyType: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
resource: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
activeTime: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
activeStatus: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
paymentValue: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
amountCommission: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
percentageCommissions: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
},
options:[
options: [
{
value: '0',
label: '汽油卡'
@ -406,62 +418,65 @@
value: '2',
label: '禁用'
},],
orderTotal:0,
order:{
orderNo:'',
ordertype:'',
cardValueId:'',
pageNo:1,
pageSize:10
orderTotal: 0,
order: {
orderNo: '',
ordertype: '',
cardValueId: '',
pageNo: 1,
pageSize: 10
},
orderData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, ],
},],
tableData: [],
oilList:[],
ruleForm:{
oilNumberId:null,
lockupPrice: "" ,
lockPrice: "" ,
lockMoney: "" ,
rechargeBalance:"",
incomeLitres:0,
points:'',
status:'0',
activeTime:'1',
activeStatus:'0'
oilList: [],
ruleForm: {
oilNumberId: null,
lockupPrice: "",
lockPrice: "",
lockMoney: "",
rechargeBalance: "",
incomeLitres: 0,
points: '',
status: '0',
activeTime: '1',
activeStatus: '0'
},
queryParams:{
type:'汽油',
oilType:'',
activeStatus:'',
pageNo:1,
pageSize:10,
queryParams: {
type: '汽油',
oilType: '',
activeStatus: '',
pageNo: 1,
pageSize: 10,
},
queryParamss:{
type:'',
oilType:'',
activeStatus:'',
pageNo:1,
pageSize:10,
queryParamss: {
type: '',
oilType: '',
activeStatus: '',
pageNo: 1,
pageSize: 10,
},
rules:{
rules: {
oilNumberId: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
rechargeBalance: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
points: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
lockPrice: [
{ required: true, message: '不能为空', trigger: 'blur' },
{required: true, message: '不能为空', trigger: 'blur'},
],
incomeLitres:[
{ required: true, message: '不能为空', trigger: 'blur' },
incomeLitres: [
{required: true, message: '不能为空', trigger: 'blur'},
],
endTime: [
{required: true, message: '不能为空', trigger: 'blur'},
]
}
}
@ -471,24 +486,24 @@
this.getlist()
this.radiovalue()
},
watch:{
'ruleForm.rechargeBalance':{
handler: function() {
if(this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0 ){
watch: {
'ruleForm.rechargeBalance': {
handler: function () {
if (this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0) {
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
}else {
} else {
this.ruleForm.incomeLitres = 0
}
},
},
'ruleForm.lockupPrice':{
handler: function() {
if(this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0 ){
'ruleForm.lockupPrice': {
handler: function () {
if (this.ruleForm.rechargeBalance != 0 && this.ruleForm.lockupPrice != 0) {
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
}else {
} else {
this.ruleForm.incomeLitres = 0
}
},
@ -498,19 +513,19 @@
// : ,
// 使, , , ,
// , ,
totalCount () {
totalCount() {
console.log('我是 computed 里的求和属性')
this.ruleForm.incomeLitres = this.ruleForm.rechargeBalance / this.ruleForm.lockupPrice
return this.ruleForm.incomeLitres
}
},
methods:{
methods: {
submitForms(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
saveOrUpdate(this.oilForm).then(res=>{
if(res.code == 200){
saveOrUpdate(this.oilForm).then(res => {
if (res.code == 200) {
this.$message.success('成功')
this.Crule = false
}
@ -524,19 +539,19 @@
this.$refs[formName].resetFields();
this.Crule = false
},
addCrule(){
this.Crule =! this.Crule
cardValueRule({type:'1'}).then(res=>{
addCrule() {
this.Crule = !this.Crule
cardValueRule({type: '1'}).then(res => {
this.oilForm = res.data
})
},
lookorder(){
lookorder() {
this.orderShow = !this.orderShow
this.RecordList()
},
RecordList(){
cardFuleOrders(this.addDateRange(this.order,this.dataRange)).then(res=>{
RecordList() {
cardFuleOrders(this.addDateRange(this.order, this.dataRange)).then(res => {
this.orderData = res.data.records
this.order.total = res.data.total
@ -544,10 +559,10 @@
})
},
getoiltype(e){
getoilnum(e).then(res=>{
getoiltype(e) {
getoilnum(e).then(res => {
console.log(res)
if(res.code == 200){
if (res.code == 200) {
this.gbPrice = res.data.gbPrice
this.oilPrice = res.data.oilPrice
}
@ -555,9 +570,9 @@
})
},
radiovalue(lable){
radiovalue(lable) {
this.oilList = []
oilName(this.queryParams.type).then(res=>{
oilName(this.queryParams.type).then(res => {
this.oilList = res.data.records
})
this.getlist()
@ -565,70 +580,71 @@
//
resetQuery() {
this.queryParams = {
type:'汽油',
oilType:'',
activeStatus:'',
pageNo:1,
pageSize:10,
type: '汽油',
oilType: '',
activeStatus: '',
pageNo: 1,
pageSize: 10,
}
this.getlist();
},
getlist(){
this.queryParams.pageNo=this.pageNo
this.queryParams.pageSize=this.pageSize
getList(this.queryParams).then(res=>{
if(res.code == 200){
getlist() {
this.queryParams.pageNo = this.pageNo
this.queryParams.pageSize = this.pageSize
getList(this.queryParams).then(res => {
if (res.code == 200) {
this.tableData = res.data.records
this.total = res.data.total;
}
})
getstatistics().then(res=>{
getstatistics().then(res => {
console.log(res)
this.tjlist = res.data
})
},
addoilBlock(){
addoilBlock() {
this.gbPrice = null,
this.oilPrice=null,
this.oilPrice = null,
this.ruleForm = {
type:this.queryParams.type,
lockupPrice: 0 ,
rechargeBalance:0,
incomeLitres:0,
type: this.queryParams.type,
lockupPrice: 0,
rechargeBalance: 0,
incomeLitres: 0,
points:'',
activeTime:'1',
activeStatus:'1',
tatus:'1'
points: '',
activeTime: '1',
activeStatus: '1',
tatus: '1'
},
this.radiovalue()
this.centerDialogVisible = true
},
posteid(data){
eitList(data).then(res=>{
if (res.code == 200){
posteid(data) {
eitList(data).then(res => {
if (res.code == 200) {
this.$message.success('修改成功')
}
})
},
postadd(formName){
postadd(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.ruleForm.type = this.queryParams.type
this.ruleForm.status = '1'
// this.ruleForm.startTime = this.ruleForm.startTime.toLocaleDateString()
// this.ruleForm.endTime = this.ruleForm.endTime.toLocaleDateString()
if( this.ruleForm.id ){
if (this.ruleForm.id) {
console.log("修改")
eitList(this.ruleForm).then(res=>{
if (res.code == 200){
eitList(this.ruleForm).then(res => {
if (res.code == 200) {
this.$message.success('修改成功')
this.getlist()
}
})
}else{
addList(this.ruleForm).then(res=>{
if (res.code == 200){
} else {
addList(this.ruleForm).then(res => {
if (res.code == 200) {
this.$message.success('新增成功')
this.getlist()
}
@ -636,19 +652,22 @@
}
this.centerDialogVisible = false
}
});
},
handleDelete(data){
handleDelete(data) {
this.$modal.confirm('确定删除此条电子囤油卡信息?').then(function() {
this.$modal.confirm('确定删除此条电子囤油卡信息?').then(function () {
return deleteById(data.id);
}).then(() => {
this.getlist()
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
}).catch(() => {
});
},
handleUpdate(data){
getById(data.id).then(res=>{
if (res.code == 200){
handleUpdate(data) {
getById(data.id).then(res => {
if (res.code == 200) {
this.ruleForm = res.data
this.centerDialogVisible = true
}
@ -656,23 +675,25 @@
}
}
}
}
</script>
<style scoped lang="scss">
.d-b{
.d-b {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
margin-bottom: 10px;
}
.top-sousuo{
.top-sousuo {
margin-top: 10px;
display: flex;
align-items: center;
}
.tjbox{
}
.tjbox {
width: 19%;
background: #f9f9f9;
margin-right: 1%;
@ -680,42 +701,49 @@
box-sizing: border-box;
padding: 15px;
border-radius: 6px;
}
.cu{
}
.cu {
font-weight: bold;
}
.wrap-box{
}
.wrap-box {
width: 100%;
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
}
.card-box{
}
.card-box {
width: 100%;
background: #fff;
box-sizing: border-box;
padding: 15px;
border-radius: 10px;
}
.box-der{
}
.box-der {
box-sizing: border-box;
padding: 15px;
}
.gang{
}
.gang {
width: 2px;
height: 13px;
background: #FF9655;
margin-right: 5px;
}
.d-s{
}
.d-s {
display: flex;
align-items: center;
}
.left-c{
background: rgba(255,150,85,0.15);
}
.left-c {
background: rgba(255, 150, 85, 0.15);
font-size: 12px;
color: #FF9655;
box-sizing: border-box;
padding: 4px 15px ;
}
padding: 4px 15px;
}
</style>

View File

@ -53,7 +53,7 @@
width="50">
</el-table-column>
<el-table-column label="分类名称" align="center" prop="categoryName"/>
<el-table-column label="创建人" align="createBy" prop="sort" />
<el-table-column label="创建人" align="center" prop="createByName" />
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
<div slot="reference" class="name-wrapper">
@ -68,11 +68,17 @@
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['integral:giftCategory:index:update']"
>修改</el-button>
<el-button
size="mini"
type="text"
@click="handleDelete(scope.row)"
v-hasPermi="['integral:giftCategory:index:update']"
>删除</el-button>
</template>
<!-- v-hasPermi="['']"-->
</el-table-column>
@ -102,8 +108,8 @@
:value="dict.value"/>
</el-radio-group>
</el-form-item>
<el-form-item label="备注" prop="categoryName">
<el-input type="textarea" :rows="6" v-model="dataForm.remark" placeholder="分类名称" maxlength="30"/>
<el-form-item label="备注" >
<el-input type="textarea" :rows="6" v-model="dataForm.remark" placeholder="请输入备注" maxlength="30"/>
</el-form-item>
@ -120,7 +126,12 @@
<script>
import {getGiftCategoryApi,insertGiftCategoryApi,updateGiftCategoryApi } from "@/api/integral/category";
import {
deleteGiftCategoryApi,
getGiftCategoryApi,
insertGiftCategoryApi,
updateGiftCategoryApi
} from "@/api/integral/category";
export default {
name: "giftCategory",
@ -228,6 +239,30 @@ export default {
this.open = true
this.getList();
},
//
handleDelete(data){
this.$confirm('是否删除本条数据,删除后无法恢复!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteGiftCategoryApi({id:data.id}).then(res=>{
if (res.code == 200) {
this.$message({
type: 'success',
message: '删除成功!'
});
this.getList()
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
resetQuery(){
this.queryParams = {}
this.getList();

View File

@ -105,6 +105,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.status != 0"
size="mini"
type="text"
@click="returnRecord(scope.row.id)"

View File

@ -50,7 +50,7 @@
</div>
</div>
<div style="width: 100%;height: 74vh;overflow: auto;scrollbar-width: none">
<div style="width: 100%;height: 75vh;overflow: auto;scrollbar-width: none">
<el-table
:data="tableData"
@ -382,6 +382,7 @@ export default {
background: #f9f9f9;
box-sizing: border-box;
padding: 10px;
padding-bottom: 0px;
}
.ding-top{
width: 100%;

View File

@ -72,7 +72,7 @@
</el-form-item>
</el-form>
<div style="width: 100%;height: 73vh;overflow: auto">
<div style="width: 100%;height: 74vh;overflow: auto">
<el-table ref="tables" border v-loading="loading" :data="list" @selection-change="handleSelectionChange" :default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column label="序号" align="center" type="index" />
<el-table-column label="订单号" align="center" prop="orderNo" width="220"/>
@ -350,6 +350,7 @@
background: #f9f9f9;
box-sizing: border-box;
padding: 10px;
padding-bottom: 0px;
}
.bai-box{

View File

@ -53,18 +53,18 @@
</div>
<div class="bottom-box2">
<div style="height: 200px; width: 300px;">
<div class="demonstration" style="font-weight: bold;margin-bottom: 10px" >营业执照</div>
<br/>
<div class="demonstration" style="font-size: 16px;font-weight: bold;margin-bottom: 0px;margin-bottom: 15px" >营业执照</div>
<el-image v-if="from.license" :src="imagePath+from.license" style="margin-top: 10px;width: 220px;height: 135px;border-radius: 3%;" ></el-image>
<el-image v-if="from.license" :src="imagePath+from.license" style="margin-top: 8px;width: 220px;height: 135px;border-radius: 3%;" ></el-image>
<el-image v-else src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" ></el-image>
</div>
<div style=" width: 1000px; margin-left: 30px;">
<div class="demonstration" style="font-weight: bold;margin-bottom: 10px" >经营照</div>
<br/>
<div class="demonstration" style="font-size: 16px; font-weight: bold;margin-bottom: 0px;margin-bottom: 15px" >经营照</div>
<div style="width: 1220px;display: flex">
<el-image v-for="(item, index) in from.doorstepPhoto" v-if="from.doorstepPhoto[0]" :src="imagePath+item" style="margin-top: 10px;margin-right:10px;width: 220px;height: 135px;display: flex;border-radius: 3%; "></el-image>
<el-image v-for="(item, index) in from.doorstepPhoto" v-if="from.doorstepPhoto[0]" :src="imagePath+item" style="margin-top: 8px;margin-right:10px;width: 220px;height: 135px;display: flex;border-radius: 3%; "></el-image>
<el-image v-else src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" style="border-radius: 3%;"></el-image>
</div>
@ -546,7 +546,7 @@
.box-h{
background: rgb(255, 255, 255);
width: 100%;
height: 82vh;
height: 84vh;
box-sizing: border-box;
padding: 10px;
}

View File

@ -989,11 +989,12 @@ export default {
background: #f9f9f9;
box-sizing: border-box;
padding: 10px;
padding-bottom: 0px;
}
.new-box {
width: 100%;
height: 82vh;
height: 84vh;
overflow: auto;
background: #fff;
box-sizing: border-box;

View File

@ -36,7 +36,7 @@
</el-button>
</div>
</div>
<div style="width: 100%;height: 74vh;overflow: auto">
<div style="width: 100%;height: 69vh;overflow: auto">
<el-table ref="tables" border v-loading="loading" :data="list" @selection-change="handleSelectionChange"
:default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column

View File

@ -117,7 +117,7 @@ export default {
box-sizing: border-box;
padding: 10px;
width: 99%;
height: 83vh;
height: 84vh;
overflow: auto;
margin: 10px auto;
margin-bottom: 0px;

View File

@ -1,7 +1,7 @@
<!-- 收银台订单-->
<template>
<div style="background: #f6f8f9;width: 100%;padding: 10px;padding-bottom: 0px">
<div class="card-change">
<div class="card-changessss">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
<el-form-item label="" prop="deptId" style="width: 180px">
<el-select
@ -282,11 +282,16 @@ import {getDuiZhangIntegralListApi} from "@/api/financialStatement/jiaoyiduizhan
.table-box{
width: 100%;
height: 75vh;
min-height: 650px;
height: 72vh;
overflow: auto;
scrollbar-width: none;
}
.card-changessss{
height: 85vh;
background: #fff;
box-sizing: border-box;
padding: 10px;
border-radius: 8px;
}
</style>

View File

@ -1,7 +1,7 @@
<!-- 收银台订单-->
<template>
<div style="background: #f6f8f9;width: 100%;padding: 10px;padding-bottom: 0px">
<div class="card-change">
<div class="card-changessss">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
<el-form-item label="" prop="deptId" style="width: 180px">
<el-select
@ -283,10 +283,15 @@ import {getDuiZhangGoodsListApi} from "@/api/financialStatement/jiaoyiduizhang";
.table-box{
width: 100%;
height: 75vh;
min-height: 650px;
height: 72vh;
overflow: auto;
scrollbar-width: none;
}
.card-changessss{
height: 85vh;
background: #fff;
box-sizing: border-box;
padding: 10px;
border-radius: 8px;
}
</style>

View File

@ -1,7 +1,7 @@
<!-- 收银台订单-->
<template>
<div style="background: #f6f8f9;width: 100%;padding: 10px;padding-bottom: 0px" >
<div class="card-change">
<div class="card-changessss">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
<el-form-item label="" prop="deptId" style="width: 180px">
<el-select
@ -281,9 +281,17 @@ import {getRunningWaterByTissueApi} from "@/api/allOrder";
.table-box{
width: 100%;
height: 74vh;
min-height: 650px;
overflow: auto;
scrollbar-width: none;
height: 71vh;
}
.card-changessss{
height: 85vh;
background: #fff;
box-sizing: border-box;
padding: 10px;
border-radius: 8px;
}
</style>

View File

@ -1,8 +1,8 @@
<template>
<div class="app-center">
<div class="app-top">
<el-card :body-style="{ padding: '0px' }" style="margin-top: 1px;">
<div class="box">
<div :body-style="{ padding: '0px' }" style="margin-top: 1px; background: #fff;">
<div class="box" style="margin-top: 0px;padding-top: 10px">
<div class="nbox" :class="pointerClass" @click="updateRedio('会员分析')">
<div class="fount-box" :style="{ color: radio1 === '会员分析' ? '#FF770F' : '#999999' }">会员分析</div>
<div class="heng-box" v-if="radio1 == '会员分析'"></div>
@ -37,7 +37,7 @@
<!-- <div class="heng-box" style="background-color: #FFFFFF" v-else></div>-->
<!-- </div>-->
</div>
</el-card>
</div>
</div>

View File

@ -294,7 +294,7 @@ export default {
}
.table-box{
width: 100%;
height: 57vh;
height: 63vh;
scrollbar-width: none;
overflow: auto;
}

View File

@ -357,6 +357,8 @@ import {parseTime} from "@/utils/fuint";
padding: 10px;
width: 100%;
margin: 5px auto;
height:65vh;
margin-bottom: 0px;
}
.el-form--inline .el-form-item {

View File

@ -103,7 +103,6 @@
</el-table-column>
</el-table>
</div>
<pagination
v-show="total>0"
:total="total"
@ -111,6 +110,8 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</div>
@ -323,7 +324,7 @@ import {parseTime} from "@/utils/fuint";
}
.table-box{
width: 100%;
height: 57vh;
height: 63vh;
scrollbar-width: none;
overflow: auto;
}

View File

@ -18,9 +18,6 @@
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<!-- </el-card>-->
<!-- <el-card class="box-card">-->
<div class="wrap-box">
<div class="k_" id="k_1">
<div class="size_">会员总数</div>
@ -256,6 +253,8 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
padding: 10px;
width: 100%;
margin: 5px auto;
margin-bottom: 0px;
height:67vh;
}
.el-form--inline .el-form-item {
margin-right: 20px;

View File

@ -45,7 +45,7 @@
>新增商品</el-button>
</el-form-item>
</el-form>
<div style="height: 71vh; overflow: auto; scrollbar-width: none ">
<div style="height: 75vh; overflow: auto; scrollbar-width: none ">
<el-table :data="tableData" style="width: 100%" border>
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column prop="name" label="商品名称"></el-table-column>

View File

@ -40,7 +40,7 @@
/>
</el-select>
</el-form-item>
<el-form-item style="float: right">
<el-form-item >
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
<el-button

View File

@ -411,6 +411,7 @@ export default {
display: flex;
box-sizing: border-box;
padding: 0px 50px;
border-top: 1px solid #f2f2f2;
}
.f-box{
@ -425,5 +426,8 @@ export default {
color: #FF9655 !important;
border-bottom: 2px solid #FF9655 !important;
}
.card-change{
height: 84vh;
}
</style>

View File

@ -35,6 +35,10 @@ public class IntegralGiftCategory extends BaseEntity {
* 店铺ID
*/
private Integer storeId;
/**
* 创建人
*/
private String createByName;
}

View File

@ -23,9 +23,9 @@
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="IntegralGiftCategoryMap">
<select id="queryAllByLimit" resultType="com.fuint.business.integral.entity.IntegralGiftCategory">
select
igc.id, igc.category_name, igc.sort, igc.status, igc.store_id, igc.create_time, igc.update_time, igc.create_by, igc.update_by,ta.real_name as createBy
igc.id, igc.category_name, igc.sort, igc.status, igc.store_id, igc.create_time, igc.update_time, igc.create_by, igc.update_by,ta.real_name as createByName
from integral_gift_category igc
left join mt_staff ta on igc.create_by=ta.id
<where>