This commit is contained in:
wangweidong 2025-12-22 16:55:46 +08:00
parent 53f694b33c
commit e18c15bc0f
4 changed files with 14 additions and 9 deletions

View File

@ -46,7 +46,7 @@
</view> </view>
<view class="dot"> <view class="dot">
<view style="text-align: right;">{{v?.pdsl?v?.pdsl:'--'}}</view> <view style="text-align: right;">{{v?.pdsl?v?.pdsl:'--'}}</view>
<text>盘点数量</text> <text style="text-align: right;">盘点数量</text>
</view> </view>
</view> </view>
</view> </view>
@ -57,10 +57,11 @@
</view> </view>
</view> </view>
<defaultr cont="暂无数据" v-if="pddlist.length==0 " style="position: absolute;width: 10vw;height: 10vw;"></defaultr>
</view> </view>
</scroll-view> </scroll-view>
<view class="submit"> <view class="submit">
<view>取消</view> <view @click="emit('close')">取消</view>
<view @click="subits">确定</view> <view @click="subits">确定</view>
</view> </view>
</view> </view>
@ -72,6 +73,7 @@
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue'; import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app" import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import { queryPddInfoList,editPddInfo,submitPddMain } from '../api/lunpan.js' import { queryPddInfoList,editPddInfo,submitPddMain } from '../api/lunpan.js'
import defaultr from '../components/default.vue'
const selectType = ref(0); const selectType = ref(0);
const scrolltop = ref(0); const scrolltop = ref(0);
const tagsarray = ref(["全部", "盘盈", "盘亏"]); const tagsarray = ref(["全部", "盘盈", "盘亏"]);
@ -92,6 +94,7 @@
()=>props.show, ()=>props.show,
()=>{ ()=>{
if(props.show){ if(props.show){
pddlist.value = [];
pandian(); pandian();
setTimeout(()=>{ setTimeout(()=>{
showbox.value = true; showbox.value = true;
@ -267,14 +270,14 @@
top: 0; top: 0;
.wltwo { .wltwo {
width: 11vw; width: 18vw;
height: 3.7vw; height: 3.7vw;
display: flex; display: flex;
margin-top: 1.2vw; margin-top: 1.2vw;
justify-content: space-between; justify-content: space-between;
>view { >view {
// min-width: 5vw; width: 50%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -27,7 +27,6 @@
<view class="cardp"> <view class="cardp">
<view v-if="v.materialInfo?.categoryName">{{v.materialInfo?.categoryName}}</view> <view v-if="v.materialInfo?.categoryName">{{v.materialInfo?.categoryName}}</view>
<view v-if="v.materialInfo?.typeName">{{v.materialInfo?.typeName}}</view> <view v-if="v.materialInfo?.typeName">{{v.materialInfo?.typeName}}</view>
<view v-if="v.materialInfo?.typeName">{{v.materialInfo?.typeName}}</view>
<view v-if="v.materialInfo?.medicationName">{{v.materialInfo?.medicationName}}</view> <view v-if="v.materialInfo?.medicationName">{{v.materialInfo?.medicationName}}</view>
</view> </view>
</view> </view>

View File

@ -51,7 +51,7 @@
<image class="guodu" :style="v.zk?'transform: rotate(180deg);':''" :src="'/static/index/procurement/l.png'" mode="aspectFill"></image> <image class="guodu" :style="v.zk?'transform: rotate(180deg);':''" :src="'/static/index/procurement/l.png'" mode="aspectFill"></image>
</view> </view>
<view class="zkadd guodu" :class="v.isAdd==1?'zkf':''"> <view class="zkadd guodu" :class="v.isAdd==1?'zkf':''">
<view @click.stop @touchend.stop>出入库</view> <view @click.stop="crk(v,index)" @touchend.stop>出入库</view>
<view @click.stop="addcar(v)" v-if="v.isAdd!=1" @touchend.stop> <view @click.stop="addcar(v)" v-if="v.isAdd!=1" @touchend.stop>
<view> <view>
加购物车 加购物车
@ -89,11 +89,14 @@
props.InvoicingList[0].scrollleft = 0; props.InvoicingList[0].scrollleft = 0;
} }
}) })
const emit = defineEmits(['addcartory','tolower','solleft']) const emit = defineEmits(['addcartory','tolower','solleft','crk'])
const serverUrl = ref('') const serverUrl = ref('')
onMounted(()=>{ onMounted(()=>{
serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/'; serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/';
}) })
const crk=(v,i)=>{
emit('crk',v,i)
}
const setout1 = ref(true) const setout1 = ref(true)
const scrolltolower = () => { const scrolltolower = () => {
emit('tolower') emit('tolower')

View File

@ -113,10 +113,10 @@
<!-- more --> <!-- more -->
<view class="mengban" v-if="Invenshow" @click="Invenshow = false;moredex=0"></view> <view class="mengban" v-if="Invenshow" @click="Invenshow = false;moredex=0"></view>
<Inventory @addcartory="addcartory" :show="Invenshow" :InvoicingList="Material" :status="statustory" <Inventory @addcartory="addcartory" :show="Invenshow" :InvoicingList="Material" :status="statustory"
@tolower="scrolltolower(1)"></Inventory> @tolower="scrolltolower(1)" @crk="crk"></Inventory>
<view class="mengban" v-if="detailsshow" @click="detailsshow = false"></view> <view class="mengban" v-if="detailsshow" @click="detailsshow = false"></view>
<detail :InvoicingList="[caigouobj]" @addcartory="addcartory" :show="detailsshow"></detail> <detail :InvoicingList="[caigouobj]" @addcartory="addcartory" :show="detailsshow" @crk="crk"></detail>
<view class="mengban" v-if="crkflag" @click="crkflag = false"></view> <view class="mengban" v-if="crkflag" @click="crkflag = false"></view>
<inboundoutbound :show="crkflag" :wl="crkobj"></inboundoutbound> <inboundoutbound :show="crkflag" :wl="crkobj"></inboundoutbound>