This commit is contained in:
cun-nan 2024-03-01 17:55:13 +08:00
parent ec24649985
commit 24818cb60e
5 changed files with 24 additions and 11 deletions

View File

@ -469,15 +469,14 @@ export default {
selectSupplier(data){ selectSupplier(data){
this.supplier = data.name; this.supplier = data.name;
this.form1.supplierId = data.id this.form1.supplierId = data.id
this.$set(this.form1,'supplierId',data.id)
// this.$forceUpdate() // this.$forceUpdate()
}, },
addSupplier(val){ addSupplier(val){
// console.log(val,222)
if (!val){ if (!val){
return; return;
} }
addSupplier({name:val,remark:"添加商品自动添加",ifDelete:'0'}).then(async res => { addSupplier({name:val,remark:"添加商品自动添加",ifDelete:'0'}).then(async res => {
// console.log(res)
if (res.data == 1) { if (res.data == 1) {
this.supplier = val; this.supplier = val;
this.$modal.msgSuccess("已为您自动添加此供应商") this.$modal.msgSuccess("已为您自动添加此供应商")
@ -487,7 +486,6 @@ export default {
}, },
// //
submitForm1: function() { submitForm1: function() {
console.log(this.form1.supplierId,8274)
this.$refs["form1"].validate(valid => { this.$refs["form1"].validate(valid => {
if (valid) { if (valid) {
if (this.form1) { if (this.form1) {

View File

@ -210,7 +210,7 @@
<el-tooltip placement="top" <el-tooltip placement="top"
v-if="scope.row.gasolineDiscount=='无优惠'"> v-if="scope.row.gasolineDiscount=='无优惠'">
<div slot="content">无优惠</div> <div slot="content">无优惠</div>
<el-tag type="warning">{{ scope.row.dieselDiscount }}</el-tag>> <el-tag type="warning">{{ scope.row.gasolineDiscount }}</el-tag>>
</el-tooltip> </el-tooltip>
<span v-if="scope.row.gasolineRule!=null && scope.row.gasolineRule!=''"> <span v-if="scope.row.gasolineRule!=null && scope.row.gasolineRule!=''">
<el-tooltip placement="top" <el-tooltip placement="top"
@ -1070,6 +1070,15 @@ export default {
], ],
this.resetForm("form"); this.resetForm("form");
}, },
//
handleDelete1(file){
// const findex = this.fileList.map(f => f.name).indexOf(file.name);
// if (findex > -1) {
// this.fileList.splice(findex, 1);
// this.$emit("input", this.listToString(this.fileList));
// }
console.log(111)
},
// //
reset1() { reset1() {
this.form1 = { this.form1 = {

View File

@ -53,13 +53,13 @@
<where> <where>
mg.store_id = #{goods.storeId} and mg.if_delete = '0' mg.store_id = #{goods.storeId} and mg.if_delete = '0'
<if test="goods.cvsGoodId != null and goods.cvsGoodId != ''"> <if test="goods.cvsGoodId != null and goods.cvsGoodId != ''">
and cvs_good_id = #{goods.cvsGoodId} and mg.cvs_good_id = #{goods.cvsGoodId}
</if> </if>
<if test="goods.supplierId != null and goods.supplierId != ''"> <if test="goods.supplierId != null and goods.supplierId != ''">
and supplier_id = #{goods.supplierId} and mg.supplier_id = #{goods.supplierId}
</if> </if>
</where> </where>
order by sort order by mg.sort
</select> </select>

View File

@ -171,7 +171,7 @@ public class CertifiedMemberServiceImpl extends ServiceImpl<CertifiedMemberMappe
queryWrapper.eq("mobile",certifiedMember.getMobile()); queryWrapper.eq("mobile",certifiedMember.getMobile());
queryWrapper.eq("store_id",nowAccountInfo.getStoreId()); queryWrapper.eq("store_id",nowAccountInfo.getStoreId());
CertifiedMember member = baseMapper.selectOne(queryWrapper); CertifiedMember member = baseMapper.selectOne(queryWrapper);
if (ObjectUtil.isNotEmpty(member)){ if (member.getId()!=certifiedMember.getId()){
row = 0; row = 0;
return row; return row;
} }

View File

@ -89,7 +89,7 @@
</div> </div>
<div>-{{ fullReduction.toFixed(2) }}</div> <div>-{{ fullReduction.toFixed(2) }}</div>
</div> </div>
<div class="center-left-hj" v-show="isMember && gradeDiscount.length>0"> <div class="center-left-hj" v-show="isMember">
<div> <div>
<el-popover <el-popover
placement="bottom-start" placement="bottom-start"
@ -2885,6 +2885,7 @@
_this.gradeDiscount = []; _this.gradeDiscount = [];
if (response.data) { if (response.data) {
_this.oilOrder.forEach(item => { _this.oilOrder.forEach(item => {
let discount = {type:"",discount:0,oilName:item.oilName,gunName:item.gunName} let discount = {type:"",discount:0,oilName:item.oilName,gunName:item.gunName}
if (item.type == "汽油") { if (item.type == "汽油") {
if (response.data.fixingLevel){ if (response.data.fixingLevel){
@ -3100,6 +3101,7 @@
// this.getCoupon(); // this.getCoupon();
// } // }
// } // }
await this.getGrade(this.member.id,this.member.gradeId)
if (this.balance>0 && this.oilAmount>0 && !this.isOilStorageCard){ if (this.balance>0 && this.oilAmount>0 && !this.isOilStorageCard){
this.checkAll4 = true this.checkAll4 = true
if (this.goodsOrder.length==0){ if (this.goodsOrder.length==0){
@ -3107,7 +3109,6 @@
} }
this.countAmountFull() this.countAmountFull()
} }
await this.getGrade(this.member.id,this.member.gradeId)
if (!this.isFixingLevel && !this.isOilStorageCard){ if (!this.isFixingLevel && !this.isOilStorageCard){
await this.getOilCoupon() await this.getOilCoupon()
} }
@ -3611,7 +3612,7 @@
async getOilOrder(){ async getOilOrder(){
this.dialogVisibleamount = false this.dialogVisibleamount = false
this.form.oilType = this.oilNameID; this.form.oilType = this.oilNameID;
// this.form.type = this.type; this.form.type = this.type;
let amount = this.form.amount || 0; let amount = this.form.amount || 0;
// //
if (this.select == "元"){ if (this.select == "元"){
@ -3622,6 +3623,7 @@
this.form.amount = (this.form.oilPrice * amount).toFixed(2) this.form.amount = (this.form.oilPrice * amount).toFixed(2)
} }
if (this.form.tankId)
// //
await getOilTank(this.form.tankId).then(async res => { await getOilTank(this.form.tankId).then(async res => {
if (res.data.storedQuantity-this.form.liters<0){ if (res.data.storedQuantity-this.form.liters<0){
@ -3791,6 +3793,10 @@
// //
getUser(){ getUser(){
if(this.select1=="会员手机号"){ if(this.select1=="会员手机号"){
if (!this.userNo) {
this.$message.error("请先输入手机号")
return;
}
getUserInfoMobile({mobile:this.userNo}).then( response => { getUserInfoMobile({mobile:this.userNo}).then( response => {
if (response.data!=null){ if (response.data!=null){
this.member = response.data this.member = response.data