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