Merge branch 'master' of https://gitee.com/nny_1/oilSystem
This commit is contained in:
commit
661fb65605
@ -97,7 +97,7 @@
|
||||
<!-- <span>{{ scope.row.qrCodeLink }}</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="参与次数" align="center" prop="count"/>
|
||||
<!-- <el-table-column label="参与次数" align="center" prop="count"/>-->
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.createTime }}</span>
|
||||
@ -171,9 +171,9 @@
|
||||
<el-form-item label="使用说明" prop="useInstructions">
|
||||
<el-input type="textarea" v-model="form.useInstructions" placeholder="请输入使用说明"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="参与次数" prop="count">
|
||||
<!-- <el-form-item label="参与次数" prop="count">
|
||||
<el-input-number v-model="form.count" controls-position="right" :min="1" :max="999"></el-input-number>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio label="0">启用</el-radio>
|
||||
@ -275,9 +275,9 @@ export default {
|
||||
useInstructions: [
|
||||
{ required: true, message: '请输入使用说明', trigger: 'change' }
|
||||
],
|
||||
count: [
|
||||
/*count: [
|
||||
{ required: true, message: '请输入参与次数', trigger: 'change' }
|
||||
],
|
||||
],*/
|
||||
status: [
|
||||
{ required: true, message: '请选择状态', trigger: 'change' }
|
||||
]
|
||||
|
@ -761,6 +761,70 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//三个优惠都不为空
|
||||
BigDecimal bigDecimal = new BigDecimal("0.00");
|
||||
if (ObjectUtils.isNotEmpty(paymentActiveVO.getActiveFavorableAmount()) && ObjectUtils.isNotEmpty(paymentActiveVO.getCardFavorableAmount())&& ObjectUtils.isNotEmpty(paymentActiveVO.getMemberFavorableAmount())) {
|
||||
BigDecimal add3 = paymentActiveVO.getActiveFavorableAmount().add(paymentActiveVO.getCardFavorableAmount()).add(paymentActiveVO.getMemberFavorableAmount());
|
||||
if (add3.compareTo(paymentActiveDTO.getAmount()) > 0){
|
||||
BigDecimal add21 = paymentActiveVO.getActiveFavorableAmount().add(paymentActiveVO.getCardFavorableAmount());
|
||||
BigDecimal add22 = paymentActiveVO.getActiveFavorableAmount().add(paymentActiveVO.getMemberFavorableAmount());
|
||||
BigDecimal add23 = paymentActiveVO.getCardFavorableAmount().add(paymentActiveVO.getMemberFavorableAmount());
|
||||
if (add21.compareTo(add22)>0 && add21.compareTo(add23)>0){
|
||||
paymentActiveVO.setMemberFavorableAmount(bigDecimal);
|
||||
}
|
||||
if (add22.compareTo(add21)>0 && add22.compareTo(add23)>0){
|
||||
paymentActiveVO.setCardFavorableAmount(bigDecimal);
|
||||
}
|
||||
if (add23.compareTo(add21)>0 && add23.compareTo(add22)>0){
|
||||
paymentActiveVO.setActiveFavorableAmount(bigDecimal);
|
||||
}
|
||||
|
||||
|
||||
if (paymentActiveVO.getActiveFavorableAmount().compareTo(add23)>0){
|
||||
paymentActiveVO.setCardFavorableAmount(bigDecimal);
|
||||
paymentActiveVO.setMemberFavorableAmount(bigDecimal);
|
||||
}
|
||||
if (paymentActiveVO.getCardFavorableAmount().compareTo(add22)>0){
|
||||
paymentActiveVO.setActiveFavorableAmount(bigDecimal);
|
||||
paymentActiveVO.setMemberFavorableAmount(bigDecimal);
|
||||
}
|
||||
if (paymentActiveVO.getMemberFavorableAmount().compareTo(add21)>0){
|
||||
paymentActiveVO.setActiveFavorableAmount(bigDecimal);
|
||||
paymentActiveVO.setCardFavorableAmount(bigDecimal);
|
||||
}
|
||||
}
|
||||
}
|
||||
//有空值
|
||||
if (ObjectUtils.isEmpty(paymentActiveVO.getActiveFavorableAmount()) || ObjectUtils.isEmpty(paymentActiveVO.getCardFavorableAmount()) || ObjectUtils.isEmpty(paymentActiveVO.getMemberFavorableAmount())){
|
||||
if (ObjectUtils.isEmpty(paymentActiveVO.getActiveFavorableAmount()) && ObjectUtils.isNotEmpty(paymentActiveVO.getCardFavorableAmount())&& ObjectUtils.isNotEmpty(paymentActiveVO.getMemberFavorableAmount())){
|
||||
if (paymentActiveVO.getCardFavorableAmount().add(paymentActiveVO.getMemberFavorableAmount()).compareTo(paymentActiveDTO.getAmount())>0){
|
||||
if (paymentActiveVO.getCardFavorableAmount().compareTo(paymentActiveVO.getMemberFavorableAmount())>0){
|
||||
paymentActiveVO.setMemberFavorableAmount(bigDecimal);
|
||||
}else {
|
||||
paymentActiveVO.setCardFavorableAmount(bigDecimal);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ObjectUtils.isEmpty(paymentActiveVO.getCardFavorableAmount()) && ObjectUtils.isNotEmpty(paymentActiveVO.getActiveFavorableAmount())&& ObjectUtils.isNotEmpty(paymentActiveVO.getMemberFavorableAmount())){
|
||||
if (paymentActiveVO.getActiveFavorableAmount().add(paymentActiveVO.getMemberFavorableAmount()).compareTo(paymentActiveDTO.getAmount())>0){
|
||||
if (paymentActiveVO.getActiveFavorableAmount().compareTo(paymentActiveVO.getMemberFavorableAmount())>0){
|
||||
paymentActiveVO.setMemberFavorableAmount(bigDecimal);
|
||||
}else {
|
||||
paymentActiveVO.setActiveFavorableAmount(bigDecimal);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ObjectUtils.isEmpty(paymentActiveVO.getMemberFavorableAmount()) && ObjectUtils.isNotEmpty(paymentActiveVO.getCardFavorableAmount())&& ObjectUtils.isNotEmpty(paymentActiveVO.getActiveFavorableAmount())){
|
||||
if (paymentActiveVO.getCardFavorableAmount().add(paymentActiveVO.getActiveFavorableAmount()).compareTo(paymentActiveDTO.getAmount())>0){
|
||||
if (paymentActiveVO.getCardFavorableAmount().compareTo(paymentActiveVO.getActiveFavorableAmount())>0){
|
||||
paymentActiveVO.setActiveFavorableAmount(bigDecimal);
|
||||
}else {
|
||||
paymentActiveVO.setCardFavorableAmount(bigDecimal);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return paymentActiveVO;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ActiveNewlywedsRecordsController extends BaseController {
|
||||
* @return 新增结果
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseObject insert(@RequestBody ActiveNewlywedsRecords activeNewlywedsRecords) {
|
||||
public ResponseObject insert(@RequestBody ActiveNewlywedsRecords activeNewlywedsRecords) throws Exception {
|
||||
return getSuccessResult(this.activeNewlywedsRecordsService.add(activeNewlywedsRecords));
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,6 @@ public interface ActiveNewlywedsRecordsService extends IService<ActiveNewlywedsR
|
||||
* @param activeNewlywedsRecords
|
||||
* @return
|
||||
*/
|
||||
boolean add(ActiveNewlywedsRecords activeNewlywedsRecords);
|
||||
boolean add(ActiveNewlywedsRecords activeNewlywedsRecords) throws Exception;
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,15 @@ public class ActiveNewlywedsRecordsServiceImpl extends ServiceImpl<ActiveNewlywe
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public boolean add(ActiveNewlywedsRecords activeNewlywedsRecords) {
|
||||
public boolean add(ActiveNewlywedsRecords activeNewlywedsRecords) throws Exception {
|
||||
boolean save = false;
|
||||
//用户信息
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
Integer userId = nowAccountInfo.getId();
|
||||
LJUserVo ljUserVo = userService.selectUserById(userId,activeNewlywedsRecords.getStoreId());
|
||||
/*if (ObjectUtils.isEmpty(ljUserVo)){
|
||||
userBalanceService.initBalance(userId,activeNewlywedsRecords.getChainStoreId());
|
||||
}*/
|
||||
//保存新人有礼记录
|
||||
ActiveNewlywedsVO activeNewlyweds = activeNewlywedsService.getOneByStoreId(activeNewlywedsRecords.getStoreId());
|
||||
activeNewlywedsRecords.setActiveNewlywedsId(activeNewlyweds.getId());
|
||||
|
@ -114,10 +114,14 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
||||
if (CollectionUtils.isNotEmpty(list)){
|
||||
for (CardFavorableRecord cardFavorableRecord : list) {
|
||||
for (CardFavorable record : records) {
|
||||
if(!cardFavorableRecord.getCardFavorableId().equals(record.getId())){
|
||||
if(record.getClaimRule().equals("0") && !cardFavorableRecord.getCardFavorableId().equals(record.getId())){
|
||||
CardFavorable one = getById(record.getId());
|
||||
cardFavorableArrayList.add(one);
|
||||
}
|
||||
if (record.getClaimRule().equals("1")){
|
||||
//查询当天有没有领取这张券
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -274,4 +274,14 @@ public class OilOrderController extends BaseController {
|
||||
public ResponseObject getOilOrderInfo(@PathVariable Integer id){
|
||||
return getSuccessResult(orderService.selectOilOrderDescByOrderId(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据订单id修改订单评价
|
||||
* @param order
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("editOilOrder")
|
||||
public ResponseObject editOilOrderRemark(@RequestBody OilOrder order){
|
||||
return getSuccessResult(orderService.editOilOrder(order));
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package com.fuint.business.order.entity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -53,6 +54,7 @@ public class AllOrderInfo extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
/**
|
||||
* 付款方式(数据字典)
|
||||
|
@ -3,6 +3,7 @@ package com.fuint.business.order.entity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -65,6 +66,7 @@ public class CardValueChildOrder extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
/**
|
||||
* 用户备注
|
||||
|
@ -3,6 +3,7 @@ package com.fuint.business.order.entity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -93,6 +94,7 @@ public class CashierOrder extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
/**
|
||||
* 退款备注
|
||||
|
@ -3,6 +3,7 @@ package com.fuint.business.order.entity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -92,6 +93,7 @@ public class LJOrder extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
/**
|
||||
* 操作员工
|
||||
|
@ -4,10 +4,12 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.io.Serializable;
|
||||
@ -105,6 +107,7 @@ public class OilOrder extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
/**
|
||||
* 富友订单号
|
||||
|
@ -3,6 +3,7 @@ package com.fuint.business.order.entity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fuint.framework.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -77,6 +78,7 @@ public class ReturnRecord extends BaseEntity implements Serializable {
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||
private Date payTime;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@
|
||||
and order_status = #{order.orderStatus}
|
||||
</if>
|
||||
<if test="order.remark != null and order.remark != ''">
|
||||
and remark = #{order.remark}
|
||||
and order_status = 'paid' and remark is null or remark = '' and order_status = 'paid'
|
||||
</if>
|
||||
<if test="order.payType != null and order.payType != ''">
|
||||
and pay_type = #{order.payType}
|
||||
|
@ -157,4 +157,11 @@ public interface OilOrderService extends IService<OilOrder> {
|
||||
* @return
|
||||
*/
|
||||
OilOrderVo selectOilOrderDescByOrderId(Integer orderId);
|
||||
|
||||
/**
|
||||
* 小程序添加订单评论信息
|
||||
* @param oilOrder
|
||||
* @return
|
||||
*/
|
||||
int editOilOrder(OilOrder oilOrder);
|
||||
}
|
||||
|
@ -1616,4 +1616,11 @@ return stringDoubleMap;
|
||||
public OilOrderVo selectOilOrderDescByOrderId(Integer orderId) {
|
||||
return baseMapper.selectOilOrderDescByOrderId(orderId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int editOilOrder(OilOrder oilOrder) {
|
||||
OilOrder oilOrder1 = this.selectOilOrderById(oilOrder.getId());
|
||||
oilOrder1.setRemark(oilOrder.getRemark());
|
||||
return baseMapper.updateById(oilOrder1);
|
||||
}
|
||||
}
|
||||
|
@ -308,7 +308,7 @@
|
||||
<div v-else>{{ item.memberPrice }}</div>
|
||||
<div>
|
||||
<el-input-number v-model="item.num" size="small" controls-position="right"
|
||||
@change="handleChange" :min="1" :max="10"></el-input-number>
|
||||
@change="handleChange" :min="1" :max="10000"></el-input-number>
|
||||
</div>
|
||||
<div @click="delGoods(index)"><i class="el-icon-circle-close" style="font-size: 22px"></i></div>
|
||||
</div>
|
||||
@ -802,6 +802,7 @@
|
||||
import {addCreditUnit, listCreditUnit} from "@/api/cashier/creditunit";
|
||||
import {getSysConfig} from "@/api/staff/user/sysconfig";
|
||||
import {cashierOrderByOrderNo} from "@/api/cashier/cashierorder";
|
||||
import {getLodop} from "@/api/LodopFuncs";
|
||||
|
||||
const cityOptions = ['上海', '北京'];
|
||||
export default {
|
||||
@ -1120,11 +1121,80 @@
|
||||
},
|
||||
methods:{
|
||||
async printLocally() {
|
||||
const printHTML = document.querySelector('#reportSuccess').innerHTML
|
||||
// 将打印的区域赋值,进行打印
|
||||
window.document.body.innerHTML = printHTML
|
||||
window.print() // 调用window打印方法
|
||||
window.location.reload() // 打印完成后重新加载页面
|
||||
//初始化打印函数
|
||||
let LODOP = getLodop(); // 初始化打印
|
||||
LODOP.PRINT_INIT();
|
||||
var bodyStyle = `<style>
|
||||
.input-box{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 14px;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
.box-ge{
|
||||
border-bottom: 1px solid #000000 ;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
}
|
||||
.box-title{
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.input-hui{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 14px;
|
||||
margin: 15px 0px;
|
||||
background: #b2b2b2;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
.input-hui-frou{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 14px;
|
||||
margin: 15px 0px;
|
||||
background: #b2b2b2;
|
||||
box-sizing: border-box;
|
||||
padding: 5px 0px;
|
||||
div{
|
||||
width: 25%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
.input-box-frou{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 14px;
|
||||
margin: 5px 0px;
|
||||
div{
|
||||
width: 25%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
`
|
||||
var fromHtml = bodyStyle+this.$refs.report.innerHTML
|
||||
|
||||
|
||||
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", fromHtml);
|
||||
|
||||
LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
|
||||
|
||||
// LODOP.ADD_PRINT_BARCODE(10,40,100,100,'QRCode','123456789');
|
||||
// let preview = LODOP.PREVIEW();
|
||||
// console.log("preview",preview);
|
||||
LODOP.PRINT();
|
||||
|
||||
},
|
||||
clear(){
|
||||
@ -2433,6 +2503,7 @@
|
||||
_this.loading = false;
|
||||
_this.isPay = true;
|
||||
_this.isPaySuccess = true;
|
||||
_this.printLocally()
|
||||
_this.resetting1();
|
||||
},3000)
|
||||
}else {
|
||||
@ -2449,15 +2520,18 @@
|
||||
return;
|
||||
}
|
||||
|
||||
let isPaySuccess = false;
|
||||
|
||||
await addLJGoods(_this.map).then( response => {
|
||||
_this.orderNo = response.data.orderNo;
|
||||
if (response.data.oilOrder!=null){
|
||||
console.log(123,response.data.oilOrder)
|
||||
if (response.data.oilOrder.orderStatus == "paid"){
|
||||
_this.isPaySuccess = true;
|
||||
isPaySuccess = true
|
||||
_this.isPay = true;
|
||||
_this.seekZero = 0
|
||||
_this.amount = 0
|
||||
_this.resetting1()
|
||||
for (let i =0;i<_this.oilPreferentialData.length;i++){
|
||||
_this.oilPreferentialData[i].oilPreferential.storeId = response.data.oilOrder.storeId
|
||||
_this.oilPreferentialData[i].oilPreferential.userId = response.data.oilOrder.userId
|
||||
@ -2465,17 +2539,19 @@
|
||||
usePaymentActive(_this.oilPreferentialData[i].oilPreferential).then(res => {})
|
||||
}
|
||||
_this.printLocally()
|
||||
_this.resetting1()
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (response.data.goodsOrder!=null){
|
||||
if (response.data.goodsOrder.status == "paid"){
|
||||
_this.isPaySuccess = true;
|
||||
isPaySuccess = true
|
||||
_this.isPay = true;
|
||||
_this.seekZero = 0
|
||||
_this.amount = 0
|
||||
_this.resetting1()
|
||||
_this.printLocally()
|
||||
_this.resetting1()
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -2493,9 +2569,11 @@
|
||||
}
|
||||
})
|
||||
this.loading = true;
|
||||
_this.queryPayStatus();
|
||||
if ( !isPaySuccess ){
|
||||
await _this.queryPayStatus();
|
||||
|
||||
_this.resetting1();
|
||||
_this.resetting1();
|
||||
}
|
||||
},
|
||||
resetting1(){
|
||||
let _this = this;
|
||||
|
@ -142,6 +142,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
chainStoreId: '',
|
||||
indicatorDots: true,
|
||||
autoplay: true,
|
||||
interval: 2000,
|
||||
@ -218,6 +219,7 @@
|
||||
uni.setStorageSync("storeId", storeId)
|
||||
uni.setStorageSync("inviteStaffId", staffId)
|
||||
this.storeId = uni.getStorageSync("storeId")
|
||||
this.chainStoreId = uni.getStorageSync("chainStoreId")
|
||||
this.staffId = uni.getStorageSync("inviteStaffId")
|
||||
await this.getUserAuthority();
|
||||
await this.getOilType();
|
||||
@ -303,7 +305,8 @@
|
||||
url: 'business/marketingActivity/activeNewlywedsRecords',
|
||||
method: 'post',
|
||||
data: {
|
||||
storeId: this.storeId
|
||||
storeId: this.storeId,
|
||||
chainStoreId: this.chainStoreId,
|
||||
}
|
||||
}).then(res => {
|
||||
console.log("11111" + res)
|
||||
|
@ -83,7 +83,7 @@
|
||||
</view>
|
||||
<view class="but-box">
|
||||
<view class="huis">订单时间</view>
|
||||
<view class="" v-if="item.orderStatus=='paid'">{{parseTime(item.payTime)}}</view>
|
||||
<view class="" v-if="item.orderStatus=='paid'">{{item.payTime}}</view>
|
||||
<view class="" v-else>{{item.createTime}}</view>
|
||||
</view>
|
||||
<view class="but-box">
|
||||
|
@ -56,6 +56,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
appltType: "",
|
||||
title: '',
|
||||
tindex: 0,
|
||||
status: 'loading',
|
||||
@ -68,7 +69,8 @@
|
||||
storeId: '',
|
||||
recordName: '',
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
appltType: '',
|
||||
},
|
||||
tapList: [{
|
||||
text: "全部"
|
||||
@ -88,6 +90,9 @@
|
||||
|
||||
components: {
|
||||
|
||||
},
|
||||
onLoad() {
|
||||
this.appltType = uni.getstorageSync("appltType");
|
||||
},
|
||||
onShow() {
|
||||
this.getAllOrderList();
|
||||
|
@ -30,7 +30,7 @@
|
||||
</view> -->
|
||||
<u--textarea v-model="value1" placeholder="请输入内容"></u--textarea>
|
||||
</view>
|
||||
<view class="anniu">
|
||||
<view class="anniu" @click="editOilOrder">
|
||||
<text>提交</text>
|
||||
</view>
|
||||
|
||||
@ -75,6 +75,9 @@
|
||||
baseUrl: this.$baseUrl,
|
||||
}
|
||||
},
|
||||
onLoad(e){
|
||||
this.orderId = e.orderId
|
||||
},
|
||||
onShow() {
|
||||
this.getUser()
|
||||
},
|
||||
@ -82,6 +85,21 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
editOilOrder(){
|
||||
let remark = "评分:"+this.value+"分,"+this.value1
|
||||
request({
|
||||
url: 'business/oilOrder/editOilOrder',
|
||||
method: 'put',
|
||||
data: {"id":this.orderId,"remark":remark},
|
||||
}).then(res => {
|
||||
if (res.data==1) {
|
||||
uni.showToast({
|
||||
title:"评论成功"
|
||||
})
|
||||
this.goback()
|
||||
}
|
||||
})
|
||||
},
|
||||
// 查询当前登录用户信息
|
||||
getUser(){
|
||||
request({
|
||||
|
@ -48,15 +48,19 @@
|
||||
<view class="hui-size">储值卡或囤油卡消费金额</view>
|
||||
<view class="">{{oilOrder.orderAmount - oilOrder.discountAmount - oilOrder.payAmount}}元</view>
|
||||
</view>
|
||||
<view class="dis-fx">
|
||||
<view class="hui-size">加油数量</view>
|
||||
<view class="">{{oilOrder.oilNum}}升</view>
|
||||
</view>
|
||||
<!-- <view class="box-title">优惠信息</view> -->
|
||||
<view class="dis-fx" v-if="oilOrder.discountAmount>0">
|
||||
<view class="hui-size">优惠金额</view>
|
||||
<view class="">{{oilOrder.discountAmount}}元</view>
|
||||
</view>
|
||||
<view class="dis-fx">
|
||||
<view class="hui-size">加油数量</view>
|
||||
<view class="">{{oilOrder.oilNum}}升</view>
|
||||
</view>
|
||||
<view class="dis-fx" v-if="oilOrder.payTime">
|
||||
<view class="hui-size">交易时间</view>
|
||||
<view class="">{{oilOrder.payTime}}升</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="anniu" v-if="oilOrder.orderStatus=='paid' && oilOrder.remark" @click="gocomment()">
|
||||
@ -115,7 +119,7 @@
|
||||
},
|
||||
gocomment() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesMy/comment/comment'
|
||||
url: '/pagesMy/comment/comment?orderId=' + this.orderId
|
||||
})
|
||||
},
|
||||
goback() {
|
||||
|
@ -52,10 +52,15 @@
|
||||
</view>
|
||||
<view class="but-box" @click="goOrderInfo(item.id)">
|
||||
<view class="huis">订单时间</view>
|
||||
<view class="" v-if="item.orderStatus=='paid'">{{parseTime(item.payTime)}}</view>
|
||||
<view class="" v-if="item.orderStatus=='paid'">{{item.payTime}}</view>
|
||||
<view class="" v-else>{{item.createTime}}</view>
|
||||
</view>
|
||||
<view v-if="item.orderStatus=='paid' && item.remark" class="end-box" @click="goComment()">
|
||||
<view v-if="item.orderStatus=='paid' && item.remark==null" class="end-box" @click="goComment(item.id)">
|
||||
<view class="anniu">
|
||||
<text>去评价</text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.orderStatus=='paid' && item.remark==''" class="end-box" @click="goComment(item.id)">
|
||||
<view class="anniu">
|
||||
<text>去评价</text>
|
||||
</view>
|
||||
@ -171,6 +176,9 @@
|
||||
this.getStores()
|
||||
// this.getPayList()
|
||||
},
|
||||
onShow() {
|
||||
this.getTapIndex(0)
|
||||
},
|
||||
components: {
|
||||
|
||||
},
|
||||
@ -336,6 +344,9 @@
|
||||
})
|
||||
},
|
||||
getTapIndex(index) {
|
||||
this.orderList = []
|
||||
this.list = []
|
||||
this.total = 0
|
||||
this.tapindex = index
|
||||
if (this.tapindex == 0) {
|
||||
this.map = {
|
||||
@ -413,9 +424,9 @@
|
||||
url: '/pagesMy/details/details?orderId=' + orderId,
|
||||
})
|
||||
},
|
||||
goComment() {
|
||||
goComment(orderId) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesMy/comment/comment"
|
||||
url: "/pagesMy/comment/comment?orderId=" + orderId,
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
|
Loading…
Reference in New Issue
Block a user