|
|
@@ -18,7 +18,10 @@
|
|
|
<i class="iconfont iconzeng" :class="addAnimationData?'animation':''" @click="addEvent"></i>
|
|
|
</view>
|
|
|
<view class="open-bx" v-else-if="type == COMMODITY_TYPE.CHANGE">
|
|
|
- <input class="change-input" v-model="changeAutoPrice" type="digit" placeholder="自动调价" selection-start="0" selection-end="1" />
|
|
|
+ <allSelectInput :isActive="isActive" :isFocus="isFocus" :value="changeAutoPrice"
|
|
|
+ @deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput">
|
|
|
+ </allSelectInput>
|
|
|
+ <!--<input class="change-input" v-model="changeAutoPrice" type="digit" placeholder="自动调价" selection-start="0" selection-end="1" />-->
|
|
|
<i :class="isShowSucceed?'position iconfont iconjihuo':'position'" ></i>
|
|
|
<view class="btn-box" @click="changePriceEvent">确定</view>
|
|
|
</view>
|
|
|
@@ -30,15 +33,17 @@
|
|
|
<script>
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import AppImg from "@/components/app-img";
|
|
|
+import allSelectInput from "@/components/module/allSelectInput";
|
|
|
import { autoPriceByIdApi, changePriceByIdApi } from '@/api/product/index'
|
|
|
import productMins from "@/mixins/productContrapose";
|
|
|
import animationMins from "@/mixins/animation";
|
|
|
+import allSelectInputMins from "@/mixins/allSelectInput";
|
|
|
export default {
|
|
|
name: "Commodity",
|
|
|
components: {
|
|
|
- AppImg
|
|
|
+ AppImg,allSelectInput
|
|
|
},
|
|
|
- mixins: [productMins,animationMins],
|
|
|
+ mixins: [productMins,animationMins,allSelectInputMins],
|
|
|
props: {
|
|
|
info: {
|
|
|
required: true,
|