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

View File

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

View File

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

View File

@ -132,8 +132,11 @@
<view class="bottom-left" @click="chongzhi"> <view class="bottom-left" @click="chongzhi">
重置 重置
</view> </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> </view>
<view class="more-title"> <view class="more-title">
@ -285,7 +288,8 @@
const dateget = (res : datetype) => { const dateget = (res : datetype) => {
plzinfo.startTime = res.start; plzinfo.startTime = res.start;
plzinfo.endTime = res.end; plzinfo.endTime = res.end;
firstgetqueryCgdList() // firstgetqueryCgdList()
lookshuliang()
} }
const lanjie = ref(false); const lanjie = ref(false);
@ -380,13 +384,24 @@
// console.log("?????????") // console.log("?????????")
filteredCgrList.value = []; filteredCgrList.value = [];
peoplename.value = plzinfo.pddStartBy; peoplename.value = plzinfo.pddStartBy;
firstgetqueryCgdList() lookshuliang()
} }
const clickfilteredCgrList = (item : any) => { const clickfilteredCgrList = (item : any) => {
filteredCgrList.value = []; filteredCgrList.value = [];
plzinfo.pddStartBy = item.name plzinfo.pddStartBy = item.name
peoplename.value = plzinfo.pddStartBy; 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 pandian = ref(false)
const pandianclick = () => { const pandianclick = () => {
@ -421,6 +436,7 @@
plzinfo.startTime = ""; plzinfo.startTime = "";
plzinfo.pddStartBy = "" plzinfo.pddStartBy = ""
plzinfo.endTime = ""; plzinfo.endTime = "";
peoplename.value = ""
changetype(0) changetype(0)
setTimeout(() => { setTimeout(() => {
@ -456,8 +472,8 @@
// '1,2' -> // '1,2' ->
const arr = Array.from(set).filter(Boolean).sort((a, b) => a - b); const arr = Array.from(set).filter(Boolean).sort((a, b) => a - b);
plzinfo.pydOrPkd = arr.length ? arr.join(',') : ''; plzinfo.pydOrPkd = arr.length ? arr.join(',') : '';
lookshuliang()
firstgetqueryCgdList() // firstgetqueryCgdList()
} }
const nomessageshow = ref(false); const nomessageshow = ref(false);
const leftscrolltop = ref(0) const leftscrolltop = ref(0)
@ -1157,6 +1173,7 @@
} }
} }
} }
.input-next { .input-next {
position: fixed; position: fixed;
bottom: 850rpx; bottom: 850rpx;