|
|
@ -22,7 +22,21 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="tui-goods-info" style="width: 95%;margin: 0 auto;"> |
|
|
<view class="tui-goods-info" style="width: 95%;margin: 0 auto;"> |
|
|
|
|
|
<view class="tui-price-flex tui-size32" v-if="userType == 0&& zhiqianqiankuan >= 0" 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&&zhiqianqiankuan < 0" 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" style="height: 80rpx;line-height: 80rpx;"> |
|
|
<view class="tui-flex-shrink">应付金额</view> |
|
|
<view class="tui-flex-shrink">应付金额</view> |
|
|
<view class="tui-goods-price"> |
|
|
<view class="tui-goods-price"> |
|
|
@ -36,13 +50,41 @@ |
|
|
<view class="tui-size-24">¥</view> |
|
|
<view class="tui-size-24">¥</view> |
|
|
<view class="tui-price-large">{{ purchase.alreadyPay == null ?'暂无':purchase.alreadyPay }}</view> |
|
|
<view class="tui-price-large">{{ purchase.alreadyPay == null ?'暂无':purchase.alreadyPay }}</view> |
|
|
</view> |
|
|
</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="yuedikou != 0 && userType == 0" style="height: 80rpx;line-height: 80rpx;"> |
|
|
<view class="tui-flex-shrink">欠款</view> |
|
|
<view class="tui-flex-shrink">余额抵扣</view> |
|
|
<view class="tui-goods-price tui-primary-color"> |
|
|
<view class="tui-goods-price"> |
|
|
<view class="tui-size-24">¥</view> |
|
|
<view class="tui-size-24">¥</view> |
|
|
<view class="tui-price-large">{{ purchase.noPay == null ?'暂无':purchase.noPay}}</view> |
|
|
<view class="tui-price-large">{{yuedikou == null ?'暂无':yuedikou }}</view> |
|
|
</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-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-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-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-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> |
|
|
<view class="tui-price-flex tui-size32" style="height: 80rpx;line-height: 80rpx;"> |
|
|
<view class="tui-price-flex tui-size32" style="height: 80rpx;line-height: 80rpx;"> |
|
|
<view class="tui-flex-shrink">其他费用</view> |
|
|
<view class="tui-flex-shrink">其他费用</view> |
|
|
@ -76,7 +118,10 @@ |
|
|
purchase:'', |
|
|
purchase:'', |
|
|
purchaseDetails:'', |
|
|
purchaseDetails:'', |
|
|
aiinventory:0, //1是AI入库 0是普通入库 |
|
|
aiinventory:0, //1是AI入库 0是普通入库 |
|
|
userType:1 |
|
|
userType:1, |
|
|
|
|
|
leijiqiankuan:0, |
|
|
|
|
|
zhiqianqiankuan:0, |
|
|
|
|
|
yuedikou:0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
filters: { |
|
|
filters: { |
|
|
@ -96,6 +141,10 @@ |
|
|
this.purchase = JSON.parse(option.purchase) |
|
|
this.purchase = JSON.parse(option.purchase) |
|
|
this.aiinventory = option.aiinventory |
|
|
this.aiinventory = option.aiinventory |
|
|
this.userType = uni.getStorageSync('type') |
|
|
this.userType = uni.getStorageSync('type') |
|
|
|
|
|
|
|
|
|
|
|
this.yuedikou = option.yuedikou |
|
|
|
|
|
this.zhiqianqiankuan = option.zhiqianqiankuan |
|
|
|
|
|
this.leijiqiankuan = option.leijiqiankuan |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
inventorySubmit() { |
|
|
inventorySubmit() { |
|
|
@ -111,7 +160,9 @@ |
|
|
}else{ |
|
|
}else{ |
|
|
url = '/app/stock/putInOfProduct' |
|
|
url = '/app/stock/putInOfProduct' |
|
|
} |
|
|
} |
|
|
this.$nextTick(()=>{ |
|
|
this.$nextTick(()=>{ |
|
|
|
|
|
|
|
|
|
|
|
this.purchase.balanceDeductionAmount = this.yuedikou |
|
|
this.tui.request(url, "post", { |
|
|
this.tui.request(url, "post", { |
|
|
purchase: this.purchase, |
|
|
purchase: this.purchase, |
|
|
purchaseDetails: this.purchaseDetails |
|
|
purchaseDetails: this.purchaseDetails |
|
|
@ -256,7 +307,21 @@ |
|
|
color: #088FEB !important; |
|
|
color: #088FEB !important; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.price-box{ |
|
|
|
|
|
width: 95%; |
|
|
|
|
|
margin: 10px auto; |
|
|
|
|
|
background: #eee; |
|
|
|
|
|
height: 80rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
line-height: 80rpx; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
border-radius: 10px; |
|
|
|
|
|
background: #FDF5E6; |
|
|
|
|
|
color: #EEB422; |
|
|
|
|
|
background: linear-gradient(180deg, #fff, #FDF5E6); |
|
|
|
|
|
border: 1px solid #FAEBD7; |
|
|
|
|
|
} |
|
|
.shop-productName { |
|
|
.shop-productName { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
display: flex; |
|
|
display: flex; |
|
|
|