|
|
|
@ -30,56 +30,63 @@ |
|
|
|
<view class="tui-price-large">{{zhiqianqiankuan == null ?'暂无':Math.abs(zhiqianqiankuan) }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0&&zhiqianqiankuan < 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0&&zhiqianqiankuan < 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">客户余额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{zhiqianqiankuan == null ?'暂无':Math.abs(zhiqianqiankuan) }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">应付金额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{ purchase.shouldPay == null ?'暂无':purchase.shouldPay }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">已付金额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{ purchase.alreadyPay == null ?'暂无':purchase.alreadyPay }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="yuedikou != 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0 && aiinventory == 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">退货金额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{ purchase.alreadyPay == null ?'暂无':purchase.alreadyPay }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="yuedikou != 0 && userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">余额抵扣</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{yuedikou == null ?'暂无':yuedikou }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="leijiqiankuan > 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="leijiqiankuan > 0 && userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">累计欠款</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{leijiqiankuan == null ?'暂无':leijiqiankuan }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="leijiqiankuan < 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="leijiqiankuan < 0 && userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">累计余额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{leijiqiankuan == null ?'暂无':Math.abs(leijiqiankuan) }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="purchase.noPay >= 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="purchase.noPay >= 0 && userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">本次欠款</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
<view class="tui-price-large">{{purchase.noPay == null ?'暂无':purchase.noPay }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="purchase.noPay < 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-price-flex tui-size32" v-if="purchase.noPay < 0 && userType == 0 && aiinventory != 2" style="height: 80rpx;line-height: 80rpx;"> |
|
|
|
<view class="tui-flex-shrink">本次余额</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<view class="tui-size-24">¥</view> |
|
|
|
@ -97,7 +104,7 @@ |
|
|
|
<view class="tui-flex-shrink">备注</view> |
|
|
|
<view class="tui-goods-price"> |
|
|
|
<uni-tooltip :content="purchase.remark == null ?'暂无':purchase.remark"> |
|
|
|
<view style="font-size: 13px;width: 200px;height: 40rpx;overflow: hidden;text-align: right;">{{ sales.remark == null ?'':sales.remark}}</view> |
|
|
|
<view style="font-size: 13px;width: 200px;height: 40rpx;overflow: hidden;text-align: right;">{{ purchase.remark == null ?'':purchase.remark}}</view> |
|
|
|
<text style="color: blue;">查看更多</text> |
|
|
|
</uni-tooltip> |
|
|
|
</view> |
|
|
|
@ -115,7 +122,7 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
purchase:'', |
|
|
|
purchase:{}, |
|
|
|
purchaseDetails:'', |
|
|
|
aiinventory:0, //1是AI入库 0是普通入库 2采购退货 |
|
|
|
userType:1, |
|
|
|
@ -136,8 +143,16 @@ |
|
|
|
return name; |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.aiinventory = option.aiinventory |
|
|
|
if(option.aiinventory == 2){ |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title:'采购退货确认' |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
this.purchaseDetails = JSON.parse(option.purchaseDetails) |
|
|
|
console.log('purchase',option.purchase) |
|
|
|
console.log('purchaseDetails',this.purchaseDetails) |
|
|
|
if(this.purchaseDetails != '' && uni.getStorageSync('type') == 0){ |
|
|
|
for(let i=0;i<this.purchaseDetails.length;i++){ |
|
|
|
@ -155,7 +170,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
this.purchase = JSON.parse(option.purchase) |
|
|
|
this.aiinventory = option.aiinventory |
|
|
|
|
|
|
|
this.userType = uni.getStorageSync('type') |
|
|
|
|
|
|
|
this.yuedikou = option.yuedikou |
|
|
|
|