10.9
This commit is contained in:
parent
94fb9e5b34
commit
f438ff47b8
@ -602,7 +602,6 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
changeSeekZero(){
|
changeSeekZero(){
|
||||||
|
|
||||||
this.seekZero = (this.authCode - this.allAmout).toFixed(2)
|
this.seekZero = (this.authCode - this.allAmout).toFixed(2)
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -660,13 +659,11 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (data.exchangeMethod == "积分+加钱购" || flag) {
|
if (data.exchangeMethod == "积分+加钱购" || flag) {
|
||||||
flag = false
|
flag = false
|
||||||
this.shoppingCart.forEach(res => {
|
this.shoppingCart.forEach(res => {
|
||||||
if (res.id != data.id ) {
|
if (res.id != data.id ) {
|
||||||
flag = true
|
flag = true
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -676,8 +673,6 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (data.markPurchases) {
|
if (data.markPurchases) {
|
||||||
if (data.markPurchases>=data.remainingInventory){
|
if (data.markPurchases>=data.remainingInventory){
|
||||||
this.$message.error('库存不足');
|
this.$message.error('库存不足');
|
||||||
@ -693,16 +688,8 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
}
|
}
|
||||||
this.markPurchasesAll++
|
this.markPurchasesAll++
|
||||||
console.log("addGift",data)
|
console.log("addGift",data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 计算总额
|
// 计算总额
|
||||||
this.dataChange(data);
|
this.dataChange(data);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (this.shoppingCart.length === 0) {
|
if (this.shoppingCart.length === 0) {
|
||||||
this.shoppingCart.push(data);
|
this.shoppingCart.push(data);
|
||||||
} else {
|
} else {
|
||||||
@ -717,8 +704,6 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.allData();
|
this.allData();
|
||||||
|
|
||||||
|
|
||||||
// 计算余额是否足够
|
// 计算余额是否足够
|
||||||
},
|
},
|
||||||
handleClick(tab, event){
|
handleClick(tab, event){
|
||||||
@ -742,7 +727,6 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
this.$message.error('请先选择会员');
|
this.$message.error('请先选择会员');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -1801,12 +1785,11 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 50px;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
border: 1px solid #13ce66;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
background: #13ce66;
|
background: linear-gradient( 312deg, #9CDCA0 0%, #5BC557 100%);
|
||||||
|
border-radius: 6px 6px 6px 6px;
|
||||||
color: white;
|
color: white;
|
||||||
margin: 8px 10px;
|
margin: 8px 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -1818,9 +1801,9 @@ import {getReturnCode, printIntegralReport, sendPrintIndex} from "@/api/print";
|
|||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px 25px;
|
padding: 10px 25px;
|
||||||
border: 1px solid #FF9655;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
background: #FF9655;
|
background: linear-gradient( 312deg, #70CAFD 0%, #0BADFE 100%, #02AAFE 100%);
|
||||||
|
border-radius: 6px 6px 6px 6px;
|
||||||
color: white;
|
color: white;
|
||||||
margin: 8px 10px;
|
margin: 8px 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
Loading…
Reference in New Issue
Block a user