|
|
@@ -20,7 +20,7 @@
|
|
|
<view class="kc">剩 {{xjItem.stock ? xjItem.stock : 0}}</view>
|
|
|
<view class="num-open_bx">
|
|
|
<view class="open-bx warn">
|
|
|
- 数量:<input class="change-input" placeholder-style="color:#CCCCCC" v-model="numList[xjItem.id]" type="digit" placeholder="请填写" />
|
|
|
+ 数量:<input class="change-input" placeholder-style="color:#CCCCCC" v-model="numList[xjItem.id]" type="digit" placeholder="请填写" @focus="handleInputFocus(xjItem.id)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -86,6 +86,9 @@ export default {
|
|
|
let productId = this.option.productId ? this.option.productId : 0
|
|
|
this.$util.pageTo({url:'/admin/item/xjSelect?itemId='+productId})
|
|
|
},
|
|
|
+ handleInputFocus(itemId){
|
|
|
+ this.$set(this.numList, itemId, '')
|
|
|
+ },
|
|
|
clearXj(){
|
|
|
let that = this
|
|
|
this.$util.confirmModal({content:'确认全部清除?'},() => {
|