提交 | 用户 | 时间
|
f4d049
|
1 |
<template> |
H |
2 |
<div class="app-container"> |
|
3 |
<el-card style="height: 70px;margin-bottom: 10px" class="box-card" > |
|
4 |
<template> |
|
5 |
<div class="container"> |
|
6 |
<el-row type="flex" justify="center" style="text-align: center" > |
|
7 |
<el-col :span="12"> |
95fb19
|
8 |
<span style="fontSize:35px;color:black"><strong>发动机数据检查</strong></span> |
f4d049
|
9 |
</el-col> |
H |
10 |
</el-row> |
|
11 |
</div> |
|
12 |
</template> |
|
13 |
</el-card> |
8f6607
|
14 |
<el-row :gutter="5" style="margin-top: 10px"> |
a873f8
|
15 |
<el-col :span="10" style=" height:600px;width:800px" > |
f4d049
|
16 |
<el-card class="bottom-card"> |
H |
17 |
<el-descriptions :column="1" > |
|
18 |
<el-descriptions-item> |
|
19 |
<el-form ref="form" :model="form" label-width="200px" style="height: 60px;margin-top: 20px" > |
8f6607
|
20 |
<el-form-item prop="engineNo" > |
H |
21 |
<span slot="label" style="font-size:45px;color:black"><strong>发动机号</strong></span> |
95fb19
|
22 |
<el-input style="font-size:30px" v-model="form.engineNo" placeholder="请输入发动机号" clearable @keyup.enter.native="EngineNohandleChange" > |
H |
23 |
<el-button slot="append" plain type="info" @click="EngineNohandleChange(form.engineNo)" icon="el-icon-search"></el-button> |
8f6607
|
24 |
</el-input> |
f4d049
|
25 |
</el-form-item> |
H |
26 |
</el-form> |
|
27 |
</el-descriptions-item> |
|
28 |
<el-descriptions-item> |
|
29 |
<el-form ref="form" :model="form" label-width="200px" style="height: 60px;margin-top: 20px" > |
8f6607
|
30 |
<el-form-item prop="productType" > |
95fb19
|
31 |
<span slot="label" style="font-size:45px;color:black"><strong>机型</strong></span> |
H |
32 |
<el-input disabled style="font-size:30px" value="form.productType" v-model="form.productType" placeholder="" /> |
f4d049
|
33 |
</el-form-item> |
H |
34 |
</el-form> |
|
35 |
</el-descriptions-item> |
|
36 |
<el-descriptions-item> |
|
37 |
<el-form ref="form" :model="form" label-width="200px" style="height: 60px;margin-top: 20px" > |
8f6607
|
38 |
<el-form-item prop="orderNo" > |
H |
39 |
<span slot="label" style="font-size:45px;color:black"><strong>工单编号</strong></span> |
|
40 |
<el-input disabled style="font-size:30px" v-model="form.orderNo" placeholder="" /> |
f4d049
|
41 |
</el-form-item> |
H |
42 |
</el-form> |
|
43 |
</el-descriptions-item> |
|
44 |
<el-descriptions-item> |
|
45 |
<el-form ref="form" :model="form" label-width="200px" style="height: 60px;margin-top: 20px" > |
95fb19
|
46 |
<el-form-item prop="currentWorkstation" > |
8f6607
|
47 |
<span slot="label" style="font-size:45px;color:black"><strong>质量状态</strong></span> |
4b6839
|
48 |
<el-input disabled style="font-size:30px" v-model:value="form.add" placeholder="" /> |
f4d049
|
49 |
</el-form-item> |
H |
50 |
</el-form> |
|
51 |
</el-descriptions-item> |
|
52 |
</el-descriptions> |
|
53 |
<el-divider></el-divider> |
|
54 |
<el-row :gutter="10" class="mb8" type="flex" justify="center" style="text-align: center"> |
|
55 |
<el-col :span="1.5"> |
95fb19
|
56 |
<el-button plain :disabled="buttondisabled" type="primary" style="width:400px;height:160px" v-hasPermi="['bs:formula:add']" @click="forceOnline"> |
8f6607
|
57 |
<span class="el-icon-thumb" style="font-size:45px;color:black"></span> |
dbe5f1
|
58 |
<span style="font-size:45px;color:black"><strong>强制上线</strong></span> |
懒 |
59 |
</el-button> |
f4d049
|
60 |
</el-col> |
H |
61 |
</el-row> |
|
62 |
</el-card> |
|
63 |
</el-col> |
8f6607
|
64 |
|
a873f8
|
65 |
<el-col :span="14" inline style="height:600px;width:600px "> |
8f6607
|
66 |
<el-tabs type="border-card" > |
H |
67 |
<el-card> |
|
68 |
<el-col :span="14"style="height: 270px;width:800px "> |
|
69 |
<span style="font-size:25px"><strong>质量状态</strong></span> |
|
70 |
<el-divider></el-divider> |
4b6839
|
71 |
{{this.form.engineCheckList}} |
8f6607
|
72 |
</el-col> |
H |
73 |
</el-card> |
|
74 |
<el-card style="margin-top: 10px" > |
|
75 |
<el-col :span="14"style="height: 270px;width:800px "> |
|
76 |
<span style="font-size:25px"><strong>最终结果</strong></span> |
|
77 |
<el-divider></el-divider> |
|
78 |
{{queryParams.productType}} |
|
79 |
</el-col> |
|
80 |
</el-card> |
f4d049
|
81 |
</el-tabs> |
H |
82 |
</el-col> |
|
83 |
</el-row> |
|
84 |
</div> |
|
85 |
</template> |
|
86 |
<script> |
8f6607
|
87 |
|
95fb19
|
88 |
import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling"; |
H |
89 |
import { listPassingStationCollection, getPassingStationCollection, delPassingStationCollection, addPassingStationCollection, updatePassingStationCollection } from "@/api/main/da/passingStationCollection/passingStationCollection"; |
|
90 |
import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo"; |
8f6607
|
91 |
|
f4d049
|
92 |
export default { |
8f6607
|
93 |
components: { }, |
H |
94 |
options: [], |
f4d049
|
95 |
props: [], |
H |
96 |
data() { |
|
97 |
return { |
95fb19
|
98 |
options: [], |
H |
99 |
total: 0, |
|
100 |
engineCheckList:[], |
8f6607
|
101 |
showFlag:false, |
95fb19
|
102 |
buttondisabled:true, |
8f6607
|
103 |
// 查询参数 |
H |
104 |
queryParams: { |
|
105 |
pageNum: 1, |
|
106 |
pageSize: 10, |
|
107 |
engineNo: null, |
95fb19
|
108 |
productType:null, |
H |
109 |
orderNo:null, |
|
110 |
qualityStatus:null, |
|
111 |
currentWorkstation: null, |
4b6839
|
112 |
add: null, |
H |
113 |
engineCheckList:'暂无数据', |
8f6607
|
114 |
}, |
H |
115 |
// 表单参数 |
95fb19
|
116 |
form: { |
H |
117 |
engineNo: null, |
|
118 |
productType:null, |
|
119 |
orderNo:null, |
|
120 |
qualityStatus:null, |
|
121 |
currentWorkstation: null, |
4b6839
|
122 |
add: null, |
H |
123 |
engineCheckList:'暂无数据', |
95fb19
|
124 |
}, |
4b6839
|
125 |
add: null, |
8f6607
|
126 |
}; |
f4d049
|
127 |
}, |
H |
128 |
computed: {}, |
|
129 |
watch: {}, |
4b6839
|
130 |
created() {}, |
f4d049
|
131 |
mounted() {}, |
8f6607
|
132 |
methods: { |
4b6839
|
133 |
reset() { |
H |
134 |
this.form = { |
|
135 |
engineNo:null, |
95fb19
|
136 |
productType:null, |
H |
137 |
orderNo:null, |
|
138 |
qualityStatus:null, |
|
139 |
currentWorkstation: null, |
4b6839
|
140 |
add: null, |
H |
141 |
engineCheckList:'暂无数据', |
|
142 |
}; |
|
143 |
this.resetForm("form"); |
|
144 |
}, |
8f6607
|
145 |
EngineNohandleChange(){ |
dbe5f1
|
146 |
if(this.form.engineNo !== null && this.form.engineNo !== undefined){ |
4b6839
|
147 |
let OrderSchedulingParam = {engineNo: null} |
95fb19
|
148 |
OrderSchedulingParam.engineNo = this.form.engineNo; |
H |
149 |
listOrderScheduling(OrderSchedulingParam).then(response => { |
4b6839
|
150 |
if(response.total === 1 ){ |
H |
151 |
this.form.productType = response.rows[0].model |
|
152 |
this.form.orderNo = response.rows[0].orderNo |
|
153 |
this.form.qualityStatus = response.rows[0].qualityStatus |
|
154 |
this.form.currentWorkstation = response.rows[0].currentWorkstation |
|
155 |
this.form.add= response.rows[0].currentWorkstation+ response.rows[0].qualityStatus |
|
156 |
if(this.form.qualityStatus ==='不合格'){ |
|
157 |
this.buttondisabled = false; |
|
158 |
} |
|
159 |
else{ |
|
160 |
this.buttondisabled = true; |
|
161 |
} |
|
162 |
} |
|
163 |
else{ |
|
164 |
this.reset(); |
|
165 |
this.buttondisabled = true |
a873f8
|
166 |
// this.$modal.msgError('输入的发动机号有误'); |
H |
167 |
const h = this.$createElement; |
|
168 |
this.$message({ |
|
169 |
message: h('p',null, [ |
|
170 |
h('span', null, '警告 '), |
|
171 |
h('i', { style: 'color: black' }, '输入的发动机号有误'), |
|
172 |
h()]), |
|
173 |
type: 'error', |
|
174 |
center: true, |
|
175 |
offset:300 |
|
176 |
}); |
|
177 |
} |
8f6607
|
178 |
}); |
4b6839
|
179 |
let PassingStationCollectionParam = {sfcCode: null} |
H |
180 |
PassingStationCollectionParam.sfcCode = this.form.engineNo; |
95fb19
|
181 |
listPassingStationCollection(PassingStationCollectionParam).then(ponse =>{ |
4b6839
|
182 |
this.engineCheckList = ponse.rows.locationCode ; |
H |
183 |
if(ponse.rows.length >= 1 && this.form.engineNo !== undefined){ |
|
184 |
this.form.engineCheckList = '' |
|
185 |
for (let i = 0; i < ponse.rows.length; i++) { |
|
186 |
this.form.engineCheckList += ' 工位:'+ ponse.rows[i].locationCode+'['+ponse.rows[i].outRsSign+']' |
|
187 |
} |
|
188 |
} |
|
189 |
else{ |
|
190 |
this.form.engineCheckList = '暂无数据' |
|
191 |
} |
95fb19
|
192 |
}); |
dbe5f1
|
193 |
} |
8f6607
|
194 |
}, |
4b6839
|
195 |
|
95fb19
|
196 |
|
8f6607
|
197 |
}, |
H |
198 |
} |
|
199 |
|
f4d049
|
200 |
|
H |
201 |
</script> |
4b6839
|
202 |
<style scoped> |
H |
203 |
::v-deep .el-input__inner{ |
|
204 |
height: 50px; |
a873f8
|
205 |
width: 450px; |
4b6839
|
206 |
} |
H |
207 |
::v-deep .el-form-item__label { |
|
208 |
line-height: 50px; |
|
209 |
} |
f4d049
|
210 |
|
a873f8
|
211 |
/*.my-custom-modal .el-dialog__wrapper {*/ |
H |
212 |
/* width: 400px; !* 设置宽度 *!*/ |
|
213 |
/* height: 200px; !* 设置高度 *!*/ |
|
214 |
/* top: 50px; !* 设置距离页面顶部的位置 *!*/ |
|
215 |
/* left: 50px; !* 设置距离页面左侧的位置 *!*/ |
|
216 |
/*}*/ |
4b6839
|
217 |
</style> |