This commit is contained in:
wangweidong 2025-12-17 15:48:36 +08:00
parent 4b1e6f97ea
commit 20258118c7
8 changed files with 51 additions and 24 deletions

View File

@ -188,7 +188,9 @@
elderId: uni.getStorageSync('NUall').elderId, elderId: uni.getStorageSync('NUall').elderId,
nuName: uni.getStorageSync('nuName'), nuName: uni.getStorageSync('nuName'),
} }
console.log("?????",data)
requireTH(data).then(res => { requireTH(data).then(res => {
console.log("?????",res)
if (res.success) { if (res.success) {
thshow.value = false; thshow.value = false;
uni.showToast({ uni.showToast({
@ -199,7 +201,6 @@
thshow.value = false; thshow.value = false;
errmsg.value = res.result?.message ? res.result?.message : res.message errmsg.value = res.result?.message ? res.result?.message : res.message
openerror.value = true; openerror.value = true;
console.log("?????")
} }
}) })
} }

View File

@ -80,7 +80,7 @@
onMounted(() => { onMounted(() => {
menuIndex.value = -1; menuIndex.value = -1;
nextTick(() => menuIndex.value = 2) nextTick(() => menuIndex.value = 0)
isOld.value = 2; isOld.value = 2;
uni.getSystemInfoSync(); // global uni.getSystemInfoSync(); // global

View File

@ -63,6 +63,7 @@
selectType.value = index; selectType.value = index;
pageNo.value = 1; pageNo.value = 1;
pddlist.value = []; pddlist.value = [];
uni.removeStorage({ key: 'valitem'})
pandian(); pandian();
} }
onLoad((e)=>{ onLoad((e)=>{
@ -81,6 +82,7 @@
pageSize:10 pageSize:10
} }
queryPddInfoList(obj).then(res=>{ queryPddInfoList(obj).then(res=>{
console.log(res.result.records)
pddlist.value.push(...res.result.records); pddlist.value.push(...res.result.records);
status.value = (res.result.total == pddlist.value.length ? 'nomore' : 'loadmore'); status.value = (res.result.total == pddlist.value.length ? 'nomore' : 'loadmore');
let s = Math.ceil(res.result.total / 3); let s = Math.ceil(res.result.total / 3);

View File

@ -348,7 +348,7 @@
font-size: 1.6vw; font-size: 1.6vw;
color: #222222; color: #222222;
height: 3.1vw; height: 3.1vw;
padding-top: 1vw; padding-top: 0.8vw;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;

View File

@ -3,7 +3,7 @@
<scroll-view scroll-y="true" class="itembox" scroll-with-animation @scrolltolower="scrolltolower()" <scroll-view scroll-y="true" class="itembox" scroll-with-animation @scrolltolower="scrolltolower()"
enable-back-to-top enable-flex :scroll-top="scrolltop" @scroll="scroll"> enable-back-to-top enable-flex :scroll-top="scrolltop" @scroll="scroll">
<defaultr cont="暂无数据" v-if="pddlist.length==0 && listflag" style="position: absolute;width: 10vw;height: 10vw;"></defaultr> <defaultr cont="暂无数据" v-if="pddlist.length==0 && listflag" style="position: absolute;width: 10vw;height: 10vw;"></defaultr>
<view class="items guodu" v-for="(v,i) in pddlist" :key='i' :class="{'itembord0':v.zk==true,'dczk':v.dczk==true&&v.zk==true}"> <view class="items guodu" v-for="(v,i) in pddlist" :key='i' :class="{'itembord0':v.zk==true,'itembord1':v.zk==false,'dczk':v.dczk==true&&v.zk==true,'dczks':v.dczk==true&&v.zk==false}">
<view class="speitem guodu"> <view class="speitem guodu">
<view class="imgs"> <view class="imgs">
<image :src="v?.materialImg?serverUrl+v?.materialImg:'/static/index/procurement/k.png'" <image :src="v?.materialImg?serverUrl+v?.materialImg:'/static/index/procurement/k.png'"
@ -27,7 +27,7 @@
<text>物料单位</text> <text>物料单位</text>
{{v?.materialUnits}} {{v?.materialUnits}}
</view> </view>
<view class="cot" style="white-space: nowrap;display: block;overflow: hidden;text-overflow: ellipsis;height: 1.5vw;"> <view class="cot" style="white-space: nowrap;display: block;overflow: hidden;text-overflow: ellipsis;height: 1.7vw;">
<text style="display: inline-block;">规格型号</text>{{v?.specificationModel}} <text style="display: inline-block;">规格型号</text>{{v?.specificationModel}}
</view> </view>
<view class="wltwo"> <view class="wltwo">
@ -47,7 +47,7 @@
<text>差额</text> <text>差额</text>
</view> </view>
<view class="pandian" @click="zhankai(v,i)"> <view class="pandian" @click="zhankai(v,i)">
<image :src="v.zk?'/static/index/procurement/pd1.png':'/static/index/procurement/pd0.png'" mode="aspectFill" v-if="v.pdType==null||v.pdType==''"></image> <image :src="v.zk?'/static/index/procurement/pd1.png':'/static/index/procurement/pd0.png'" mode="aspectFill" v-if="v.pdType==null||v.pdType==''||v.pdType == 3"></image>
<image :src="v.zk?'/static/index/procurement/pd5.png':'/static/index/procurement/pd2.png'" mode="aspectFill" v-if="v.pdType == 1"></image> <image :src="v.zk?'/static/index/procurement/pd5.png':'/static/index/procurement/pd2.png'" mode="aspectFill" v-if="v.pdType == 1"></image>
<image :src="v.zk?'/static/index/procurement/pd4.png':'/static/index/procurement/pd3.png'" mode="aspectFill" v-if="v.pdType == 2"></image> <image :src="v.zk?'/static/index/procurement/pd4.png':'/static/index/procurement/pd3.png'" mode="aspectFill" v-if="v.pdType == 2"></image>
</view> </view>
@ -151,14 +151,14 @@
const valindex = ref(-1); const valindex = ref(-1);
const zhankai = (v, i) => { const zhankai = (v, i) => {
let s = Math.ceil((i + 1) / 3); let s = Math.ceil((i + 1) / 3);
if(valindex.value !=i && valindex.value > -1 &&uni.getStorageSync('valitem')){ if(valindex.value !=i && valindex.value > -1 && uni.getStorageSync('valitem') && props.pddType == '1'){
emit('tabitem',valindex.value,uni.getStorageSync('valitem')) emit('tabitem',valindex.value,uni.getStorageSync('valitem'))
} }
valindex.value = i; valindex.value = i;
scrolltop.value = top.value; scrolltop.value = top.value;
v.zk = !v.zk; v.zk = !v.zk;
if (v.zk) { if (v.zk) {
uni.setStorageSync('valitem', v); if(props.pddType == '1'){uni.setStorageSync('valitem', v);}
setTimeout(() => { setTimeout(() => {
v.yczk = v.zk; v.yczk = v.zk;
}, 200) }, 200)
@ -302,13 +302,21 @@
width: 100%; width: 100%;
height: 50vw; height: 50vw;
display: flex; display: flex;
.itembord1 {
border-radius: 1.6vw !important;
transition: 1s;
}
.itembord0 { .itembord0 {
border-radius: 1.6vw 1.6vw 0 0 !important; border-radius: 1.6vw 1.6vw 0 0 !important;
z-index: 25 !important; z-index: 25 !important;
transition: .1s;
} }
.dczk{ .dczk{
top: -17vw !important; top: -17vw !important;
transition: .4s !important;
}
.dczks{
transition: .4s !important;
} }
.itemhei0 { .itemhei0 {
height: 0vw !important; height: 0vw !important;

View File

@ -333,7 +333,7 @@
return return
} }
emit('right', relNumber.value,gysarr.value[gysidnum.value],type.value) emit('right', relNumber.value,gysarr.value[gysidnum.value],type.value,props.caigouobj)
} }
const colse = ()=>{ const colse = ()=>{
emit('colse') emit('colse')

View File

@ -87,7 +87,7 @@
</view> </view>
<view style="color: #888888;"> <view style="color: #888888;">
{{ `[ 王嘉尔 ]` }} [{{ item.pddStartBy}}]
</view> </view>
</view> </view>
</view> </view>
@ -107,7 +107,7 @@
盘点结束 盘点结束
</view> </view>
<view style="color: #888888;"> <view style="color: #888888;">
{{ item.pddType=='2'?`[ 王嘉尔 ]`: `` }} {{ item.pddType=='2'?`[` +item.pddEndBy+ `]`: `` }}
</view> </view>
</view> </view>
</view> </view>
@ -273,7 +273,6 @@
} }
onShow(()=>{ onShow(()=>{
chongzhi() chongzhi()
console.log("刷新了")
}) })
onMounted(() => { onMounted(() => {
// firstgetqueryCgdList(); // firstgetqueryCgdList();

View File

@ -82,7 +82,7 @@
suppliers:'' suppliers:''
}) })
const InvoicingList = ref([]) const InvoicingList = ref([])
const status = ref('loadmore') const status = ref('nomore')
const open = ref(0) const open = ref(0)
onShow(()=>{ onShow(()=>{
InvoicingList.value = []; InvoicingList.value = [];
@ -108,9 +108,9 @@
item.zk = false; item.zk = false;
item.scrollleft = 0; item.scrollleft = 0;
}) })
// console.log(``,res.result.records) console.log(`最上层`,res )
InvoicingList.value.push(...res.result.records); InvoicingList.value.push(...res.result.records);
status.value = res.result.total == InvoicingList.value.length ? 'nomore' : 'loadmore'; // status.value = (res.result.total == InvoicingList.value.length) ? 'nomore' : 'loadmore';
}) })
} }
const search = (x : number) => { const search = (x : number) => {
@ -196,17 +196,17 @@
} }
const adfangdou = ref(true); const adfangdou = ref(true);
// //
const right = (n:number,nm:any,type:Object) => { const right = (n:number,nm:any,type:Object,v:object) => {
setTimeout(()=>{ setTimeout(()=>{
if(adfangdou.value){ if(adfangdou.value){
connfig(nm,n,type); connfig(nm,n,type,v);
adfangdou.value = false; adfangdou.value = false;
} }
},30) },30)
} }
const timers = ref(true) const timers = ref(true)
const connfig = (nm:any,num:Number,type:Object) =>{ const connfig = (nm:any,num:Number,type:Object,v:object) =>{
if(timers.value==false){return} if(timers.value==false){return}
timers.value=false; timers.value=false;
let dt = { let dt = {
@ -225,10 +225,11 @@
timers.value=true; timers.value=true;
if(res.success){ if(res.success){
setTimeout(()=>{ setTimeout(()=>{
tihuan(v);
addflag.value = false; addflag.value = false;
form.pageNo=1; // form.pageNo=1;
InvoicingList.value = []; // InvoicingList.value = [];
queryInvo();
},700) },700)
uni.showToast({ uni.showToast({
icon:res.success?'success':'none', icon:res.success?'success':'none',
@ -241,7 +242,23 @@
adfangdou.value = true; adfangdou.value = true;
}) })
} }
const tihuan = (v)=>{
let forms={
nuId: uni.getStorageSync('nuId'),
wlParamInfo:v.wlMaterialNo,
}
queryShoppingCartList(forms).then(res => {
let obj = res.result.records[0];
InvoicingList.value.forEach((item,i)=>{
if(item.id == obj.id){
obj.flag = v.flag;
obj.zk = false;
obj.scrollleft = 0;
InvoicingList.value[i] = obj;
}
})
})
}
const caigouflag = ref(false) const caigouflag = ref(false)
const caigouarr = ref([]) const caigouarr = ref([])
const generatedOrder = ref([]) const generatedOrder = ref([])