采购单

This commit is contained in:
wangweidong 2025-10-31 17:24:05 +08:00
parent 07b97d027a
commit 339a53714f
1 changed files with 87 additions and 80 deletions

View File

@ -4,7 +4,7 @@
<view class="box">
<view class="rel-left">
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="leftscrolltop" class="scroll-Y"
@scrolltolower="plsbuytolower" :lower-threshold="200">
@scrolltolower="plsbuytolower" :lower-threshold="400">
<view class="margin-height"></view>
<view class="boxitem" v-for="(v,i) in plsbuy" :key='i'
:class="{'yujing':v?.cgdType=='9','active':leftitem==i}"
@ -53,13 +53,17 @@
</view>
<scroll-view scroll-y="true" class="cgdscroll" scroll-with-animation>
<view class="fler">
<view class="boxitem" v-for="(f,l) in InvoicingList" :key='l'>
<view class="boxitem" v-for="(f,l) in InvoicingList" :key='l' @scrolltolower="scrolltolower"
:lower-threshold="200">
<view>{{f.wlName}}</view>
<view style="white-space: nowrap;">规格型号{{f.wlSpecificationModel}}</view>
<view>采购金额{{f.procurementPrice}}</view>
<view>采购数量{{f.purchaseQuantity}}</view>
</view>
</view>
<view style="height:3vw;width: 100%;display: flex;align-items: center;justify-content: center;">
<u-loadmore :status="status" :loadText="{nomore:'暂无更多数据'}" v-if="InvoicingList.length>6"/>
</view>
</scroll-view>
</view>
@ -347,7 +351,7 @@
}
const getmiddle = (item : any, i : number) => {
let num = Math.ceil((i + 1))
leftscrolltop.value = (num - 1) * 238.5;
leftscrolltop.value = (num - 2) * 185;
leftitem.value = i;
shopitem.value = -1
@ -590,7 +594,8 @@
detailform.wlId = InvoicingList.value[0].wlId
status.value = res.result.total == InvoicingList.value.length ? 'nomore' : 'loadmore'
status.value = res.result.total == InvoicingList.value.length ? 'nomore' : 'loadmore';
})
}
const saveleftgo = ref(0);
@ -1416,6 +1421,7 @@
height: 100%;
}
}
.box {
width: 100vw;
height: 100vh;
@ -1705,6 +1711,7 @@
display: inline-block;
padding: 1vw 1.6vw 0;
position: relative;
>view {
&:nth-child(1) {
font-weight: bold;