叶松
2023-11-29 8428bf7e11fe22cdccbe2c9ccf76cf090c05996c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<template>
    <div class="work_index">
        <div class="work_headers">
            <div class="header_title">材料标识牌</div>
            <div class="header_area">
                <div class="header_area_text">区域:</div>
                <div class="header_area_data">{{workList&&workList.region}}号</div>
            </div>
        </div>
        <div class="work_main">
            <div class="work_rows">
                <div class="work_items">
                    <div class="work_items_text">材料名称</div>
                    <div class="work_items_data" style="border-right: 3px solid #001982;">{{workList&&workList.materialName}}</div>
                </div>
                <div class="work_items">
                    <div class="work_items_text">生产厂家</div>
                    <div class="work_items_data" >{{workList&&workList.manufacturer}}</div>
                </div>
            </div>
            <div class="work_rows">
                <div class="work_items">
                    <div class="work_items_text">规格型号</div>
                    <div class="work_items_data" style="border-right: 3px solid #001982;">{{workList&&workList.specifications}}</div>
                </div>
                <div class="work_items">
                    <div class="work_items_text">炉(批)号</div>
                    <div class="work_items_data" style="font-size:1.2rem">{{workList&&workList.heatNumber}}</div>
                </div>
            </div>
            <div class="work_rows">
                <div class="work_items">
                    <div class="work_items_text">进场数量</div>
                    <div class="work_items_data" style="border-right: 3px solid #001982;">{{workList&&workList.inNumber}}</div>
                </div>
                <div class="work_items">
                    <div class="work_items_text">报检日期</div>
                    <div class="work_items_data" >{{workList&&workList.reportTime}}</div>
                </div>
            </div>
            <div class="work_rows">
                <div class="work_items">
                    <div class="work_items_text">报告编号</div>
                    <div class="work_items_data" style="border-right: 3px solid #001982;">{{workList&&workList.reportNum}}</div>
                </div>
                <div class="work_items">
                    <div class="work_items_text">检验状态</div>
                    <div class="work_items_data" >{{workList&&workList.status===1?'合格':workList&&workList.status===2?'待检':''}}</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            timer:null,//定时器
            workList:null,//展示数据
        }
    },
    created(){
        this.searchWorkInfos()
    },
    mounted(){
        // const that = this;
        // that.timer = setInterval(()=>{
        //     that.searchWorkInfos()
        // },300000)
    },
    beforeDestroy() {
        // clearInterval(this.timer);
        // this.timer = null;
    },
    methods:{
        searchWorkInfos(){
            let params={
                region:window.location.href.split('/')[5].split('=')[1]
            }
            this.$api.Materials.detailSignBoardInfos(params).then(res=>{
                if(res.statusMsg==='ok'){
                    this.workList = res.data===null?[]:res.data
                }else{
                    this.$message.warning('请检查网络或联系管理员!!!')
                }
            })
        },
    }
}
</script>
<style scoped lang="scss">
.work_index{
    width: 100%;
    height: 100%;
    background: url("../../assets/work_shop.png") no-repeat;
    background-size: 100% 100%;
    overflow: auto;
 
    .work_headers{
        height: 206px;
        padding-top: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
 
        .header_title{
            font-size: 4.5rem;
            font-weight: 600;
            background: linear-gradient(to bottom,#24A5ED,#1976CE,#145DBE,#071C94);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }
        .header_area{
            display: flex;
            position: absolute;
            right: 100px;
 
            .header_area_text{
                font-size: 3.2rem;
                font-weight: 600;
                background: linear-gradient(to bottom,#24A5ED,#1976CE,#145DBE,#071C94);
                background-clip: text;
                -webkit-background-clip: text;
                color: transparent;
            }
            .header_area_data{
                font-size: 3.2rem;
                font-weight: 600;
                background: linear-gradient(to bottom,#24A5ED,#1976CE,#145DBE,#071C94);
                background-clip: text;
                -webkit-background-clip: text;
                color: transparent;
            }
        }
    }
    .work_main{
        // height: calc(100% - 200px);
        border: 3px solid #001982;
        margin: 20px 100px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .work_rows{
            width: 100%;
            line-height: 60px;
            display: flex;
 
            .work_items{
                width: 50%;
                display: flex;
 
                .work_items_text{
                    font-size: 3rem;
                    font-weight: 500;
                    padding: 30px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex: none;
                    width: 240px;
                    border-bottom: 1px solid #001982;
                    border-right: 1px solid #001982;
                    background: linear-gradient(to bottom,#AEDEF9,#1E87D9,#1D87D9,#2265C0,#145DBE,#082296);
                    background-clip: text;
                    -webkit-background-clip: text;
                    color: transparent;
                }
                .work_items_data{
                    color: #11299F;
                    padding: 10px;
                    font-size: 2rem;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex: 1;
                    width: calc(50% - 200px);
                    border-bottom: 1px solid #001982;
                    word-break: break-all;
                    // word-wrap: break-word;
                }
            }
        }
    }
}
</style>