bug修改

This commit is contained in:
wangh 2024-01-08 10:07:07 +08:00
parent ca91fa5b5a
commit 0f37e8db23
11 changed files with 121 additions and 114 deletions

View File

@ -111,8 +111,8 @@
<el-table-column label="配送类型" align="center" prop="shippingType"> <el-table-column label="配送类型" align="center" prop="shippingType">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.shippingType=='门店自提'">{{scope.row.shippingType}}</el-tag> <el-tag v-if="scope.row.shippingType=='门店自提'">{{scope.row.shippingType}}</el-tag>
<el-tag type="success" v-if="scope.row.shippingType=='物流配送'">{{scope.row.shippingType}}</el-tag> <el-tag type="success" v-else-if="scope.row.shippingType=='物流配送'">{{scope.row.shippingType}}</el-tag>
<el-tag type="info" v-else>非实物兑换</el-tag> <el-tag type="info" v-else >非实物兑换</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="实付信息" align="center" prop="categoryName" > <el-table-column label="实付信息" align="center" prop="categoryName" >

View File

@ -166,14 +166,14 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="油品单价" prop="oilPrice"> <el-form-item label="油品单价" prop="oilPrice">
<el-input v-model="oilNumber.oilPrice" style="width: 217px"> <el-input v-model="oilNumber.oilPrice" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="国标价格" prop="gbPrice"> <el-form-item label="国标价格" prop="gbPrice">
<el-input v-model="oilNumber.gbPrice" style="width: 217px"> <el-input v-model="oilNumber.gbPrice" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -252,14 +252,14 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="油品单价" prop="oilPrice"> <el-form-item label="油品单价" prop="oilPrice">
<el-input v-model="oilNumber.oilPrice" style="width: 217px"> <el-input v-model="oilNumber.oilPrice" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="国标价格" prop="gbPrice"> <el-form-item label="国标价格" prop="gbPrice">
<el-input v-model="oilNumber.gbPrice" style="width: 217px"> <el-input v-model="oilNumber.gbPrice" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -316,17 +316,17 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="预设油站价" prop="presetOilPrices"> <el-form-item label="预设油站价" prop="presetOilPrices">
<el-input v-model="oilPresetPrices.presetOilPrices" style="width: 217px"> <el-input v-model="oilPresetPrices.presetOilPrices" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="当前国标价"> <el-form-item label="当前国标价">
<el-input v-model="oilPresetPrices.currentPetrolPrices" style="width: 217px" readonly disabled> <el-input v-model="oilPresetPrices.currentPetrolPrices" style="width: 217px" readonly disabled>
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="预设国标价" prop="presetGbPrice"> <el-form-item label="预设国标价" prop="presetGbPrice">
<el-input v-model="oilPresetPrices.presetGbPrice" style="width: 217px"> <el-input v-model="oilPresetPrices.presetGbPrice" pattern="^\d+(\.\d+)?$" style="width: 217px">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -371,11 +371,11 @@ import {
data() { data() {
var valiNumberPass = (rule, value, callback) => {// var valiNumberPass = (rule, value, callback) => {//
let reg = /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g; let reg = /^[+-]?(0|([1-9]\d*))(\.\d{1,2})?$/;
if (value === '') { if (value === '') {
callback(new Error('请输入内容')); callback(new Error('请输入内容'));
} else if (!reg.test(value)) { } else if (!reg.test(value)) {
callback(new Error('请输入数字')); callback(new Error('请输入数字,最多保留两位小数'));
} else { } else {
callback(); callback();
} }
@ -391,8 +391,6 @@ import {
], ],
presetOilPrices: [ presetOilPrices: [
{ required: true, validator:valiNumberPass, trigger: "blur" } { required: true, validator:valiNumberPass, trigger: "blur" }
// {required: true, message: '', trigger: 'blur'},
// { type: 'number', message: ''}
], ],
presetGbPrice: [ presetGbPrice: [
{ required: true, validator:valiNumberPass, trigger: "blur" } { required: true, validator:valiNumberPass, trigger: "blur" }
@ -413,7 +411,6 @@ import {
], ],
oilPrice: [ oilPrice: [
{ required: true, validator:valiNumberPass, trigger: "blur" } { required: true, validator:valiNumberPass, trigger: "blur" }
], ],
gbPrice: [ gbPrice: [
{ required: true, validator:valiNumberPass, trigger: "blur" } { required: true, validator:valiNumberPass, trigger: "blur" }
@ -503,8 +500,7 @@ import {
}, },
mounted() { mounted() {
}, },
methods:{ methods: {
getStatusText(data) { getStatusText(data) {
@ -516,7 +512,7 @@ import {
}, },
handleChange(value) { handleChange(value) {
console.log("this.oilNumber",this.oilNumber); console.log("this.oilNumber", this.oilNumber);
console.log(value); console.log(value);
}, },
// //
@ -554,7 +550,7 @@ import {
} }
}, },
res() { res() {
this.oilNumber={ this.oilNumber = {
oilType: '汽油', oilType: '汽油',
oilName: '', oilName: '',
oilPrice: '', oilPrice: '',
@ -566,10 +562,10 @@ import {
sort: '', sort: '',
remark: '', remark: '',
ifDelete: '', ifDelete: '',
allOil:'', allOil: '',
oilTypeT: '', oilTypeT: '',
oilNameT: '', oilNameT: '',
unit:'', // unit: '', //
} }
}, },
@ -597,39 +593,39 @@ import {
this.receivingUnitList = []; this.receivingUnitList = [];
var cla1 = { var cla1 = {
label : "英文简称", label: "英文简称",
value : -1, value: -1,
dis : true dis: true
} }
this.receivingUnitList.push(cla1); this.receivingUnitList.push(cla1);
// this.receivingUnitCN receivingUnitList // this.receivingUnitCN receivingUnitList
for (const argumentsKey in this.receivingUnitCN) { for (const argumentsKey in this.receivingUnitCN) {
const value = this.receivingUnitCN[argumentsKey]; const value = this.receivingUnitCN[argumentsKey];
var cla = { var cla = {
label : value.dictLabel, label: value.dictLabel,
value : value.dictValue, value: value.dictValue,
dis : false dis: false
} }
this.receivingUnitList.push(cla); this.receivingUnitList.push(cla);
} }
var cla2 = { var cla2 = {
label : "中文简称", label: "中文简称",
value : -2, value: -2,
dis : true dis: true
} }
cla2 = { cla2 = {
label : "中文简称", label: "中文简称",
value : -3, value: -3,
dis : true dis: true
} }
this.receivingUnitList.push(cla2); this.receivingUnitList.push(cla2);
for (const argumentsKey in this.receivingUnitEN) { for (const argumentsKey in this.receivingUnitEN) {
const value = this.receivingUnitEN[argumentsKey]; const value = this.receivingUnitEN[argumentsKey];
var cla = { var cla = {
label : value.dictLabel, label: value.dictLabel,
value : value.dictValue, value: value.dictValue,
dis : false dis: false
} }
this.receivingUnitList.push(cla); this.receivingUnitList.push(cla);
} }
@ -657,32 +653,31 @@ import {
}, },
// //
openOilNumberEdit(item) { openOilNumberEdit(item) {
this.oilNumber = {}; this.oilNumber = {};
let oil = item.allOil.split(' '); let oil = item.allOil.split(' ');
console.log("oilNameT",item) console.log("oilNameT", item)
// item.oilNameT = oil[1]; // item.oilNameT = oil[1];
// item.oilName = oil[1]; // item.oilName = oil[1];
this.oilNumber = item; this.oilNumber = item;
this.$set(this.oilNumber,'oilNameT',oil[1]) this.$set(this.oilNumber, 'oilNameT', oil[1])
this.oilTypeClick(item); this.oilTypeClick(item);
}, },
// //
insertOilNumberin(){ insertOilNumberin() {
this.$refs["oilNumberF"].validate(valid => { this.$refs["oilNumberF"].validate(valid => {
if (valid) { if (valid) {
insertOilNumber(this.oilNumber).then( response => { insertOilNumber(this.oilNumber).then(response => {
var list = response.data var list = response.data
if (list < 0) { if (list < 0) {
this.getList(); this.getList();
this.$modal.msgWarning("有重复油号"); this.$modal.msgWarning("有重复油号");
}else if(list > 0){ } else if (list > 0) {
this.$modal.msgSuccess("新增油号成功"); this.$modal.msgSuccess("新增油号成功");
this.dialogFormVisible = false, this.dialogFormVisible = false,
this.getList(); this.getList();
@ -696,41 +691,41 @@ import {
}, },
// //
async updateOilNumberin(){ async updateOilNumberin() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
var this_ = this var this_ = this
updateOilNumber(this_.oilNumber).then( response => { updateOilNumber(this_.oilNumber).then(response => {
var list = response.data var list = response.data
if ( list < 0) { if (list < 0) {
this.getList(); this.getList();
this.$modal.msgWarning("油品重复"); this.$modal.msgWarning("油品重复");
} else { } else {
this.getList(); this.getList();
this.dialogFormNumberEdit = false this.dialogFormNumberEdit = false
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
} }
}).catch(res=>{ }).catch(res => {
this.$modal.msgError("修改失败"); this.$modal.msgError("修改失败");
}); });
} }
}) })
}, },
// //
async getOilTypeList(data) { async getOilTypeList(data) {
var this_ = this var this_ = this
await dictSelect(data).then( response => { await dictSelect(data).then(response => {
var list = response.data var list = response.data
if (data == "oil_type") { if (data == "oil_type") {
this_.oilTypeList = list; this_.oilTypeList = list;
}else if (data == "pricingUnitCN"){ // } else if (data == "pricingUnitCN") { //
this_.receivingUnitCN = list; this_.receivingUnitCN = list;
}else if (data == "pricingUnitEN"){ // } else if (data == "pricingUnitEN") { //
this_.receivingUnitEN = list; this_.receivingUnitEN = list;
}else { } else {
this_.oilNameList = list; this_.oilNameList = list;
} }
}); });
@ -742,7 +737,7 @@ import {
oilType: data oilType: data
} }
var this_ = this var this_ = this
getOilNameApi(OilNumber).then( response => { getOilNameApi(OilNumber).then(response => {
var list = response.data var list = response.data
this_.oilNameList = list; this_.oilNameList = list;
}); });
@ -750,17 +745,17 @@ import {
/** /**
* 油价预设 * 油价预设
*/ */
// //
getOilPresetListin() { getOilPresetListin() {
var this_=this var this_ = this
getOilPresetList().then( response => { getOilPresetList().then(response => {
this.oilPresetPricesList = response.data.records this.oilPresetPricesList = response.data.records
this.oilPresetPricesList.forEach(oilNumber => { this.oilPresetPricesList.forEach(oilNumber => {
this.AllOilList.forEach(oil => { this.AllOilList.forEach(oil => {
if (parseInt(oilNumber.oilType) == oil.id) { if (parseInt(oilNumber.oilType) == oil.id) {
oilNumber.oilNameT = oil.oilType+' '+oil.oilName; oilNumber.oilNameT = oil.oilType + ' ' + oil.oilName;
} }
}); });
}); });
@ -769,8 +764,8 @@ import {
}, },
// //
getOilNameList() { getOilNameList() {
var this_=this var this_ = this
getOilNameListApi().then( response => { getOilNameListApi().then(response => {
var list = response.data var list = response.data
this_.selectOilTypeByPrice = list this_.selectOilTypeByPrice = list
}); });
@ -784,7 +779,7 @@ import {
}, },
// youjia1 // youjia1
insertOilPresePrices(){ insertOilPresePrices() {
this.$refs["priForm"].validate(valid => { this.$refs["priForm"].validate(valid => {
if (valid) { if (valid) {
this.dialogFormPricesAdd = false this.dialogFormPricesAdd = false
@ -800,7 +795,7 @@ import {
// //
deleteRow(data1, data2) { deleteRow(data1, data2) {
stopJobApi(data2).then( response => { stopJobApi(data2).then(response => {
this.$modal.msgSuccess("停止成功"); this.$modal.msgSuccess("停止成功");
this.getOilPresetListin(); this.getOilPresetListin();
@ -824,9 +819,9 @@ import {
this.oilNumber.oilName = this.oilNumber.oilNameT this.oilNumber.oilName = this.oilNumber.oilNameT
}, },
getSecondName(){ getSecondName() {
this.$forceUpdate(); this.$forceUpdate();
} },
} }
} }
</script> </script>

View File

@ -43,7 +43,7 @@ images.root=d:/rouyi/uploadPath
images.path=/static/uploadImages/ images.path=/static/uploadImages/
# \u4E0A\u4F20\u56FE\u7247\u670D\u52A1\u5668\u57DF\u540D # \u4E0A\u4F20\u56FE\u7247\u670D\u52A1\u5668\u57DF\u540D
images.upload.url=http://localhost:8080 images.upload.url=http://localhost:8008
# \u4E0A\u4F20\u56FE\u7247\u5141\u8BB8\u7684\u5927\u5C0F\uFF08\u5355\u4F4D\uFF1AMB\uFF09 # \u4E0A\u4F20\u56FE\u7247\u5141\u8BB8\u7684\u5927\u5C0F\uFF08\u5355\u4F4D\uFF1AMB\uFF09
images.upload.maxSize=5 images.upload.maxSize=5
@ -51,7 +51,7 @@ images.upload.maxSize=5
################## \u5B9A\u65F6\u811A\u672C\u914D\u7F6E ######################### ################## \u5B9A\u65F6\u811A\u672C\u914D\u7F6E #########################
# \u5B9A\u65F6\u53D1\u9001\u6D88\u606F # \u5B9A\u65F6\u53D1\u9001\u6D88\u606F
message.job.switch = 1 message.job.switch = 1
message.job.time = 0 0/1 * * * ? message.job.time = 0 0/1 * * * ?z
# \u5361\u5238\u5230\u671F\u5904\u7406 # \u5361\u5238\u5230\u671F\u5904\u7406
couponExpire.job.switch = 1 couponExpire.job.switch = 1

View File

@ -311,13 +311,12 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
cardFavorableRecord.setExchangeFrom("积分兑换"); cardFavorableRecord.setExchangeFrom("积分兑换");
cardFavorableRecordService.addCardFavorableRecord(cardFavorableRecord); cardFavorableRecordService.addCardFavorableRecord(cardFavorableRecord);
}else if(integralGift.getGiftType().equals("实物商品")) { }else if(integralGift.getGiftType().equals("实物商品")) {
// 查询礼品信息
// 修改商品库存并增加记录 // 修改商品库存并增加记录
LJGoodsDto goods = new LJGoodsDto(); LJGoodsDto goods = new LJGoodsDto();
goods.setId(integralGift.getGoodsId()); goods.setId(integralGift.getGoodsId());
// goods.setDocument(); goods.setDocument("积分兑换");
goods.setNumberOfChanges(-integralOrders.getExchangeQuantity());
goods.setGoodsNo(integralOrders.getOrderNumber());
ljGoodsService.editGoodsInventory(goods); ljGoodsService.editGoodsInventory(goods);
} }

View File

@ -28,7 +28,7 @@ public class ChainStoreInfoController extends BaseController {
* 服务对象 * 服务对象
*/ */
@Resource @Resource
private ChainStoreInfoService chainStoreInfoService; private ChainStoreInfoService chainStoreInfoService;
/** /**
* 分页查询所有数据 * 分页查询所有数据

View File

@ -81,6 +81,7 @@ public class MtStore extends BaseEntity implements Serializable {
@ApiModelProperty("福利信息") @ApiModelProperty("福利信息")
private String welfare; private String welfare;
private String ifDelete;
@ApiModelProperty("门头照") @ApiModelProperty("门头照")
private String doorstepPhoto; private String doorstepPhoto;

View File

@ -56,6 +56,7 @@ public class ChainStoreInfoServiceImpl extends ServiceImpl<ChainStoreInfoMapper,
if (ObjectUtil.isNotEmpty(chainStoreInfo.getStatus())) { if (ObjectUtil.isNotEmpty(chainStoreInfo.getStatus())) {
queryWrapper.eq(MtStore :: getStatus,chainStoreInfo.getStatus()); queryWrapper.eq(MtStore :: getStatus,chainStoreInfo.getStatus());
} }
queryWrapper.eq(MtStore::getIfDelete,0);
queryWrapper.eq(MtStore::getChainStoreId,it.getId()).orderByDesc(BaseEntity::getCreateTime); queryWrapper.eq(MtStore::getChainStoreId,it.getId()).orderByDesc(BaseEntity::getCreateTime);
List<MtStore> list = storeService.list(queryWrapper); List<MtStore> list = storeService.list(queryWrapper);
for (MtStore mtStore : list) { for (MtStore mtStore : list) {

View File

@ -37,7 +37,7 @@
border-radius: 5px;text-align: center"> border-radius: 5px;text-align: center">
<el-tooltip placement="top"> <el-tooltip placement="top">
<div slot="content"> <div slot="content">
会员等级{{ getGrade(member.gradeId) }} 会员等级{{ member.gradeId?getGrade(member.gradeId):'未知' }}
</div> </div>
<i class="el-icon-medal" style="font-size: 35px"></i> <i class="el-icon-medal" style="font-size: 35px"></i>
</el-tooltip> </el-tooltip>
@ -526,18 +526,25 @@ import {
}, },
// //
chooseUser(mobile,id){ chooseUser(mobile,id){
this.dialogVisiblevip = false console.log("this.member",this.member)
this.isMember = true; if (this.member.id) {
// this.map.payUser = mobile; this.dialogVisiblevip = false
// this.map.userId = id; this.isMember = true;
this.balance = this.member.cardBalance; // this.map.payUser = mobile;
if (this.balance>=(this.oilAmount - this.oilDiscount)){ // this.map.userId = id;
this.consumeAmount = this.oilAmount - this.oilDiscount; this.balance = this.member.cardBalance;
this.oilActualPay = 0; if (this.balance>=(this.oilAmount - this.oilDiscount)){
this.consumeAmount = this.oilAmount - this.oilDiscount;
this.oilActualPay = 0;
}else {
this.consumeAmount = this.balance;
this.oilActualPay = this.oilAmount - this.oilDiscount - this.balance;
}
}else { }else {
this.consumeAmount = this.balance; this.$message.error('请先选择会员');
this.oilActualPay = this.oilAmount - this.oilDiscount - this.balance;
} }
}, },
// //
handleChoose(data){ handleChoose(data){

View File

@ -196,7 +196,7 @@
let storeId = "19"; let storeId = "19";
let staffId = ""; let staffId = "";
if (str.includes("&")){ if (str.includes("&")) {
let arr = str.split("&"); let arr = str.split("&");
arr.forEach(item => { arr.forEach(item => {
if (item.includes("storeId")) { if (item.includes("storeId")) {
@ -205,7 +205,7 @@
staffId = item.split("=")[1] staffId = item.split("=")[1]
} }
}) })
}else{ } else {
storeId = str.split("=")[1] storeId = str.split("=")[1]
} }
@ -215,7 +215,7 @@
this.storeId = uni.getStorageSync("storeId") this.storeId = uni.getStorageSync("storeId")
this.staffId = uni.getStorageSync("inviteStaffId") this.staffId = uni.getStorageSync("inviteStaffId")
uni.showLoading({ uni.showLoading({
title:uni.getStorageSync("storeId") + "++" +uni.getStorageSync("inviteStaffId") + q title: uni.getStorageSync("storeId") + "++" + uni.getStorageSync("inviteStaffId") + q
}) })
this.getUserAuthority(); this.getUserAuthority();
this.getOilType(); this.getOilType();
@ -223,7 +223,7 @@
if (uni.getStorageSync("storeId")) { if (uni.getStorageSync("storeId")) {
this.storeId = uni.getStorageSync("storeId") this.storeId = uni.getStorageSync("storeId")
} else { } else {
let storeId = "34"; let storeId = "12";
uni.setStorageSync("storeId", storeId) uni.setStorageSync("storeId", storeId)
} }

View File

@ -156,6 +156,8 @@
<style scoped lang="scss"> <style scoped lang="scss">
.content { .content {
background: #f4f5f6; background: #f4f5f6;
width: 100%;
height: 100vh;
} }
.container { .container {

View File

@ -17,7 +17,7 @@
<view class="dis"> <view class="dis">
<!-- <uni-icons type="location-filled" size="20"></uni-icons> --> <!-- <uni-icons type="location-filled" size="20"></uni-icons> -->
<view class="boximg"> <view class="boximg">
<image src="../../static/logo.png" mode=""></image> <image :src="logo?baseUrl+logo:'../../static/logo.png'" mode=""></image>
</view> </view>
<view class=""> <view class="">
<view class="">{{storeName}}</view> <view class="">{{storeName}}</view>
@ -110,7 +110,7 @@
<view style="color: #9d9d9d; font-size: 12px; ">积分账户{{myPoints}}</view> <view style="color: #9d9d9d; font-size: 12px; ">积分账户{{myPoints}}</view>
</view> </view>
<view @click="choose()" class="andeniu"> <view @click="choose()" class="andeniu">
<text>选择</text> <text>兑换</text>
</view> </view>
</view> </view>
@ -133,6 +133,7 @@
goodsInfo: '', goodsInfo: '',
storeName: '', storeName: '',
storeAddress: '', storeAddress: '',
logo: '',
flag: false, // flag: false, //
title: '', title: '',
qhindex: 0, qhindex: 0,
@ -510,19 +511,19 @@
}, },
// storeid // storeid
getStroeById() { // getStroeById() {
request({ // request({
url: 'business/storeInformation/store/storeInfoUni', // url: 'business/storeInformation/store/storeInfoUni',
method: 'get', // method: 'get',
params: { // params: {
storeId: uni.getStorageSync('storeId') // storeId: uni.getStorageSync('storeId')
} // }
}).then((res) => { // }).then((res) => {
if (res.code == 200) { // if (res.code == 200) {
this.myPoints = res.data.points // this.myPoints = res.data.points
} // }
}) // })
}, // },
// storeId // storeId
getInfoByStoreId() { getInfoByStoreId() {
request({ request({
@ -535,6 +536,7 @@
if (res.code == 200) { if (res.code == 200) {
this.storeName = res.data.name this.storeName = res.data.name
this.storeAddress = res.data.address this.storeAddress = res.data.address
this.logo = res.data.logo
} }
}) })
}, },