| | |
| | | </div>
|
| | | <div style="display:flex;justify-content: space-around;width: 95%;margin: 0 auto;">
|
| | | <el-input style="width:15%;" :placeholder="$t('Enter the glass lD')" v-model="glassid1"></el-input>
|
| | | <el-button type="primary" @click="showform3()">{{ $t('Infeed barcodid') }}</el-button>
|
| | | <el-button type="primary" @click="SelectGlassByGlassIDs()">{{ $t('Infeed barcodid') }}</el-button>
|
| | | <el-input style="width:15%;" :placeholder="$t('Enter the order number')" v-model="order"></el-input>
|
| | | <el-button type="warning" @click="showform1();">{{ $t('Exit the glass by order number') }}</el-button>
|
| | | </div>
|
| | |
| | | <el-form :model="form" label-width="100px" style="padding-right: 30px">
|
| | | <el-form-item style="text-align: center;">
|
| | | <el-input style="width:15%;" :placeholder="$t('Enter the glass lD')" v-model="glassid1"></el-input>
|
| | | <el-button type="primary" @click="showform(3)">{{ $t('Query') }}</el-button>
|
| | | <el-button type="primary" @click="SelectGlassByGlassIDs()">{{ $t('Query') }}</el-button>
|
| | | </el-form-item>
|
| | | <div style="display: flex;justify-content: space-around;">
|
| | | <label for="">扫码位</label>
|
| | | <label for="">上片位</label>
|
| | | <div style="display: flex;justify-content: space-around;height: 40px;">
|
| | | <label for="">{{ $t('Scan Code Point') }}</label>
|
| | | <label for="">{{ $t('Upper film position') }}</label>
|
| | | <label for="">{{ $t('Glass Information') }}</label>
|
| | | </div>
|
| | | <div style="display: flex;justify-content: space-around;">
|
| | | <el-form-item :label="$t('Barcodid')">
|
| | |
| | | </el-form-item>
|
| | | <el-form-item :label="$t('Barcodid')">
|
| | | <el-input v-model="form3.glassId" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | <el-form-item :label="$t('Barcodid')">
|
| | | <el-input v-model="form4.glassId" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | </div>
|
| | | <div style="display: flex;justify-content: space-around;">
|
| | |
| | | <el-form-item :label="$t('order')">
|
| | | <el-input v-model="form3.orderId" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | <el-form-item :label="$t('order')">
|
| | | <el-input v-model="form4.orderId" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | </div>
|
| | | <div style="display: flex;justify-content: space-around;">
|
| | | <el-form-item :label="$t('length')">
|
| | |
| | | </el-form-item>
|
| | | <el-form-item :label="$t('length')">
|
| | | <el-input v-model="form3.height" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | <el-form-item :label="$t('length')">
|
| | | <el-input v-model="form4.height" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | </div>
|
| | | <div style="display: flex;justify-content: space-around;">
|
| | |
| | | <el-form-item :label="$t('width')">
|
| | | <el-input v-model="form3.width" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | <el-form-item :label="$t('width')">
|
| | | <el-input v-model="form4.width" readonly autocomplete="off" />
|
| | | </el-form-item>
|
| | | </div>
|
| | | |
| | |
|
| | | </el-form>
|
| | | <template #footer>
|
| | | <span class="dialog-footer">
|
| | | <el-button @click="FeedInglassid()" type="primary">{{ $t('confirm') }}</el-button>
|
| | | <el-button @click="InsertQueueGlass()" type="primary" :disabled="disabled">{{ $t('confirm')
|
| | | }}</el-button>
|
| | | <el-button @click="InsertQueueGlass()" type="primary" :disabled="disabled">{{ $t('confirm')
|
| | | }}</el-button>
|
| | | <el-button @click="cancel3()">{{ $t('cancel') }}</el-button>
|
| | | </span>
|
| | | </template>
|
| | |
| | | <script>
|
| | | //:disabled="scope.row.glassId > 0 || scope.row.disabled == 1 ? true : false"
|
| | | import {
|
| | | home, home2, loadtask, InsertOrder, Addglassid, UpdateTask, SelectAlarmmgInfo,
|
| | | SelectCageInfo, DeleteByGlassID, OutByGlassID, Loadcarlist, SelectPassword, SelectGlassByGlassID, Disabled, Inglassid, SelectGlass
|
| | | home, home2, loadtask, InsertOrder, Addglassid, UpdateTask, SelectAlarmmgInfo, SelectCageInfo, DeleteByGlassID, OutByGlassID, Loadcarlist,
|
| | | SelectPassword, SelectGlassByGlassID, Disabled, Inglassid, SelectGlass, InsertQueueGlassId
|
| | | } from "../../api/home";
|
| | |
|
| | |
|
| | |
| | | number: 800,
|
| | | },
|
| | | form2: {
|
| | | orderId: "5",
|
| | | glassId: "6",
|
| | | height: "7",
|
| | | width: "8"
|
| | | orderId: "1145",
|
| | | glassId: "112",
|
| | | height: "59.06",
|
| | | width: "48.03"
|
| | | },
|
| | | form3: {
|
| | | orderId: "1",
|
| | | glassId: "2",
|
| | | height: "3",
|
| | | width: "4"
|
| | | },
|
| | | form4: {
|
| | | orderId: "",
|
| | | glassId: "",
|
| | | height: "",
|
| | | width: ""
|
| | | },
|
| | | alarm: [],
|
| | | tableData: [],
|
| | |
| | | zhuangtai: "",
|
| | | orderid: "",
|
| | | GlassInfo: [],
|
| | | disabled: true,
|
| | | disabled1: true,
|
| | | currentPage: 1, //默认初始页
|
| | | pagesize: 15, //每页默认显示的数据
|
| | | pageCount: 0
|
| | |
| | | };
|
| | | // 浏览器端收消息,获得从服务端发送过来的文本消息
|
| | | socket.onmessage = function (msg) {
|
| | |
|
| | | //console.log("收到数据====" + msg.data);
|
| | | let obj = JSON.parse(msg.data);
|
| | | if (obj.params != null) {
|
| | |
| | |
|
| | | this.glassid1 = obj.queid[0];
|
| | | if (this.glassid1 != "") {
|
| | | this.disabled1=false;
|
| | | this.showform3();
|
| | | }
|
| | | this.form2 = obj.form2;
|
| | |
| | | if (res.data.form != null) {
|
| | | this.form = res.data.form;
|
| | | this.dialogFormVisible = true;
|
| | | this.$message.success('query was successful');
|
| | | this.$message.success(this.$t('query was successful'));
|
| | | } else {
|
| | | this.dialogFormVisible = true;
|
| | | this.$message.error(this.$t('There is no such glass'));
|
| | |
| | | }
|
| | | },
|
| | | //显示扫码位和上片位
|
| | | showform3() {
|
| | | showform3(){
|
| | | this.dialogFormVisible5 = true;
|
| | | },
|
| | | //获取扫码位和上片位数据
|
| | | SelectGlassByGlassIDs() {
|
| | | this.showform3();
|
| | | SelectGlassByGlassID(this.glassid1).then(res => {
|
| | | if (res.data.form != null) {
|
| | | this.form4 = res.data.form;
|
| | | this.$message.success(this.$t('query was successful'));
|
| | | } else {
|
| | | this.$message.error(this.$t('There is no such glass'));
|
| | | }
|
| | | if (this.form2.glassId == "") {
|
| | | this.disabled = false;
|
| | | } else {
|
| | | this.disabled = true;
|
| | | }
|
| | | });
|
| | | },
|
| | | selectglassinfo() {
|
| | | SelectGlass(this.orderid).then(res => {
|
| | |
| | | handleCurrentChange: function (currentPage) {
|
| | | this.currentPage = currentPage;
|
| | | },
|
| | | InsertQueueGlass() {
|
| | | InsertQueueGlassId(this.glassid1).then(res => {
|
| | | if (res.data.message == 200) {
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | </script> |