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