商品设置价格调整

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

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

Loading…
Cancel
Save