|
@@ -41,8 +41,9 @@
|
|
<view v-if="item.status==1&&item.dealerScopeFlag==1" :style="{opacity:!item.edit?1:0,width:!item.edit?'auto':0}">
|
|
<view v-if="item.status==1&&item.dealerScopeFlag==1" :style="{opacity:!item.edit?1:0,width:!item.edit?'auto':0}">
|
|
<view class="flex align_center qty-box">
|
|
<view class="flex align_center qty-box">
|
|
<view class="qty-btn" @click="changeQty(item.qty-1,item,1)" :class="(item.qty <= 1)?'qty-disabled':''">-</view>
|
|
<view class="qty-btn" @click="changeQty(item.qty-1,item,1)" :class="(item.qty <= 1)?'qty-disabled':''">-</view>
|
|
- <view class="qty-num" :style="{width:Number(item.qty).toString().length*8+10+'px'}">
|
|
|
|
- <input type="number" @input="inputQty(item)" @blur="changeQty(item.qty,item,0)" v-model="item.qty"/>
|
|
|
|
|
|
+ <view class="qty-num" @click="editQty(item)" :style="{width:Number(item.qty).toString().length*8+10+'px'}">
|
|
|
|
+ <!-- <input type="number" @input="inputQty(item)" @blur="changeQty(item.qty,item,0)" v-model="item.qty"/> -->
|
|
|
|
+ {{item.qty}}
|
|
</view>
|
|
</view>
|
|
<view class="qty-btn" @click="changeQty(item.qty+1,item,1)" :class="(item.qty >= 999)?'qty-disabled':''">+</view>
|
|
<view class="qty-btn" @click="changeQty(item.qty+1,item,1)" :class="(item.qty >= 999)?'qty-disabled':''">+</view>
|
|
</view>
|
|
</view>
|
|
@@ -137,6 +138,9 @@
|
|
if(item.edit || (item.status==1&&item.dealerScopeFlag==1)){
|
|
if(item.edit || (item.status==1&&item.dealerScopeFlag==1)){
|
|
this.$emit('check',item.cartSn)
|
|
this.$emit('check',item.cartSn)
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ editQty(item){
|
|
|
|
+ this.$emit('editQty',item)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -164,6 +168,7 @@
|
|
height: 22px;
|
|
height: 22px;
|
|
line-height: 22px;
|
|
line-height: 22px;
|
|
padding:0 3px;
|
|
padding:0 3px;
|
|
|
|
+ text-align: center;
|
|
input{
|
|
input{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|