no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-06-11 17:29:44 +08:00
parent 9fb43facf8
commit a4411ed619
3 changed files with 112 additions and 20 deletions
fuintAdmin/src/views/staff/storeInfo
fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl
pos-uni/pagesHome/orderList

View File

@ -1,17 +1,19 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card class="card"> <el-row>
<el-col :span="12">
<el-card class="card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ store.name }}{{store.description? "("+store.description+")":"" }}</span> <span>{{ store.name }}{{store.description? "("+store.description+")":"" }}</span>
</div> </div>
<!-- 上传图片--> <!-- 上传图片-->
<div style="display: flex"> <div style="display: flex">
<span>店铺logo</span> <span style="margin-right: 10px">店铺logo</span>
<imgUpload1 v-if="flag" :imgUrl="store.logo" :limit="1" @input="getImgUrl"></imgUpload1> <imgUpload1 v-if="flag" :imgUrl="store.logo" :limit="1" @input="getImgUrl"></imgUpload1>
</div> </div>
<!-- 上传图片--> <!-- 上传图片-->
<div style="display: flex"> <div style="display: flex; ">
<span>门头照</span> <span style="margin-right: 20px">门头照</span>
<imgUpload1 v-if="flag" :doorUrl="store.doorstepPhoto" @input="getDoorImgUrl"></imgUpload1> <imgUpload1 v-if="flag" :doorUrl="store.doorstepPhoto" @input="getDoorImgUrl"></imgUpload1>
</div> </div>
@ -35,13 +37,14 @@
<el-button type="primary" @click="submitStore">保存信息</el-button> <el-button type="primary" @click="submitStore">保存信息</el-button>
</el-card> </el-card>
</el-col>
<el-card class="card"> <el-col :span="12">
<el-card class="card" style="margin-left: 20px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>油站二维码</span> <span>油站二维码</span>
</div> </div>
<el-button style="margin-left: 200px" type="text" v-if="type==0" @click="getQRCodeInfoByStoreId(1)">切换样式</el-button><br/> <el-button style="margin-left: 0px" type="text" v-if="type==0" @click="getQRCodeInfoByStoreId(1)">切换样式</el-button><br/>
<el-button style="margin-left: 200px" type="text" v-if="type==1" @click="getQRCodeInfoByStoreId(0)">切换样式</el-button><br/> <el-button style="margin-left: 0px" type="text" v-if="type==1" @click="getQRCodeInfoByStoreId(0)">切换样式</el-button><br/>
<img id="collection" class="qrcode" :src="baseUrl + collectionImg" /><br/> <img id="collection" class="qrcode" :src="baseUrl + collectionImg" /><br/>
<el-button class="but" type="primary" <el-button class="but" type="primary"
icon="el-icon-download" icon="el-icon-download"
@ -49,6 +52,8 @@
下载油站二维码 下载油站二维码
</el-button> </el-button>
</el-card> </el-card>
</el-col>
</el-row>
<!-- <el-card class="card">--> <!-- <el-card class="card">-->
<!-- <div slot="header" class="clearfix">--> <!-- <div slot="header" class="clearfix">-->

View File

@ -104,7 +104,9 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
// //
if (ObjectUtil.isNotEmpty(record.getUserId())) { if (ObjectUtil.isNotEmpty(record.getUserId())) {
MtUser mtUser = mtUserMapper.queryMemberById(record.getUserId()); MtUser mtUser = mtUserMapper.queryMemberById(record.getUserId());
record.setAvatar(mtUser.getAvatar()); if (ObjectUtil.isNotEmpty(mtUser.getAvatar())) {
record.setAvatar(mtUser.getAvatar());
}
} }
} }
return pageList; return pageList;
@ -230,7 +232,10 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
map.put("payType",allOrderInfo.getPayType()); map.put("payType",allOrderInfo.getPayType());
// 获取机构信息 // 获取机构信息
map.putAll(getMerchantConfig(allOrderInfo));
// if ("CASH".equals(allOrderInfo.getPayType())){
map.putAll(getMerchantConfig(allOrderInfo));
// }
}else { }else {
throw new RuntimeException("退款失败,无退款金额"); throw new RuntimeException("退款失败,无退款金额");
@ -328,6 +333,9 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
// 商户机构查询 // 商户机构查询
MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(allOrderInfo.getStoreId()); MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(allOrderInfo.getStoreId());
if (ObjectUtil.isEmpty(merchantConfig)) {
throw new RuntimeException("未配置商户号");
}
// 机构号 // 机构号
map.put("insCd", merchantConfig.getInsCd()); map.put("insCd", merchantConfig.getInsCd());
// 商户号 // 商户号

View File

@ -3,10 +3,17 @@
<view class="container"> <view class="container">
<headers :titles="titles" :type="titles" @chiledEvent="clickChild()"> <headers :titles="titles" :type="titles" @chiledEvent="clickChild()">
<u-icon name="arrow-left" color="#fff" size="22"> <u-icon name="arrow-left" color="#fff" size="22">
</u-icon> </u-icon>
</headers> </headers>
<!-- <view class="my-header">
<view class="my-icons" @click="gobock()">
<slot></slot>
</view>
<view class="my-text">{{titles}}</view>
</view> -->
<view class="tablist"> <view class="tablist">
<view class="tabbox" v-for="(item,index) in tablist" :key="index" @click="getindex(index)"> <view class="tabbox" v-for="(item,index) in tablist" :key="index" @click="getindex(index)">
<view class="">{{item}}</view> <view class="">{{item}}</view>
@ -42,17 +49,18 @@
</view> </view>
<view class="end-box"> <view class="end-box">
实付:{{item.payMoney}} 实付:{{item.payMoney}}
<u-button v-if="item.orderStatus == 'paid'" style="width: 60px;" type="primary" <u-button v-if="item.orderStatus == 'paid'"
style="width: 60px;float: right; margin-left: 5px; height: 21px ;" type="primary"
@click="openRef(item)" text="退款"></u-button> @click="openRef(item)" text="退款"></u-button>
</view> </view>
</view> </view>
<view style="width: 100%; height: 20px; "></view> <view style="width: 100%; height: 20px; "></view>
<!-- customStyle="width: 300px;" -->
<!-- customStyle="full-screen-popup" -->
<u-popup :show="showPop" mode="right" @close="closePop" @open="openPop" customStyle="width: 300px;"> <u-popup :show="showPop" mode="right" @close="closePop" @open="openPop">
<view style="margin-top: 100px;"> <view class="wrap_test" style="margin-top: 100px;">
<view class="time-bs"> <view class="time-bs">
<view class="time-box" @click="showStartTime = true">{{form.startTime?form.startTime:'开始日期'}} <view class="time-box" @click="showStartTime = true">{{form.startTime?form.startTime:'开始日期'}}
</view> </view>
@ -65,8 +73,11 @@
</view> </view>
<!-- <u--input class="time-bs2" placeholder="选择交易类型" border="surround" v-model="form.type" <!-- <u--input class="time-bs2" placeholder="选择交易类型" border="surround" v-model="form.type"
@click="showType = true" disabled></u--input> --> @click="showType = true" disabled></u--input> -->
<view style="display: flex;justify-content: space-between;">
<u-button style="width: 100px;" type="primary" text="确定" @click="clickBu"></u-button>
<u-button style="width: 100px;" type="warning" text="取消" @click="clickBu2"></u-button>
</view>
<u-button style="width: 100px;" type="primary" text="确定" @click="clickBu"></u-button>
</view> </view>
@ -111,7 +122,7 @@
baseUrl: config.baseUrl, baseUrl: config.baseUrl,
form: { form: {
page: 1, page: 1,
pageSize: 10, pageSize: 1000,
status: '', status: '',
startTime: '', startTime: '',
endTime: '', endTime: '',
@ -207,7 +218,10 @@
data: form data: form
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({
title: "退款成功",
icon: "none"
})
} else { } else {
uni.showToast({ uni.showToast({
title: res.data, title: res.data,
@ -215,12 +229,17 @@
}) })
} }
this.showModal = false this.showModal = false
this.getPageListByPos();
}) })
}, },
goback() { goback() {
uni.navigateBack() uni.navigateBack()
}, },
gobock() {
uni.navigateBack()
},
getPageListByPos() { getPageListByPos() {
if (this.form.startTime && this.form.endTime) { if (this.form.startTime && this.form.endTime) {
this.form.params = { this.form.params = {
@ -251,6 +270,19 @@
this.showPop = false this.showPop = false
this.getPageListByPos() this.getPageListByPos()
}, },
clickBu2() {
this.showPop = false
this.form = {
page: 1,
pageSize: 1000,
status: '',
startTime: '',
endTime: '',
payType: ''
},
this.getPageListByPos()
},
closePop() {}, closePop() {},
openPop() {}, openPop() {},
clickType(e) { clickType(e) {
@ -430,6 +462,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
} }
.time-bs2 { .time-bs2 {
@ -452,6 +485,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.time-box2 { .time-box2 {
@ -471,4 +505,49 @@
font-weight: bold; font-weight: bold;
margin-right: 5px; margin-right: 5px;
} }
.my-header {
width: 100%;
height: 88px;
// background: linear-gradient(180deg, #B2D2FC 0%, rgba(255, 255, 255, 0.84) 100%);
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
z-index: 99999;
background: #0864e9;
position: fixed;
top: 0px;
.my-icons {
width: 50px;
height: 50px;
}
.my-text {
font-weight: bold;
}
}
.wrap_test {
width: 100vw;
height: 100vh;
}
.full-screen-popup {
width: 100%;
height: 100%;
top: 0;
left: 0;
margin: 0;
padding: 0;
box-sizing: border-box;
}
</style> </style>