|
@@ -31,10 +31,12 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">特价</view>
|
|
<view class="tui-title">特价</view>
|
|
|
- <text style="display:inline-block;width:130upx;text-align:center;">{{ hjDiscountPrice }}</text>
|
|
|
|
|
|
|
+ <input v-model="form.hjDiscountPrice" style="width:130upx;border:1upx solid #CCCCCC;text-align:center;height:50upx;" placeholder-class="phcolor"
|
|
|
|
|
+ class="tui-input" name="hjDiscountPrice" @focus="form.hjDiscountPrice=''" placeholder="会员特价" type="digit" />
|
|
|
<input v-model="form.discountPrice" style="width:130upx;border:1upx solid #3385FF;margin-left:30upx;color:#3385FF;text-align:center;" placeholder-class="phcolor" @input="tjLinkage()"
|
|
<input v-model="form.discountPrice" style="width:130upx;border:1upx solid #3385FF;margin-left:30upx;color:#3385FF;text-align:center;" placeholder-class="phcolor" @input="tjLinkage()"
|
|
|
class="tui-input" name="discountPrice" @focus="form.discountPrice=''" placeholder="无特价填0" maxlength="50" type="digit" />
|
|
class="tui-input" name="discountPrice" @focus="form.discountPrice=''" placeholder="无特价填0" maxlength="50" type="digit" />
|
|
|
- <text style="display:inline-block;width:130upx;margin-left:30upx;text-align:center;">{{ skDiscountPrice }}</text>
|
|
|
|
|
|
|
+ <input v-model="form.skDiscountPrice" style="width:130upx;border:1upx solid #CCCCCC;text-align:center;height:50upx;margin-left:30upx;" placeholder-class="phcolor"
|
|
|
|
|
+ class="tui-input" name="skDiscountPrice" @focus="form.skDiscountPrice=''" placeholder="零售特价" type="digit" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
@@ -202,6 +204,8 @@ export default {
|
|
|
addPrice:3,
|
|
addPrice:3,
|
|
|
hjAddPrice:2,
|
|
hjAddPrice:2,
|
|
|
discountPrice:0,
|
|
discountPrice:0,
|
|
|
|
|
+ skDiscountPrice:0,
|
|
|
|
|
+ hjDiscountPrice:0,
|
|
|
cost:0,
|
|
cost:0,
|
|
|
weight:'',
|
|
weight:'',
|
|
|
cover:[],
|
|
cover:[],
|
|
@@ -212,8 +216,6 @@ export default {
|
|
|
smallRatio:1,
|
|
smallRatio:1,
|
|
|
ratioType:0
|
|
ratioType:0
|
|
|
},
|
|
},
|
|
|
- skDiscountPrice:0,
|
|
|
|
|
- hjDiscountPrice:0,
|
|
|
|
|
itemClassSelectedData:{},
|
|
itemClassSelectedData:{},
|
|
|
itemClassData:[],
|
|
itemClassData:[],
|
|
|
unitData:[],
|
|
unitData:[],
|
|
@@ -249,9 +251,9 @@ export default {
|
|
|
if(skAmount>0){
|
|
if(skAmount>0){
|
|
|
skAmount = skAmount.toFixed(2)
|
|
skAmount = skAmount.toFixed(2)
|
|
|
skAmount = parseFloat(skAmount)
|
|
skAmount = parseFloat(skAmount)
|
|
|
- this.skDiscountPrice = skAmount
|
|
|
|
|
|
|
+ this.form.skDiscountPrice = skAmount
|
|
|
}else{
|
|
}else{
|
|
|
- this.skDiscountPrice = 0.01
|
|
|
|
|
|
|
+ this.form.skDiscountPrice = 0.01
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let hjSubNum = Number(addPrice) - Number(hjAddPrice)
|
|
let hjSubNum = Number(addPrice) - Number(hjAddPrice)
|
|
@@ -260,13 +262,13 @@ export default {
|
|
|
if(hjAmount > 0){
|
|
if(hjAmount > 0){
|
|
|
hjAmount = hjAmount.toFixed(2)
|
|
hjAmount = hjAmount.toFixed(2)
|
|
|
hjAmount = parseFloat(hjAmount)
|
|
hjAmount = parseFloat(hjAmount)
|
|
|
- this.hjDiscountPrice = hjAmount
|
|
|
|
|
|
|
+ this.form.hjDiscountPrice = hjAmount
|
|
|
}else{
|
|
}else{
|
|
|
- this.hjDiscountPrice = 0.01
|
|
|
|
|
|
|
+ this.form.hjDiscountPrice = 0.01
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
- this.skDiscountPrice = 0
|
|
|
|
|
- this.hjDiscountPrice = 0
|
|
|
|
|
|
|
+ this.form.skDiscountPrice = 0
|
|
|
|
|
+ this.form.hjDiscountPrice = 0
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
priceLinkage(){
|
|
priceLinkage(){
|
|
@@ -300,8 +302,8 @@ export default {
|
|
|
this.form.skPrice = ''
|
|
this.form.skPrice = ''
|
|
|
this.form.hjPrice = ''
|
|
this.form.hjPrice = ''
|
|
|
this.form.discountPrice = 0
|
|
this.form.discountPrice = 0
|
|
|
- this.skDiscountPrice = 0
|
|
|
|
|
- this.hjDiscountPrice = 0
|
|
|
|
|
|
|
+ this.form.skDiscountPrice = 0
|
|
|
|
|
+ this.form.hjDiscountPrice = 0
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
notModify(){
|
|
notModify(){
|