|
|
@@ -17,8 +17,7 @@
|
|
|
<view class="kc"></view>
|
|
|
<view class="num-open_bx" @click.stop>
|
|
|
<view class="open-bx warn">
|
|
|
- 剩
|
|
|
- <text style="margin-left:5upx;">{{xjItem.stock}}</text>
|
|
|
+ <text style="margin-left:5upx;">剩余 {{xjItem.stock}}</text>
|
|
|
<input class="change-input" placeholder-style="color:#CCCCCC" v-model="numList[xjItem.id]" type="number" placeholder="请填写数量" />
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -136,7 +135,8 @@ export default {
|
|
|
if(this.$util.isEmpty(this.remainNum[id])){
|
|
|
hasEmptyItem = true
|
|
|
}
|
|
|
- if(this.remainNum[id].stock != -1 && this.remainNum[id].stock < num){
|
|
|
+ if(this.remainNum[id] && Number(this.remainNum[id].stock) < Number(num)){
|
|
|
+ console.log(this.remainNum[id].stock+' | '+num)
|
|
|
hasErrorItem = true
|
|
|
hasErrorItemName = this.remainNum[id].name
|
|
|
hasErrorNum = num
|
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- if(totalNum > Number(this.option.stock)){
|
|
|
+ if(Number(totalNum) > Number(this.option.stock)){
|
|
|
this.$msg("数量超过总库存")
|
|
|
return false
|
|
|
}
|
|
|
@@ -365,7 +365,7 @@ export default {
|
|
|
& .open-bx {
|
|
|
color: #333333;
|
|
|
text{
|
|
|
- font-size: 24upx;
|
|
|
+ font-size:28upx;
|
|
|
}
|
|
|
*.warn {
|
|
|
color: $redColor;
|
|
|
@@ -375,7 +375,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.change-input {
|
|
|
- width: 285upx;
|
|
|
+ width: 250upx;
|
|
|
height: 60upx;
|
|
|
line-height: 60upx;
|
|
|
text-align: center;
|
|
|
@@ -385,8 +385,8 @@ export default {
|
|
|
font-size: 25upx;
|
|
|
color:#5e5d5d;
|
|
|
position: relative;
|
|
|
- left:120upx;
|
|
|
- top:-36upx;
|
|
|
+ left:140upx;
|
|
|
+ top:-45upx;
|
|
|
}
|
|
|
.footer-button{
|
|
|
height:120upx;
|