修改了大量的样式
This commit is contained in:
parent
2a3a652438
commit
f2a6cebed1
|
|
@ -453,12 +453,12 @@
|
|||
}
|
||||
.photowall {
|
||||
position: fixed;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80vw;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 999;
|
||||
|
|
@ -469,7 +469,7 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
|
|||
|
|
@ -118,11 +118,11 @@
|
|||
<scroll-view class="scrol" scroll-y="true">
|
||||
<view v-for="(v,i) in fwzlarr" :key='i' :class="i==fwzldex?'act':''" class="cdk"
|
||||
@click="zldex(i)">
|
||||
<image :src="serverUrl+(fwzldex!=i?v.previewFile:v.previewFileSmall)" mode="aspectFill">
|
||||
<image :src="serverUrl+(fwzldex!=i?v.immediateFile:v.immediateFileFocus)" mode="aspectFill">
|
||||
</image>
|
||||
<text
|
||||
style="white-space: nowrap;width: 100%;text-overflow: ellipsis;overflow: hidden;">{{v.directiveName?.substring(0,4)}}</text>
|
||||
<view>{{v.directiveName?.substring(4,12)}}</view>
|
||||
style="white-space: nowrap;width: 100%;text-overflow: ellipsis;overflow: hidden;">{{v.directiveName?.substring(0,5)}}</text>
|
||||
<view>{{v.directiveName?.substring(5,12)}}</view>
|
||||
|
||||
</view>
|
||||
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;"
|
||||
|
|
@ -190,7 +190,7 @@
|
|||
</view>
|
||||
<view class="">
|
||||
<view class="first-line">
|
||||
<view style="font-size: 1.2vw;">
|
||||
<view style="font-size: 1.3vw;">
|
||||
{{ item.nuName.length>6?item.nuName.substring(0,6)+'.':item.nuName }}
|
||||
</view>
|
||||
<view class="first-line-second">
|
||||
|
|
@ -390,8 +390,10 @@
|
|||
nuId: nuId,
|
||||
elderId: elderId
|
||||
}
|
||||
// console.log("入参",data)
|
||||
queryAll(data).then(res => {
|
||||
zlarr.value = res.result;
|
||||
// console.log("看看图标",res.result)
|
||||
shtab(fwzlindex.value)
|
||||
})
|
||||
}
|
||||
|
|
@ -818,7 +820,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 2vw;
|
||||
font-size: 1.4vw;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid #F2F2F2;
|
||||
}
|
||||
|
|
@ -894,7 +896,7 @@
|
|||
.right-bottom {
|
||||
margin-top: 2vh;
|
||||
width: 100%;
|
||||
height: 23.4vw;
|
||||
height: 24vw;
|
||||
background-color: #fff;
|
||||
border-radius: 3vh;
|
||||
padding-top: 1vh;
|
||||
|
|
@ -910,7 +912,7 @@
|
|||
justify-content: space-between;
|
||||
|
||||
.bottom-carmera {
|
||||
margin-top: 0.5vw;
|
||||
margin-top: 0.7vw;
|
||||
width: 3vw;
|
||||
height: 3vw;
|
||||
}
|
||||
|
|
@ -1022,8 +1024,8 @@
|
|||
|
||||
&:nth-child(2) {
|
||||
font-weight: 400;
|
||||
font-size: 1vw;
|
||||
color: #333333;
|
||||
font-size: 1.2vw;
|
||||
color: #9d9d9d;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1105,7 +1107,7 @@
|
|||
}
|
||||
|
||||
.blue-button {
|
||||
margin-top: 0.5vw;
|
||||
margin-top: 0.7vw;
|
||||
width: 7vw;
|
||||
height: 2.5vw;
|
||||
background: linear-gradient(to bottom, #009DEF, #0076FF);
|
||||
|
|
@ -1268,8 +1270,8 @@
|
|||
flex-wrap: wrap;
|
||||
|
||||
.cdk {
|
||||
width: 6.1vw;
|
||||
height: 6.1vw;
|
||||
width: 7.5vw;
|
||||
height: 7.5vw;
|
||||
background: #F8F8F8;
|
||||
border-radius: 1.6vw;
|
||||
margin: 1.5vw 1.5vw 0 0vw;
|
||||
|
|
@ -1279,16 +1281,16 @@
|
|||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 2vw;
|
||||
height: 2vw;
|
||||
margin: 1vw auto 0vw;
|
||||
width: 2.6vw;
|
||||
height: 2.6vw;
|
||||
margin: 1.2vw auto 0vw;
|
||||
}
|
||||
|
||||
text {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
font-size: 1.1vw;
|
||||
font-size: 1.2vw;
|
||||
color: #333333;
|
||||
width: 100%;
|
||||
}
|
||||
|
|
@ -1296,9 +1298,10 @@
|
|||
view {
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
font-size: 0.7vw;
|
||||
font-size: 0.9vw;
|
||||
color: #555;
|
||||
width: 100%;
|
||||
margin-top: -0.3vw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1347,7 +1350,7 @@
|
|||
.tittop {
|
||||
height: 2vw;
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
font-size: 1.5vw;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -1367,7 +1370,7 @@
|
|||
width: 2.2vw;
|
||||
height: 1.1vw;
|
||||
top: 9.68vw;
|
||||
right: 2.5vw;
|
||||
right: 4.3vw;
|
||||
z-index: 220;
|
||||
|
||||
image {
|
||||
|
|
@ -1408,6 +1411,7 @@
|
|||
z-index: 200;
|
||||
display: flex;
|
||||
padding: 1.6vw 1.6vw 0;
|
||||
overflow: hidden;
|
||||
|
||||
.carfd {
|
||||
width: 11.5vw;
|
||||
|
|
|
|||
|
|
@ -1763,12 +1763,12 @@
|
|||
|
||||
.photowall {
|
||||
position: fixed;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80vw;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 9990;
|
||||
|
|
@ -1780,7 +1780,7 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
|
|||
|
|
@ -453,12 +453,12 @@
|
|||
}
|
||||
.photowall {
|
||||
position: fixed;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80vw;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 999;
|
||||
|
|
@ -469,7 +469,7 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
|
|||
|
|
@ -3185,12 +3185,12 @@
|
|||
|
||||
.photowall {
|
||||
position: absolute;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80%;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 999;
|
||||
|
|
@ -3202,7 +3202,7 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
<image class="list-img" :src="`/static/index/newindex/leftmenu/wareblue.png`" />
|
||||
<view class="">
|
||||
<view class="first-line">
|
||||
<view style="font-size: 1.2vw;">
|
||||
<view style="font-size: 1.3vw;">
|
||||
{{ item.nuName }}
|
||||
</view>
|
||||
<view class="first-line-second" :style="item.flag?'background:#47ADF5;color:#fff':''">
|
||||
|
|
@ -454,12 +454,12 @@
|
|||
|
||||
.photowall {
|
||||
position: fixed;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80vw;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 9990;
|
||||
|
|
@ -471,7 +471,7 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
@ -569,7 +569,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 2vw;
|
||||
font-size: 1.4vw;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid #F2F2F2;
|
||||
}
|
||||
|
|
@ -892,7 +892,7 @@
|
|||
|
||||
&:nth-child(2) {
|
||||
font-weight: 400;
|
||||
font-size: 1vw;
|
||||
font-size: 1.2vw;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
|
@ -1382,7 +1382,7 @@
|
|||
justify-content: space-between;
|
||||
|
||||
.bottom-carmera {
|
||||
margin-top: 0.5vw;
|
||||
margin-top: 0.7vw;
|
||||
width: 3vw;
|
||||
height: 3vw;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,32 +42,26 @@
|
|||
</view>
|
||||
<!-- 改价 -->
|
||||
<view class="gaijiafather" v-show="opengaijia" :style="donghuaopo?{opacity:1}:{opacity:0}">
|
||||
<!-- <view style="width: 100%;margin-top: 42rpx;font-size: 33rpx;">
|
||||
<view style="width: 100%;margin-top: 60rpx;font-size: 33rpx;padding-left: 50rpx;">
|
||||
采购单价:
|
||||
<text style="color: #888888;">
|
||||
¥{{ gaijia }}
|
||||
</text>
|
||||
|
||||
</view> -->
|
||||
<view style="display: flex;flex-direction: column;width: 55%;height: 100%;justify-content: center;">
|
||||
<view style="width: 100%;margin-top: 42rpx;font-size: 33rpx;">
|
||||
采购单价:
|
||||
<text style="color: #888888;">
|
||||
¥{{ gaijia }}
|
||||
</text>
|
||||
|
||||
</view>
|
||||
<view style="display: flex;margin-top: 50rpx;align-items: center;">
|
||||
<view style="font-size: 33rpx;margin-right: 10rpx;">
|
||||
到货单价:
|
||||
</view>
|
||||
<view class="gray-input" style="width: 270rpx;font-size: 40rpx;">
|
||||
¥ {{ gaijia }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view style="position: absolute;right: 30rpx;bottom: 30rpx;">
|
||||
|
||||
|
||||
<view style="display: flex;align-items: center;margin-top: 30rpx;padding-left: 50rpx;">
|
||||
<view style="font-size: 33rpx;">
|
||||
到货单价:
|
||||
</view>
|
||||
<view class="gray-input" style="width: 360rpx;font-size: 40rpx;">
|
||||
¥ {{ gaijia }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view style="position: absolute;right: 70rpx;bottom: 80rpx;">
|
||||
<view style="display: flex;">
|
||||
<view @click="opengaijia=false"
|
||||
style="width: 160rpx;height: 75rpx;background-color: #ebeced;color: #888888;display: flex;justify-content: center;align-items: center;font-size: 30rpx;border-radius: 40rpx;">
|
||||
|
|
@ -80,8 +74,8 @@
|
|||
|
||||
</view>
|
||||
</view>
|
||||
<view class="jianhuo-jianpan" style="right: -40rpx;bottom: 140rpx;">
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view class="jianhuo-jianpan" style="right: 55rpx;bottom: 160rpx;">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan" @click="press('1')">
|
||||
1
|
||||
</view>
|
||||
|
|
@ -93,7 +87,7 @@
|
|||
3
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan" @click="press('4')">
|
||||
4
|
||||
</view>
|
||||
|
|
@ -105,7 +99,7 @@
|
|||
6
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan" @click="press('7')">
|
||||
7
|
||||
</view>
|
||||
|
|
@ -117,7 +111,7 @@
|
|||
9
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view style="display: flex;margin-bottom: 20rpx;">
|
||||
<view class="gray-button-jianpan" style="font-size: 30rpx;" @click="press('AC')">
|
||||
清零
|
||||
</view>
|
||||
|
|
@ -129,6 +123,7 @@
|
|||
.
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 拣货 -->
|
||||
|
|
@ -140,7 +135,7 @@
|
|||
<view style="font-weight: 600;font-size: 30rpx;">
|
||||
物料信息
|
||||
</view>
|
||||
<view style="font-weight: 600;font-size: 35rpx;color: #555555;">
|
||||
<view style="font-weight: 600;font-size: 40rpx;color: #555555;">
|
||||
¥{{showvalue.totalPrice}}
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -262,7 +257,7 @@
|
|||
@touchend="handleTouchEnd">
|
||||
-
|
||||
</view>
|
||||
<view class="gray-input" style="width:12vw;">
|
||||
<view class="gray-input" style="width:10vw;">
|
||||
<text v-for="(v,i) in stringjh" :key="i">{{v}}</text>
|
||||
</view>
|
||||
<view class="gray-button" @click="jjnum(1)" @longpress="handleTouchStart(1)" @touchend="handleTouchEnd">
|
||||
|
|
@ -286,51 +281,51 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="jianhuo-jianpan">
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view class="gray-button-jianpan" @click="clknum(1)">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(1)">
|
||||
1
|
||||
</view>
|
||||
<view class="gray-button-jianpan" @click="clknum(2)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(2)">
|
||||
2
|
||||
</view>
|
||||
|
||||
<view class="gray-button-jianpan" @click="clknum(3)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(3)">
|
||||
3
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view class="gray-button-jianpan" @click="clknum(4)">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(4)">
|
||||
4
|
||||
</view>
|
||||
<view class="gray-button-jianpan" @click="clknum(5)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(5)">
|
||||
5
|
||||
</view>
|
||||
|
||||
<view class="gray-button-jianpan" @click="clknum(6)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(6)">
|
||||
6
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view class="gray-button-jianpan" @click="clknum(7)">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(7)">
|
||||
7
|
||||
</view>
|
||||
<view class="gray-button-jianpan" @click="clknum(8)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(8)">
|
||||
8
|
||||
</view>
|
||||
|
||||
<view class="gray-button-jianpan" @click="clknum(9)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(9)">
|
||||
9
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 480rpx;">
|
||||
<view class="gray-button-jianpan" style="font-size: 30rpx;" @click="clknum('AC')">
|
||||
<view style="display: flex;">
|
||||
<view class="gray-button-jianpan-jian" style="font-size: 30rpx;" @click="clknum('AC')">
|
||||
清零
|
||||
</view>
|
||||
<view class="gray-button-jianpan" @click="clknum(0)">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum(0)">
|
||||
0
|
||||
</view>
|
||||
|
||||
<view class="gray-button-jianpan" @click="clknum('AE')">
|
||||
<view class="gray-button-jianpan-jian" @click="clknum('AE')">
|
||||
<image src="/static/cleanone.png" mode="aspectFill" style="width: 50%;height: 50%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -679,7 +674,8 @@
|
|||
<view
|
||||
:class="!Number(plsbuy[lefttarget]?.status)?`contain-right-button`: `contain-right-title-bad`"
|
||||
style="" @click="bebad">
|
||||
<image class="buttont-img" :style="!Number(plsbuy[lefttarget]?.status)?{}:{opacity:`0.5`}" :src="`/static/index/warehouse/procurement/picking/bebad.png`" />
|
||||
<image class="buttont-img" :style="!Number(plsbuy[lefttarget]?.status)?{}:{opacity:`0.5`}"
|
||||
:src="`/static/index/warehouse/procurement/picking/bebad.png`" />
|
||||
<view class="button-font">
|
||||
作废
|
||||
</view>
|
||||
|
|
@ -1172,7 +1168,7 @@
|
|||
}, 100)
|
||||
}
|
||||
const opengaijiaclick = () => {
|
||||
if(!showvalue.value.jianhuobtn){
|
||||
if (!showvalue.value.jianhuobtn) {
|
||||
return
|
||||
}
|
||||
opengaijia.value = true;
|
||||
|
|
@ -2437,7 +2433,7 @@
|
|||
height: 675rpx;
|
||||
// margin-top: 20rpx;
|
||||
// background-color: blue;
|
||||
|
||||
|
||||
// border-radius: 30rpx;
|
||||
}
|
||||
}
|
||||
|
|
@ -2451,8 +2447,8 @@
|
|||
.middle-Y-father {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
|
||||
.middle-one-white{
|
||||
|
||||
.middle-one-white {
|
||||
min-width: 400rpx;
|
||||
max-width: 400rpx;
|
||||
height: 100%;
|
||||
|
|
@ -2919,14 +2915,15 @@
|
|||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 50%;
|
||||
height: 55%;
|
||||
border-radius: 40rpx;
|
||||
width: 38%;
|
||||
height: 81%;
|
||||
border-radius: 50rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 999;
|
||||
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
|
||||
padding: 0 60rpx;
|
||||
|
||||
}
|
||||
|
||||
.jianhuofather {
|
||||
|
|
@ -2953,24 +2950,24 @@
|
|||
|
||||
.photowall {
|
||||
position: fixed;
|
||||
top: 54%;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80%;
|
||||
height: 83%;
|
||||
border-radius: 30rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
transition: all 0.3s;
|
||||
z-index: 999;
|
||||
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
|
||||
padding: 0 90rpx;
|
||||
padding: 0 60rpx;
|
||||
|
||||
.photowall-title {
|
||||
margin-top: 50rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-bottom: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.photowall-name {
|
||||
font-size: 38rpx;
|
||||
|
|
@ -3047,24 +3044,50 @@
|
|||
font-size: 40rpx;
|
||||
font-weight: 600;
|
||||
background-color: #f3f5f9;
|
||||
border-radius: 35rpx;
|
||||
border-radius: 45rpx;
|
||||
// box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.12);
|
||||
color: #555555;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
width: 135rpx;
|
||||
height: 110rpx;
|
||||
border: 1rpx solid #eeeeee;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-right: 60rpx;
|
||||
margin-bottom: 30rpx;
|
||||
transition: .1s;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.gray-button-jianpan-jian:active {
|
||||
background: linear-gradient(to top, #00C9FF, #0076FF);
|
||||
color: #fff;
|
||||
font-size: 44rpx;
|
||||
font-weight: 700;
|
||||
border: 1rpx solid #00C9FF;
|
||||
}
|
||||
|
||||
.gray-button-jianpan-jian {
|
||||
font-size: 40rpx;
|
||||
font-weight: 600;
|
||||
background-color: #f3f5f9;
|
||||
border-radius: 45rpx;
|
||||
// box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.12);
|
||||
color: #555555;
|
||||
width: 135rpx;
|
||||
height: 110rpx;
|
||||
border: 1rpx solid #eeeeee;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-right: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
transition: .1s;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.gray-input {
|
||||
font-size: 50rpx;
|
||||
font-size: 40rpx;
|
||||
font-weight: 600;
|
||||
background-color: #f3f5f9;
|
||||
border-radius: 20rpx;
|
||||
|
|
@ -3083,8 +3106,8 @@
|
|||
|
||||
.jianhuo-jianpan {
|
||||
position: absolute;
|
||||
right: -10rpx;
|
||||
bottom: 12%;
|
||||
right: 30rpx;
|
||||
bottom: 130rpx;
|
||||
}
|
||||
|
||||
.text-anim {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export const getLoginCode = (time) => {
|
|||
})
|
||||
}
|
||||
//获得图片base
|
||||
export const getPublicMediaUrl = (time) => {
|
||||
export const getPublicMediaUrl = () => {
|
||||
return request({
|
||||
url: `/api/baseInfo/getPublicMediaUrl`,
|
||||
method: 'get',
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="list" :style="pddobj.pddType=='1'?{overflow:`hidden`}:{}">
|
||||
<toryitem :pddlist="pddlist" @scrolltolower="scrolltolower" :pddType="pddobj?.pddType" :status="status"
|
||||
@tabitem="tabitem" @right="right"></toryitem>
|
||||
</view>
|
||||
|
|
@ -244,7 +244,8 @@
|
|||
width: 91vw;
|
||||
height: 53vw;
|
||||
margin: 0vw auto 0;
|
||||
overflow: hidden;
|
||||
// overflow: hidden;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
<template>
|
||||
<view>
|
||||
<view @tap="onTap">
|
||||
<scroll-view scroll-y="true" class="itembox" scroll-with-animation @scrolltolower="scrolltolower()"
|
||||
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>
|
||||
<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}">
|
||||
<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'
|
||||
:style="isbottom&&v.zk?{top: `-390rpx !important`,transition: `.4s !important`}:{transition: `.4s !important`}"
|
||||
: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="imgs">
|
||||
<image :src="v?.materialImg?serverUrl+v?.materialImg:'/static/index/procurement/k.png'"
|
||||
|
|
@ -14,7 +17,7 @@
|
|||
<view class="cardp">
|
||||
<view v-if="v.categoryName">{{v.categoryName}}</view>
|
||||
<view v-if="v.typeName">{{v.typeName}}</view>
|
||||
<view v-if="v.medicationName">{{v.medicationName}}</view>
|
||||
<view v-if="v.medicationName">{{v.medicationName}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wuli">
|
||||
|
|
@ -27,12 +30,13 @@
|
|||
<text>物料单位:</text>
|
||||
{{v?.materialUnits}}
|
||||
</view>
|
||||
<view class="cot" style="white-space: nowrap;display: block;overflow: hidden;text-overflow: ellipsis;height: 1.7vw;">
|
||||
<view class="cot"
|
||||
style="white-space: nowrap;display: block;overflow: hidden;text-overflow: ellipsis;height: 1.7vw;">
|
||||
<text style="display: inline-block;">规格型号:</text>
|
||||
<!-- <text style="margin-left: 10rpx;color: black;"> -->
|
||||
{{v?.specificationModel}}
|
||||
{{v?.specificationModel}}
|
||||
<!-- </text> -->
|
||||
|
||||
|
||||
</view>
|
||||
<view class="wltwo">
|
||||
<view>
|
||||
|
|
@ -47,17 +51,23 @@
|
|||
</view>
|
||||
<view class="chae">
|
||||
<!-- pdType 1:b/ 2:r -->
|
||||
<view :class="{b:v?.pdType==1,r:v?.pdType==2&&v?.cesl>0}">{{v?.pdType==2&&v?.cesl>0?'-':''}}{{v?.cesl!=null?v?.cesl:'--'}}</view>
|
||||
<text>差额</text>
|
||||
<view :class="{b:v?.pdType==1,r:v?.pdType==2&&v?.cesl>0}">
|
||||
{{v?.pdType==2&&v?.cesl>0?'-':''}}{{v?.cesl!=null?v?.cesl:'--'}}
|
||||
</view>
|
||||
<text>差额</text>
|
||||
</view>
|
||||
<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==''||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/pd4.png':'/static/index/procurement/pd3.png'" mode="aspectFill" v-if="v.pdType == 2"></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/pd4.png':'/static/index/procurement/pd3.png'"
|
||||
mode="aspectFill" v-if="v.pdType == 2"></image>
|
||||
</view>
|
||||
<view class="tan guodu" :class="v.zk?'':'itemhei0'">
|
||||
<view class="tbox guodu" :class="v.zk?'':'itemhei0'" :style="v.zk?'':'overflow: hidden'">
|
||||
<torytor :show="v.yczk" :tb="v.dqkcsl" @pddjjnum="pddjjnum" :pdsl="v.pdsl" :idex="i" :pddType='pddType'></torytor>
|
||||
<torytor :show="v.yczk" :tb="v.dqkcsl" @pddjjnum="pddjjnum" :pdsl="v.pdsl" :idex="i"
|
||||
:pddType='pddType'></torytor>
|
||||
<view class="bpq" v-show="v.yczk">
|
||||
<view class="bp b" @click="v.bz = !v.bz;v.pz = false">
|
||||
<image src="/static/index/procurement/th.png" mode="aspectFill"></image>
|
||||
|
|
@ -68,9 +78,10 @@
|
|||
|
||||
<image src="/static/index/procurement/xj.png" mode="aspectFill"></image>
|
||||
拍照
|
||||
<text :class="{r:v.pdType == 2&&v?.cesl>0,g:v.pdType == 1}" v-if="v.picPatharr?.length>0">{{v?.picPatharr?.length}}</text>
|
||||
<text :class="{r:v.pdType == 2&&v?.cesl>0,g:v.pdType == 1}"
|
||||
v-if="v.picPatharr?.length>0">{{v?.picPatharr?.length}}</text>
|
||||
</view>
|
||||
<view class="qued" @click="config(v,i)" v-if="pddType=='1'">
|
||||
<view class="qued" @click="config(v,i)" v-if="pddType=='1'">
|
||||
确定
|
||||
</view>
|
||||
<view class="triangle-leftbz" v-if="v.bz">
|
||||
|
|
@ -81,36 +92,38 @@
|
|||
</view>
|
||||
<view class="gray-bgc guodu" :class="v.bz?'':'itemhei0'">
|
||||
<view class="textare" v-if="v.bz">
|
||||
<textarea v-model="v.content" placeholder="请输入备注" maxlength="200" :disabled="pddType!='1'"></textarea>
|
||||
<textarea v-model="v.content" placeholder="请输入备注" maxlength="200"
|
||||
:disabled="pddType!='1'"></textarea>
|
||||
</view>
|
||||
<view class="submit" v-if="v.bz">
|
||||
<view @click="v.bz = false">{{pddType=='1'?'取消':'关闭'}}</view>
|
||||
<view @click="v.bz = false" v-if="pddType=='1'">确定</view>
|
||||
<view @click="v.bz = false" v-if="pddType=='1'">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="gray-pgc guodu" :class="v.pz?'':'itemhei0'">
|
||||
<view class="pztit" v-if="v.pz">拍照:</view>
|
||||
<view class="zpj" v-if="v.pz">
|
||||
<view class="zpk" v-for="(p,o) in v?.picPatharr" :key="o" @click="previewImage(v,p,o)">
|
||||
<view class="zpk" v-for="(p,o) in v?.picPatharr" :key="o"
|
||||
@click="previewImage(v,p,o)">
|
||||
<image :src="serverUrl+p" mode="aspectFill"></image>
|
||||
<!-- <image :src="'/static/zhanwei.png'" mode="aspectFill" style="width: 2.1vw;height: 2.1vw;">
|
||||
</image> -->
|
||||
<view @click.stop="open=1;del(v,o)" >
|
||||
|
||||
<image src="/static/index/keyimg/deletebutton.png" mode="aspectFill" style="width: 75%;height: 70%;"></image>
|
||||
<view @click.stop="open=1;del(v,o)">
|
||||
|
||||
<image src="/static/index/keyimg/deletebutton.png" mode="aspectFill"
|
||||
style="width: 75%;height: 70%;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="clkpz" @click="uplod(v,i)" v-if="v.picPatharr?.length<6&&pddType == 1">
|
||||
<view class="clkpz" @click="uplod(v,i)" v-if="v.picPatharr?.length<6&&pddType == 1">
|
||||
<image src="/static/index/procurement/xjpz.png" mode="aspectFill"></image>
|
||||
<text>点击拍照上传 </text>
|
||||
</view>
|
||||
<defaultr cont="暂无图片" v-if="v?.picPatharr.length==0&&pddType!='1'" style="position: absolute;width: 10vw;height: 10vw;"></defaultr>
|
||||
<defaultr cont="暂无图片" v-if="v?.picPatharr.length==0&&pddType!='1'"
|
||||
style="position: absolute;width: 10vw;height: 10vw;"></defaultr>
|
||||
</view>
|
||||
<view class="submit" v-if="v.pz">
|
||||
<view @click="v.pz = false">{{pddType=='1'?'取消':'关闭'}}</view>
|
||||
<view v-if="pddType=='1'" @click="v.pz = false">确定</view>
|
||||
<view v-if="pddType=='1'" @click="v.pz = false">确定</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -134,36 +147,42 @@
|
|||
const open = ref(0)
|
||||
const scrolltop = ref(0)
|
||||
const serverUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
|
||||
const emit = defineEmits([ 'scrolltolower' , 'tabitem' ,'right' ])
|
||||
const emit = defineEmits(['scrolltolower', 'tabitem', 'right'])
|
||||
const props = defineProps({
|
||||
pddlist: {
|
||||
type: Array
|
||||
type: Array
|
||||
},
|
||||
status: {
|
||||
type: String
|
||||
},
|
||||
pddType:{
|
||||
type:String
|
||||
pddType: {
|
||||
type: String
|
||||
}
|
||||
})
|
||||
const listflag = ref(false)
|
||||
onMounted(() => {
|
||||
setTimeout(()=>{
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
listflag.value = true;
|
||||
},1000)
|
||||
}, 1000)
|
||||
})
|
||||
const valitem = ref({});
|
||||
const valindex = ref(-1);
|
||||
|
||||
const havezk = ref(false)
|
||||
const zhankai = (v, i) => {
|
||||
|
||||
let s = Math.ceil((i + 1) / 3);
|
||||
if(valindex.value !=i && valindex.value > -1 && uni.getStorageSync('valitem') && props.pddType == '1'){
|
||||
emit('tabitem',valindex.value,uni.getStorageSync('valitem'))
|
||||
if (valindex.value != i && valindex.value > -1 && uni.getStorageSync('valitem') && props.pddType == '1') {
|
||||
emit('tabitem', valindex.value, uni.getStorageSync('valitem'))
|
||||
}
|
||||
valindex.value = i;
|
||||
scrolltop.value = top.value;
|
||||
// scrolltop.value = Math.ceil(i / 2) * 195;
|
||||
// console.log("啥啊",i)
|
||||
v.zk = !v.zk;
|
||||
havezk.value = v.zk
|
||||
if (v.zk) {
|
||||
if(props.pddType == '1'){uni.setStorageSync('valitem', v);}
|
||||
if (props.pddType == '1') { uni.setStorageSync('valitem', v); }
|
||||
setTimeout(() => {
|
||||
v.yczk = v.zk;
|
||||
}, 200)
|
||||
|
|
@ -172,14 +191,15 @@
|
|||
v.bz = false;
|
||||
v.pz = false;
|
||||
}
|
||||
if(v.dczk == true){
|
||||
|
||||
}else{
|
||||
if (v.dczk == true) {
|
||||
|
||||
} else {
|
||||
nextTick(() => {
|
||||
scrolltop.value = (top.value > (s - 2) * 182) ? top.value : (s - 2) * 182;
|
||||
// scrolltop.value = (top.value > (s - 2) * 182) ? top.value : (s - 2) * 182;
|
||||
// scrolltop.value = (Math.ceil(i / 2) -1) * 200;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
gb(i)
|
||||
}
|
||||
const gb = (i) => {
|
||||
|
|
@ -197,29 +217,29 @@
|
|||
// console.log(e.detail.scrollTop)
|
||||
top.value = e.detail.scrollTop;
|
||||
}
|
||||
const pddjjnum = (e,i) =>{
|
||||
const pddjjnum = (e, i) => {
|
||||
let ce = 0;
|
||||
props.pddlist[i].pdsl = e;
|
||||
ce = e - props.pddlist[i].dqkcsl;
|
||||
props.pddlist[i].cesl = Math.abs(ce) ;
|
||||
props.pddlist[i].pdType = ce==0?'':(ce>0?1:2)
|
||||
props.pddlist[i].cesl = Math.abs(ce);
|
||||
props.pddlist[i].pdType = ce == 0 ? '' : (ce > 0 ? 1 : 2)
|
||||
}
|
||||
const config = (e,i) =>{
|
||||
if((e.content==''||e.content==null)&&e.cesl!=0){
|
||||
const config = (e, i) => {
|
||||
if ((e.content == '' || e.content == null) && e.cesl != 0) {
|
||||
uni.showToast({
|
||||
icon:'error',
|
||||
title:"请填写备注!"
|
||||
icon: 'error',
|
||||
title: "请填写备注!"
|
||||
})
|
||||
return
|
||||
}
|
||||
emit('right',e,i)
|
||||
emit('right', e, i)
|
||||
}
|
||||
const scrolltolower = () => {
|
||||
emit('scrolltolower')
|
||||
}
|
||||
// 上传
|
||||
const albumlist = ref([])
|
||||
const uplod = (v,i) => {
|
||||
const uplod = (v, i) => {
|
||||
uni.chooseImage({
|
||||
count: 1, //默认9
|
||||
sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||
|
|
@ -230,7 +250,7 @@
|
|||
src: JSON.parse(ar)[0],
|
||||
quality: 60,
|
||||
success: res => {
|
||||
sxdupld(res.tempFilePath,v)
|
||||
sxdupld(res.tempFilePath, v)
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
|
|
@ -238,7 +258,7 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
const sxdupld = (e,v) => {
|
||||
const sxdupld = (e, v) => {
|
||||
let now = new Date();
|
||||
let year = now.getFullYear();
|
||||
let month = now.getMonth() + 1;
|
||||
|
|
@ -263,36 +283,82 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
const previewImage = (arr,p,i) => {
|
||||
let u = []
|
||||
arr.picPatharr.forEach(e => {
|
||||
u.push(serverUrl.value + e)
|
||||
})
|
||||
uni.previewImage({
|
||||
current: i,
|
||||
urls: u,
|
||||
showmenu: false,
|
||||
longPressActions: {
|
||||
itemList: [],
|
||||
}
|
||||
})
|
||||
const previewImage = (arr, p, i) => {
|
||||
let u = []
|
||||
arr.picPatharr.forEach(e => {
|
||||
u.push(serverUrl.value + e)
|
||||
})
|
||||
uni.previewImage({
|
||||
current: i,
|
||||
urls: u,
|
||||
showmenu: false,
|
||||
longPressActions: {
|
||||
itemList: [],
|
||||
}
|
||||
})
|
||||
}
|
||||
const shuzhi = (v)=>{
|
||||
const shuzhi = (v) => {
|
||||
v.picPath = '';
|
||||
v.picPatharr.forEach((e,i)=>{
|
||||
v.picPath+= e+','
|
||||
v.picPatharr.forEach((e, i) => {
|
||||
v.picPath += e + ','
|
||||
})
|
||||
}
|
||||
const picv = ref({});
|
||||
const pici = ref(0);
|
||||
const del=(v,o)=>{
|
||||
const del = (v, o) => {
|
||||
picv.value = v;
|
||||
pici.value = o;
|
||||
}
|
||||
const del1=()=>{
|
||||
picv.value.picPatharr.splice(pici.value,1);
|
||||
const del1 = () => {
|
||||
picv.value.picPatharr.splice(pici.value, 1);
|
||||
open.value = 0
|
||||
}
|
||||
/** 只针对 UniApp 原生 App 的最简判断函数(true = 上半,false = 下半,null = 无法判断) */
|
||||
function isTopHalfApp(e) {
|
||||
if (!e) return null;
|
||||
// 原生 app 常见:changedTouches 或 touches
|
||||
const touch = (e.changedTouches && e.changedTouches[0]) || (e.touches && e.touches[0]) || null;
|
||||
const y = touch
|
||||
? (typeof touch.clientY === 'number' ? touch.clientY : (typeof touch.pageY === 'number' ? touch.pageY : null))
|
||||
: (e.detail && typeof e.detail.y === 'number' ? e.detail.y : null);
|
||||
|
||||
let h = null;
|
||||
try {
|
||||
h = uni.getSystemInfoSync().windowHeight; // UniApp 原生 App 推荐使用
|
||||
} catch (err) {
|
||||
h = null;
|
||||
}
|
||||
|
||||
if (y == null || !h) return null;
|
||||
return y <= (h * 2 / 3);
|
||||
}
|
||||
const isbottom = ref(false);
|
||||
const clicklock = ref(false)
|
||||
/** 事件处理示例 */
|
||||
function onTap(e) {
|
||||
const top = isTopHalfApp(e);
|
||||
if (top === null) {
|
||||
// uni.showToast({ title: '无法判断坐标', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
if (havezk.value) {
|
||||
|
||||
if (!clicklock.value) {
|
||||
if (!top) {
|
||||
isbottom.value = true
|
||||
// console.log("开启了")
|
||||
} else {
|
||||
isbottom.value = false
|
||||
}
|
||||
clicklock.value = true
|
||||
}
|
||||
|
||||
} else {
|
||||
clicklock.value = false
|
||||
}
|
||||
|
||||
// uni.showToast({ title: top ? '上半部分' : '下半部分', icon: 'none' });
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
|
|
@ -304,27 +370,31 @@
|
|||
|
||||
.itembox {
|
||||
width: 100%;
|
||||
height: 53vw;
|
||||
height: 56.5vw;
|
||||
display: flex;
|
||||
margin-top: 0.6vw;
|
||||
// background-color: blue;
|
||||
|
||||
|
||||
.itembord1 {
|
||||
border-radius: 1.6vw !important;
|
||||
transition: 1s;
|
||||
}
|
||||
|
||||
.itembord0 {
|
||||
border-radius: 1.6vw 1.6vw 0 0 !important;
|
||||
z-index: 25 !important;
|
||||
transition: .1s;
|
||||
}
|
||||
.dczk{
|
||||
top: -17vw !important;
|
||||
|
||||
.dczk {
|
||||
top: -405rpx !important;
|
||||
transition: .4s !important;
|
||||
}
|
||||
.dczks{
|
||||
|
||||
.dczks {
|
||||
transition: .4s !important;
|
||||
}
|
||||
|
||||
.itemhei0 {
|
||||
height: 0vw !important;
|
||||
z-index: 27 !important;
|
||||
|
|
@ -332,11 +402,11 @@
|
|||
|
||||
.items {
|
||||
width: 44.4vw;
|
||||
height: 16.8vw;
|
||||
height: 390rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 1.6vw;
|
||||
display: inline-block;
|
||||
margin: 0 0.9vw 0.5vw 0;
|
||||
margin: 0 0.9vw 10rpx 0;
|
||||
position: relative;
|
||||
// padding-top: 3vw;
|
||||
z-index: 20;
|
||||
|
|
@ -345,9 +415,9 @@
|
|||
.tan {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 17vw;
|
||||
height: 18.2vw;
|
||||
background: #fff;
|
||||
top: 16.8vw;
|
||||
top: 390rpx;
|
||||
left: 0;
|
||||
z-index: 27;
|
||||
border-radius: 0 0 1.6vw 1.6vw;
|
||||
|
|
@ -395,8 +465,9 @@
|
|||
height: 2.6vw;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
bottom: 0.7vw;
|
||||
bottom: 0.5vw;
|
||||
left: 1vw;
|
||||
|
||||
.triangle-leftpz {
|
||||
width: 2vw;
|
||||
height: 1.5vw;
|
||||
|
|
@ -404,11 +475,13 @@
|
|||
bottom: 2.2vw;
|
||||
left: 11vw;
|
||||
z-index: 30;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.triangle-leftbz {
|
||||
width: 2vw;
|
||||
height: 1.5vw;
|
||||
|
|
@ -416,6 +489,7 @@
|
|||
bottom: 2.2vw;
|
||||
left: 4vw;
|
||||
z-index: 30;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -432,7 +506,8 @@
|
|||
bottom: 3.6vw;
|
||||
left: 1vw;
|
||||
overflow: hidden;
|
||||
>.submit{
|
||||
|
||||
>.submit {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
|
|
@ -443,8 +518,9 @@
|
|||
min-height: 1vw;
|
||||
max-height: 19.5vw;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr ;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
padding: 0 1.6vw;
|
||||
|
||||
>.zpk {
|
||||
width: 12.6vw;
|
||||
height: 6.4vw;
|
||||
|
|
@ -456,6 +532,7 @@
|
|||
align-items: center;
|
||||
background: #F9F9F9;
|
||||
overflow: hidden;
|
||||
|
||||
view {
|
||||
width: 2vw;
|
||||
height: 2vw;
|
||||
|
|
@ -463,13 +540,14 @@
|
|||
position: absolute;
|
||||
right: 0.1vw;
|
||||
top: 0.1vw;
|
||||
border-radius:0.6vw 1.1vw 0.6vw 0.6vw;
|
||||
border-radius: 0.6vw 1.1vw 0.6vw 0.6vw;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
image{
|
||||
}
|
||||
|
||||
image {
|
||||
width: 12.6vw;
|
||||
height: 6.4vw;
|
||||
}
|
||||
|
|
@ -486,6 +564,7 @@
|
|||
align-items: center;
|
||||
margin-top: 0.3vw;
|
||||
flex-direction: column;
|
||||
|
||||
text {
|
||||
font-weight: 400;
|
||||
font-size: 0.7vw;
|
||||
|
|
@ -509,7 +588,7 @@
|
|||
padding-left: 2.4vw;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.gray-bgc {
|
||||
|
|
@ -537,9 +616,10 @@
|
|||
}
|
||||
|
||||
.textare {
|
||||
width: 26vw;
|
||||
width: 24vw;
|
||||
height: 6.5vw;
|
||||
background: #F5F5F5;
|
||||
background: #fff;
|
||||
border: 4rpx solid #F5F5F5;
|
||||
border-radius: 1vw;
|
||||
margin: 1.6vw auto 0;
|
||||
padding: 1vw;
|
||||
|
|
@ -548,7 +628,7 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
font-weight: 400;
|
||||
font-size: 1.1vw;
|
||||
font-size: 1.3vw;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
|
@ -557,12 +637,12 @@
|
|||
|
||||
.qued {
|
||||
width: 6vw;
|
||||
height: 2.6vw;
|
||||
height: 2.8vw;
|
||||
background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
|
||||
border-radius: 1.3vw;
|
||||
border: 1px solid rgba(3, 133, 250, 0.34);
|
||||
right: 3vw;
|
||||
top: 0;
|
||||
right: 4vw;
|
||||
top: 0.5vw;
|
||||
position: absolute;
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
|
|
@ -687,7 +767,7 @@
|
|||
width: 11vw;
|
||||
height: 3.7vw;
|
||||
display: flex;
|
||||
margin-top: 1.2vw;
|
||||
margin-top: 1.5vw;
|
||||
justify-content: space-between;
|
||||
margin-left: -2vw;
|
||||
|
||||
|
|
@ -752,7 +832,7 @@
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
margin: 1.5vw 0 1vw 0;
|
||||
margin: 1.5vw 0 1.5vw 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -764,7 +844,7 @@
|
|||
flex-direction: column;
|
||||
position: absolute;
|
||||
left: 2vw;
|
||||
top: 0.5vw;
|
||||
top: 1.5vw;
|
||||
|
||||
.cardp {
|
||||
width: 14vw;
|
||||
|
|
@ -773,19 +853,20 @@
|
|||
flex-wrap: wrap;
|
||||
margin: 0 auto;
|
||||
align-items: center;
|
||||
|
||||
view {
|
||||
min-width: 6vw;
|
||||
min-width: 6.5vw;
|
||||
height: 1.8vw;
|
||||
border-radius: 0.9vw;
|
||||
border: 1px solid #D2D2D2;
|
||||
margin: 0.5vw 0 0 0.5vw;
|
||||
margin: 0.7vw 0 0 0.5vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-weight: 400;
|
||||
font-size: 1.2vw;
|
||||
color: #555555;
|
||||
padding: 0 0.25vw;
|
||||
padding: 0 0.6vw;
|
||||
|
||||
&:nth-child(1),
|
||||
&:nth-child(2) {
|
||||
|
|
@ -802,13 +883,14 @@
|
|||
|
||||
.imgs {
|
||||
width: 13vw;
|
||||
height: 10vw;
|
||||
height: 9vw;
|
||||
// background: #F8F8F8;
|
||||
border-radius: 1.1vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 1.5vw;
|
||||
margin-top: 1.2vw;
|
||||
|
||||
// margin: 0.8vw auto 0;
|
||||
// padding: 0.5vw;
|
||||
>image {
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@
|
|||
<view class="leftsa">
|
||||
<view class="shu">数量</view>
|
||||
<view class="stringShow-kuai">
|
||||
<view v-for="(item,index) in stringShow" :key="index" >
|
||||
<view v-for="(item,index) in stringShow" :key="index">
|
||||
{{item}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="jiajian" >
|
||||
<view class="jiajian">
|
||||
<view class="jj" @click="jjnum(-1)" @longpress="handleTouchStart(-1)" @touchend="handleTouchEnd">
|
||||
-
|
||||
</view>
|
||||
<view class="jj" @click="jjnum(1)" @longpress="handleTouchStart(1)" @touchend="handleTouchEnd">
|
||||
<view class="jj" @click="jjnum(1)" @longpress="handleTouchStart(1)" @touchend="handleTouchEnd">
|
||||
+
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -20,21 +20,19 @@
|
|||
<view class="rigsbt">
|
||||
<view class="calculator-father">
|
||||
<view v-for="(item,index) in calculatorArray" :key="index">
|
||||
<view class="calculator-kuai" v-if="item==`AC`"
|
||||
@click="clickKuai(item,index)">
|
||||
<image src="/static/cleanone.png" mode="aspectFill" style="width: 50%;height: 50%;margin-left: -5rpx;"></image>
|
||||
|
||||
<view class="calculator-kuai" v-if="item==`AC`" @click="clickKuai(item,index)">
|
||||
<image src="/static/cleanone.png" mode="aspectFill"
|
||||
style="width: 50%;height: 50%;margin-left: -5rpx;"></image>
|
||||
|
||||
</view>
|
||||
<view class="calculator-kuai" v-else-if="item==`AE`"
|
||||
style="font-size: 1.2vw;color: #0385FA;"
|
||||
<view class="calculator-kuai" v-else-if="item==`AE`" style="font-size: 1.2vw;color: #0385FA;"
|
||||
@click="clickKuai(item,index)">
|
||||
同步
|
||||
</view>
|
||||
<view class="calculator-kuai" v-else
|
||||
@click="clickKuai(item,index)">
|
||||
<view class="calculator-kuai" v-else @click="clickKuai(item,index)">
|
||||
{{item}}
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -48,93 +46,93 @@
|
|||
import { queryQld } from '../api/lunpan.js'
|
||||
const stringShow = ref("0000");
|
||||
const relNumber = ref(0);
|
||||
const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9,0, "AC", "AE"];
|
||||
const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "AC", "AE"];
|
||||
const props = defineProps({
|
||||
show: {
|
||||
type: Boolean
|
||||
type: Boolean
|
||||
},
|
||||
tb:{
|
||||
type:Number
|
||||
tb: {
|
||||
type: Number
|
||||
},
|
||||
idex:{
|
||||
type:Number
|
||||
idex: {
|
||||
type: Number
|
||||
},
|
||||
pdsl:{
|
||||
type:Number
|
||||
pdsl: {
|
||||
type: Number
|
||||
},
|
||||
pddType:{
|
||||
type:String
|
||||
pddType: {
|
||||
type: String
|
||||
}
|
||||
});
|
||||
watch(()=>props.show,
|
||||
()=>{
|
||||
if(props.show==true){
|
||||
relNumber.value =props.pdsl?props.pdsl:0;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value);
|
||||
isZero.value = false
|
||||
}else{
|
||||
relNumber.value =0;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value)
|
||||
}
|
||||
})
|
||||
const emit = defineEmits([ 'pddjjnum' ])
|
||||
watch(() => props.show,
|
||||
() => {
|
||||
if (props.show == true) {
|
||||
relNumber.value = props.pdsl ? props.pdsl : 0;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value);
|
||||
isZero.value = false
|
||||
} else {
|
||||
relNumber.value = 0;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value)
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['pddjjnum'])
|
||||
const isZero = ref(false);
|
||||
const clickKuai = (item : any, index : number) => {
|
||||
if(props.pddType!='1'){return}
|
||||
if (props.pddType != '1') { return }
|
||||
if (item == "AE") {
|
||||
relNumber.value = props.tb;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value);
|
||||
emit('pddjjnum',relNumber.value,props.idex);
|
||||
emit('pddjjnum', relNumber.value, props.idex);
|
||||
return
|
||||
}
|
||||
if (item == "AC") {
|
||||
relNumber.value = Math.trunc(relNumber.value / 10)
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value);
|
||||
emit('pddjjnum',relNumber.value,props.idex);
|
||||
emit('pddjjnum', relNumber.value, props.idex);
|
||||
return
|
||||
}
|
||||
if(isZero.value == false){
|
||||
if (isZero.value == false) {
|
||||
isZero.value = true;
|
||||
relNumber.value = item;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value);
|
||||
emit('pddjjnum',relNumber.value,props.idex);
|
||||
emit('pddjjnum', relNumber.value, props.idex);
|
||||
return
|
||||
}
|
||||
if (digitCountByString(relNumber.value) > 3) {
|
||||
|
||||
|
||||
} else {
|
||||
if (!relNumber.value) {
|
||||
relNumber.value = item
|
||||
} else {
|
||||
relNumber.value = relNumber.value * 10 + item;
|
||||
}
|
||||
emit('pddjjnum',relNumber.value,props.idex);
|
||||
emit('pddjjnum', relNumber.value, props.idex);
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
const InteroutId = ref(null)
|
||||
const handleTouchStart = (e:number)=> {
|
||||
if(props.pddType!='1'){return}
|
||||
const handleTouchStart = (e : number) => {
|
||||
if (props.pddType != '1') { return }
|
||||
Interval(e)
|
||||
}
|
||||
const handleTouchEnd=()=> {
|
||||
clearInterval(InteroutId.value);
|
||||
// 清除定时器
|
||||
const handleTouchEnd = () => {
|
||||
clearInterval(InteroutId.value);
|
||||
// 清除定时器
|
||||
}
|
||||
const Interval = (e:number)=>{
|
||||
const Interval = (e : number) => {
|
||||
InteroutId.value = setInterval(() => {
|
||||
jjnum(e);
|
||||
}, 120);
|
||||
jjnum(e);
|
||||
}, 120);
|
||||
}
|
||||
const jjnum = (e:number)=>{
|
||||
if(props.pddType!='1'){return}
|
||||
const jjnum = (e : number) => {
|
||||
if (props.pddType != '1') { return }
|
||||
let num = 9999;
|
||||
if(num<=relNumber.value&&e==1){relNumber.value = num; return}
|
||||
if(relNumber.value<=0&&e==-1){relNumber.value = 0; return}
|
||||
relNumber.value+=e;
|
||||
if (num <= relNumber.value && e == 1) { relNumber.value = num; return }
|
||||
if (relNumber.value <= 0 && e == -1) { relNumber.value = 0; return }
|
||||
relNumber.value += e;
|
||||
stringShow.value = toFixed4ByPadStart(relNumber.value)
|
||||
emit('pddjjnum',relNumber.value,props.idex)
|
||||
emit('pddjjnum', relNumber.value, props.idex)
|
||||
}
|
||||
function digitCountByString(n) {
|
||||
const s = Math.abs(n).toString();
|
||||
|
|
@ -147,24 +145,29 @@
|
|||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.jsuq{
|
||||
.jsuq {
|
||||
width: 44.4vw;
|
||||
display: flex;
|
||||
height: 12vw;
|
||||
height: 16vw;
|
||||
justify-content: space-between;
|
||||
|
||||
.rigsbt{
|
||||
// background-color: red;
|
||||
margin-top: -2vw;
|
||||
|
||||
.rigsbt {
|
||||
width: 19vw;
|
||||
height: 100%;
|
||||
margin-right: 8vw;
|
||||
|
||||
// background-color: blue;
|
||||
|
||||
.calculator-father {
|
||||
width: 18vw;
|
||||
height: 100%;
|
||||
margin :0 auto 0;
|
||||
width: 23vw;
|
||||
height: 90%;
|
||||
margin: 0 auto 0;
|
||||
flex-wrap: wrap;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
|
||||
|
||||
.calculator-kuai {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
@ -173,31 +176,42 @@
|
|||
background-size: 100% 100%;
|
||||
font-size: 1.5vw;
|
||||
font-weight: 500;
|
||||
width: 3.5vw;
|
||||
height: 3.5vw;
|
||||
width: 5vw;
|
||||
height: 4vw;
|
||||
}
|
||||
.calculator-kuai:active{
|
||||
|
||||
.calculator-kuai:active {
|
||||
background: linear-gradient(to bottom, #00C9FF, #0076FF);
|
||||
color: #fff !important;
|
||||
font-weight: 500;
|
||||
border-radius: 2.6vw;
|
||||
border-radius: 1.5vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-size: 100% 100%;
|
||||
font-size: 1.5vw;
|
||||
width: 5vw;
|
||||
height: 4vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
.leftsa{
|
||||
|
||||
.leftsa {
|
||||
width: 12vw;
|
||||
height: 100%;
|
||||
height: 80%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 0 1.5vw;
|
||||
margin-left: 2.5vw;
|
||||
.shu{
|
||||
|
||||
.shu {
|
||||
font-weight: 400;
|
||||
font-size: 1.2vw;
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
.stringShow-kuai {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -207,24 +221,26 @@
|
|||
border-radius: 1vw;
|
||||
border: 1px solid #CBCFD0;
|
||||
justify-content: space-around;
|
||||
box-shadow: 0rpx 0.1vw 0.3vw 0rpx rgba(140,143,153,0.17) inset;
|
||||
view{
|
||||
box-shadow: 0rpx 0.1vw 0.3vw 0rpx rgba(140, 143, 153, 0.17) inset;
|
||||
|
||||
view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 1.7vw;
|
||||
font-weight: 500;
|
||||
width:2.2vw;
|
||||
width: 2.2vw;
|
||||
height: 3.4vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
.jiajian{
|
||||
|
||||
.jiajian {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.jj{
|
||||
width: 3.3vw;
|
||||
height: 3.3vw;
|
||||
|
||||
.jj {
|
||||
width: 4.2vw;
|
||||
height: 4.2vw;
|
||||
margin: 0 1vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
|
@ -234,7 +250,8 @@
|
|||
border-radius: 25rpx;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.jj:active{
|
||||
|
||||
.jj:active {
|
||||
background: linear-gradient(to bottom, #00C9FF, #0076FF);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
|
|
@ -244,7 +261,7 @@
|
|||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
</text>
|
||||
</view>
|
||||
<view class="tanchu guodu" :class="gysflag?'':'hei0'"
|
||||
:style="`height: ${(gysarr && gysarr.length*7) || 0}vh`">
|
||||
:style="`height: ${(gysarr && gysarr.length*8) || 0}vh`">
|
||||
<scroll-view scroll-y="true" class="gysscrol" v-if="gysflag">
|
||||
<view v-for="(v,i) in gysarr" :key='i' :class="gysidnum==i?'acts':''" @click="gysid(i)">
|
||||
<text>{{v.name}}</text>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
</view>
|
||||
<!-- <view class="tz" @click="cgdwflag=!cgdwflag">调整</view> -->
|
||||
<view class="dwdw guodu" :class="cgdwflag?'':'hei0'"
|
||||
:style="`height: ${(cgdwarr && cgdwarr.length*7) || 0}vh`">
|
||||
:style="`height: ${(cgdwarr && cgdwarr.length*8) || 0}vh`">
|
||||
<view class="gysscrol guodu" v-if="cgdwec" :class="cgdwflag?'':'hei0'">
|
||||
<view v-for="(v,i) in cgdwarr" :key='i' :class="type.multiUnitType==v.multiUnitType?'acts':''"
|
||||
@click="cd(v,i)" :style="v.unit&&v.num?'':'height:0 !important;margin-top:-0.5vw'">
|
||||
|
|
@ -393,14 +393,15 @@
|
|||
}
|
||||
|
||||
.cgdw {
|
||||
width: 24.3vw;
|
||||
width: 26vw;
|
||||
display: flex;
|
||||
height: 3.3vw;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 0.8vw auto 0;
|
||||
margin: 0.8vw 0;
|
||||
|
||||
background: #F3F5F9;
|
||||
border-radius: 1.65vw;
|
||||
border-radius: 1.1vw;
|
||||
padding: 0 1vw;
|
||||
position: relative;
|
||||
|
||||
|
|
@ -418,12 +419,13 @@
|
|||
}
|
||||
|
||||
.dwdw {
|
||||
width: 24.3vw;
|
||||
width: 26vw;
|
||||
// max-height: 21vh;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(174, 175, 176, 0.35);
|
||||
border-radius: 1.1vw;
|
||||
padding: 0 1vw;
|
||||
padding: 0 2vw;
|
||||
// background-color: red;
|
||||
position: absolute;
|
||||
left: 0vw;
|
||||
bottom: 3.5vw;
|
||||
|
|
@ -451,7 +453,7 @@
|
|||
color: #666666;
|
||||
// margin-bottom: 1.2vw;
|
||||
// padding-right: 1.5vw;
|
||||
height: 7vh;
|
||||
height: 8vh;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
|
||||
|
|
@ -499,6 +501,7 @@
|
|||
justify-content: space-between;
|
||||
white-space: nowrap;
|
||||
height: 3.3vw;
|
||||
padding: 0 1vw;
|
||||
|
||||
view {
|
||||
width: 8.6vw;
|
||||
|
|
@ -522,14 +525,14 @@
|
|||
margin-top: 0.5vw;
|
||||
|
||||
>.tanchu {
|
||||
width: 24.5vw;
|
||||
width: 26vw;
|
||||
max-height: 35vh;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(174, 175, 176, 0.35);
|
||||
border-radius: 1.1vw;
|
||||
padding: 0 1.4vw;
|
||||
padding: 0 1vw;
|
||||
position: absolute;
|
||||
left: 3vw;
|
||||
left: 4vw;
|
||||
top: 6.5vw;
|
||||
z-index: 211;
|
||||
|
||||
|
|
@ -553,7 +556,7 @@
|
|||
font-weight: 400;
|
||||
font-size: 1.5vw;
|
||||
color: #666666;
|
||||
height: 7vh;
|
||||
height: 8vh;
|
||||
// margin-bottom: 1.2vw;
|
||||
// padding-right: 1.5vw;
|
||||
position: relative;
|
||||
|
|
@ -584,8 +587,9 @@
|
|||
align-items: center;
|
||||
margin: 0.8vw auto 0;
|
||||
background: #F3F5F9;
|
||||
border-radius: 1.65vw;
|
||||
border-radius: 1.1vw;
|
||||
padding: 0 1vw;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
text {
|
||||
width: 3.3vw;
|
||||
|
|
@ -619,6 +623,7 @@
|
|||
color: #333333;
|
||||
padding-left: 3vw;
|
||||
font-weight: 400;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -702,8 +707,8 @@
|
|||
background-size: 100% 100%;
|
||||
font-size: 42rpx;
|
||||
font-weight: 500;
|
||||
margin: 12rpx 20rpx 0 20rpx;
|
||||
width: 7vw;
|
||||
margin: 12rpx 40rpx 0 0rpx;
|
||||
width: 7.6vw;
|
||||
height: 6.1vw;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,19 @@
|
|||
</view>
|
||||
<view class="select">
|
||||
<view>
|
||||
<text>总计:{{wlobjs.crkzl}}笔</text>
|
||||
<text>出库:{{wlobjs.cksl}}</text>
|
||||
<text>入库:{{wlobjs.rksl}}</text>
|
||||
<text>总计:
|
||||
<text style="font-weight: 800;">
|
||||
{{wlobjs.crkzl}}
|
||||
</text>
|
||||
笔</text>
|
||||
<text>出库:
|
||||
<text style="font-weight: 800;">
|
||||
{{wlobjs.cksl}}
|
||||
</text></text>
|
||||
<text>入库:
|
||||
<text style="font-weight: 800;">
|
||||
{{wlobjs.rksl}}
|
||||
</text></text>
|
||||
</view>
|
||||
<view>
|
||||
<view @click="crflag = !crflag">
|
||||
|
|
@ -39,7 +49,7 @@
|
|||
</view>
|
||||
<view>
|
||||
<text :class="v.crkStatus!=1?'c':'l'">{{v.crkStatus==1?'+':'-'}}{{v.crkNum}}</text>
|
||||
<text>库存:{{v.dqkcl}}</text>
|
||||
<text style="margin-top: 60rpx;">库存:{{v.dqkcl}}</text>
|
||||
<text> </text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -220,11 +230,12 @@
|
|||
|
||||
text {
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
font-size: 1.8vw;
|
||||
color: #888888;
|
||||
text-align: right;
|
||||
|
||||
&:nth-child(2) {
|
||||
// padding-top: 25rpx;
|
||||
font-weight: bold;
|
||||
font-size: 1.8vw;
|
||||
color: #333333;
|
||||
|
|
@ -241,11 +252,12 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 1vw 0 0 1.5vw;
|
||||
// background-color: red;
|
||||
// padding: 1vw 0 0 1.5vw;
|
||||
|
||||
>view {
|
||||
display: flex;
|
||||
margin-left: 1.5vw;
|
||||
// margin-left: 1.5vw;
|
||||
&:nth-child(1) {
|
||||
justify-content: space-between;
|
||||
|
||||
|
|
@ -403,4 +415,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@
|
|||
<view class="purbox guodu" :style="show?'top:6vh':'top:-99vh'">
|
||||
<view class="lfitem">
|
||||
<scroll-view scroll-y="true" scroll-with-animation class="left-menu-scroll" :scroll-top="leftscrolltop">
|
||||
|
||||
<view class="pls-card" v-for="(v,i) in generatedOrder" :key='i' @click="clickLeftMenu(i)"
|
||||
:style="{borderColor: i==lefttarget? ``:`#fff` }">
|
||||
|
||||
<view class="pls-card-title">
|
||||
<view class="title-left">
|
||||
{{v.cgdNo}}
|
||||
|
|
@ -17,28 +19,23 @@
|
|||
<view class="title-right-big">
|
||||
{{Number(v.totalPrice).toFixed(2)}}
|
||||
</view>
|
||||
|
||||
<!-- <image class="title-right-img" src="/static/more.png" @click="openmore(i)" /> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="pls-card-middle">
|
||||
<view class="middle-heng"></view>
|
||||
<view class="pls-card-middle-one">
|
||||
<view class="middle-title">
|
||||
<!-- {{v.qgDate?.replace(/-/g, '.')}} -->
|
||||
|
||||
</view>
|
||||
<view class="middle-heng-father">
|
||||
<view class="middle-ball" style="background-color: #1083F8;"></view>
|
||||
<!-- <image class="middle-ball-img" src="/static/index/requestform/isok.png" /> -->
|
||||
|
||||
</view>
|
||||
<view class="end-font">
|
||||
<view>
|
||||
采购
|
||||
</view>
|
||||
<!-- <view>
|
||||
[ {{v.qgBy}} ]
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="pls-card-middle-one">
|
||||
|
|
@ -50,10 +47,7 @@
|
|||
<view class="middle-ball"></view>
|
||||
</view>
|
||||
<view class="end-font">
|
||||
<!-- <view class=""
|
||||
:style="Number(v.status)<3 && Number(v.status)>0?{color: `#1083F8`}:{} ">
|
||||
拣货
|
||||
</view> -->
|
||||
|
||||
<view>
|
||||
拣货
|
||||
</view>
|
||||
|
|
@ -73,9 +67,7 @@
|
|||
<view>
|
||||
完结
|
||||
</view>
|
||||
<!-- <view style="font-size: 25rpx;" v-if="Number(v.status)==2 ">
|
||||
[ {{v.wjTime}} ]
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -86,22 +78,25 @@
|
|||
{{v.gysName}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view :class="v?.cgdType=='9' ?`tag-fail`:`tag-success`">
|
||||
|
||||
{{ tagesstatues[Number(v.status)] }}
|
||||
</view> -->
|
||||
<!-- <view class="tag-success">
|
||||
<text v-if="v.cgdType==0">待入库 </text>
|
||||
<text v-if="v.cgdType==1">待完结 </text>
|
||||
<text v-if="v.cgdType==2">巳完结 </text>
|
||||
<text v-if="v.cgdType==9">作废 </text>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 解决margin重叠的问题 -->
|
||||
<view class="nomargin">
|
||||
|
||||
<view class="pls-card-white center" v-if="generatedOrder.length<3">
|
||||
<view class="que">
|
||||
<image src="/static/index/procurement/que.png" mode="aspectFill"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pls-card-white center" v-if="generatedOrder.length<2">
|
||||
<view class="que">
|
||||
<image src="/static/index/procurement/que.png" mode="aspectFill"></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 解决margin重叠的问题
|
||||
<view class="nomargin">
|
||||
|
||||
</view> -->
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="rigitem">
|
||||
|
|
@ -127,10 +122,10 @@
|
|||
<text>{{v.wlMaterialNo}}</text>
|
||||
<text>¥ <text class="q">{{Number(v.totalPrice).toFixed(2) }}</text></text>
|
||||
</view>
|
||||
<view style="white-space: nowrap;">
|
||||
<view style="white-space: nowrap;margin-top: 30rpx;">
|
||||
<text style="white-space: nowrap;"> 规格型号: {{v.wlSpecificationModel}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view style="margin-top: 3rpx;">
|
||||
<text>采购单价:
|
||||
¥{{v.arrivalPrice?Number(v.arrivalPrice).toFixed(2) : Number(v.procurementPrice).toFixed(2) }}</text>
|
||||
<text>采购单位: {{v.wlUnits}}</text>
|
||||
|
|
@ -170,7 +165,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent, watch } from 'vue';
|
||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent, watch } from 'vue';
|
||||
import { generatedPurchaseViewOrder, generatedPurchaseOrder } from '../api/lunpan.js'
|
||||
const emit = defineEmits(['cloe', 'config'])
|
||||
const leftscrolltop = ref(0);
|
||||
|
|
@ -219,7 +214,7 @@
|
|||
}
|
||||
const clickLeftMenu = (index : any) => {
|
||||
let num = Math.ceil((index + 1))
|
||||
leftscrolltop.value = (num - 2) * 186;
|
||||
leftscrolltop.value = (num - 2) * 188;
|
||||
lefttarget.value = index;
|
||||
scrolltoplist.value = 0;
|
||||
form.cgdId = generatedOrder.value[index].id
|
||||
|
|
@ -322,8 +317,8 @@
|
|||
width: 47vw;
|
||||
height: 15.5vw;
|
||||
border-radius: 1.6vw;
|
||||
border: 2px solid #F9F9F9;
|
||||
background: #F9F9F9;
|
||||
border: 1rpx solid #c9c9c9;
|
||||
background: #fff;
|
||||
position: relative;
|
||||
margin: 0 auto 1.2vw;
|
||||
display: flex;
|
||||
|
|
@ -347,7 +342,8 @@
|
|||
margin-top: 0.8vw;
|
||||
|
||||
&:nth-child(5) {
|
||||
width: 28vw;
|
||||
|
||||
width: 30vw;
|
||||
height: 3.4vw;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
@ -355,12 +351,14 @@
|
|||
left: 0;
|
||||
|
||||
>view {
|
||||
// margin-top: 10rpx;
|
||||
width: 25%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
|
||||
&:nth-child(1) {
|
||||
text-align: left;
|
||||
|
|
@ -371,6 +369,7 @@
|
|||
&:nth-child(3),
|
||||
&:nth-child(4) {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
|
||||
text {
|
||||
|
|
@ -394,11 +393,12 @@
|
|||
&:nth-child(4) {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
|
||||
text {
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
color: #777777;
|
||||
color: #757575;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -473,8 +473,10 @@
|
|||
font-weight: 400;
|
||||
font-size: 1vw;
|
||||
color: #555555;
|
||||
padding:0 0.5vw;
|
||||
&:nth-child(1),&:nth-child(2){
|
||||
padding: 0 0.5vw;
|
||||
|
||||
&:nth-child(1),
|
||||
&:nth-child(2) {
|
||||
max-width: 6vw;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
|
@ -486,13 +488,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
.imghs{
|
||||
.imghs {
|
||||
width: 10vw;
|
||||
height: 9vw;
|
||||
margin: 0.8vw auto 0.25vw;
|
||||
padding: 0.2vw;
|
||||
background: #fff;
|
||||
border-radius: 1.1vw;
|
||||
|
||||
>image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -502,22 +505,39 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.left-menu-scroll {
|
||||
height: 97%;
|
||||
margin-top: 3%;
|
||||
height: 98%;
|
||||
margin-top: 4.8%;
|
||||
width: 100%;
|
||||
// background-color: red;
|
||||
|
||||
.pls-card-white{
|
||||
width: 30vw;
|
||||
height: 182px;
|
||||
border: #fff 3rpx solid;
|
||||
background-color: #fff;
|
||||
border-radius: 40rpx;
|
||||
// margin: 0 auto 1.2vw auto;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 1.2vw;
|
||||
// margin-bottom: 1.2vw;
|
||||
|
||||
padding: 0 30rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pls-card {
|
||||
width: 30vw;
|
||||
height: 16.5vw;
|
||||
height: 182px;
|
||||
border: #0f9fff 3rpx solid;
|
||||
background-color: #fff;
|
||||
border-radius: 40rpx;
|
||||
// margin: 0 auto 1.2vw auto;
|
||||
margin: 0.6vw auto;
|
||||
// margin-bottom: 1.2vw;
|
||||
|
||||
margin: 0 auto;
|
||||
// margin-top: 1.2vw;
|
||||
margin-bottom: 1.2vw;
|
||||
|
||||
padding: 0 30rpx;
|
||||
position: relative;
|
||||
|
||||
|
|
@ -698,7 +718,35 @@
|
|||
-webkit-transform-style: preserve-3d;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.nomargin{
|
||||
|
||||
.nomargin {
|
||||
height: 0.6vw;
|
||||
}
|
||||
|
||||
.que {
|
||||
width: 10vw;
|
||||
height: 10vw;
|
||||
// margin: auto;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
view {
|
||||
margin-top: -30rpx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
font-size: 1.2vw;
|
||||
color: #555555;
|
||||
}
|
||||
}
|
||||
|
||||
.center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
// border-color: #fff;
|
||||
}
|
||||
</style>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Loading…
Reference in New Issue