商品设置价格调整

version/0412
fanfan 12 months ago
parent ef69cc20bf
commit cc18567f79
  1. 13
      pages/goods/detail.vue

@ -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;

Loading…
Cancel
Save