This commit is contained in:
parent
31589526f5
commit
cbbf98f6e6
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }}采购单)
|
||||
|
|
@ -1051,7 +1050,7 @@
|
|||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||
import calendar from '@/component/public/calendar.vue'
|
||||
import nomessageimge from '@/pages/procurement/components/nomessage.vue';
|
||||
|
||||
|
||||
|
||||
const open = ref(0);
|
||||
const typechange = ref(0);
|
||||
|
|
@ -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("");
|
||||
|
|
@ -1311,7 +1311,7 @@
|
|||
endTime: "",
|
||||
cgBy: "",
|
||||
nuId: uni.getStorageSync('nuId'),
|
||||
status:''
|
||||
status: ''
|
||||
})
|
||||
const mobanplzinfo = {
|
||||
pageNo: 1,
|
||||
|
|
@ -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([])
|
||||
|
|
@ -2503,7 +2516,7 @@
|
|||
|
||||
.middle-Y-father {
|
||||
display: flex;
|
||||
|
||||
|
||||
.middle-one {
|
||||
min-width: 325rpx;
|
||||
height: 450rpx;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
<view class="heng-blue" :style="{ left: `${selectType === 0 ? 18 : 18 + selectType * 30}%` }">
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="right-button" @click="addshow = true">
|
||||
|
||||
<view class="right-button" @click="addshow = true">
|
||||
<image src="/static/index/requestform/addnew.png" />
|
||||
<view>
|
||||
新增
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<view class="all-contain" v-show=" !nomessageshow">
|
||||
<scroll-view scroll-y="true" scroll-with-animation class="all-scroll" :scroll-top="leftscrolltop"
|
||||
@scrolltolower="plsbuytolower" :lower-threshold="200">
|
||||
@scrolltolower="plsbuytolower" :lower-threshold="200">
|
||||
<view class="scroll-items">
|
||||
<view class="scroll-item" v-for="(item,index) in plsbuy" :key="index" @click="pdurl(item)">
|
||||
<view class="scroll-item-title">
|
||||
|
|
@ -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">
|
||||
|
|
@ -155,7 +158,7 @@
|
|||
</view>
|
||||
|
||||
|
||||
<!-- <view class="more-select" style="margin-top: 10rpx;">
|
||||
<!-- <view class="more-select" style="margin-top: 10rpx;">
|
||||
盘点单号
|
||||
</view>
|
||||
<view class="more-time-select" @click="pandian=true">
|
||||
|
|
@ -245,13 +248,13 @@
|
|||
</view>
|
||||
</view>
|
||||
<tanchuang :show="addshow" font="确定要新增盘点单吗" @back="addshow=false;" @right="addnew"> </tanchuang>
|
||||
<errorshow :show="openmessage" :font="errormessage" @close="openmessage=false" />
|
||||
<errorshow :show="openmessage" :font="errormessage" @close="openmessage=false" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
|
||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||
import { queryPddList, queryPddStartByList,addPddMain } from './api/lunpan.js'
|
||||
import { queryPddList, queryPddStartByList, addPddMain } from './api/lunpan.js'
|
||||
import nomessage from './components/nomessage.vue'
|
||||
import defaultr from './components/default.vue'
|
||||
import calendar from '@/component/public/calendar.vue'
|
||||
|
|
@ -266,12 +269,12 @@
|
|||
|
||||
|
||||
const getSelectList = () => {
|
||||
queryPddStartByList({nuId:uni.getStorageSync('nuId')}).then((res : any) => {
|
||||
queryPddStartByList({ nuId: uni.getStorageSync('nuId') }).then((res : any) => {
|
||||
cgrlist.value = res.result;
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
onShow(()=>{
|
||||
onShow(() => {
|
||||
chongzhi()
|
||||
})
|
||||
onMounted(() => {
|
||||
|
|
@ -285,7 +288,8 @@
|
|||
const dateget = (res : datetype) => {
|
||||
plzinfo.startTime = res.start;
|
||||
plzinfo.endTime = res.end;
|
||||
firstgetqueryCgdList()
|
||||
// firstgetqueryCgdList()
|
||||
lookshuliang()
|
||||
}
|
||||
const lanjie = ref(false);
|
||||
|
||||
|
|
@ -342,7 +346,7 @@
|
|||
* changeName - 防抖搜索(0.3 秒后无再次输入才执行)
|
||||
*/
|
||||
function changeName(res : any) {
|
||||
console.log("0000",res)
|
||||
console.log("0000", res)
|
||||
if (!res.detail.value) {
|
||||
plzinfo.pddStartBy = "";
|
||||
filteredCgrList.value = [];
|
||||
|
|
@ -359,10 +363,10 @@
|
|||
|
||||
// 重新等待 300ms
|
||||
debounceTimer = setTimeout(() => {
|
||||
|
||||
|
||||
if (!keyword) {
|
||||
filteredCgrList.value = cgrlist.value.slice()
|
||||
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -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)
|
||||
|
|
@ -480,7 +496,7 @@
|
|||
cannomessage.value = false
|
||||
plsbuy.value = []
|
||||
plsbuy.value.push(...res.result.records)
|
||||
// plsbuy.value.push(...res.result.records)
|
||||
// plsbuy.value.push(...res.result.records)
|
||||
alltotal.value = res.result.total
|
||||
|
||||
if (res.result.records.length < plzinfo.pageSize) {
|
||||
|
|
@ -505,7 +521,7 @@
|
|||
if (!plzinfo.canpull) return
|
||||
queryPddList(plzinfo).then((res : any) => {
|
||||
plsbuy.value.push(...res.result.records)
|
||||
console.log("????",plzinfo,res.result.records)
|
||||
console.log("????", plzinfo, res.result.records)
|
||||
alltotal.value = res.result.total
|
||||
if (res.result.records.length < plzinfo.pageSize) {
|
||||
plzinfo.canpull = false;
|
||||
|
|
@ -521,25 +537,25 @@
|
|||
}
|
||||
const errormessage = ref("")
|
||||
const openmessage = ref(false)
|
||||
const addnew = () =>{
|
||||
addPddMain({nuId:uni.getStorageSync('nuId')}).then((res:any)=>{
|
||||
console.log("res",res.result)
|
||||
if(res.success){
|
||||
const addnew = () => {
|
||||
addPddMain({ nuId: uni.getStorageSync('nuId') }).then((res : any) => {
|
||||
console.log("res", res.result)
|
||||
if (res.success) {
|
||||
addshow.value = false
|
||||
chongzhi();
|
||||
let pddobj = res.result;
|
||||
console.log(pddobj)
|
||||
uni.navigateTo({url:'/pages/procurement/addtory?pddobj='+JSON.stringify(pddobj)})
|
||||
}else{
|
||||
uni.navigateTo({ url: '/pages/procurement/addtory?pddobj=' + JSON.stringify(pddobj) })
|
||||
} else {
|
||||
openmessage.value = true
|
||||
errormessage.value = res.message
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const pdurl = (v)=>{
|
||||
|
||||
const pdurl = (v) => {
|
||||
console.log(v)
|
||||
uni.navigateTo({url:'/pages/procurement/addtory?pddobj='+JSON.stringify(v)})
|
||||
uni.navigateTo({ url: '/pages/procurement/addtory?pddobj=' + JSON.stringify(v) })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -1157,6 +1173,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.input-next {
|
||||
position: fixed;
|
||||
bottom: 850rpx;
|
||||
|
|
@ -1169,14 +1186,14 @@
|
|||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
||||
padding: 40rpx 30rpx;
|
||||
z-index: 9999;
|
||||
|
||||
|
||||
.next-father {
|
||||
color: #999;
|
||||
margin: 10rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.nomessage {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
|
|||
Loading…
Reference in New Issue