|
|
@@ -45,10 +45,10 @@
|
|
|
<input class="change-input" @click.stop @blur="savePrice" placeholder-style="color:#CCCCCC" v-model="modifyPrice" type="digit" placeholder="批发价" />
|
|
|
</view>
|
|
|
<view class="sk-price-area">
|
|
|
- <input class="change-input" @click.stop @blur="saveSkPrice" placeholder-style="color:#CCCCCC" v-model="skModifyPrice" type="digit" placeholder="零售价" />
|
|
|
+ <input class="change-input" @click.stop @blur="savePrice" placeholder-style="color:#CCCCCC" v-model="skModifyPrice" type="digit" placeholder="零售价" />
|
|
|
</view>
|
|
|
<view class="hj-price-area">
|
|
|
- <input class="change-input" @click.stop @blur="saveHjPrice" placeholder-style="color:#CCCCCC" v-model="hjModifyPrice" type="digit" placeholder="会员价" />
|
|
|
+ <input class="change-input" @click.stop @blur="savePrice" placeholder-style="color:#CCCCCC" v-model="hjModifyPrice" type="digit" placeholder="会员价" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -143,17 +143,9 @@ export default {
|
|
|
},
|
|
|
savePrice() {
|
|
|
if(Number(this.modifyPrice)>0 && Number(this.skModifyPrice) > 0 && Number(this.hjModifyPrice) > 0){
|
|
|
- this.$emit("savePrice",this.modifyPrice,this.skModifyPrice,this.hjModifyPrice,this.info.id)
|
|
|
- }
|
|
|
- },
|
|
|
- saveHjPrice(){
|
|
|
- if(Number(this.modifyPrice)>0 && Number(this.skModifyPrice) > 0 && Number(this.hjModifyPrice) > 0){
|
|
|
- this.$emit("savePrice",this.modifyPrice,this.skModifyPrice,this.hjModifyPrice,this.info.id)
|
|
|
- }
|
|
|
- },
|
|
|
- saveSkPrice(){
|
|
|
- if(Number(this.modifyPrice)>0 && Number(this.skModifyPrice) > 0 && Number(this.hjModifyPrice) > 0){
|
|
|
- this.$emit("savePrice",this.modifyPrice,this.skModifyPrice,this.hjModifyPrice,this.info.id)
|
|
|
+ this.$emit("savePrice",this.modifyPrice,this.skModifyPrice,this.hjModifyPrice,this.info.id,1)
|
|
|
+ }else{
|
|
|
+ this.$emit("savePrice",this.modifyPrice,this.skModifyPrice,this.hjModifyPrice,this.info.id,0)
|
|
|
}
|
|
|
}
|
|
|
}
|