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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
| <style scoped>
| .rawInsBox{
| height: 100%;
| width: 100%;
| overflow-y: scroll;
| display: flex;
| flex-direction: column;
| }
| .rawInsBox .title .el-button {
| height: 32px;
| border: 1px solid rgba(190, 190, 190, 0.44);
| box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41);
| padding: 0 12px;
| }
| .rawInsBox .title {
| margin-bottom: 10px;
| padding: 0 20px;
| }
| /* 检验详情 */
| .raw-detail-info{
| background: #fff;
| padding: 26px 0px 11px 80px;
| }
| .raw-detail-info >>>.el-form-item__label{
|
| color: rgb(51, 51, 51);
| font-family: 微软雅黑;
| font-size: 16px;
| font-weight: 400;
| letter-spacing: 0px;
| }
| .raw-detail-info .el-input{
| width: auto;
| }
| .raw-detail-info >>>.el-input__inner{
| width: 224px;
| height: 32px;
| box-sizing: border-box;
| background: rgb(238, 238, 238);
| border: 1px solid rgb(221, 221, 221);
| border-radius:4px;
| }
| .raw-detail-info .el-form-item{
| margin-bottom: 24px;
| }
|
| /* 检验项目 */
| .raw-project-table{
| padding: 24px 14px;
| background: #fff;
| flex: 1;
| /* max-height: 360px; */
| /* overflow-y: hidden; */
| }
| /* 检验结论 */
| .raw-conclusion-table{
| padding: 9px 14px;
| background: #fff;
| }
| </style>
|
|
| <template>
| <div class="rawInsBox">
| <div class="title">
| <el-row>
| <el-col :span="12" style="line-height: 32px;">原材料检验</el-col>
| <el-col :span="12" style="text-align: right;">
| <el-button icon="el-icon-download" @click="()=>{goBack()}">返 回</el-button>
| </el-col>
| </el-row>
| </div>
| <div class="raw-detail-info">
| <el-form v-model="detail" label-position="right" label-width="120px" >
| <el-row>
| <el-col :span="7">
| <el-form-item label="来料日期:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| <el-col :span="7">
| <el-form-item label="规格型号:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| <el-col :span="7">
| <el-form-item label="原材料编码:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| </el-row>
| <el-row>
| <el-col :span="7">
| <el-form-item label="原材料名称:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| <el-col :span="7">
| <el-form-item label="报检日期:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| <el-col :span="7">
| <el-form-item label="单位:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| </el-row>
| <el-row>
| <el-col :span="7">
| <el-form-item label="数量:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
| <el-col :span="7">
| <el-form-item label="报检人:">
| <el-input></el-input>
| </el-form-item>
| </el-col>
|
| </el-row>
| </el-form>
| </div>
| <div class="title">
| <el-row>
| <el-col :span="12" style="line-height: 32px;">检验项目</el-col>
| </el-row>
| </div>
| <div class="raw-project-table">
| <el-table
| :data="projectTable"
| style="width: 100%"
| max-height="320"
| >
| <el-table-column
| type="index"
| label="序号"
| width="100"
| >
| </el-table-column>
| <el-table-column
| prop="name"
| label="项目"
| width="212">
| </el-table-column>
| <el-table-column
| prop="address"
| label="单位"
| width="148">
| </el-table-column>
| <el-table-column
| prop="address"
| label="标准"
| width="254">
| </el-table-column>
| <el-table-column
| prop="address"
| label="内控值"
| width="291">
| </el-table-column>
| <el-table-column
| prop="address"
| label="检查值"
| width="371">
| </el-table-column>
| <el-table-column
| prop="address"
| label="试验设备"
| width="248"
| >
| </el-table-column>
| <el-table-column
| prop="address"
| label="结论"
| width="98"
| >
| </el-table-column>
| </el-table>
| </div>
| <div class="title">
| <el-row>
| <el-col :span="12" style="line-height: 32px;">检验结论</el-col>
| </el-row>
| </div>
| <div class="raw-conclusion-table">
| <el-table :data="conclusionTable">
| <el-table-column
| prop="number"
| label="物料编号"
| width="353">
| </el-table-column>
| <el-table-column
| prop="number"
| label="物料名称"
| width="353">
| </el-table-column>
| <el-table-column
| prop="number"
| label="检验员"
| width="542">
| </el-table-column>
| <el-table-column
| prop="number"
| label="检验结论"
| width="362">
| </el-table-column>
| <el-table-column
| fixed="right"
| label="操作"
| width="120">
| <template slot-scope="scope">
| <el-button type="text" size="small">上报</el-button>
| </template>
| </el-table-column>
| </el-table>
| </div>
| </div>
| </template>
|
| <script>
| import RawIns from './raw-ins.vue'
| export default {
| components:{RawIns},
| props:['goBack','detail'],
| created(){
| console.log(this.detail)
| },
| data() {
| return {
| conclusionTable:[
| {number:'物料名称'}
| ],
| projectTable:[
| {
| date: '2016-05-02',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }, {
| date: '2016-05-04',
| name: '王小虎',
| address: '上海市'
| }
| ]
| }
| },
| }
| </script>
|
|