This commit is contained in:
wangweidong 2025-12-25 08:43:37 +08:00
parent dd3dd9837d
commit 089e3a6acb
7 changed files with 30 additions and 26 deletions

View File

@ -382,7 +382,7 @@
.scroll-Y { .scroll-Y {
width: 10vw; width: 10vw;
height: calc(75vh - 22vw); height: calc(75vh - 16vw);
view { view {
min-width: 8.5vw; min-width: 8.5vw;

View File

@ -8,7 +8,7 @@
<view class="img"> <view class="img">
<image :src="objtake?.materialImg?serverUrl+objtake?.materialImg:'/static/index/procurement/k.png'" mode="aspectFill"/> <image :src="objtake?.materialImg?serverUrl+objtake?.materialImg:'/static/index/procurement/k.png'" mode="aspectFill"/>
</view> </view>
<view> <view class="cardfa">
<view>{{ objtake?.categoryId_dictText }}</view> <view>{{ objtake?.categoryId_dictText }}</view>
<view>{{ objtake?.typeId_dictText }}</view> <view>{{ objtake?.typeId_dictText }}</view>
<view v-if="objtake?.medicationId_dictText">{{objtake?.medicationId_dictText}}</view> <view v-if="objtake?.medicationId_dictText">{{objtake?.medicationId_dictText}}</view>
@ -146,7 +146,7 @@ import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive }
width: 14.2vw; width: 14.2vw;
height: 100%; height: 100%;
border-right: 2px solid #E5E5E5; border-right: 2px solid #E5E5E5;
&:nth-child(1) view { .cardfa {
width: 100%; width: 100%;
margin-top: 0.6vw; margin-top: 0.6vw;
display: flex; display: flex;
@ -172,8 +172,8 @@ import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive }
.img{ .img{
padding: 0.3vw; padding: 0.3vw;
background: #f8f8f8; background: #f8f8f8;
width: 12.2vw; width: 10.2vw;
height: 11.2vw; height: 9.2vw;
padding: 0.2vw; padding: 0.2vw;
margin: 0.3vw auto; margin: 0.3vw auto;
border-radius: 1.6vw; border-radius: 1.6vw;

View File

@ -246,17 +246,18 @@
background: #F9F9FA; background: #F9F9FA;
border-radius: 1.6vw; border-radius: 1.6vw;
margin: 1.5vw auto 0; margin: 1.5vw auto 0;
padding: 1.4vw 1vw; position: relative;
display: flex;
justify-content: flex-start;
.leftbox { .leftbox {
width: 15.2vw; width: 13vw;
height: 100%; height: 12;
border-right: 2px solid #E5E5E5; border-right: 2px solid #E5E5E5;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: absolute;
left: 0;
top: 1.3vw;
.carditem { .carditem {
width: 100%; width: 100%;
margin-top: 0.3vw; margin-top: 0.3vw;
@ -266,7 +267,7 @@
// justify-content: space-around; // justify-content: space-around;
view { view {
min-width: 6vw; width: 6vw;
height: 2vw; height: 2vw;
border-radius: 1vw; border-radius: 1vw;
border: 1px solid #D2D2D2; border: 1px solid #D2D2D2;
@ -279,18 +280,19 @@
padding: 0 0.6vw; padding: 0 0.6vw;
margin: 0.5vw 0 0 0.25vw; margin: 0.5vw 0 0 0.25vw;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
} }
} }
.bgimg{ .bgimg{
width: 8.5vw; width: 10.5vw;
height: 8vw; height: 9.5vw;
background: #fff; background: #fff;
border-radius: 1.1vw; border-radius: 1.1vw;
padding: 0.35vw;
>image { >image {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0.3vw auto;
display: block;
} }
} }
@ -302,6 +304,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
position: absolute;
right: 0;
top: 0;
padding: 1.3vw;
>view { >view {
padding: 0 1.8vw; padding: 0 1.8vw;
&:nth-child(2), &:nth-child(2),

View File

@ -21,6 +21,7 @@
</view> </view>
</view> </view>
<view v-else> <view v-else>
<!-- <view class="kx pd" v-if="v.status=='0'||v.status=='3'">盘点中</view> -->
<view class="bkx" > <view class="bkx" >
<image src="/static/shouye/yg.png" mode="aspectFill"></image> <image src="/static/shouye/yg.png" mode="aspectFill"></image>
<text>{{ v.fzr }}</text> <text>{{ v.fzr }}</text>
@ -97,6 +98,7 @@
white-space: nowrap; white-space: nowrap;
} }
} }
.kx{ .kx{
width: 3.6vw; width: 3.6vw;
height: 1.8vw; height: 1.8vw;
@ -112,6 +114,11 @@
right: 1.5vw; right: 1.5vw;
top: 1.5vw; top: 1.5vw;
} }
.pd{
width: 4.6vw;
color: #FFFFFF;
background: #50B8F7;
}
.hldyimg{ .hldyimg{
width: 6.5vw; width: 6.5vw;
height: 6.5vw; height: 6.5vw;

View File

@ -126,7 +126,6 @@
onShow(() => { onShow(() => {
zyupgrade.value?.check_update(); zyupgrade.value?.check_update();
queryPadPageList().then((res => { queryPadPageList().then((res => {
console.log(res)
leftMenuArray.value = res.result.records; leftMenuArray.value = res.result.records;
})) }))
@ -142,7 +141,6 @@
} }
} }
const jumptopage = (index:number) => { const jumptopage = (index:number) => {
uni.setStorageSync('nuId', cardarray.value[index].nuId); uni.setStorageSync('nuId', cardarray.value[index].nuId);
uni.setStorageSync('nuName', cardarray.value[index].nuName); uni.setStorageSync('nuName', cardarray.value[index].nuName);
uni.setStorageSync('elderId', cardarray.value[index].elderInfo ? cardarray.value[index].elderInfo?.id : null); uni.setStorageSync('elderId', cardarray.value[index].elderInfo ? cardarray.value[index].elderInfo?.id : null);

View File

@ -20,7 +20,7 @@
<view> <view>
<view>{{v.materialName}}</view><text>{{v.materialNo}}</text> <view>{{v.materialName}}</view><text>{{v.materialNo}}</text>
</view> </view>
<view style="white-space: nowrap;"> <view style="white-space: nowrap;display: block;">
<text> 规格型号: {{v.specificationModel}}</text> <text> 规格型号: {{v.specificationModel}}</text>
</view> </view>
<view> <view>
@ -316,6 +316,7 @@
font-size: 1.4vw; font-size: 1.4vw;
color: #777777; color: #777777;
margin-top: 0.35vw; margin-top: 0.35vw;
white-space: nowrap;
} }
} }
&:nth-child(1){ &:nth-child(1){

View File

@ -127,7 +127,6 @@
// if(!old.num){return} // if(!old.num){return}
// if(old.num==1){ // if(old.num==1){
// let num = Number(props.caigouobj.upperLimit)-Number(props.caigouobj.kcsl); // let num = Number(props.caigouobj.upperLimit)-Number(props.caigouobj.kcsl);
// let m = Math.floor(relNumber.value/news.num); // let m = Math.floor(relNumber.value/news.num);
// huansuan(m) // huansuan(m)
// } // }
@ -338,19 +337,12 @@
const colse = ()=>{ const colse = ()=>{
emit('colse') emit('colse')
} }
//
function digitCountByString(n) { function digitCountByString(n) {
//
const s = Math.abs(n).toString(); const s = Math.abs(n).toString();
//
// return s.replace('.', '').length;
return s.length; return s.length;
} }
// NumberString
function toFixed4ByPadStart(n) { function toFixed4ByPadStart(n) {
// 1.
const intPart = Math.floor(Math.abs(n)); const intPart = Math.floor(Math.abs(n));
// 2. padStart 4 '0'
return String(intPart).padStart(4, '0'); return String(intPart).padStart(4, '0');
} }
</script> </script>