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:{ 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();
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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