|
|
@@ -59,11 +59,15 @@
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">运费</view>
|
|
|
- <view class="detail-price_box" style="font-size: 28upx;">¥{{sendCost}}</view>
|
|
|
+ <view class="detail-price_box" style="font-size: 28upx;">
|
|
|
+ <input style="border:1upx solid #eee;color:#3385FF;width:150upx;height:70upx;float:right;text-align:center;" type="digit" v-model="sendCost" placeholder-class="tui-placeholder"/>
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">打包费</view>
|
|
|
- <view class="detail-price_box" style="font-size: 28upx;">¥{{packCost}}</view>
|
|
|
+ <view class="detail-price_box" style="font-size: 28upx;">
|
|
|
+ <input style="border:1upx solid #eee;color:#3385FF;width:150upx;height:70upx;float:right;text-align:center;" type="digit" v-model="packCost" placeholder-class="tui-placeholder"/>
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">总计</view>
|
|
|
@@ -211,8 +215,8 @@ export default {
|
|
|
async init() {
|
|
|
const res = await getArrivalDetail({ id: this.option.id })
|
|
|
this.detailInfo = res.data;
|
|
|
- this.sendCost = res.data.sendCost ? res.data.sendCost : 0
|
|
|
- this.packCost = res.data.packCost ? res.data.packCost : 0
|
|
|
+ this.sendCost = res.data.sendCost ? parseFloat(res.data.sendCost) : 0
|
|
|
+ this.packCost = res.data.packCost ? parseFloat(res.data.packCost) : 0
|
|
|
},
|
|
|
savePrice(){
|
|
|
if(this.$util.isEmpty(this.detailInfo.product)){
|
|
|
@@ -222,7 +226,7 @@ export default {
|
|
|
const data = this.detailInfo.product.map(ele => {
|
|
|
return { orderSn: ele.orderSn, xhNum:ele.xhNum,xhUnitPrice:ele.currentHdPrice,id:ele.id}
|
|
|
})
|
|
|
- modifyBookItem({data:data,id:this.detailInfo.id}).then(res=>{
|
|
|
+ modifyBookItem({data:data,id:this.detailInfo.id,packCost:this.packCost,sendCost:this.sendCost}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.$msg(res.msg)
|
|
|
}
|
|
|
@@ -263,7 +267,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
that.$util.confirmModal({content:'确认提交'},() => {
|
|
|
- arrival({id:that.option.id,product:JSON.stringify(product)}).then(res=>{
|
|
|
+ arrival({id:that.option.id,product:JSON.stringify(product),packCost:that.packCost,sendCost:that.sendCost}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.pageTo({url: '/pagesOrder/result',type:2})
|
|
|
}
|