95 lines
2.3 KiB
Vue
Raw Normal View History

<template>
<view class="danger-project">
<view class="" v-if="finallyCheckList.length > 0">
<view class="finally" v-for="item in finallyCheckList" :key="item.id">
<view style="padding:20rpx;">
<text style="font-weight: bold;">作业票编号{{item.workTicketCode}}</text>
<!-- {{item.engineeringName}} -->
</view>
<view style="padding:20rpx;">
<text style="font-weight: bold;">验收时间</text>{{item.planTime}}
</view>
<view style="padding:20rpx;">
<text style="font-weight: bold;">验收人</text>{{item.acceptanceUserName}}
</view>
<view style="padding:20rpx;">
<text style="font-weight: bold;" v-if="item.acceptanceResult === null || item.acceptanceResult === undefined">验收结果待确认</text>
<text style="font-weight: bold;" v-if="item.acceptanceResult === 1">验收结果合格</text>
<text style="font-weight: bold;" v-if="item.acceptanceResult === 2">验收结果不合格</text>
</view>
</view>
</view>
<view class="no-data" v-else>
<image class="img" src="/static/noData.png"></image>
<text class="txt">暂无数据</text>
</view>
</view>
</template>
<script>
export default {
props:['detailId','detailData'],
data() {
return {
finallyCheckList: [],
};
},
created() {
this.initData()
},
onLoad(val) {
},
onShow() {
},
methods:{
initData(){
let engineeringId = this.detailId
this.sendRequest({
url:'xmgl/xzDangerousEngineeringAcceptance/list',
method:'get',
data:{
engineeringId: this.detailId,
projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn,
type: 2
},
success:res=>{
uni.hideLoading()
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
this.finallyCheckList = res.result;
}
})
},
sendMessage(val){
this.$emit('message', val);
}
}
}
</script>
<style lang="scss">
.danger-project{
padding-top: 20rpx;
padding-bottom: 40rpx;
.finally{
background-color: #fff;
height: auto;
margin: 20rpx;
}
.no-data{
text-align: center;
.img{
display: block;
height: 200rpx;
width: 200rpx;
margin: 0 auto;
margin-top: 60rpx;
margin-bottom: 60rpx;
}
.txt{
color: #C0C4CC;
}
}
}
</style>