|
@@ -163,6 +163,10 @@ export default {
|
|
|
addEvents() {
|
|
addEvents() {
|
|
|
const ratio = Number(this.info.ratio);
|
|
const ratio = Number(this.info.ratio);
|
|
|
if(this.offVerifyRepertory){
|
|
if(this.offVerifyRepertory){
|
|
|
|
|
+ if(this.info.stock<=0){
|
|
|
|
|
+ this.$msg("库存不足");
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
if (Number(this.bigCount) * ratio + Number(this.smallCount) >Number(this.info.bigNum) * ratio + Number(this.info.smallNum)) {
|
|
if (Number(this.bigCount) * ratio + Number(this.smallCount) >Number(this.info.bigNum) * ratio + Number(this.info.smallNum)) {
|
|
|
this.$msg("库存不足");
|
|
this.$msg("库存不足");
|
|
|
return
|
|
return
|