| | |
| | | |
| | | <el-row :gutter="10" class="mb8" type="flex" justify="center" style="text-align: center"> |
| | | <el-col :span="1.5"> |
| | | <el-button plain :disabled="buttondisabled" type="primary" style="width:400px;height:160px" v-hasPermi="['bs:formula:add']"> |
| | | <el-button plain type="primary" style="width:400px;height:160px" v-hasPermi="['bs:formula:add']" @click="forceUpload"> |
| | | <span class="el-icon-thumb" style="font-size:40px;color:black"></span> |
| | | <span style="font-size:45px;color:black"><strong>强制上线</strong></span> |
| | | <span style="font-size:45px;color:black" ><strong>强制上线</strong></span> |
| | | </el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </template> |
| | | <script> |
| | | |
| | | import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | import { listOrderScheduling, forceUploadMethod, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | import { listPassingStationCollection, getPassingStationCollection, delPassingStationCollection, addPassingStationCollection, updatePassingStationCollection } from "@/api/main/da/passingStationCollection/passingStationCollection"; |
| | | import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo"; |
| | | import WebSocketReconnect from "@/utils/WebsocketTool"; |
| | |
| | | this.initWebSocket() |
| | | }, |
| | | methods: { |
| | | forceUpload() { |
| | | console.log('0000', this.form.engineNo) |
| | | if (this.form.engineNo !== null) { |
| | | forceUploadMethod(this.form.engineNo).then(res => { |
| | | |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: '请输入发动机条码', |
| | | type: 'error', |
| | | offset: 300 |
| | | }) |
| | | } |
| | | }, |
| | | initWebSocket: function (){ |
| | | //判断当前浏览器是否支持WebSocket |
| | | if ('WebSocket' in window) { |
| | |
| | | let OrderSchedulingParam = {engineNo: null} |
| | | OrderSchedulingParam.engineNo = this.form.engineNo; |
| | | listOrderScheduling(OrderSchedulingParam).then(response => { |
| | | console.log(response) |
| | | if(response.total === 1 ){ |
| | | this.form.productType = response.rows[0].model |
| | | this.form.orderNo = response.rows[0].orderNo |