bug修改
This commit is contained in:
parent
ba0c5935ac
commit
eac375458b
@ -447,6 +447,7 @@ import {
|
|||||||
oilNumber:{
|
oilNumber:{
|
||||||
oilType: '汽油',
|
oilType: '汽油',
|
||||||
oilName: '',
|
oilName: '',
|
||||||
|
numberId: '',
|
||||||
oilPrice: '',
|
oilPrice: '',
|
||||||
gbPrice: '',
|
gbPrice: '',
|
||||||
receivingUnits: '元',
|
receivingUnits: '元',
|
||||||
@ -636,7 +637,7 @@ import {
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 选择油品类型之后触发
|
// 选择油品类型之后触发
|
||||||
oilTypeClick(data) {
|
oilTypeClick(data) {
|
||||||
@ -646,12 +647,12 @@ import {
|
|||||||
// this.oilNumber.oilNameT = ''
|
// this.oilNumber.oilNameT = ''
|
||||||
|
|
||||||
const selectedValue = this.oilNumber.oilType;
|
const selectedValue = this.oilNumber.oilType;
|
||||||
|
this.$forceUpdate();
|
||||||
// this.getOilTypeList(selectedValue)
|
// this.getOilTypeList(selectedValue)
|
||||||
this.getOilName(selectedValue)
|
this.getOilName(selectedValue)
|
||||||
},
|
},
|
||||||
|
|
||||||
oilTypeClick2() {
|
oilTypeClick2() {
|
||||||
console.log("hellooooooooooooooooooo")
|
|
||||||
this.oilNumber.oilName = ''
|
this.oilNumber.oilName = ''
|
||||||
this.oilNumber.oilNameT = ''
|
this.oilNumber.oilNameT = ''
|
||||||
},
|
},
|
||||||
@ -699,6 +700,7 @@ import {
|
|||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
async updateOilNumberin(){
|
async updateOilNumberin(){
|
||||||
|
console.log
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
var this_ = this
|
var this_ = this
|
||||||
@ -828,7 +830,7 @@ import {
|
|||||||
changeOilName() {
|
changeOilName() {
|
||||||
this.oilNumber.oilName = this.oilNumber.oilNameT
|
this.oilNumber.oilName = this.oilNumber.oilNameT
|
||||||
},
|
},
|
||||||
|
|
||||||
getSecondName(){
|
getSecondName(){
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
|
@ -116,19 +116,20 @@
|
|||||||
width="160"
|
width="160"
|
||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
>
|
>
|
||||||
|
<!-- v-hasPermi="['system:account:edit']" -->
|
||||||
|
<!-- v-hasPermi="['system:account:delete']" -->
|
||||||
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-hasPermi="['system:account:edit']"
|
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
v-hasPermi="['system:account:delete']"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:account:resetPwd', 'system:account:edit']">
|
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:account:resetPwd', 'system:account:edit']">
|
||||||
|
@ -275,7 +275,8 @@
|
|||||||
return{
|
return{
|
||||||
dataForm:{coverImage:''},
|
dataForm:{coverImage:''},
|
||||||
// 上传地址
|
// 上传地址
|
||||||
uploadAction: 'http://192.168.0.178:8008/backendApi/file/upload',
|
// uploadAction: 'http://192.168.0.178:8008/backendApi/file/upload',
|
||||||
|
uploadAction: process.env.VUE_APP_SERVER_URL+'/backendApi/file/upload',
|
||||||
uploadHeader: { 'Access-Token' : getToken() },
|
uploadHeader: { 'Access-Token' : getToken() },
|
||||||
// 隐藏上传
|
// 隐藏上传
|
||||||
hideUpload: false,
|
hideUpload: false,
|
||||||
|
@ -332,8 +332,8 @@ public class FyPayServiceImpl implements FyPayService {
|
|||||||
Map<String, Object> res = new HashMap<>();
|
Map<String, Object> res = new HashMap<>();
|
||||||
try {
|
try {
|
||||||
// 查询商户配置信息
|
// 查询商户配置信息
|
||||||
// MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(receiveParameter.getStoreId());
|
MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(receiveParameter.getStoreId());
|
||||||
MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(16);
|
// MerchantConfig merchantConfig = merchantConfigService.selectMeChByIdIsUse(16);
|
||||||
// 查询用户信息
|
// 查询用户信息
|
||||||
LJUserVo userVo = userService.selectUserById(receiveParameter.getUserId());
|
LJUserVo userVo = userService.selectUserById(receiveParameter.getUserId());
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@
|
|||||||
left join integral_gift ig ON io.gift_id = ig.id
|
left join integral_gift ig ON io.gift_id = ig.id
|
||||||
left join mt_user_express_address ea ON io.address_id = ea.id
|
left join mt_user_express_address ea ON io.address_id = ea.id
|
||||||
<where>
|
<where>
|
||||||
|
io.store_id = #{integralOrders.storeId}
|
||||||
|
|
||||||
<if test="integralOrders.giftName != null">
|
<if test="integralOrders.giftName != null">
|
||||||
and ig.gift_name like CONCAT ('%',#{integralOrders.giftName},'%')
|
and ig.gift_name like CONCAT ('%',#{integralOrders.giftName},'%')
|
||||||
|
@ -344,6 +344,7 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
|
|||||||
|
|
||||||
integralOrders.setOrderNumber(orderNo);
|
integralOrders.setOrderNumber(orderNo);
|
||||||
integralOrders.setStatus(status);
|
integralOrders.setStatus(status);
|
||||||
|
integralOrders.setUserId(nowAccountInfo.getId());
|
||||||
}
|
}
|
||||||
integralOrdersDao.insertBatch(integralOrdersList.getIntegralOrdersList());
|
integralOrdersDao.insertBatch(integralOrdersList.getIntegralOrdersList());
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
let str = q.split("?")[1];
|
let str = q.split("?")[1];
|
||||||
let arr = str.split("&");
|
let arr = str.split("&");
|
||||||
|
|
||||||
let storeId = "12";
|
let storeId = "18";
|
||||||
|
|
||||||
let staffId = "";
|
let staffId = "";
|
||||||
arr.forEach(item => {
|
arr.forEach(item => {
|
||||||
@ -202,7 +202,7 @@
|
|||||||
this.staffId = uni.getStorageSync("inviteStaffId")
|
this.staffId = uni.getStorageSync("inviteStaffId")
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
let storeId = "12";
|
let storeId = "18";
|
||||||
|
|
||||||
uni.setStorageSync("storeId", storeId)
|
uni.setStorageSync("storeId", storeId)
|
||||||
this.storeId = uni.getStorageSync("storeId")
|
this.storeId = uni.getStorageSync("storeId")
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import request from '../../utils/request'
|
import request from '../../utils/request'
|
||||||
|
import BigNumber from 'bignumber.js'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
|
||||||
@ -247,7 +247,7 @@
|
|||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
request({
|
request({
|
||||||
url: "business/integral/integralOrders/editPayStatus",
|
url: "business/integral/integralOrders/editPayStatus",
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: {
|
data: {
|
||||||
"orderNo": res.data.data.orderNo,
|
"orderNo": res.data.data.orderNo,
|
||||||
"status": "payFail",
|
"status": "payFail",
|
||||||
@ -340,6 +340,7 @@
|
|||||||
},
|
},
|
||||||
// 金额计算
|
// 金额计算
|
||||||
allData() {
|
allData() {
|
||||||
|
|
||||||
this.allPoints = 0
|
this.allPoints = 0
|
||||||
this.allAmout = 0
|
this.allAmout = 0
|
||||||
let allPoints = new BigNumber(0)
|
let allPoints = new BigNumber(0)
|
||||||
@ -370,24 +371,22 @@
|
|||||||
// let markPurchases = new BigNumber(data.markPurchases);
|
// let markPurchases = new BigNumber(data.markPurchases);
|
||||||
// let exchangePoints = allPoints.multipliedBy(new BigNumber(data.exchangePoints));
|
// let exchangePoints = allPoints.multipliedBy(new BigNumber(data.exchangePoints));
|
||||||
// 拿到总的积分
|
// 拿到总的积分
|
||||||
this.myPoints = this.myPoints ? this.member.points : 0
|
this.myPoints = this.myPoints ? this.myPoints : 0
|
||||||
let points = this.myPoints - allPoints; // 使用 toNumber() 获取 BigNumber 的数值
|
let points = this.myPoints - allPoints; // 使用 toNumber() 获取 BigNumber 的数值
|
||||||
|
console.log("myPoints", this.myPoints)
|
||||||
|
console.log("points", points)
|
||||||
// 以及分等一多少
|
// 以及分等一多少
|
||||||
if (points < 0) {
|
if (points <= 0) {
|
||||||
|
|
||||||
// 计算需要的金额
|
// 计算需要的金额
|
||||||
points = Math.abs(points);
|
points = Math.abs(points);
|
||||||
|
|
||||||
|
|
||||||
this.allAmout = points * this.goodsInfo.moneyRatio.toFixed(2); // 直接使用 JavaScript 中的乘法
|
this.allAmout = points * this.goodsInfo.moneyRatio.toFixed(2); // 直接使用 JavaScript 中的乘法
|
||||||
// this.allAmout = allAmout.toFixed(2);
|
this.allPoints = this.myPoints;
|
||||||
// this.allAmout = Number(allAmout).toFixed(2);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.allAmout = 0
|
this.allAmout = 0
|
||||||
this.allPoints = exchangePoints.toNumber();
|
this.allPoints = allPoints;
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -426,6 +425,7 @@
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.myPoints = res.data.points
|
this.myPoints = res.data.points
|
||||||
|
this.allData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user