2022-12-22 18:28:08 +08:00
|
|
|
<template>
|
2023-02-10 15:08:38 +08:00
|
|
|
<Card title="现场验收">
|
2023-01-08 01:33:25 +08:00
|
|
|
<div class="list">
|
2023-01-04 14:27:14 +08:00
|
|
|
<el-date-picker
|
2023-01-08 01:33:25 +08:00
|
|
|
@change="credad"
|
|
|
|
|
v-model="acceptanceDate"
|
|
|
|
|
type="daterange"
|
|
|
|
|
range-separator="-"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
size="mini"
|
|
|
|
|
></el-date-picker>
|
2022-12-22 18:28:08 +08:00
|
|
|
<div class="thead">
|
|
|
|
|
<div class="row">
|
2023-01-08 01:33:25 +08:00
|
|
|
<div class="td">序号</div>
|
2023-02-10 15:08:38 +08:00
|
|
|
<div class="td">验收内容</div>
|
2023-01-10 19:45:09 +08:00
|
|
|
<div class="td">计划验收时间</div>
|
|
|
|
|
<div class="td">实际验收时间</div>
|
2022-12-22 18:28:08 +08:00
|
|
|
<div class="td">结论</div>
|
2023-01-10 19:45:09 +08:00
|
|
|
<div class="td">附件</div>
|
|
|
|
|
|
2022-12-22 18:28:08 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-10 15:08:38 +08:00
|
|
|
<div class="thead" style="color:#fff">
|
2023-02-09 17:33:12 +08:00
|
|
|
<vue-scroll style="width: 95%;height:200px">
|
2023-01-08 01:33:25 +08:00
|
|
|
<div class="row" v-for="(item, index) in list" :key="index">
|
|
|
|
|
<div class="td">{{ index + 1 }}</div>
|
|
|
|
|
<div class="td">
|
|
|
|
|
{{ item.subsectionName }}-{{ item.subentryName }}
|
|
|
|
|
</div>
|
2023-02-09 17:33:12 +08:00
|
|
|
<!-- 计划验收 -->
|
2023-01-08 01:33:25 +08:00
|
|
|
<div class="td">{{ item.acceptanceDate }}</div>
|
2023-02-09 17:33:12 +08:00
|
|
|
<!-- 实际验收 -->
|
|
|
|
|
<div class="td">{{ item.actualAcceptanceDate }}</div>
|
|
|
|
|
|
|
|
|
|
<div class="td">{{ item.status == 1 ? "合格" : "不合格" }}</div>
|
|
|
|
|
<div class="td">
|
2023-01-08 01:33:25 +08:00
|
|
|
<img
|
|
|
|
|
:preview="item.imageUrl[0] ? item.imageUrl[0].url : []"
|
|
|
|
|
:src="item.imageUrl[0] ? item.imageUrl[0].url : []"
|
|
|
|
|
alt=""
|
|
|
|
|
width="50px"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-09 17:33:12 +08:00
|
|
|
</vue-scroll>
|
2023-01-08 01:33:25 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="tbody" v-if="list.length==0">
|
2022-12-22 18:28:08 +08:00
|
|
|
<div class="dataImg">
|
|
|
|
|
<img src="@/assets/images/noData3.png" alt srcset />
|
2023-01-08 01:33:25 +08:00
|
|
|
<p>{{ $t("message.dataBoard.nodata") }}</p>
|
2022-12-22 18:28:08 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-01-08 01:33:25 +08:00
|
|
|
</Card>
|
2022-12-22 18:28:08 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-01-08 01:33:25 +08:00
|
|
|
import { getLimitOrderByAcceptanceDateApi } from "@/assets/js/api/zhongjianFourth";
|
2022-12-22 18:28:08 +08:00
|
|
|
import Card from "../components/Card.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
2023-01-08 01:33:25 +08:00
|
|
|
components: {
|
|
|
|
|
Card,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
time1: "",
|
|
|
|
|
sn: "",
|
|
|
|
|
list: [],
|
|
|
|
|
acceptanceDate: "",//日期
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.sn = this.$store.state.projectSn;
|
|
|
|
|
|
|
|
|
|
this.credad();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
credad(val) {
|
|
|
|
|
let data = "";
|
|
|
|
|
if (val) {
|
|
|
|
|
data = val;
|
|
|
|
|
}
|
|
|
|
|
//查询分部分项验收
|
|
|
|
|
getLimitOrderByAcceptanceDateApi({
|
|
|
|
|
projectSn: this.sn,
|
|
|
|
|
acceptanceDate: data,
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
res.result.map((item) => {
|
|
|
|
|
item.imageUrl = JSON.parse(item.imageUrl);
|
|
|
|
|
if (
|
|
|
|
|
item.imageUrl.length !== 0 &&
|
|
|
|
|
!item.imageUrl[0].url.includes(this.$store.state.FILEURL)
|
|
|
|
|
) {
|
|
|
|
|
item.imageUrl[0].url =
|
|
|
|
|
this.$store.state.FILEURL + item.imageUrl[0].url;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
console.log("分部分项验收", res);
|
|
|
|
|
this.list = res.result;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
2022-12-22 18:28:08 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.list {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 80px);
|
|
|
|
|
.thead {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #6ee4f0;
|
|
|
|
|
}
|
|
|
|
|
.tbody {
|
|
|
|
|
height: calc(100% - 40px);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-08 01:33:25 +08:00
|
|
|
.thead .row,
|
|
|
|
|
.tbody .row {
|
2022-12-22 18:28:08 +08:00
|
|
|
display: flex;
|
|
|
|
|
text-align: center;
|
|
|
|
|
justify-content: left;
|
|
|
|
|
height: 40px;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
.td {
|
|
|
|
|
text-align: center;
|
|
|
|
|
&:nth-child(1) {
|
2023-02-09 17:33:12 +08:00
|
|
|
width: 100px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(2) {
|
|
|
|
|
width: 200px;
|
|
|
|
|
margin-left: 22px;
|
|
|
|
|
}
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
|
width: 200px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 22px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(4) {
|
|
|
|
|
width: 130px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 22px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(5) {
|
|
|
|
|
width: 100px;
|
2023-02-09 17:33:12 +08:00
|
|
|
margin: 0 18px 0 25px;
|
|
|
|
|
// margin-left: 22px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(6) {
|
|
|
|
|
width: 100px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 22px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(7) {
|
|
|
|
|
width: 100px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 2px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(8) {
|
|
|
|
|
width: 100px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 28px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
&:nth-child(9) {
|
|
|
|
|
width: 100px;
|
2023-02-09 17:33:12 +08:00
|
|
|
// margin-left: 28px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.dataImg {
|
|
|
|
|
margin-left: 410px;
|
|
|
|
|
margin-top: 50px;
|
2023-01-08 01:33:25 +08:00
|
|
|
p {
|
|
|
|
|
margin: 6px 0 0 13px;
|
|
|
|
|
font-size: 16px;
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 01:33:25 +08:00
|
|
|
|
2023-01-04 14:27:14 +08:00
|
|
|
::v-deep .el-date-editor--daterange.el-input__inner {
|
2023-01-08 01:33:25 +08:00
|
|
|
cursor: pointer;
|
2023-01-04 14:27:14 +08:00
|
|
|
width: 235px;
|
|
|
|
|
height: 30px;
|
2023-01-08 01:33:25 +08:00
|
|
|
border: 1px solid #66d3d8;
|
2023-01-04 14:27:14 +08:00
|
|
|
background: transparent;
|
|
|
|
|
margin: 16px 0 0 74.5%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-range-input {
|
2023-01-08 01:33:25 +08:00
|
|
|
cursor: pointer;
|
2023-01-04 14:27:14 +08:00
|
|
|
background: transparent;
|
|
|
|
|
color: #6ee4f0;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-date-editor {
|
2023-01-08 01:33:25 +08:00
|
|
|
cursor: pointer;
|
2023-01-04 14:27:14 +08:00
|
|
|
.el-range__icon {
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
color: #6ee4f0;
|
|
|
|
|
}
|
|
|
|
|
.el-range-separator {
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
color: #757d88;
|
|
|
|
|
}
|
|
|
|
|
.el-range__close-icon {
|
|
|
|
|
color: #757d88;
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-12-22 18:28:08 +08:00
|
|
|
}
|
|
|
|
|
</style>
|