This commit is contained in:
wangweidong 2025-11-24 14:08:19 +08:00
parent 607c18b1c6
commit 4d54274ee3
5 changed files with 26 additions and 8 deletions

View File

@ -426,7 +426,7 @@
align-items: center; align-items: center;
view { view {
width: 5.5vw; min-width: 5.5vw;
height: 1.8vw; height: 1.8vw;
border-radius: 0.9vw; border-radius: 0.9vw;
border: 1px solid #D2D2D2; border: 1px solid #D2D2D2;
@ -437,6 +437,7 @@
font-weight: 400; font-weight: 400;
font-size: 1vw; font-size: 1vw;
color: #555555; color: #555555;
padding: 0 0.5vw;
} }
} }
@ -444,6 +445,7 @@
width: 9vw; width: 9vw;
height: 8vw; height: 8vw;
margin: 1vw auto 0; margin: 1vw auto 0;
border-radius: 1.1vw;
} }
} }
} }

View File

@ -56,7 +56,7 @@
</view> </view>
<view class="btnbotm"> <view class="btnbotm">
<view class="bt" @click="typescroll(1,-1,{});qingkong()">重置</view> <view class="bt" @click="typescroll(1,-1,{});qingkong();config()">重置</view>
<view class="bt qd" @click="config">确定 <text v-if="num>0">{{num>99?'99+':num}}件物料</text></view> <view class="bt qd" @click="config">确定 <text v-if="num>0">{{num>99?'99+':num}}件物料</text></view>
</view> </view>
</view> </view>
@ -213,13 +213,14 @@
const qingkong = () => { const qingkong = () => {
if (gysidnum.value > -1) { if (gysidnum.value > -1) {
gysidnum.value = -1; gysidnum.value = -1;
getTreelnum() getTreelnum();
} }
} }
defineExpose({ defineExpose({
typescroll, typescroll,
config, config,
qingkong qingkong,
getTreelnum
}) })
</script> </script>

View File

@ -169,7 +169,11 @@
serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/'; serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/';
}) })
onShow(()=>{ onShow(()=>{
config() shoppcar();
getWaringMaterial();
nextTick(()=>{
chongzhi()
})
}) })
const Material = ref([]) const Material = ref([])
const getWaringMaterial=()=>{ const getWaringMaterial=()=>{
@ -193,7 +197,6 @@
shoppcar(); shoppcar();
queryInvo(); queryInvo();
getWaringMaterial() getWaringMaterial()
shoppcar();
} }
const carnum = ref(0) const carnum = ref(0)

View File

@ -80,7 +80,10 @@
const InvoicingList = ref([]) const InvoicingList = ref([])
const status = ref('loading') const status = ref('loading')
const open = ref(0) const open = ref(0)
onLoad(()=>{ onShow(()=>{
nextTick(()=>{
chongzhi();
})
queryInvo() queryInvo()
}) })
const classication = ref<InstanceType<typeof ChildComponent>>() const classication = ref<InstanceType<typeof ChildComponent>>()
@ -153,7 +156,7 @@
if(res.success){ if(res.success){
form.pageNo=1; form.pageNo=1;
InvoicingList.value = []; InvoicingList.value = [];
queryInvo() chongzhi()
} }
open.value = 0; open.value = 0;
// uni.showToast({ // uni.showToast({
@ -179,6 +182,8 @@
if(res.success){ if(res.success){
InvoicingList.value.splice(delobj.value.index,1); InvoicingList.value.splice(delobj.value.index,1);
open.value = 0; open.value = 0;
status.value = InvoicingList.value.length == 0 ? 'nomore' : 'loadmore';
classication.value.getTreelnum()
} }
},800) },800)

View File

@ -450,12 +450,14 @@
const middletarget = ref(0); const middletarget = ref(0);
const plzinfo = reactive({ const plzinfo = reactive({
nuId: uni.getStorageSync('nuId'),
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
canpull: true, canpull: true,
cgdParamInfo: "" cgdParamInfo: ""
}) })
const mobanplzinfo = { const mobanplzinfo = {
nuId: uni.getStorageSync('nuId'),
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
canpull: true, canpull: true,
@ -490,6 +492,7 @@
form.suppliers = e.suppliers; form.suppliers = e.suppliers;
form.cgdId = e.cgdId; form.cgdId = e.cgdId;
form.pageNo = 1; form.pageNo = 1;
middletarget.value = 0;
InvoicingList.value = []; InvoicingList.value = [];
queryInvo(); queryInvo();
ification.value = false ification.value = false
@ -518,6 +521,9 @@
} }
const lefttarget = ref(0); const lefttarget = ref(0);
const clickLeftMenu = (index : any, item : object) => { const clickLeftMenu = (index : any, item : object) => {
if(lefttarget.value!=index){
middletarget.value = 0;
}
let num = Math.ceil((index + 1)) let num = Math.ceil((index + 1))
leftscrolltop.value = (num - 2) * 186; leftscrolltop.value = (num - 2) * 186;
lefttarget.value = index; lefttarget.value = index;
@ -1071,6 +1077,7 @@
height: 270rpx; height: 270rpx;
margin-left: 2vw; margin-left: 2vw;
margin-top: 5vw; margin-top: 5vw;
border-radius: 1vw;
} }
.left-tags { .left-tags {