| | |
| | | |
| | | </el-row> |
| | | <el-row :gutter="5" style="margin-top: 5px"> |
| | | <el-col :span="24"> |
| | | <el-col :span="12"> |
| | | <el-tabs type="border-card" style="height: 600px" v-model="activeName" @tab-click="changeMenu"> |
| | | <el-tab-pane name="first"> |
| | | <span slot="label"> <a class="el-icon-date"></a>首页</span> |
| | |
| | | </el-col> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-input v-model="weightValue" placeholder="请输入称重数据"></el-input> |
| | | <el-button @click="enterWeighing">录入</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open1" width="1000" append-to-body> |
| | |
| | | import USBDevice from "@/utils/usb.json"; |
| | | import {addPassingStationCollection} from "@/api/main/da/passingStationCollection/passingStationCollection"; |
| | | import { |
| | | addTighteningParameters, |
| | | addTighteningParameters, enterWeighing, |
| | | replaceAssemblyCode, |
| | | saveCampaignTimeParameters, |
| | | yzAddBasicParameters, |
| | |
| | | name: "stationTerminal", |
| | | data() { |
| | | return { |
| | | weightValue: '', |
| | | showInput: true, |
| | | serialPortContent: '', |
| | | // 查询参数 |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | enterWeighing(){ |
| | | if(this.headContent.sfcCode ==='' || this.weightValue === '' ){ |
| | | this.$message.error('参数不全!'); |
| | | }else { |
| | | let param = { |
| | | sfcCode: this.headContent.sfcCode, |
| | | weightValue: this.weightValue, |
| | | } |
| | | enterWeighing(param).then(response => { |
| | | this.$message('录入完成!'); |
| | | }); |
| | | } |
| | | }, |
| | | serialLink() { |
| | | this.open1 = true |
| | | }, |