This commit is contained in:
Teng 2025-12-18 16:56:41 +08:00
parent 31589526f5
commit cbbf98f6e6
4 changed files with 93 additions and 51 deletions

View File

@ -431,10 +431,10 @@
<view class="bottom-left" @click="chongzhi">
重置
</view>
<view class="bottom-right" @click="openselect=false">
<view class="bottom-right" @click="openselect=false;search()">
确定
<text style="font-size: 25rpx;margin-top: 5rpx;" v-if="alltotal>=99">
(99+采购单)
<text style="font-size: 25rpx;margin-top: 5rpx;" v-if="alltotal">
{{ alltotal }}采购单
</text>
</view>
@ -1189,12 +1189,13 @@
const closefilteredCgrList = () => {
filteredCgrList.value = [];
cgrvalue.value = plzinfo.cgBy;
lookshuliang()
}
const clickfilteredCgrList = (item : any) => {
filteredCgrList.value = [];
plzinfo.cgBy = item.cgBy
cgrvalue.value = plzinfo.cgBy;
search()
lookshuliang()
}
// --- ---
@ -1257,14 +1258,14 @@
filteredCgrListsecond.value = [];
gysvalue.value = "";
plzinfo.suppliers = "";
search()
lookshuliang()
}
const clickfilteredCgrListsecond = (item : any, index : number) => {
filteredCgrListsecond.value = [];
plzinfo.suppliers = item.suppliers;
gysvalue.value = item.suppliersName;
secondindex.value = index;
search()
lookshuliang()
}
const cgrvalue = ref("");
const gysvalue = ref("");
@ -1380,7 +1381,18 @@
const dateget = (res : datetype) => {
plzinfo.startTime = res.start;
plzinfo.endTime = res.end;
search()
lookshuliang()
}
const lookshuliang = () => {
let data = {
...plzinfo,
pageNo : 1
}
queryCgdList(data).then((res : any) => {
alltotal.value = res.result.total
})
}
const leftscrolltop = ref(0)

View File

@ -1,8 +1,7 @@
<template>
<view class="contain">
<view
v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata"
class="mengban" :style="opencgr||opengys||opendata ?{background:`transparent`}:{}"
<view v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata" class="mengban"
:style="opencgr||opengys||opendata ?{background:`transparent`}:{}"
@click="moreindex=-1; topbuttontarget=-1;openjianhuo=false;opengaijia=false;opendata=false;opencgr=false;opengys=false;albumlist=[]">
</view>
<!-- 没数据了遮罩 -->
@ -420,7 +419,7 @@
<view class="bottom-left" @click="chongzhi">
重置
</view>
<view class="bottom-right" @click="openselect=false">
<view class="bottom-right" @click="openselect=false;search()">
确定
<text style="font-size: 25rpx;margin-top: 5rpx;" v-if="alltotal">
{{ alltotal }}采购单
@ -1152,12 +1151,13 @@
console.log("?????????")
filteredCgrList.value = [];
cgrvalue.value = plzinfo.cgBy;
lookshuliang()
}
const clickfilteredCgrList = (item : any) => {
filteredCgrList.value = [];
plzinfo.cgBy = item.cgBy
cgrvalue.value = plzinfo.cgBy;
search()
lookshuliang()
}
// --- ---
@ -1220,14 +1220,14 @@
filteredCgrListsecond.value = [];
gysvalue.value = "";
plzinfo.suppliers = "";
search()
lookshuliang()
}
const clickfilteredCgrListsecond = (item : any, index : number) => {
filteredCgrListsecond.value = [];
plzinfo.suppliers = item.suppliers;
gysvalue.value = item.suppliersName;
secondindex.value = index;
search()
lookshuliang()
}
const cgrvalue = ref("");
const gysvalue = ref("");
@ -1344,8 +1344,21 @@
const dateget = (res : datetype) => {
plzinfo.startTime = res.start;
plzinfo.endTime = res.end;
search()
lookshuliang()
}
const lookshuliang = () => {
let data = {
...plzinfo,
pageNo: 1
}
queryCgdList(data).then((res : any) => {
alltotal.value = res.result.total
})
}
const leftscrolltop = ref(0)
const plsbuy = ref([])

View File

@ -156,10 +156,10 @@
cardtarget.value=-1
if(index===1){
cardarray.value = filteredMenu(0)
console.log("??11111111",cardarray.value)
// console.log("??11111111",cardarray.value)
}else if(index===2){
cardarray.value = filteredMenu(2)
console.log("??11111111",cardarray.value)
// console.log("??11111111",cardarray.value)
}
leftarraytarget.value = index;

View File

@ -132,8 +132,11 @@
<view class="bottom-left" @click="chongzhi">
重置
</view>
<view class="bottom-right" @click="openselect=false">
<view class="bottom-right" @click="openselect=false;firstgetqueryCgdList()">
确定
<text style="font-size: 25rpx;margin-top: 5rpx;" v-if="alltotal">
{{ alltotal }}采购单
</text>
</view>
</view>
<view class="more-title">
@ -285,7 +288,8 @@
const dateget = (res : datetype) => {
plzinfo.startTime = res.start;
plzinfo.endTime = res.end;
firstgetqueryCgdList()
// firstgetqueryCgdList()
lookshuliang()
}
const lanjie = ref(false);
@ -380,13 +384,24 @@
// console.log("?????????")
filteredCgrList.value = [];
peoplename.value = plzinfo.pddStartBy;
firstgetqueryCgdList()
lookshuliang()
}
const clickfilteredCgrList = (item : any) => {
filteredCgrList.value = [];
plzinfo.pddStartBy = item.name
peoplename.value = plzinfo.pddStartBy;
firstgetqueryCgdList()
lookshuliang()
}
const lookshuliang = () => {
let data = {
...plzinfo,
pageNo: 1
}
queryPddList(data).then((res : any) => {
alltotal.value = res.result.total
})
}
const pandian = ref(false)
const pandianclick = () => {
@ -421,6 +436,7 @@
plzinfo.startTime = "";
plzinfo.pddStartBy = ""
plzinfo.endTime = "";
peoplename.value = ""
changetype(0)
setTimeout(() => {
@ -456,8 +472,8 @@
// '1,2' ->
const arr = Array.from(set).filter(Boolean).sort((a, b) => a - b);
plzinfo.pydOrPkd = arr.length ? arr.join(',') : '';
firstgetqueryCgdList()
lookshuliang()
// firstgetqueryCgdList()
}
const nomessageshow = ref(false);
const leftscrolltop = ref(0)
@ -1157,6 +1173,7 @@
}
}
}
.input-next {
position: fixed;
bottom: 850rpx;