151 lines
3.4 KiB
Vue
151 lines
3.4 KiB
Vue
<template>
|
||
<view class="addPlanss">
|
||
<view class="fixedheader">
|
||
<headers :themeType="true" :showBack="true">
|
||
<view class="headerName">
|
||
{{title}}
|
||
</view>
|
||
</headers>
|
||
</view>
|
||
<view class="" :style="{ 'padding-top': (statusBarHeight + 45) * 1.5 + 'rpx','background-color':'#f6f6f6','paddingBottom': '40rpx'}">
|
||
<view class="backlogList-admin" v-for="item in listData" :key="item.id" @click="jobTrial(item)">
|
||
<view class="backlogList backlogMargin">
|
||
<span>
|
||
<!-- 危大工程名称:{{item.engineeringName}} -->
|
||
作业票编号:{{item.workTicketCode}}
|
||
<!-- 动火作业 -->
|
||
</span>
|
||
<span class="backlogList-span" v-if="!item.acceptanceResult">待确认</span>
|
||
<span class="backlogList-span" v-if="item.acceptanceResult === 1">合格</span>
|
||
<span class="backlogList-span" v-if="item.acceptanceResult === 2">不合格</span>
|
||
</view>
|
||
<view class="backlogMargin">
|
||
计划执行时间:{{item.planTime}}
|
||
</view>
|
||
<view class="backlogMargin">
|
||
申请验收单位:{{item.applyAcceptanceUnitName}}
|
||
</view>
|
||
<view class="backlogMargin">
|
||
申请验收人:{{item.applyAcceptanceUserName}}
|
||
</view>
|
||
</view>
|
||
<view class="no-data" v-if="listData.length === 0">
|
||
<image class="img" src="/static/noData.png"></image>
|
||
<text class="txt">暂无数据</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
title: "动火验收",
|
||
listData: [],
|
||
projectSn: '',
|
||
userInfo: {},
|
||
fixedheader:{}
|
||
};
|
||
},
|
||
created() {
|
||
|
||
},
|
||
onLoad() {
|
||
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn
|
||
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
|
||
this.initData()
|
||
},
|
||
onShow() {
|
||
this.initData()
|
||
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
|
||
},
|
||
methods:{
|
||
initData(){
|
||
this.sendRequest({
|
||
url:'xmgl/xzDangerousEngineeringAcceptance/list',
|
||
method:'get',
|
||
data:{
|
||
projectSn: this.projectSn,
|
||
acceptanceUserId: this.userInfo.userId,
|
||
type: 2
|
||
},
|
||
success:res=>{
|
||
uni.hideLoading()
|
||
this.listData = res.result
|
||
}
|
||
})
|
||
},
|
||
jobTrial(item){
|
||
console.log('sssssss');
|
||
let checkRecord = {
|
||
id: item.id,
|
||
engineeringName: item.engineeringName,
|
||
planTime: item.planTime,
|
||
applyAcceptanceUnitName: item.applyAcceptanceUnitName,
|
||
applyAcceptanceUserName: item.applyAcceptanceUserName
|
||
}
|
||
checkRecord = item
|
||
uni.navigateTo({
|
||
url:'./check?checkRecord='+encodeURIComponent(JSON.stringify(checkRecord))
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
.addPlanss {
|
||
height: 100%;
|
||
background-color: #f6f6f6;
|
||
min-height: 100%;
|
||
.fixedheader{
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
z-index: 2;
|
||
.headerName{
|
||
z-index: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
.backlogList-admin {
|
||
margin: 20rpx;
|
||
background-color: #fff;
|
||
// height: 320rpx;
|
||
height: auto;
|
||
padding: 30rpx;
|
||
|
||
.backlogList {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
.backlogList-span{
|
||
padding: 3px 10rpx;
|
||
border: 1px solid #ccc;
|
||
color: #d17b00;
|
||
border-radius: 6rpx;
|
||
}
|
||
}
|
||
}
|
||
.no-data{
|
||
text-align: center;
|
||
.img{
|
||
display: block;
|
||
height: 200rpx;
|
||
width: 200rpx;
|
||
margin: 0 auto;
|
||
margin-top: 60rpx;
|
||
margin-bottom: 60rpx;
|
||
}
|
||
.txt{
|
||
color: #C0C4CC;
|
||
}
|
||
}
|
||
|
||
.backlogMargin{
|
||
margin-bottom: 30rpx;
|
||
}
|
||
</style> |