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

View File

@ -210,7 +210,7 @@
<el-tooltip placement="top"
v-if="scope.row.gasolineDiscount=='无优惠'">
<div slot="content">无优惠</div>
<el-tag type="warning">{{ scope.row.dieselDiscount }}</el-tag>>
<el-tag type="warning">{{ scope.row.gasolineDiscount }}</el-tag>>
</el-tooltip>
<span v-if="scope.row.gasolineRule!=null && scope.row.gasolineRule!=''">
<el-tooltip placement="top"
@ -1070,6 +1070,15 @@ export default {
],
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() {
this.form1 = {

View File

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

View File

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

View File

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