|
|
@@ -29,10 +29,10 @@
|
|
|
<view class="price" v-else></view>
|
|
|
|
|
|
<view class="open-bx" style="padding-bottom: 40rpx" >
|
|
|
- <allSelectInput :inputType="'digit'" :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="changeAutoPrice" :placeholder="'自动调价'"
|
|
|
- @deleteInputVal="deleteInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAllInput">
|
|
|
- </allSelectInput>
|
|
|
- <!--<input class="change-input" v-model="changeAutoPrice" type="digit" placeholder="自动调价" selection-start="0" selection-end="1" />-->
|
|
|
+ <!--<allSelectInput :inputType="'digit'" :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="changeAutoPrice" :placeholder="'自动调价'"-->
|
|
|
+ <!--@deleteInputVal="deleteInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAllInput">-->
|
|
|
+ <!--</allSelectInput>-->
|
|
|
+ <input class="change-input" @tap.stop="" @focus="changeAutoPrice = null" 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>
|
|
|
@@ -92,6 +92,10 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ offVerifyRepertory: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -149,11 +153,12 @@ export default {
|
|
|
},
|
|
|
addEvents() {
|
|
|
const ratio = Number(this.info.ratio);
|
|
|
- // if(this.offVerifyRepertory){ }
|
|
|
+ if(this.offVerifyRepertory){
|
|
|
if (Number(this.bigCount) * ratio + Number(this.smallCount) >Number(this.info.bigNum) * ratio + Number(this.info.smallNum)) {
|
|
|
this.$msg("库存不足");
|
|
|
return
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
this.animationFun('add');
|
|
|
// let params = {
|
|
|
@@ -183,7 +188,10 @@ export default {
|
|
|
},
|
|
|
customNum() {
|
|
|
// if(!this.info.bigCount){
|
|
|
- if(this.info.stock<=0){uni.showToast({title:'库存不足',icon:'none'});return;}
|
|
|
+ if(this.offVerifyRepertory){
|
|
|
+ if(this.info.stock<=0){uni.showToast({title:'库存不足',icon:'none'});return;}
|
|
|
+ }
|
|
|
+
|
|
|
if(!this.bigCount && !this.smallCount){
|
|
|
let params = {
|
|
|
...this.info,
|