| | |
| | | <el-descriptions-item> |
| | | <el-form ref="form" :model="form" label-width="200px" style="height: 60px;margin-top: 20px" > |
| | | <el-form-item prop="productType" > |
| | | <span slot="label" style="font-size:45px;color:black"><strong>产品型号</strong></span> |
| | | <el-input disabled style="font-size:30px" v-model="form.productType" placeholder="" /> |
| | | <span slot="label" style="font-size:45px;color:black"><strong>机型</strong></span> |
| | | <el-input disabled style="font-size:30px" value="form.productType" v-model="form.productType" placeholder="" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-descriptions-item> |
| | |
| | | <el-col :span="1.5"> |
| | | <el-button plain style="width:400px;height:160px" v-hasPermi="['bs:formula:add']"> |
| | | <span class="el-icon-thumb" style="font-size:45px;color:black"></span> |
| | | <span style="font-size:45px;color:black"><strong>强制上线</strong></span></el-button> |
| | | <span style="font-size:45px;color:black"><strong>强制上线</strong></span> |
| | | </el-button> |
| | | <el-button @click="scanCompleted" style="float: right" type="primary">扫码完成</el-button> |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | </template> |
| | | <script> |
| | | |
| | | import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | import {listWorkshop} from "@/api/main/bs/workshop/workshop"; |
| | | import axios from 'axios'; |
| | | |
| | | import {listOrderScheduling} from "@/api/main/bs/orderScheduling/orderScheduling"; |
| | | |
| | | export default { |
| | | components: { }, |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | orderNo: null, |
| | | engineNo: null, |
| | | productType: '666', |
| | | model: null, |
| | | productionStatus: null, |
| | | workingHours: null, |
| | | currentWorkstation: null, |
| | | qualityStatus: null, |
| | | whetherOrPrint: null, |
| | | report10: null, |
| | | report20: null, |
| | | combinedBoxTime: null, |
| | | finalAssemblyTime: null, |
| | | operator: null, |
| | | operateTime: null, |
| | | status: null, |
| | | spareField1: null, |
| | | spareField2: null, |
| | | spareField3: null, |
| | | spareField4: null, |
| | | createUser: null, |
| | | updateUser: null, |
| | | remarks: null |
| | | }, |
| | | |
| | | // 表单参数 |
| | |
| | | computed: {}, |
| | | watch: {}, |
| | | created() { |
| | | this.initOrderScheduling(); |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | scanCompleted(){ |
| | | |
| | | }, |
| | | EngineNohandleChange(){ |
| | | axios.get('@/api/main/bs/orderScheduling/orderScheduling', { |
| | | params: { |
| | | engineNo: this.engineNo, |
| | | }, |
| | | }) |
| | | .then(response => { |
| | | const dataFromOrderScheduling = response.data; |
| | | if (dataFromOrderScheduling.length > 0) { |
| | | const order = dataFromOrderScheduling[0]; |
| | | this.engineNo = order.engineNo; |
| | | this.productType = order.productType; |
| | | this.orderNo = order.orderNo; |
| | | } else { |
| | | // Handle case when no data is found |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | console.error(error); |
| | | if(this.form.engineNo !== null && this.form.engineNo !== undefined){ |
| | | this.queryParams.engineNo = this.form.engineNo; |
| | | listOrderScheduling(this.queryParams).then(response => { |
| | | this.$message('扫码完成'+response.rows[0].model); |
| | | console.log("--------------------"+response.rows[0]) |
| | | this.form.productType = response.rows[0].model |
| | | this.form.orderNo = response.rows[0].orderNo |
| | | this.form.qualityStatus = response.rows[0].qualityStatus |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | |
| | | initOrderScheduling(){ |
| | | listOrderScheduling(this.queryParams).then(response => { |
| | | this.form.queryParams = response.rows; |
| | | |
| | | }); |
| | | }, |
| | | } |
| | | |
| | | |