|
|
@@ -67,17 +67,9 @@
|
|
|
<view class="select-view">
|
|
|
<view class="select-cmd_bx">
|
|
|
<view class="num_bx">
|
|
|
- <view class="kc">
|
|
|
- 价格
|
|
|
- </view>
|
|
|
-<!-- <input-->
|
|
|
-<!-- :value="customData.itemPrice"-->
|
|
|
-<!-- @change="changePriceEvent"-->
|
|
|
-<!-- type="number"-->
|
|
|
-<!-- placeholder="请填写采购总价"-->
|
|
|
-<!-- />元-->
|
|
|
+ <view class="kc">价格</view>
|
|
|
<allSelectInput :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="customData.itemPrice" :placeholder="'请填写采购总价'"
|
|
|
- :width="400" :height="80" :fontSize="40"
|
|
|
+ :width="416" :height="80" :fontSize="40"
|
|
|
@deleteInputVal="deleteAloneInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAloneAllInput">
|
|
|
</allSelectInput> <text style="margin-left: 20rpx">元</text>
|
|
|
</view>
|
|
|
@@ -97,6 +89,15 @@
|
|
|
<!--<input v-model="customData.smallCount" type="number" style="margin-left:24upx"/>支-->
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="select-cmd_bx">
|
|
|
+ <view class="num_bx">
|
|
|
+ <view class="kc">重量</view>
|
|
|
+ <allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.weight" :placeholder="'公斤'"
|
|
|
+ :width="416" :height="80" :fontSize="40"
|
|
|
+ @deleteInputVal="deleteWeightInputVal" @initAllInput="initWeightAllInput" @moveAllInput="moveWeightAllInput">
|
|
|
+ </allSelectInput>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
@@ -146,12 +147,16 @@ export default {
|
|
|
isAloneAllActive: false,
|
|
|
isAloneAllFocus: false,
|
|
|
|
|
|
+ isWeightActive: false,
|
|
|
+ isWeightFocus: false,
|
|
|
+
|
|
|
isModel: false,
|
|
|
showSubmitModel: false,
|
|
|
customData: {
|
|
|
bigCount: 0,
|
|
|
smallCount: 0,
|
|
|
- itemPrice: 0
|
|
|
+ itemPrice: 0,
|
|
|
+ weight:0
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -164,11 +169,23 @@ export default {
|
|
|
if(e==''){return}
|
|
|
this.customData.itemPrice = e;
|
|
|
},
|
|
|
+ // 公斤离开全选input alone
|
|
|
+ moveWeightAllInput(e){
|
|
|
+ this.isWeightActive=false;
|
|
|
+ this.isWeightFocus=false;
|
|
|
+ if(e==''){return}
|
|
|
+ this.customData.weight = e;
|
|
|
+ },
|
|
|
//input点击删除按键
|
|
|
deleteAloneInputVal(){
|
|
|
this.isAloneAllActive=false;
|
|
|
this.customData.itemPrice = '';
|
|
|
},
|
|
|
+ //input重量点击删除按键
|
|
|
+ deleteWeightInputVal(){
|
|
|
+ this.isWeightActive=false;
|
|
|
+ this.customData.weight = '';
|
|
|
+ },
|
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
|
this.isModel = true;
|