|
|
@@ -76,8 +76,17 @@
|
|
|
<view class="select-cmd_bx" v-if="customData">
|
|
|
<view class="kc"> 库存 {{ customData.stock }} </view>
|
|
|
<view class="num_bx">
|
|
|
- <input v-model="customData.bigCount" type="number" />扎
|
|
|
- <input v-model="customData.smallCount" type="number" style="margin-left:24upx" />支
|
|
|
+ <allMoreSelectInput
|
|
|
+ :isActive="isActive" :isFocus="isFocus" :value="customData.bigCount"
|
|
|
+ :isActiveOne="isActiveOne" :isFocusOne="isFocusOne" :valueOne="customData.smallCount"
|
|
|
+ @deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput"
|
|
|
+ @deleteInputValOne="deleteInputValOne" @initAllInputOne="initAllInputOne" @moveAllInputOne="moveAllInputOne">
|
|
|
+ </allMoreSelectInput>
|
|
|
+ <!--<allMoreSelectInput :isActive="isActive" :isFocus="isFocus" :value="customData.smallCount"-->
|
|
|
+ <!--@deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput">-->
|
|
|
+ <!--</allMoreSelectInput>支-->
|
|
|
+ <!--<input v-model="customData.bigCount" type="number" />扎-->
|
|
|
+ <!--<input v-model="customData.smallCount" type="number" style="margin-left:24upx" />支-->
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -104,6 +113,9 @@ import Commondity from "@/components/module/app-commodity";
|
|
|
import FooterCart from "@/components/module/app-footer-cart";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
|
|
|
+import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
|
+import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
+
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/product";
|
|
|
export default {
|
|
|
@@ -114,9 +126,9 @@ export default {
|
|
|
AppWrapperEmpty,
|
|
|
Commondity,
|
|
|
ModalModule,
|
|
|
- FooterCart
|
|
|
+ FooterCart,allMoreSelectInput
|
|
|
},
|
|
|
- mixins: [productMins],
|
|
|
+ mixins: [productMins,allMoreSelectInputMins],
|
|
|
data() {
|
|
|
return {
|
|
|
COMMODITY_TYPE,
|
|
|
@@ -165,6 +177,8 @@ export default {
|
|
|
this.customData = {};
|
|
|
}, // 取消 确认
|
|
|
affirm(val) {
|
|
|
+ this.isFocus = false;
|
|
|
+ this.isFocusOne = false;
|
|
|
if (val.index === 0) {
|
|
|
this.modalCancel();
|
|
|
} else {
|