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