bug修改

This commit is contained in:
wangh 2024-01-02 14:24:47 +08:00
parent ba0c5935ac
commit eac375458b
8 changed files with 26 additions and 20 deletions

View File

@ -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

View File

@ -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']">

View File

@ -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,

View File

@ -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());

View File

@ -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},'%')

View File

@ -344,6 +344,7 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
integralOrders.setOrderNumber(orderNo);
integralOrders.setStatus(status);
integralOrders.setUserId(nowAccountInfo.getId());
}
integralOrdersDao.insertBatch(integralOrdersList.getIntegralOrdersList());

View File

@ -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")

View File

@ -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()
}
})
},