| | |
| | | .cells { |
| | | height: 100%; |
| | | } |
| | | |
| | | .custom-row-class{ |
| | | background-color: rgb(150, 238, 234) !important; |
| | | } |
| | | </style> |
| | | <template> |
| | | <el-container> |
| | |
| | | :style="'top:10px;bottom: 10px;left: 10px;right: 10px;margin:' + ((720 - (this.LastQueue.glassheight / 25 * 7)) / 2) + 'px auto;width:' |
| | | + (this.LastQueue.glasswidth / 25 * 7) + 'px;height:' |
| | | + (this.LastQueue.glassheight / 25 * 7) + 'px;line-height: ' |
| | | + (this.LastQueue.glassheight / 25 * 7) + 'px; background-color: ' |
| | | + (this.LastQueue.state > 0 ? '#4CCCE4' : (this.LastQueue.state == 0 ? '#E4CA4C' : '#E4CA4C')) + ';text-align: center;'"> |
| | | {{ |
| | | (this.LastQueue.glasswidth + this.LastQueue.glassheight) != 0 ? (this.LastQueue.glasswidth + "*" + this.LastQueue.glassheight) : "" |
| | | }} |
| | | + (this.LastQueue.glassheight / 25 * 7/3) + 'px; background-color: ' |
| | | + (this.LastQueue.state > 0 ? '#4CCCE4' : (this.LastQueue.state == 0 ? '#E4CA4C' : '#E4CA4C')) + ';text-align: center;font-size:50px'"> |
| | | <div> |
| | | {{ $t('Measure')}} |
| | | </div> |
| | | <div> |
| | | {{ $t('Width')+"*"+$t('Height') }}:{{(this.LastQueue.glasswidth + this.LastQueue.glassheight) != 0 ? (this.LastQueue.glasswidth + "*"+this.LastQueue.glassheight)+"" : ""}} |
| | | </div> |
| | | |
| | | <div> |
| | | {{ $t('results') }}:{{this.LastState[this.LastQueue.state]}} |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <!--显示--> |
| | | <div style="width:20px;height: 720px;float: left;"></div> |
| | | <div style="width:500px;height: 620px;border: 2px solid #d1d1d1;float: left;padding: 50px 50px;"> |
| | | <!--玻璃图 #81b337--> |
| | | <span class="measuretitle">{{ $t('Width') }}:</span> <span class="measureValue">{{ |
| | | <div style="width:600px;height: 720px;border: 2px solid #d1d1d1;float: left;"> |
| | | <!--玻璃图 #81b337 padding: 50px 50px;--> |
| | | <!-- <span class="measuretitle">{{ $t('Width') }}:</span> <span class="measureValue">{{ |
| | | this.LastQueue.glasswidth |
| | | }}</span> <span class="measureUnit">mm</span> |
| | | <br> |
| | |
| | | <span class="measuretitle">{{ $t('Matching results') }}:</span> <span class="measureValue">{{ |
| | | this.LastQueue.state > 0 ? $t('Matching successful') : |
| | | (this.LastQueue.state == 0 ? $t('Multiple data matching'):$t('Matching failed')) }}</span> |
| | | <br> |
| | | <br> --> |
| | | <el-table :data="this.tasklist3" :row-class-name="rowClassName" style="width: 100%;padding:0;"> |
| | | <el-table-column prop="flowcard" :label="$t('flowcard')"></el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')"></el-table-column> |
| | | <el-table-column prop="width" :label="$t('Width')"></el-table-column> |
| | | <el-table-column prop="height" :label="$t('Height')"></el-table-column> |
| | | <el-table-column prop="thickness" :label="$t('Thickness')"></el-table-column> |
| | | <el-table-column prop="number" :label="$t('Number')"></el-table-column> |
| | | <el-table-column prop="measurenumber" :label="$t('MeasureNumber')"></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="line" :label="$t('Task Line')"> |
| | | </el-table-column> |
| | | <el-table-column width="300" :label="$t('Operate')"> |
| | | <el-table-column width="350" :label="$t('Operate')"> |
| | | |
| | | <template slot-scope='scope'> |
| | | <el-select v-model="selected[scope.$index]" :placeholder="$t('Line')" |
| | |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index])"> |
| | | {{ scope.row.state > 0 ? $t('Stop Task') : $t('Start Task') }}</el-button> |
| | | |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ModeChange(scope.row.flowcard, scope.row.method)"> |
| | | {{ $t('Mode Change') }}</el-button> |
| | | |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="StartChange(scope.row.flowcard)"> |
| | | {{ $t('start work') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | Disabled, SelectPermissionByUserName, currentUsername, CompleteQueue, |
| | | isAllowReorderings, |
| | | |
| | | UpdateStroageCageByCell, FinishTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure |
| | | UpdateStroageCageByCell, FinishTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure,StartChange |
| | | } from "../../api/home"; |
| | | |
| | | |
| | |
| | | task2: 2, |
| | | tasklist1: [], |
| | | tasklist2: [], |
| | | tasklist3: [], |
| | | order: "", |
| | | glassid: "", |
| | | glassid1: "", |
| | |
| | | GlassIdList: [], |
| | | Scanningmethod: true, |
| | | CurrrentGlassId: "", |
| | | LastQueue: {} |
| | | LastQueue: {}, |
| | | LastState: ["",this.$t('Matching successful'),this.$t('Multiple data matching'),this.$t('Matching failed')] |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.cagelist2 = obj.cagelist2[0]; |
| | | this.cagelist3 = obj.cagelist3[0]; |
| | | this.cagelist4 = obj.cagelist4[0]; |
| | | this.tasklist3 = obj.glassInfoFlowCard[0]; |
| | | this.tasklist2 = obj.StoragTaskeTaskFeed[0]; |
| | | this.tasklist1 = obj.StoragTaskeTaskOut[0]; |
| | | if (obj.alarmmg[0].length > 0) { |
| | |
| | | //修改出片方式 |
| | | ModeChange(flowcard, method) { |
| | | ModeChange(flowcard, method).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | },//选择开始工程 |
| | | StartChange(flowcard) { |
| | | StartChange(flowcard).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | |
| | | del() { |
| | | |
| | | this.StorageCageAdd = true; |
| | | }, |
| | | rowClassName({ row, rowIndex }) { |
| | | if (row.glasstype!=0&&row.glasstype == this.LastQueue.glasstype) { |
| | | console.log(rowIndex); |
| | | return 'custom-row-class'; |
| | | } else { |
| | | return ''; // 返回空字符串表示不添加任何额外的类名 |
| | | } |
| | | } |
| | | |
| | | |