| | |
| | | <el-button type="primary" @click="showform2()" :disabled="OrderInfo"
|
| | | :class="OrderInfo == true ? 'hide' : ''">{{ $t('Order Info')
|
| | | }}</el-button>
|
| | | <el-button type="primary" @click="showcageinfo(1)" :disabled="OrderInfo"
|
| | | <el-button type="primary" @click="showcageinfo(1)" :disabled="CageDetails"
|
| | | :class="CageDetails == true ? 'hide' : ''">{{ $t('Cage Details')
|
| | | }}</el-button>
|
| | | <el-button type="primary" @click="showform6()" :disabled="OutingQueue"
|
| | | :class="OutingQueue == true ? 'hide' : ''">
|
| | | {{ $t('Outfeed Queue') }}</el-button>
|
| | | <el-button type="primary" @click="TaskStop(0)" :disabled="OutingQueue"
|
| | | <!-- <el-button type="primary" @click="TaskStop(0)" :disabled="OutingQueue"
|
| | | :class="StopTask == true ? 'hide' : ''">
|
| | | {{ $t('Terminate Feeding') }}</el-button>
|
| | | <el-button type="primary" @click="TaskStop(1)" :disabled="StopTask"
|
| | |
| | | {{ $t('Terminate Outing') }}</el-button>
|
| | | <el-button type="primary" @click="SoftEmergencyStop()" :disabled="SoftEmergencyStopState"
|
| | | :class="SoftEmergencyStopState == true ? 'hide' : ''">
|
| | | {{ $t('SoftEmergencyStop') }}</el-button>
|
| | | {{ $t('SoftEmergencyStop') }}</el-button> -->
|
| | | <!-- <el-input style="width:15%;" :placeholder="$t('Enter the Order No')" v-model="order"></el-input>
|
| | | <el-button type="warning" @click="showform1();">{{ $t('Exit the glass by order number') }}</el-button> -->
|
| | | </div>
|
| | |
| | | {{ scope.row.glasswidthmm }}*{{ scope.row.glassheightmm }}
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column :label="$t('Task Complete')">
|
| | | <el-table-column :label="$t('Abort')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="endtask(1, scope.row.glassId, scope.row.cell)">{{ $t('Task Complete')
|
| | |
| | | </template>
|
| | | </el-table-column>
|
| | |
|
| | | <el-table-column :label="$t('Task Complete')">
|
| | | <el-table-column :label="$t('Abort')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="endtask(0, scope.row.glassId, scope.row.cell)">{{ $t('Task Complete')
|
| | |
| | | <div class="glass D01" style="top: 39px;left: 1055px;position: absolute;">{{ ShowGlassIdList(0) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.2', 0)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass D02" style="top: 117px;left: 1055px;position: absolute;">{{ ShowGlassIdList(1) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.3', 1)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass B01" style="top: 270px;left: 640px;position: absolute;">
|
| | | B01:{{ ShowGlassIdList(2) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.10.2', 2)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass B02" style="top: 315px;left: 640px;position: absolute;">B02:{{ ShowGlassIdList(3) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.10.3', 3)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass A01" style="top: 270px;left: 289px;position: absolute;">
|
| | | A01.1:{{ ShowGlassIdList(4) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.10.0', 4)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | |
|
| | | <div class="glass A01" style="top: 315px;left: 289px;position: absolute;">A01.2:{{ ShowGlassIdList(5) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.10.0', 5)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | |
|
| | | <div class="glass A02" style="top: 360px;left: 289px;position: absolute;">A02:{{ ShowGlassIdList(6) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.10.1', 6)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | |
|
| | | <div class="glass D03" style="top: 122px;left: 42px;position: absolute;">
|
| | | {{ ShowGlassIdList(7) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.4', 7)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass D04" style="top: 198px;left: 42px;position: absolute;">
|
| | | {{ ShowGlassIdList(8) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.5', 8)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass D05" style="top: 275px;left: 42px;position: absolute;">
|
| | | {{ ShowGlassIdList(9) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.6', 9)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | | <div class="glass D06" style="top: 352px;left: 42px;position: absolute;">
|
| | | {{ ShowGlassIdList(10) }}
|
| | | <br />
|
| | | <el-button type="primary" size="mini" @click="ClearGlassId('DB101.9.5', 10)">
|
| | | {{ $t('Confirmation needed') }}</el-button>
|
| | | {{ $t('Clear') }}</el-button>
|
| | | </div>
|
| | |
|
| | |
|
| | |
| | | <el-table-column :min-width="250" :label="$t('Operate')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | :disabled="scope.row.state == 1 ? false : true"
|
| | | :disabled="(scope.row.state == 1&&loadname=='admin') ? false : true"
|
| | | @click="deleteglass(scope.row.glassId, scope.row.state)">{{ $t('Delete') }}</el-button>
|
| | |
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | :disabled="scope.row.state == 1 ? false : true"
|
| | | :disabled="(scope.row.state == 1&&(loadname=='admin'||loadname=='Transfer')) ? false : true"
|
| | | @click="outglass(scope.row.glassId, scope.row.state)">{{ $t('Outfeed') }}</el-button>
|
| | |
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | :disabled="(loadname=='admin') ? false : true"
|
| | | @click="UpdateDisabled(scope.row.cage, scope.row.cell, scope.row.disabled == 0 ? 1 : 0)">
|
| | | {{ scope.row.disabled == 0 ? $t('Disable') : $t('Enable') }}</el-button>
|
| | |
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | :disabled="scope.row.glassId != null ? true : false"
|
| | | :disabled="(scope.row.glassId == null&&loadname=='admin') ? false : true"
|
| | | @click="insertglass(scope.row.cage, scope.row.cell, scope.row.tier)">{{ $t('Add')
|
| | | }}</el-button>
|
| | | </template>
|
| | |
| | | <div style="width:30%;" v-for="(item) in CurrentFrame" :key="item['barcode']">
|
| | | <el-button style="margin-left: 42%;" type="primary" @click="FrameStateUpdate(item['barcode'])">{{
|
| | | $t('Next') }}</el-button>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Current Frame') }}:{{ item['barcode'] }}</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Current Frame') }}:</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Barcode') }}:{{ item['barcode'] }}</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('List No') }}:{{ item['listId'] }}</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Box No') }}:{{ item['boxId'] }}</h1>
|
| | | <h1 style="font-size: 30px;text-align: center;">
|
| | | {{ item['flip'] == true ? $t('EXTERIQR OUT AND BYPASS TO THE LEFT')
|
| | | {{ item['flip'] == 1 ? $t('EXTERIQR OUT AND BYPASS TO THE LEFT')
|
| | | : $t('EXTERIQR OUT AND BYPASS TO THE RIGHT') }}
|
| | | </h1>
|
| | | <h1 style="font-size: 30px;text-align: center;">{{ item['framewidthmm'] }}*{{ item['frameheightmm']
|
| | |
| | |
|
| | | <el-dialog :visible.sync="dialogFormVisible7" :title="$t('Glass information corresponding to aluminum frame')"
|
| | | top="5vh">
|
| | | |
| | | <el-input style="width:15%;" :placeholder="$t('Enter the Frame No')" v-model="framebarcode"></el-input>
|
| | | <el-button type="primary" @click="showform7()">{{ $t('Query') }}</el-button>
|
| | | <el-button type="primary" @click="AddOutSliceS()">{{ $t('Outfeed') }}</el-button>
|
| | | <el-button type="primary" @click="AddOutSliceS()" :disabled="framestate">{{ $t('Outfeed') }}</el-button>
|
| | | <el-button type="primary" @click="CloseForm7()">{{ $t('Cancel') }}</el-button>
|
| | | <el-table :data="this.AluminumFrame" :height="700" border style="width: 100%;overflow: auto;">
|
| | | <el-table :data="this.AluminumFrame" :height="200" border style="width: 100%;overflow: auto;">
|
| | | <el-table-column prop="frameBarcode" :label="$t('Frame No')"></el-table-column>
|
| | | <el-table-column prop="barcode" :label="$t('Barcode')"></el-table-column>
|
| | | <el-table-column prop="ordernumber" :label="$t('Order No')"></el-table-column>
|
| | |
| | | <el-table-column prop="storageCage.cage" :label="$t('Cage No')"></el-table-column>
|
| | | <el-table-column prop="storageCage.cell" :label="$t('Slot No')">
|
| | | <template slot-scope='scope'>
|
| | | {{ (scope.row.cage - 1) * 21 + scope.row.cell }}
|
| | | {{
|
| | | scope.row.storageCage == null ? "" : (scope.row.storageCage.cage-1)*21+scope.row.storageCage.cell
|
| | | }}
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column prop="storageCage.tier" :label="$t('The Side')">
|
| | |
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | <div style="width:30%;" v-for="(item) in AluminumFrameInfo" :key="item['barcode']">
|
| | | <!-- <el-button style="margin-left: 42%;" type="primary" @click="FrameStateUpdate(item['barcode'])">{{
|
| | | $t('Next') }}</el-button> -->
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Current Frame') }}:</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Barcode') }}:{{ item['barcode'] }}</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('List No') }}:{{ item['listnumber'] }}</h1>
|
| | | <h1 style="font-size: 40px;text-align: center;">{{ $t('Box No') }}:{{ item['boxnumber'] }}</h1>
|
| | | <h1 style="font-size: 30px;text-align: center;">
|
| | | {{ item['flip'] == 1 ? $t('EXTERIQR OUT AND BYPASS TO THE LEFT')
|
| | | : $t('EXTERIQR OUT AND BYPASS TO THE RIGHT') }}
|
| | | </h1>
|
| | | <h1 style="font-size: 30px;text-align: center;">{{ item['framelength'] }}*{{ item['frameheight']
|
| | | }}
|
| | | </h1>
|
| | |
|
| | | <div class="frame" :style="'background-color: '+ framecolor +';margin-top:30px;margin:0 auto;width: ' +
|
| | | FrameWidthHeight('before', item['framelengthmm'], item['frameheightmm'], item['flip']) + 'px;height:' +
|
| | | FrameWidthHeight('after', item['framelengthmm'], item['frameheightmm'], item['flip']) + 'px;'
|
| | | ">
|
| | | </div>
|
| | | </div>
|
| | | </el-dialog>
|
| | | <el-dialog :visible.sync="dialogFormCountDown" :title="$t('Approximately resettable time')" top="5vh">
|
| | | <div :style="'font-size: ' + PromptSize + 'px;text-align: center;'">
|
| | |
| | | form6state:0,
|
| | | StateColor:"green",
|
| | | plc1:"",
|
| | | plc2:""
|
| | | plc2:"",
|
| | | AluminumFrameInfo:{},
|
| | | framestate:false,
|
| | | framecolor:"green"
|
| | | };
|
| | | },
|
| | | created() {
|
| | |
| | | this.count1=this.count2;
|
| | | }else{
|
| | | const now = new Date();
|
| | | console.log(this.count1,this.count2);
|
| | | console.log(this.$t('Mes Connection failed')+now);
|
| | | }
|
| | | }, 60000);
|
| | |
| | | if (this.dialogFormVisible6 == true) {
|
| | | this.dialogFormVisible7 = true;
|
| | | }
|
| | | }
|
| | | if (obj.AluminumFrameInfo != null) {
|
| | | this.AluminumFrameInfo = obj.AluminumFrameInfo;
|
| | | if(this.AluminumFrameInfo[0].frameheightmm>this.AluminumFrameInfo[0].framelengthmm){
|
| | | if(this.AluminumFrameInfo[0].frameheightmm<600||this.AluminumFrameInfo[0].framelengthmm<400){
|
| | | this.framestate=true;
|
| | | this.framecolor="red";
|
| | | }else{
|
| | | this.framestate=false;
|
| | | this.framecolor="green";
|
| | | }
|
| | | }else{
|
| | | if(this.AluminumFrameInfo[0].frameheightmm<400||this.AluminumFrameInfo[0].framelengthmm<600){
|
| | | this.framestate=true;
|
| | | this.framecolor="red";
|
| | | }else{
|
| | | this.framestate=false;
|
| | | this.framecolor="green";
|
| | | }
|
| | | }
|
| | | }else{
|
| | | this.AluminumFrameInfo={};
|
| | | }
|
| | |
|
| | | //根据进片状态出发进片任务
|
| | |
| | | height = this.form.glasswidth;
|
| | | width = this.form.glassheight;
|
| | | }
|
| | | if (height < 380 || width < 380 || height > 1810 || width > 2760) {
|
| | | if (height < 225 || width < 380 || height > 1810 || width > 2760) {
|
| | | this.$message.error(this.$t('The glass size is not within the range'));
|
| | | } else {
|
| | | if (this.zhuangtai == true) {
|
| | |
| | | WriteGlassID() {
|
| | | if (this.glassid1.length == 14) {
|
| | | WriteGlassID(this.glassid1).then(res => {
|
| | | console.log(res.data);
|
| | | if (res.data.message == 200) {
|
| | | this.$message.success(this.$t('Successful operation'));
|
| | | }
|
| | | });
|
| | | } else {
|
| | | this.$message.error(this.$t('Please enter the correct glassID'));
|
| | |
| | | CloseForm7().then(res => {
|
| | | if (res.data.message == 200) {
|
| | | this.AluminumFrame = null;
|
| | | this.AluminumFrameInfo = null;
|
| | | this.dialogFormVisible7 = false;
|
| | | this.framebarcode="";
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|
| | | });
|
| | |
| | | },
|
| | | //判断玻璃是否超出范围
|
| | | Sizerange(Glass, position) {
|
| | | console.log(position);
|
| | | if (this.ManuallyInfeedGlass == false) {
|
| | | let width = 0;
|
| | | let height = 0;
|
| | |
| | | height = Glass.glasswidth;
|
| | | width = Glass.glassheight;
|
| | | }
|
| | | if (height < 380 || width < 380 || height > 1810 || width > 2760) {
|
| | | if (height < 225 || width < 380 || height > 1810 || width > 2760) {
|
| | | this.$alert(this.$t('The glass size is not within the range'), this.$t('confirm'), {
|
| | | confirmButtonText: this.$t('Yes'),
|
| | | type: 'info',
|