This commit is contained in:
wangweidong 2025-12-30 08:42:53 +08:00
parent eb43b90dc3
commit 73b45134e6
24 changed files with 173 additions and 119 deletions

View File

@ -106,7 +106,7 @@
if (res.success) { if (res.success) {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none', // icon: 'success', //
duration: 2000 duration: 2000
}) })
// uni.clearStorageSync(); // uni.clearStorageSync();

View File

@ -475,7 +475,7 @@
if (res.success) { if (res.success) {
uni.showToast({ uni.showToast({
title: res.result.message, title: res.result.message,
icon: 'none', // 'none' icon: 'success', // 'none'
duration: 3000 duration: 3000
}) })
} else { } else {
@ -514,7 +514,7 @@
if (res.success) { if (res.success) {
uni.showToast({ uni.showToast({
title: res.result.message, title: res.result.message,
icon: 'none', // 'none' icon: 'success', // 'none'
duration: 3000 duration: 3000
}) })
} else { } else {

View File

@ -412,7 +412,7 @@
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({
title: res.success ? res.result.message : res.message, title: res.success ? res.result.message : res.message,
icon: 'none', // 'none' icon:res.success ?'success': 'none', // 'none'
duration: 3000 duration: 3000
}) })
}, 300) }, 300)

View File

@ -1,12 +1,13 @@
<template> <template>
<view class="contain" v-if="isShow"> <view class="contain guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<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>
<!-- 没数据了遮罩 --> <!-- 没数据了遮罩 -->
<nomessageimge cont="暂无数据" :show="nomessageshow" /> <view class="mengban" style="background: #fff;width:100vw;right:0;left: 0;top: -5vh;height: 110vh;" v-if="nomessageshow">
<defaultr cont="暂无数据" style="z-index: 999;"></defaultr>
</view>
<!-- 给模糊搜索用的 --> <!-- 给模糊搜索用的 -->
<view v-show="filteredCgrListsecond.length&&gysvalue" class="mengban" style="background: transparent;" <view v-show="filteredCgrListsecond.length&&gysvalue" class="mengban" style="background: transparent;"
@click="closefilteredCgrListsecond"> @click="closefilteredCgrListsecond">
@ -400,7 +401,7 @@
</view> </view>
</view> </view>
<view class="noarray" v-if="!suixingdanarr.length"> <view class="noarray" v-if="!suixingdanarr.length">
<image class="noarray-img" src="/static/index/warehouse/procurement/picking/noarray.png" <image class="noarray-img" src="/static/index/warehouse/procurement/picking/noarray.png"
mode="aspectFill" /> mode="aspectFill" />
<view class="noarray-font"> <view class="noarray-font">
@ -1084,13 +1085,13 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted , watch} from 'vue'; import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted, watch } from 'vue';
import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js' import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app" import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import calendar from '@/component/public/calendar.vue' import calendar from '@/component/public/calendar.vue'
import nomessageimge from '@/pages/procurement/components/nomessage.vue'; import nomessageimge from '@/pages/procurement/components/nomessage.vue';
import tanchuang from '@/pages/procurement/components/tanchuang.vue'; import tanchuang from '@/pages/procurement/components/tanchuang.vue';
import defaultr from '@/pages/procurement/components/default.vue';
const open = ref(0); const open = ref(0);
const typechange = ref(0); const typechange = ref(0);
const stringjh = ref("") const stringjh = ref("")
@ -1313,11 +1314,18 @@
() => props.isShow, () => props.isShow,
(newVal, oldVal) => { (newVal, oldVal) => {
if (!oldVal && newVal) { if (!oldVal && newVal) {
firstgetqueryCgdList(); firstgetqueryCgdList();
getSelectList(); getSelectList();
} transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
} else {
transition.value = false;
}
} }
) )
const transition = ref(false)
const opencgr = ref(false); const opencgr = ref(false);
const opengys = ref(false); const opengys = ref(false);
@ -1391,12 +1399,12 @@
lookshuliang() lookshuliang()
} }
const lookshuliang = () => { const lookshuliang = () => {
let data = { let data = {
...plzinfo, ...plzinfo,
pageNo : 1 pageNo: 1
} }
queryCgdList(data).then((res : any) => { queryCgdList(data).then((res : any) => {
alltotal.value = res.result.total alltotal.value = res.result.total
}) })
@ -2041,12 +2049,12 @@
.contain { .contain {
background-color: rgb(239, 240, 244); background-color: rgb(239, 240, 244);
width: 90vw; width: 90vw;
height:calc(100vh - 5vh); height: calc(100vh - 5vh);
padding:1vh 2vw 0 0; padding: 1vh 2vw 0 0;
display: flex; display: flex;
.contain-left { .contain-left {
height:calc(100vh - 3vw); height: calc(100vh - 3vw);
width: 30vw; width: 30vw;
position: relative; position: relative;
z-index: 99; z-index: 99;
@ -2557,7 +2565,7 @@
.middle-Y-father { .middle-Y-father {
display: flex; display: flex;
.middle-one { .middle-one {
min-width: 325rpx; min-width: 325rpx;
height: 450rpx; height: 450rpx;
@ -2613,7 +2621,7 @@
background-color: #fff; background-color: #fff;
width: 60%; width: 60%;
top: 0; top: 0;
right:0; right: 0;
} }
.wuliao-title { .wuliao-title {

View File

@ -5,13 +5,13 @@
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent> <leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
</view> </view>
<view class="boxrt"> <view class="boxrt">
<index :isShow="menuop" v-if="!ckindex" /> <index :isShow="menuop==0" v-if="!ckindex" />
<material :isShow="ckindex == 1"></material> <material :isShow="menuop == 1" v-if="ckindex == 1"></material>
<picking :isShow="ckindex == 2"></picking> <picking :isShow="menuop == 2" v-if="ckindex == 2"></picking>
<finish :isShow="ckindex == 3"></finish> <finish :isShow="menuop == 3" v-if="ckindex == 3"></finish>
<outbound v-if="ckindex == 4"></outbound> <outbound :isShow="menuop == 4" v-if="ckindex == 4"></outbound>
<retstock v-if="ckindex == 5"></retstock> <retstock :isShow="menuop == 5" v-if="ckindex == 5"></retstock>
<inventory :isShow="ckindex == 6"></inventory> <inventory :isShow="menuop == 6" v-if="ckindex == 6"></inventory>
</view> </view>
</view> </view>
</view> </view>
@ -19,6 +19,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'; import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import leftcontent from "@/pages/NursingNew/component/leftcontent/leftcontent.vue" import leftcontent from "@/pages/NursingNew/component/leftcontent/leftcontent.vue"
import material from "@/pages/procurement/material.vue"; import material from "@/pages/procurement/material.vue";
import index from "./component/index.vue" import index from "./component/index.vue"
@ -41,12 +42,15 @@
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' }, { name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' },
]) ])
const menuop = ref(false) const menuop = ref(-1)
onMounted(() => { // onMounted(() => {
// // //
navurl(0) // navurl(0)
// })
onShow(()=>{
navurl(ckindex.value)
}) })
const ckindex = ref(-1) const ckindex = ref(0)
const navurl = (e : number) => { const navurl = (e : number) => {
// //
if (e === tabbrarr.value.length - 1) { if (e === tabbrarr.value.length - 1) {
@ -55,9 +59,9 @@
} }
ckindex.value = e; ckindex.value = e;
// //
menuop.value = false menuop.value = -1
setTimeout(() => { setTimeout(() => {
menuop.value = true menuop.value = e
}, 50) }, 50)
} }

View File

@ -1,12 +1,12 @@
<template> <template>
<view class="contain" v-if="isShow"> <view class="contain guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<view v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata" class="mengban" <view v-show="moreindex!=-1 || topbuttontarget!=-1 || openjianhuo || opengaijia || opendata" class="mengban"
:style="opencgr||opengys||opendata ?{background:`transparent`}:{}" :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>
<!-- 没数据了遮罩 --> <!-- 没数据了遮罩 -->
<!-- <nomessageimge cont="暂无数据" :show="nomessageshow" style="width: 92vw;right: 0;height: 100vw;top: 0;position: fixed;"/> --> <!-- <nomessageimge cont="暂无数据" :show="nomessageshow" style="width: 92vw;right: 0;height: 100vw;top: 0;position: fixed;"/> -->
<view class="mengban" style="background: #fff;width: 91.8vw;right:0;left: 8.2vw;" v-if="nomessageshow" > <view class="mengban" style="background: #fff;width:100vw;right:0;left: 0;top: -5vh;height: 110vh;" v-if="nomessageshow">
<defaultr cont="暂无数据" style="z-index: 999;"></defaultr> <defaultr cont="暂无数据" style="z-index: 999;"></defaultr>
</view> </view>
<!-- 给模糊搜索用的 --> <!-- 给模糊搜索用的 -->
@ -1044,17 +1044,17 @@
<tanchuang :show="badshow" font="确定要作废这个采购单吗" @back="badshow=false;" @right="zuofei"> </tanchuang> <tanchuang :show="badshow" font="确定要作废这个采购单吗" @back="badshow=false;" @right="zuofei"> </tanchuang>
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del()"> </tanchuang> <tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del()"> </tanchuang>
<tanchuang :show="open==2" font="是否销账此物料?" @back="open = 0" @right="sctp(1)"> </tanchuang> <tanchuang :show="open==2" font="是否销账此物料?" @back="open = 0" @right="sctp(1)"> </tanchuang>
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" /> <errorshow :show="openerror" :font="errmsg" @close="openerror=false" />
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted,watch } from 'vue'; import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, onUnmounted, watch } from 'vue';
import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js' import { editIzNew, queryPickingRecordList, queryJhzpList, addSxd, querySxdList, queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app" import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import calendar from '@/component/public/calendar.vue' import calendar from '@/component/public/calendar.vue'
import defaultr from '@/pages/procurement/components/default.vue'; import defaultr from '@/pages/procurement/components/default.vue';
const props = defineProps({ const props = defineProps({
isShow: { isShow: {
type: Boolean type: Boolean
@ -1066,10 +1066,16 @@
if (!oldVal && newVal) { if (!oldVal && newVal) {
firstgetqueryCgdList(); firstgetqueryCgdList();
getSelectList(); getSelectList();
} transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
} else {
transition.value = false;
}
} }
) )
const transition = ref(false)
const open = ref(0); const open = ref(0);
const typechange = ref(0); const typechange = ref(0);
const stringjh = ref("") const stringjh = ref("")
@ -1846,7 +1852,7 @@
console.log(`返回`, res) console.log(`返回`, res)
if (res.success) { if (res.success) {
uni.showToast({ uni.showToast({
icon: res.success?'success':'none', icon: res.success ? 'success' : 'none',
title: res.message ? res.message : '操作成功' title: res.message ? res.message : '操作成功'
}) })
plsbuy.value[lefttarget.value].totalPrice = res.result.cgdTotalPrice plsbuy.value[lefttarget.value].totalPrice = res.result.cgdTotalPrice
@ -1856,10 +1862,10 @@
open.value = 0; open.value = 0;
form.cgdId = plsbuy.value[lefttarget.value].id; form.cgdId = plsbuy.value[lefttarget.value].id;
plsbuy.value[lefttarget.value] = res.result.cgdInfo; plsbuy.value[lefttarget.value] = res.result.cgdInfo;
setTimeout(()=>{ setTimeout(() => {
queryInvo(middletarget.value) queryInvo(middletarget.value)
},700) }, 700)
}else{ } else {
errmsg.value = res.message; errmsg.value = res.message;
openerror.value = true; openerror.value = true;
} }
@ -2019,7 +2025,7 @@
.contain { .contain {
background-color: rgb(239, 240, 244); background-color: rgb(239, 240, 244);
width: 90vw; width: 90vw;
height:calc(100vh - 3vw); height: calc(100vh - 3vw);
padding: 1vh 2vw 0 1vw; padding: 1vh 2vw 0 1vw;
display: flex; display: flex;
@ -2458,7 +2464,7 @@
.contain-right { .contain-right {
z-index: 1; z-index: 1;
height: 95vh; height: 100vh;
width: 62vw; width: 62vw;
overflow: hidden; overflow: hidden;
@ -2529,10 +2535,12 @@
height: 460rpx; height: 460rpx;
margin-top: 20rpx; margin-top: 20rpx;
margin-left: 5%; margin-left: 5%;
.middle-Y { .middle-Y {
width: 92%; width: 92%;
height: 100%; height: 100%;
margin-right: 3%; margin-right: 3%;
.middle-Y-father { .middle-Y-father {
display: flex; display: flex;
@ -2587,10 +2595,10 @@
.white-zhezhao { .white-zhezhao {
position: fixed; position: fixed;
height: 100%; height: 102vh;
background-color: #fff; background-color: #fff;
width: 62%; width: 61vw;
top: 0; top:-5vh;
right: 0; right: 0;
} }
@ -3435,4 +3443,9 @@
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
} }
.guodu {
transition: .4s;
-webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch;
}
</style> </style>

View File

@ -295,11 +295,10 @@
form.checkKey = time.value form.checkKey = time.value
huakuaiOpen.value = false huakuaiOpen.value = false
loginApp(form).then(res => { loginApp(form).then(res => {
console.log("info", res)
if (res.success) { if (res.success) {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none', // 'success''loading''none' icon: 'success', // 'success''loading''none'
duration: 500 // ms duration: 500 // ms
}) })
uni.setStorageSync('token', res.result.token); uni.setStorageSync('token', res.result.token);

View File

@ -170,7 +170,7 @@
width: 100%; width: 100%;
height: 3.2vw; height: 3.2vw;
margin-top: 0.4vw; margin-top: 0.4vw;
padding-right: 2vw; // padding-right: 2vw;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
view{ view{

View File

@ -21,7 +21,7 @@
<view>{{v.materialName}}</view><text>{{v.materialNo}}</text> <view>{{v.materialName}}</view><text>{{v.materialNo}}</text>
</view> </view>
<view style="white-space: nowrap;display: block;"> <view style="white-space: nowrap;display: block;">
<text> 规格型号: {{v.specificationModel}}</text> <text style="white-space: nowrap;display: block;"> 规格型号: {{v.specificationModel}}</text>
</view> </view>
<view> <view>
<text v-if="v.multiUnitType=='1'">采购单价: {{v.oneUnitPrice?Number(v.oneUnitPrice).toFixed(2):""}} </text> <text v-if="v.multiUnitType=='1'">采购单价: {{v.oneUnitPrice?Number(v.oneUnitPrice).toFixed(2):""}} </text>
@ -410,8 +410,8 @@
box-shadow: 0rpx 0rpx 0.7vw 0rpx rgba(182,186,196,0.29); box-shadow: 0rpx 0rpx 0.7vw 0rpx rgba(182,186,196,0.29);
border-radius: 1.6vw; border-radius: 1.6vw;
position: fixed; position: fixed;
top: 8vh; top:5vh;
left: 24.5vw; right: 24.5vw;
z-index: 103; z-index: 103;
padding: 2vw; padding: 2vw;
} }

View File

@ -45,11 +45,8 @@
box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163,167,182,0.16); box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163,167,182,0.16);
border-radius: 1.6vw; border-radius: 1.6vw;
position: fixed; position: fixed;
top: 0; right: 28.7vw;
left: 0; bottom: 18vw;
right: 0;
bottom: 0;
margin: auto;
padding: 2.8vw; padding: 2.8vw;
z-index: 120; z-index: 120;
>view{ >view{

View File

@ -570,8 +570,8 @@
overflow: hidden; overflow: hidden;
box-shadow: 0rpx 0rpx 1.6vw 0rpx rgba(136,141,153,0.28); box-shadow: 0rpx 0rpx 1.6vw 0rpx rgba(136,141,153,0.28);
border-radius: 2.2vw; border-radius: 2.2vw;
top: 2.5vw; top: 0vw;
left: 32vw; right: 32vw;
position: fixed; position: fixed;
padding:1.5vw 1vw; padding:1.5vw 1vw;
} }

View File

@ -176,13 +176,13 @@
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.fler { .fler {
width: 43vw; width: 44vw;
height: 15.6vw; height: 15.6vw;
} }
} }
.carditem { .carditem {
width: 43vw; width: 44vw;
height: 14.5vw; height: 14.5vw;
background: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.4);
border-radius: 1.6vw; border-radius: 1.6vw;
@ -242,7 +242,7 @@
} }
.add { .add {
width: 6vw; width: 4.5vw;
height: 14.5vw; height: 14.5vw;
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
@ -264,7 +264,7 @@
align-items: center; align-items: center;
position: absolute; position: absolute;
top: 0.8vw; top: 0.8vw;
right: 0.8vw; right: 0vw;
} }
image { image {

View File

@ -321,7 +321,7 @@
min-width: 8vw; min-width: 8vw;
height: 3.8vw; height: 3.8vw;
background: #EDEDEF; background: #EDEDEF;
border-radius: 1.6vw; border-radius: 1.9vw;
padding: 0 2vw; padding: 0 2vw;
margin-left: 1vw; margin-left: 1vw;
border: 1px solid #EDEDEF; border: 1px solid #EDEDEF;

View File

@ -353,8 +353,8 @@
background: rgba(255, 255, 255, 0.98); background: rgba(255, 255, 255, 0.98);
box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163, 167, 182, 0.16); box-shadow: 0rpx 0rpx 1.3vw 0rpx rgba(163, 167, 182, 0.16);
border-radius: 1.6vw; border-radius: 1.6vw;
top: 10vh; top: 7vh;
left: 32vw; right: 32vw;
padding: 2.5vw 2.5vw; padding: 2.5vw 2.5vw;
.btnbotm { .btnbotm {

View File

@ -21,7 +21,7 @@
<view>{{v.materialName}}</view><text>{{v.materialNo}}</text> <view>{{v.materialName}}</view><text>{{v.materialNo}}</text>
</view> </view>
<view> <view>
<text> 规格型号: {{v.specificationModel}}</text> <text style="white-space: nowrap;"> 规格型号: {{v.specificationModel}}</text>
</view> </view>
<view> <view>
<text v-if="v.multiUnitType=='1'">采购单价: {{Number(v.oneUnitPrice).toFixed(2)}} </text> <text v-if="v.multiUnitType=='1'">采购单价: {{Number(v.oneUnitPrice).toFixed(2)}} </text>
@ -414,7 +414,7 @@
border-radius: 1.6vw; border-radius: 1.6vw;
position: fixed; position: fixed;
top: 28vh; top: 28vh;
left: 24.5vw; right: 24.5vw;
z-index: 103; z-index: 103;
padding: 2vw; padding: 2vw;
} }

View File

@ -161,7 +161,7 @@
border-radius: 1.6vw; border-radius: 1.6vw;
position: fixed; position: fixed;
right: 32vw; right: 32vw;
top: 7vw; top: 5vw;
padding: 1.7vw; padding: 1.7vw;
z-index: 112; z-index: 112;
.titletop{ .titletop{

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="all-bgc" v-if="isShow"> <view class="all-bgc guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<view class="buttons-father"> <view class="buttons-father">
<view class="ipt"> <view class="ipt">
<input type="text" v-model="plzinfo.pddInfo" placeholder="盘点单号/盘点人/盘点日期" @confirm="clickconfirm" /> <input type="text" v-model="plzinfo.pddInfo" placeholder="盘点单号/盘点人/盘点日期" @confirm="clickconfirm" />
@ -271,6 +271,7 @@
type: Boolean type: Boolean
}, },
}); });
const transition = ref(false);
watch( watch(
() => props.isShow, () => props.isShow,
(newVal, oldVal) => { (newVal, oldVal) => {
@ -280,7 +281,20 @@
} }
} }
) )
watch(
() => props.isShow,
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
} else {
transition.value = false;
}
}
)
const getSelectList = () => { const getSelectList = () => {
queryPddStartByList({ nuId: uni.getStorageSync('nuId') }).then((res : any) => { queryPddStartByList({ nuId: uni.getStorageSync('nuId') }).then((res : any) => {
cgrlist.value = res.result; cgrlist.value = res.result;
@ -1022,7 +1036,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 30rpx; font-size: 32rpx;
} }
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<view v-if="isShow" > <view class="guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<view class="serchs guodu" :style="tx?'':'width:90vw'"> <view class="serchs guodu" :style="tx?'':'width:90vw'">
<view class="ipt"> <view class="ipt">
<input type="text" placeholder="物料名称/物料编码/物料简拼" v-model="form.wlParamInfo" @confirm="search" /> <input type="text" placeholder="物料名称/物料编码/物料简拼" v-model="form.wlParamInfo" @confirm="search" />
@ -484,7 +484,7 @@
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.fiedright { .fiedright {
width: 5vw; width: 5vw;
height: 12vw; height: 12vw;

View File

@ -108,7 +108,6 @@
item.zk = false; item.zk = false;
item.scrollleft = 0; item.scrollleft = 0;
}) })
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';
}) })
@ -281,7 +280,6 @@
return return
} }
generatedPurchaseViewOrder(caigouarr.value).then(res=>{ generatedPurchaseViewOrder(caigouarr.value).then(res=>{
console.log("11111",caigouarr.value,res)
if(res.success){ if(res.success){
generatedOrder.value = res.result; generatedOrder.value = res.result;
caigouflag.value = true; caigouflag.value = true;

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="all-bgc"> <view class="all-bgc guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<view class="buttons-father"> <view class="buttons-father">
<view class="ipt"> <view class="ipt">
<input type="text" v-model="plzinfo.searchContent" placeholder="请领单号/请领人/请领日期" <input type="text" v-model="plzinfo.searchContent" placeholder="请领单号/请领人/请领日期"
@ -42,8 +42,8 @@
</view> </view>
</view> --> </view> -->
</view> </view>
<view class="mengban" style="background: #fff;width: 91.8vw;right:0;left: 8.2vw;" v-if="nomessageshow" > <view class="mengban" style="background: #fff;width:100vwvw;right:0;left: 0vw;top:-5vw;height: 110vh;" v-if="nomessageshow">
<defaultr cont="暂无数据" style="z-index: 999;"></defaultr> <defaultr cont="暂无数据" style="z-index: 999;margin: auto;top: 0;left:35vw;bottom: 0;right: 0;"></defaultr>
</view> </view>
<!-- <nomessage cont="暂无数据" :show="nomessageshow" /> <!-- <nomessage cont="暂无数据" :show="nomessageshow" />
<view class="zhedang" v-if="nomessageshow"></view> --> <view class="zhedang" v-if="nomessageshow"></view> -->
@ -188,7 +188,7 @@
:src="item.materialInfo?.materialImg?serverUrl+item.materialInfo?.materialImg:'/static/index/procurement/k.png'" :src="item.materialInfo?.materialImg?serverUrl+item.materialInfo?.materialImg:'/static/index/procurement/k.png'"
mode="aspectFill"></image> mode="aspectFill"></image>
</view> </view>
<view class="left-tages" > <view class="left-tages">
{{ item.materialInfo.categoryName}} {{ item.materialInfo.categoryName}}
</view> </view>
<view class="left-tages"> <view class="left-tages">
@ -257,33 +257,28 @@
import { queryQld, queryQldWlInfo, newtransRead, orderReturn, outbound } from './api/lunpan.js' import { queryQld, queryQldWlInfo, newtransRead, orderReturn, outbound } from './api/lunpan.js'
import nomessage from './components/nomessage.vue' import nomessage from './components/nomessage.vue'
import defaultr from './components/default.vue' import defaultr from './components/default.vue'
// const props = defineProps({ const props = defineProps({
// isShow: { isShow: { type: Boolean }
// type: Boolean, });
// required: true,
// },
// });
const manyselect = ref(false); const manyselect = ref(false);
const tagsarray = ref(["全部", "待出库", "已出库", "已收货 "]) const tagsarray = ref(["全部", "待出库", "已出库", "已收货 "])
// const nottrue = Array(10).fill(null) // const nottrue = Array(10).fill(null)
// 使watchisShow // 使watchisShow
const transition = ref(false); const transition = ref(false);
// watch( watch(
// () => props.isShow, () => props.isShow,
// (newVal, oldVal) => { (newVal, oldVal) => {
// // falsetrue0.2 // falsetrue0.2
// if (!oldVal && newVal) { if (!oldVal && newVal) {
// transition.value = false; transition.value = false;
// firstgetqueryCgdList(); setTimeout(() => {
// setTimeout(() => { transition.value = true;
// transition.value = true; }, 50)
// }, 50) } else {
// } else { transition.value = false;
// transition.value = false; }
// } }
)
// }
// )
onMounted(() => { onMounted(() => {
firstgetqueryCgdList(); firstgetqueryCgdList();
}) })
@ -369,7 +364,7 @@
transition.value = true; transition.value = true;
// console.log("kankan", plzinfo, res) // console.log("kankan", plzinfo, res)
if (((res.message === "缺少参数") || (!res.result?.total)) && cannomessage.value) { if (((res.message === "缺少参数") || (!res.result?.total)) && cannomessage.value) {
nomessageshow.value = true; nomessageshow.value = true;
return return
} }
@ -480,7 +475,7 @@
}) })
const badshow = ref(false) const badshow = ref(false)
const huitui = () => { const huitui = () => {
console.log("????",uni.getStorageSync(`NUall`)) console.log("????", uni.getStorageSync(`NUall`))
let data = { let data = {
qldNo: plsbuy.value[lefttarget.value].qldNo, qldNo: plsbuy.value[lefttarget.value].qldNo,
nuId: uni.getStorageSync('nuId'), nuId: uni.getStorageSync('nuId'),
@ -635,6 +630,12 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.guodu {
transition: .4s;
-webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch;
}
.all-bgc { .all-bgc {
background-color: rgb(239, 240, 244); background-color: rgb(239, 240, 244);
// padding: 2vw; // padding: 2vw;
@ -1108,7 +1109,8 @@
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
padding: 0.5vw 0; padding: 0.5vw 0;
.bgimg{
.bgimg {
width: 6.5vw; width: 6.5vw;
height: 6vw; height: 6vw;
margin: 0.3vw auto 0.25vw; margin: 0.3vw auto 0.25vw;
@ -1118,6 +1120,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 0.2vw; padding: 0.2vw;
>image { >image {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -1283,6 +1286,7 @@
height: 500rpx; height: 500rpx;
background-color: #fff; background-color: #fff;
} }
.mengban { .mengban {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;

View File

@ -1,5 +1,5 @@
<template> <template>
<view> <view class="all-bgc guodu" :style="!transition?'opacity: 0':'opacity: 1'" style="transition: opacity 1s ease;">
<view class="serchs"> <view class="serchs">
<view class="leftbtn"> <view class="leftbtn">
<view class="ipt" @click="opendata=true"> <view class="ipt" @click="opendata=true">
@ -130,7 +130,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent } from 'vue'; import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent,watch } from 'vue';
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app" import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
import { thdList, transRead, thdNuMaterialList, addThc, thcList, removeWl, removeAll, submitThd, startServe, finishServe } from './api/lunpan.js' import { thdList, transRead, thdNuMaterialList, addThc, thcList, removeWl, removeAll, submitThd, startServe, finishServe } from './api/lunpan.js'
@ -139,7 +139,24 @@
import tanchuang from './components/tanchuang.vue' import tanchuang from './components/tanchuang.vue'
import submits from './common/submits.vue' import submits from './common/submits.vue'
import calendar from '@/component/public/calendar.vue' import calendar from '@/component/public/calendar.vue'
const props = defineProps({
isShow: { type: Boolean }
});
const transition = ref(false);
watch(
() => props.isShow,
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
} else {
transition.value = false;
}
}
)
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/') const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const opendata = ref(false); const opendata = ref(false);
const form = reactive({ const form = reactive({

View File

@ -1,6 +1,6 @@
// 全局请求封装 // 全局请求封装
// const base_url = 'https://www.focusnu.com/opeapi' const base_url = 'https://www.focusnu.com/opeapi'
const base_url = 'http://192.168.2.37:8081/opeapi' // const base_url = 'http://192.168.2.37:8081/opeapi'
// const base_url = 'http://localhost:8091/opeapi' // const base_url = 'http://localhost:8091/opeapi'
// 请求超出时间 // 请求超出时间
const timeout = 5000 const timeout = 5000

View File

@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
export { export {
camera as default camera as default
}; };

View File

@ -578,7 +578,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
export { export {
fullcamera as default fullcamera as default
}; };