|
|
|
@ -314,7 +314,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>成本价格:</text> |
|
|
|
|
<input type="text" disabled v-model="selectShop.price" class="inp" /> |
|
|
|
|
<input type="text" v-model="cost_price" class="inp" placeholder="成本价格" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>商品价格:</text> |
|
|
|
@ -402,6 +402,7 @@ |
|
|
|
|
isTodo: true, |
|
|
|
|
result: {}, |
|
|
|
|
max_price: "", |
|
|
|
|
cost_price:'', |
|
|
|
|
markup_rate: "", |
|
|
|
|
showGoodsPosterPopup: false, |
|
|
|
|
cityInfo: {}, |
|
|
|
@ -521,7 +522,7 @@ |
|
|
|
|
//修改商品价格 |
|
|
|
|
async toUnpdatePrice() { |
|
|
|
|
const that = this; |
|
|
|
|
if (!that.selectShop) { |
|
|
|
|
if (!that.cost_price) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "none", |
|
|
|
|
title: "成本价格不能为空!" |
|
|
|
@ -543,7 +544,7 @@ |
|
|
|
|
let params = { |
|
|
|
|
id: that.goods.goods_id, |
|
|
|
|
goods_price: that.max_price, |
|
|
|
|
line_price: that.markup_rate, |
|
|
|
|
cost_price: that.cost_price, |
|
|
|
|
sku_id: sku_id.toString() |
|
|
|
|
} |
|
|
|
|
GoodsApi.editGoodsPrice(params).then(res => { |
|
|
|
@ -1649,8 +1650,8 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.setMs { |
|
|
|
|
width: 656rpx; |
|
|
|
|
height: 590rpx; |
|
|
|
|
width: 556rpx; |
|
|
|
|
height: 480rpx; |
|
|
|
|
background: #FFFFFF; |
|
|
|
|
border-radius: 12rpx 12rpx 12rpx 12rpx; |
|
|
|
|
opacity: 1; |
|
|
|
@ -1679,7 +1680,7 @@ |
|
|
|
|
margin-bottom: 30rpx; |
|
|
|
|
|
|
|
|
|
.inp { |
|
|
|
|
width: 440rpx; |
|
|
|
|
width: 300rpx; |
|
|
|
|
height: 72rpx; |
|
|
|
|
background: #FFFFFF; |
|
|
|
|
border-radius: 4rpx 4rpx 4rpx 4rpx; |
|
|
|
|