|
@@ -6,7 +6,7 @@
|
|
|
<text style="margin-left: 6rpx;">生成销售单</text>
|
|
|
</view>
|
|
|
</u-navbar>
|
|
|
- <view class="replenishment-putWarehousing-body">
|
|
|
+ <view class="replenishment-putWarehousing-body" :style="`backgroundImage:linear-gradient(180deg, ${$config('primaryColor')}, #F5F6F7 12%)`">
|
|
|
<view class="head-info" v-if="basicInfoData">
|
|
|
<view class="states">
|
|
|
<view>
|
|
@@ -45,9 +45,9 @@
|
|
|
<view>产品总件数:<text style="color: red;">{{totalNums}}</text></view>
|
|
|
</view>
|
|
|
<view v-if="salesOrderList.length">
|
|
|
- <view style="padding: 0 10upx 10upx;">此补货单已经存在对应的销售单?</view>
|
|
|
+ <view style="padding: 0 10upx 5upx;">此补货单已经存在对应的销售单?</view>
|
|
|
<view style="padding: 0 10upx 20upx;">确认再次生成销售单吗?</view>
|
|
|
- <view>
|
|
|
+ <scroll-view :scroll-y="true" style="max-height: 18vh;">
|
|
|
<view
|
|
|
v-for="item in salesOrderList"
|
|
|
:key="item.id"
|
|
@@ -60,7 +60,7 @@
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
<view style="padding: 0 10upx 20upx;">确认生成销售单?</view>
|
|
@@ -111,6 +111,12 @@
|
|
|
backgroundColor: this.$config('primaryColor')
|
|
|
})
|
|
|
},
|
|
|
+ onBackPress() {
|
|
|
+ if(this.showModal){
|
|
|
+ this.showModal = false
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
onLoad(option) {
|
|
|
this.replenishBillSn = option.sn
|
|
|
this.getDetail()
|
|
@@ -147,10 +153,9 @@
|
|
|
_this.totalQty = 0
|
|
|
_this.confirmQty = 0
|
|
|
res.data.map(item =>{
|
|
|
- item.confirmQty = item.confirmQty ? Number(item.confirmQty) : 0
|
|
|
- item.putQty = item.confirmQty ? Number(item.confirmQty) : 0
|
|
|
- if(item.confirmQty && Number(item.confirmQty)){
|
|
|
- _this.totalQty += Number(item.confirmQty)
|
|
|
+ item.putQty = item.qty ? Number(item.qty) : 0
|
|
|
+ if(item.qty && Number(item.qty)){
|
|
|
+ _this.totalQty += Number(item.qty)
|
|
|
}
|
|
|
if(item.putQty && Number(item.putQty)){
|
|
|
_this.confirmQty += Number(item.putQty)
|
|
@@ -253,7 +258,7 @@ page{
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
- padding-bottom: 136upx;
|
|
|
+ padding-bottom: 280upx;
|
|
|
.replenishment-putWarehousing-body{
|
|
|
padding: 0 30rpx;
|
|
|
height: 100%;
|