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