|
|
@@ -90,8 +90,8 @@
|
|
|
<!--@deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput"-->
|
|
|
<!--@deleteInputValOne="deleteInputValOne" @initAllInputOne="initAllInputOne" @moveAllInputOne="moveAllInputOne">-->
|
|
|
<!--</allMoreSelectInput>-->
|
|
|
- <input v-model="customData.bigCount" @input="countWeight" @focus="customData.bigCount = null" type="number" />扎
|
|
|
- <input v-model="customData.smallCount" @input="countWeight" @focus="customData.smallCount = null" type="number" style="margin-left:24upx"/>支
|
|
|
+ <input v-model="customData.bigCount" :focus="isFocus" @input="countWeight" type="number" />扎
|
|
|
+ <input v-model="customData.smallCount" @input="countWeight" type="number" style="margin-left:24upx"/>支
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="select-cmd_bx">
|
|
|
@@ -150,6 +150,7 @@ export default {
|
|
|
return {
|
|
|
pageType: "purchase",
|
|
|
|
|
|
+ isFocus: false,
|
|
|
isAloneAllActive: false,
|
|
|
isAloneAllFocus: false,
|
|
|
|
|
|
@@ -204,8 +205,15 @@ export default {
|
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
|
this.isModel = true;
|
|
|
- console.log(info,'customData')
|
|
|
this.customData = info;
|
|
|
+ this.isFocus = false;
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.customData.itemPrice = this.customData.itemPrice==0?null:this.customData.itemPrice;
|
|
|
+ this.customData.realityWeight = this.customData.realityWeight==0?null:this.customData.realityWeight;
|
|
|
+ this.customData.smallCount = this.customData.smallCount==0?null:this.customData.smallCount;
|
|
|
+ this.customData.bigCount = this.customData.bigCount==0?null:this.customData.bigCount;
|
|
|
+ this.isFocus = true;
|
|
|
+ })
|
|
|
// this.$nextTick(()=>{
|
|
|
// // this.initAllInput();
|
|
|
// this.initAloneAllInput();
|