|
|
@@ -11,14 +11,14 @@
|
|
|
|
|
|
<template>
|
|
|
<view style="width:690upx;overflow:hidden;padding-left:30upx;">
|
|
|
- <view class="flex title" v-if="info.status == 3"> 入库前请确认售价: </view>
|
|
|
+ <view class="flex title" v-if="info.status == 3" style="color:#063a86;font-weight:bold;">售价不低于平均成本就有利润</view>
|
|
|
<view class="flex title" v-else> 确认售价: </view>
|
|
|
<view class="flex title">
|
|
|
<text style="font-size:24upx;font-weight:normal;color:#CCCCCC;">
|
|
|
<text style="color:black;font-weight:bold;margin:0 3upx 0 0;">花材名称</text>/
|
|
|
<text style="color:red;font-weight:normal;margin:0 3upx 0 3upx;">进价</text>/
|
|
|
<text style="color:black;font-weight:normal;margin:0 3upx 0 3upx;">本次成本</text>/
|
|
|
- <text style="color:#3385FF;font-weight:normal;margin:0 3upx 0 3upx;">平均成本</text>/
|
|
|
+ <text style="color:#063a86;font-weight:bold;margin:0 3upx 0 3upx;">平均成本</text>/
|
|
|
<text style="color:#CCCCCC;margin:0 3upx 0 3upx;">旧批发价</text>/
|
|
|
<text style="color:#CCCCCC;margin:0 3upx 0 3upx;">入库数</text>/
|
|
|
<text style="color:#CCCCCC;margin:0 0upx 0 3upx;">原库存</text>
|
|
|
@@ -33,7 +33,7 @@
|
|
|
{{res.name?res.name.substr(0,11):''}}
|
|
|
<text style="color:red;margin-left:9upx;font-weight:normal;font-size:26upx;">¥{{res.bigPrice?parseFloat(res.bigPrice):0}}</text>
|
|
|
<text style="color:black;margin-left:9upx;font-size:26upx;font-weight:normal;">¥{{res.currentCost?parseFloat(res.currentCost):0}}</text>
|
|
|
- <text style="color:#3385FF;margin-left:9upx;font-weight:normal;font-size:26upx;">¥{{res.cost?parseFloat(res.cost):0}}</text>
|
|
|
+ <text style="color:#063a86;margin-left:9upx;font-weight:bold;font-size:26upx;">¥{{res.cost?parseFloat(res.cost):0}}</text>
|
|
|
<text style="color:#CCCCCC;margin-left:9upx;font-weight:normal;font-size:26upx;">旧¥{{res.beforeModifyPrice?parseFloat(res.beforeModifyPrice):0}}</text>
|
|
|
<text style="color:#CCCCCC;margin-left:9upx;font-weight:normal;font-size:26upx;">{{res.itemNum?parseFloat(res.itemNum):0}}{{res.bigUnit}}</text>
|
|
|
<text style="color:#CCCCCC;margin-left:9upx;font-weight:normal;font-size:26upx;">{{res.beforeModifyStock?parseFloat(res.beforeModifyStock):0}}{{res.bigUnit}}</text>
|
|
|
@@ -197,9 +197,7 @@ export default {
|
|
|
if(res.code == 1){
|
|
|
if(res.data.status == 4){
|
|
|
that.$msg(res.msg)
|
|
|
- setTimeout(function(){
|
|
|
- that.pageTo({url: '/pagesPurchase/info?orderSn='+that.info.orderSn+'&refresh=1',type:2})
|
|
|
- },1100)
|
|
|
+ that.pageTo({url: '/pagesPurchase/result?orderSn='+that.info.orderSn,type:2})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -248,10 +246,7 @@ export default {
|
|
|
saveCgPrice({data:JSON.stringify(newProduct),cgId:targetId}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- setTimeout(function(){
|
|
|
- uni.navigateBack()
|
|
|
- },1300)
|
|
|
+ that.pageTo({url: '/pagesPurchase/result?orderSn='+that.info.orderSn,type:2})
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
@@ -302,10 +297,7 @@ export default {
|
|
|
batchChangePrice({data:JSON.stringify(newProduct),changeType:'cg',targetId:targetId,appVersion:1}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
- that.$msg(res.msg)
|
|
|
- setTimeout(function(){
|
|
|
- that.pageTo({url: '/pagesPurchase/info?orderSn='+that.info.orderSn+'&refresh=1',type:2})
|
|
|
- },1100)
|
|
|
+ that.pageTo({url: '/pagesPurchase/result?orderSn='+that.info.orderSn,type:2})
|
|
|
}
|
|
|
})
|
|
|
},
|