Commit fbfb8d6b authored by Damon's avatar Damon

完工-配件信息样式修改

parent adcdc662
......@@ -4,14 +4,18 @@
<view v-if="status === 1">
<adjust-parts v-for="(item, index) in lists" :key="index" :info="item" @change="partsChange($event, index)" :disabled="disabled"></adjust-parts>
</view>
<view v-else-if="status === 2">
<view class="content">
暂无配件信息,<text class="tips" @click="toParts">可选择备件仓配件></text>
<view class="u-flex select-part" v-else-if="status === 2">
<view class="img">
<image src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" class="part-icon" />
</view>
</view>
<view v-else>
<view class="content">
<text class="tips" @click="toHandle">有未处理的配件申请单,不可完工,请点击处理></text>
<view class="u-flex content">
<text class="title">暂无配件信息</text>
<text class="desc">可选择备件仓配件</text>
</view>
<view class="btn">
<u-button shape="circle" :custom-style="customStyle">
去选择
</u-button>
</view>
</view>
</view>
......@@ -52,6 +56,16 @@
]
}
},
computed: {
customStyle() {
return {
'width': '200rpx',
'height': '80rpx',
'color': '#2272FF',
'font-size': '32rpx',
}
}
},
methods: {
partsChange(val, index) {
console.log("val", val, index)
......@@ -70,13 +84,38 @@
<style lang="scss" scoped>
.complete-part {
.content {
padding: 100rpx 50rpx;
text-align: center;
font-size: 26rpx;
color: #aaa;
.tips {
color: #2271FF;
.select-part {
align-items: center;
height: 240rpx;
.img {
margin-right: 20rpx;
.part-icon {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
}
}
.content {
padding-right: 8px;
flex: 1;
color: #3b4144;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
.title {
text-align: left;
color: #2272FF;
font-size: 38rpx;
font-weight: bold;
margin-right: auto;
}
.desc {
text-align: left;
color: #999;
font-size: 26rpx;
margin-top: 20rpx;
margin-right: auto;
}
}
}
}
......
......@@ -11,7 +11,6 @@
<view class="class-item" :id="'item' + groupIndex" :key="groupIndex">
<view class="title">{{groupItem.name}}</view>
<view class="class-bd">
<xh-parts :status="1"></xh-parts>
<u-form-item v-for="(item,itemIndex) in groupItem.items" :key="itemIndex" label-position="top"
:prop="item.fieldsName" :border-bottom="false" v-show="item.fieldsName != 'actualPaid' || show200" :id="`item${item.fieldsId}`">
<view class="label" v-if="item.formType!=='location'&&item.formType!=='form'&&item.formType!=='label'">
......@@ -111,7 +110,6 @@
import XhServiceMeasure from '@/components/createCom/XhServiceMeasure.vue'
import XhServiceMore from "@/components/createCom/XhServiceMore"
import XhLabel from "@/components/createCom/XhLabel"
import XhParts from "@/components/createCom/XhParts"
import takePhoto from '@/components/take/index.vue'
import baseFile from '@/components/upload/index'
......@@ -275,7 +273,6 @@
XhServiceMeasure,
XhServiceMore,
XhLabel,
XhParts,
'take-photo': takePhoto
},
mixins: [baseFile],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment