Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
16c93fbdd2
@ -102,7 +102,15 @@
|
|||||||
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
||||||
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
||||||
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
||||||
<el-table-column prop="payChannel" align="center" label="支付渠道"> </el-table-column>
|
<el-table-column prop="payChannel" align="center" label="支付渠道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
|
<span v-else>其他</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
||||||
<el-table-column prop="type" align="center" label="订单来源">
|
<el-table-column prop="type" align="center" label="订单来源">
|
||||||
|
@ -129,7 +129,15 @@
|
|||||||
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
||||||
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
||||||
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
||||||
<el-table-column prop="payChannel" align="center" label="支付渠道"> </el-table-column>
|
<el-table-column prop="payChannel" align="center" label="支付渠道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
|
<span v-else>其他</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
||||||
<el-table-column prop="type" align="center" label="订单来源">
|
<el-table-column prop="type" align="center" label="订单来源">
|
||||||
@ -161,7 +169,12 @@
|
|||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="goodsMoney" align="center" label="订单金额"> </el-table-column>
|
<el-table-column prop="goodsMoney" align="center" label="订单金额">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.type=='3'">{{scope.row.goodsMoney + scope.row.payMoney}}</span>
|
||||||
|
<span v-else>{{scope.row.goodsMoney}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="payMoney" align="center" label="优惠后应付金额"> </el-table-column>
|
<el-table-column prop="payMoney" align="center" label="优惠后应付金额"> </el-table-column>
|
||||||
<el-table-column prop="refMoney" align="center" label="退款金额">
|
<el-table-column prop="refMoney" align="center" label="退款金额">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -11,6 +11,8 @@ VUE_APP_BASE_API = '/dev-api'
|
|||||||
VUE_APP_PUBLIC_PATH = '/'
|
VUE_APP_PUBLIC_PATH = '/'
|
||||||
|
|
||||||
# 后端接口地址
|
# 后端接口地址
|
||||||
|
#VUE_APP_SERVER_URL = 'http://192.168.31.96:8080/'
|
||||||
|
#VUE_APP_SERVER_URL = 'http://192.168.31.178:8081'
|
||||||
VUE_APP_SERVER_URL = 'http://localhost:8080/'
|
VUE_APP_SERVER_URL = 'http://localhost:8080/'
|
||||||
|
|
||||||
# cp端地址
|
# cp端地址
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="7">
|
<el-col :span="6">
|
||||||
<el-card style="margin-right: 20px">
|
<el-card style="margin-right: 20px">
|
||||||
<div class="left-box">
|
<div class="left-box">
|
||||||
<div class="title-h">组织架构</div>
|
<div class="title-h">组织架构</div>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="17">
|
<el-col :span="18">
|
||||||
<el-card style="margin-bottom: 20px;">
|
<el-card style="margin-bottom: 20px;">
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="用户信息" name="list">
|
<el-tab-pane label="用户信息" name="list">
|
||||||
@ -2161,7 +2161,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.left-box{
|
.left-box{
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 75vh;
|
height: 80vh;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
overflow-y: auto; /* 只显示垂直滚动条 */
|
overflow-y: auto; /* 只显示垂直滚动条 */
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,15 @@
|
|||||||
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" width="220"> </el-table-column>
|
||||||
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="门店"> </el-table-column>
|
||||||
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
<el-table-column prop="createBy" align="center" label="收银员"> </el-table-column>
|
||||||
<el-table-column prop="payChannel" align="center" label="支付渠道"> </el-table-column>
|
<el-table-column prop="payChannel" align="center" label="支付渠道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
|
<span v-else>其他</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
<el-table-column prop="mchntCd" align="center" label="商户号"> </el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
<el-table-column prop="amount" align="center" label="费率"> </el-table-column>
|
||||||
<el-table-column prop="type" align="center" label="订单来源">
|
<el-table-column prop="type" align="center" label="订单来源">
|
||||||
|
@ -134,6 +134,7 @@
|
|||||||
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
||||||
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
<span v-else>其他</span>
|
<span v-else>其他</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -506,8 +506,9 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
|||||||
}
|
}
|
||||||
allOrderInfo.setStoreIds(mtStores.stream().map(MtStore::getId).map(Long::valueOf).collect(Collectors.toList()));
|
allOrderInfo.setStoreIds(mtStores.stream().map(MtStore::getId).map(Long::valueOf).collect(Collectors.toList()));
|
||||||
} else {
|
} else {
|
||||||
|
MtStore byDeptId = mtStoreMapper.getByDeptId(allOrderInfo.getDeptId());
|
||||||
List<Long> depts = new ArrayList<>();
|
List<Long> depts = new ArrayList<>();
|
||||||
depts.add(Long.parseLong(nowAccountInfo.getStoreId().toString()));
|
depts.add(Long.parseLong(byDeptId.getId().toString()));
|
||||||
allOrderInfo.setStoreIds(depts);
|
allOrderInfo.setStoreIds(depts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@ public class PrintIntegralReport {
|
|||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(handover.get("shoppingCart"))) {
|
if (ObjectUtil.isNotEmpty(handover.get("shoppingCart"))) {
|
||||||
sb.append("<table><tr><td>商品名称</td><td>商品数量</td><td>价格</td></tr>");
|
sb.append("<table><tr><td>商品名称</td><td>商品数量</td><td>价格</td></tr>");
|
||||||
List<Map<String,String>> o = (List<Map<String,String>>)handover.get("oilOrder");
|
List<Map<String,String>> o = (List<Map<String,String>>)handover.get("shoppingCart");
|
||||||
for (Map<String, String> stringStringMap : o) {
|
for (Map<String, String> stringStringMap : o) {
|
||||||
sb.append("<tr><td>"+stringStringMap.get("giftName")+"</td>");
|
sb.append("<tr><td>"+stringStringMap.get("giftName")+"</td>");
|
||||||
sb.append("<td>"+stringStringMap.get("markPurchases")+"</td>");
|
sb.append("<td>"+((ObjectUtil.isNotEmpty(stringStringMap.get("markPurchases")))?stringStringMap.get("markPurchases").toString():"0"+"</td>");
|
||||||
sb.append("<td>"+ stringStringMap.get("price")+"</td></tr>");
|
sb.append("<td>"+ stringStringMap.get("price")+"</td></tr>");
|
||||||
}
|
}
|
||||||
sb.append("</table>");
|
sb.append("</table>");
|
||||||
|
@ -46,6 +46,7 @@ public interface MtStoreMapper extends BaseMapper<MtStore> {
|
|||||||
int ifDeleteByDeptId(@Param("deptId") Long deptId);
|
int ifDeleteByDeptId(@Param("deptId") Long deptId);
|
||||||
|
|
||||||
MtStore getByStroeName(@Param("name") String name);
|
MtStore getByStroeName(@Param("name") String name);
|
||||||
|
MtStore getByDeptId(@Param("deptId") Long deptId);
|
||||||
List<MtStore> queryStoresByDeptIds(@Param("list") List<Long> deptIds);
|
List<MtStore> queryStoresByDeptIds(@Param("list") List<Long> deptIds);
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,5 +37,10 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getByDeptId" resultType="com.fuint.business.store.entity.MtStore">
|
||||||
|
select * from mt_store
|
||||||
|
where
|
||||||
|
contract_dept_id = #{deptId}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
@ -1,8 +1,8 @@
|
|||||||
# \u57FA\u672C\u914D\u7F6E
|
# \u57FA\u672C\u914D\u7F6E
|
||||||
server.port=8080
|
server.port=8081
|
||||||
env.profile=dev
|
env.profile=dev
|
||||||
#env.properties.path=D:/workspaces/oilSystem/fuintBackend/configure/
|
#env.properties.path=D:/workspaces/oilSystem/fuintBackend/configure/
|
||||||
env.properties.path=D:/workspaces/oilSystem/fuintBackend/configure/
|
env.properties.path=D:/code/oilSystem/fuintBackend/configure/
|
||||||
#env.properties.path=/www/wwwroot/shenlanshuke/oilAdmin/
|
#env.properties.path=/www/wwwroot/shenlanshuke/oilAdmin/
|
||||||
|
|
||||||
# \u6570\u636E\u5E93\u914D\u7F6E
|
# \u6570\u636E\u5E93\u914D\u7F6E
|
||||||
|
@ -235,6 +235,8 @@
|
|||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- mvn install:install-file -PrintAIDL=PrintAIDL -DartifactId=PrintAIDL -Dversion=1.0 -Dpackaging=jar -Dfile=D:\code\oilSystem\fuintBackend\lib\PrintAIDL.jar-->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,5 +11,8 @@ VUE_APP_BASE_API = '/dev-api'
|
|||||||
VUE_APP_PUBLIC_PATH = '/'
|
VUE_APP_PUBLIC_PATH = '/'
|
||||||
|
|
||||||
# 后端接口地址
|
# 后端接口地址
|
||||||
|
|
||||||
|
#VUE_APP_SERVER_URL = 'http://192.168.31.96:8080/'
|
||||||
|
#VUE_APP_SERVER_URL = 'http://192.168.31.178:8081'
|
||||||
#VUE_APP_SERVER_URL = 'http://192.168.31.55:8081/'
|
#VUE_APP_SERVER_URL = 'http://192.168.31.55:8081/'
|
||||||
VUE_APP_SERVER_URL = 'http://localhost:8080/'
|
VUE_APP_SERVER_URL = 'http://localhost:8080/'
|
||||||
|
@ -2160,7 +2160,7 @@
|
|||||||
this.cardFuelDieselForm.type = file.type
|
this.cardFuelDieselForm.type = file.type
|
||||||
this.cardFuelDieselForm.chainStorId = file.chainStorId
|
this.cardFuelDieselForm.chainStorId = file.chainStorId
|
||||||
this.cardFuelDieselForm.incomeLitres = file.incomeLitres
|
this.cardFuelDieselForm.incomeLitres = file.incomeLitres
|
||||||
this.cardFuelDieselForm.lockupPrice = file.lockupPrice
|
this.cardFuelDieselForm.lockupPrice = file.lockPrice
|
||||||
this.cardFuelDieselForm.cardFuelId = file.id
|
this.cardFuelDieselForm.cardFuelId = file.id
|
||||||
this.cardFuelDieselForm.expireTime = file.expireTime
|
this.cardFuelDieselForm.expireTime = file.expireTime
|
||||||
|
|
||||||
|
@ -20,11 +20,12 @@
|
|||||||
|
|
||||||
<view class="hm-box">
|
<view class="hm-box">
|
||||||
<view class="hm-top">营业收入</view>
|
<view class="hm-top">营业收入</view>
|
||||||
<view class="lan-title">¥{{dataForm.sumBalance}}</view>
|
<view class="lan-title">¥{{dataForm.sumBalance?dataForm.sumBalance:0}}</view>
|
||||||
<view class="b-bs">
|
<view class="b-bs">
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="hui-">营业额/笔数</view>
|
<view class="hui-">营业额/笔数</view>
|
||||||
<view class="lan-">¥{{dataForm.sumBalance}}/{{dataForm.countBalance}}</view>
|
<view class="lan-">¥{{dataForm.sumBalance?dataForm.sumBalance:0}}/{{dataForm.countBalance}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="hui-">会员充值/笔数</view>
|
<view class="hui-">会员充值/笔数</view>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<view class="">收银员:{{ handoverList && handoverList.baseInfo ? handoverList.baseInfo.realName : '未知姓名' }}
|
<view class="">收银员:{{ handoverList && handoverList.baseInfo ? handoverList.baseInfo.realName : '未知姓名' }}
|
||||||
</view>
|
</view>
|
||||||
<view class="b-ss">
|
<view class="b-ss">
|
||||||
<view class="">今日累计:¥{{indexData.totalPayMoney}}</view>
|
<view class="">今日累计:¥{{indexData.totalPayMoney?indexData.totalPayMoney:0}}</view>
|
||||||
<view class="d-s" @click="jump()">
|
<view class="d-s" @click="jump()">
|
||||||
<view class="">交班记录</view>
|
<view class="">交班记录</view>
|
||||||
<u-icon name="arrow-right" color="#fff" size="18"></u-icon>
|
<u-icon name="arrow-right" color="#fff" size="18"></u-icon>
|
||||||
@ -80,6 +80,7 @@
|
|||||||
// this.actList = ["1", "1", "1", "1", "1", ]
|
// this.actList = ["1", "1", "1", "1", "1", ]
|
||||||
// this.status = "nomore" 底部刷新结束
|
// this.status = "nomore" 底部刷新结束
|
||||||
this.handoverByPos()
|
this.handoverByPos()
|
||||||
|
this.getIndexData()
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
console.log("刷新");
|
console.log("刷新");
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<view class="box_" v-for="item,index in listData">
|
<view class="box_" v-for="item,index in listData">
|
||||||
<view class="top-title">
|
<view class="top-title">
|
||||||
<view class="name_">{{item.staffName}}</view>
|
<view class="name_">{{item.staffName}}</view>
|
||||||
<view class="price_">¥{{item.totalPayMoney}}</view>
|
<view class="price_">¥{{item.totalPayMoney?item.totalPayMoney:0}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="time">{{item.startTime}}-{{item.endTime}}</view>
|
<view class="time">{{item.startTime}}-{{item.endTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -34,7 +34,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-box">实付:¥{{item.payMoney}}</view>
|
<view class="end-box">
|
||||||
|
实付:¥{{item.payMoney}}
|
||||||
|
<u-button v-if="item.orderStatus == 'paid'" style="width: 60px;" type="primary"
|
||||||
|
@click="openRef(item)" text="退款"></u-button>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 100%; height: 20px; "></view>
|
<view style="width: 100%; height: 20px; "></view>
|
||||||
|
|
||||||
@ -60,6 +66,10 @@
|
|||||||
|
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
|
||||||
|
|
||||||
|
<u-modal :show="showModal" showCancelButton content='是否确认退款' @confirm="ref()"
|
||||||
|
@cancel="showModal = false"></u-modal>
|
||||||
|
|
||||||
<u-datetime-picker :show="showStartTime" v-model="startTimeValue" mode="datetime" @confirm="clickStart"
|
<u-datetime-picker :show="showStartTime" v-model="startTimeValue" mode="datetime" @confirm="clickStart"
|
||||||
@close="showStartTime = false" @cancel="showStartTime = false"></u-datetime-picker>
|
@close="showStartTime = false" @cancel="showStartTime = false"></u-datetime-picker>
|
||||||
|
|
||||||
@ -80,9 +90,11 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
orderData: {},
|
||||||
titles: "订单列表",
|
titles: "订单列表",
|
||||||
tabindex: 0,
|
tabindex: 0,
|
||||||
showPop: false,
|
showPop: false,
|
||||||
|
showModal: false,
|
||||||
tablist: [
|
tablist: [
|
||||||
"全部",
|
"全部",
|
||||||
"已完成",
|
"已完成",
|
||||||
@ -164,6 +176,41 @@
|
|||||||
this.getPageListByPos()
|
this.getPageListByPos()
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
openRef(data) {
|
||||||
|
this.showModal = true
|
||||||
|
this.orderData = {}
|
||||||
|
this.orderData = data
|
||||||
|
},
|
||||||
|
ref() {
|
||||||
|
let form = {
|
||||||
|
orderNo: this.orderData.orderNo,
|
||||||
|
storeId: this.orderData.storeId,
|
||||||
|
refundRemark: "pos机退款",
|
||||||
|
type: "canRefund",
|
||||||
|
isOilVouchers: true,
|
||||||
|
isGoods: true,
|
||||||
|
isOil: true,
|
||||||
|
isOilCard: true, // 是否推掉油卡
|
||||||
|
isOilFuel: true, //是否推掉储值卡
|
||||||
|
refundAmt: this.orderData.oilPayAmount
|
||||||
|
}
|
||||||
|
request({
|
||||||
|
url: 'business/allOrderInfo/refund',
|
||||||
|
method: 'post',
|
||||||
|
data: form
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data,
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.showModal = false
|
||||||
|
|
||||||
|
})
|
||||||
},
|
},
|
||||||
goback() {
|
goback() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
Loading…
Reference in New Issue
Block a user