| | |
| | | |
| | | .el-table .cell { |
| | | display: flex; |
| | | /* height: 30px; |
| | | line-height: 30px; */ |
| | | } |
| | | |
| | | .device { |
| | |
| | | font-weight: bold; |
| | | text-align: center; |
| | | } |
| | | .el-table .el-table__body-wrapper tr { |
| | | height: 40px; /* 设置每行的高度为 30px */ |
| | | line-height: 30px; |
| | | } |
| | | |
| | | .el-table .el-table__body-wrapper td { |
| | | /* 确保单元格内容垂直居中 */ |
| | | } |
| | | </style> |
| | | <template> |
| | | <el-container> |
| | |
| | | <el-button type="primary" @click="showform(4)" :disabled="SoftEmergencyStopState" style="z-index: 999;" |
| | | :class="SoftEmergencyStopState == true ? 'hide' : ''"> |
| | | {{ $t('Task queue') }}</el-button> |
| | | <el-button type="primary" @click="showform(5)" :disabled="SoftEmergencyStopState" style="z-index: 999;" |
| | | :class="SoftEmergencyStopState == true ? 'hide' : ''"> |
| | | {{ $t('Outing Queue') }}</el-button> |
| | | |
| | | </div> |
| | | <div style="display: flex;align-items: center;overflow: hidden;"> |
| | |
| | | <el-table-column prop="storageCage.glassHeight" :label="$t('Height')"></el-table-column> |
| | | <el-table-column prop="storageCage.thickness" :label="$t('Thickness')"></el-table-column> |
| | | <el-table-column prop="storageCage.films" :label="$t('Films')"></el-table-column> |
| | | <el-table-column :min-width="100" :label="$t('Terminate Task')"> |
| | | <el-table-column :min-width="120" :label="$t('Terminate Task')"> |
| | | <template slot-scope='scope'> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="FinishTask(scope.row.id)">{{ $t('Complete') }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="TerminateTask(scope.row.id)">{{ $t('Terminate') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column prop="storageCage.thickness" :label="$t('Thickness')"></el-table-column> |
| | | <el-table-column prop="storageCage.films" :label="$t('Films')"></el-table-column> |
| | | |
| | | <el-table-column :min-width="100" :label="$t('Terminate Task')"> |
| | | <el-table-column :min-width="120" :label="$t('Terminate Task')"> |
| | | <template slot-scope='scope'> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="FinishTask(scope.row.id)">{{ $t('Complete') }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="TerminateTask(scope.row.id)">{{ $t('Terminate') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | <el-dialog :visible.sync="Measure" :title="$t('Measure')" top="5vh"><!--测量页面--> |
| | | <!--测量页面主体--> |
| | | <div style="height: 800px;"> |
| | | <div style="height: 760px;"> |
| | | <!--功能--> |
| | | <div> |
| | | <el-button type="primary" @click="ManualMatching()" :disabled="(this.LastQueue.state > 1)" |
| | | <el-button type="primary" @click="ManualMatching()" :disabled="(this.LastQueue.state > 0)" |
| | | style="z-index: 999;">{{ $t('Manual matching') }}</el-button> |
| | | <el-button type="primary" @click="ManualTake()" :disabled="(this.LastQueue.state > 1)" |
| | | <el-button type="primary" @click="ManualTake()" :disabled="(this.LastQueue.state > 0)" |
| | | style="z-index: 999;">{{ |
| | | $t('Manual removal') }}</el-button> |
| | | <el-button type="primary" @click="AnewMeasure()" |
| | |
| | | </div> |
| | | <br> |
| | | <!--显示--> |
| | | <div style="width:1000px;height: 720px;border: 2px solid #d1d1d1;float: left;"> |
| | | <div style="width:900px;height: 720px;border: 2px solid #d1d1d1;float: left;"> |
| | | <!--玻璃图 #81b337--> |
| | | <div |
| | | :style="'top:10px;bottom: 10px;left: 10px;right: 10px;margin:' + ((720 - (this.LastQueue.glassheight / 25 * 7)) / 2) + 'px auto;width:' |
| | | <div :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 / 3) + 'px; background-color: ' |
| | | + (this.LastQueue.state > 0 ? '#4CCCE4' : (this.LastQueue.state == 0 ? '#E4CA4C' : '#E4CA4C')) + ';text-align: center;font-size:50px'"> |
| | | + (this.LastQueue.state > 0 ? '#4CCCE4' : (this.LastQueue.state == 0 ? '#E4CA4C' : 'red')) + ';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) + "" : "" }} |
| | | {{ $t('Width') + "*" + $t('Height') }}:{{ (this.LastQueue.glasswidth +this.LastQueue.glassheight) != 0 ? |
| | | (this.LastQueue.glasswidth +"*" + this.LastQueue.glassheight) + "" : "" }} |
| | | </div> |
| | | |
| | | <div> |
| | |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;margin-left: 6px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index], scope.row.line)"> |
| | | {{ 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="StartChange(scope.row.flowcard, scope.row.orderstate)"> |
| | | {{ scope.row.orderstate > 0 ? $t('stop work') : $t('start work') }}</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;margin-left: 6px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index], scope.row.line)"> |
| | | {{ 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="deleteTasks(scope.row.flowcard)"> |
| | | {{ $t('langDelete') }}</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | <!-- 出片队列显示表 --> |
| | | <el-dialog :visible.sync="Outqueue" :title="$t('Outing Queue')" top="5vh"> |
| | | <el-table :data="tableData2" style="width: 100%;margin-bottom: 20px;" row-key="id" border lazy |
| | | :tree-props="{ children: 'glassinfo', hasChildren: 'hasChildren' }"> |
| | | <el-table-column prop="flowcard" :label="$t('Order')" width="150" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div> |
| | | {{ scope.row.flowcard }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="tier" :label="$t('Tier')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="number" :label="$t('Number')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="cageno" :label="$t('Cage GlassNumber')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="finishnumber" :label="$t('Finish No')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mate No')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="thickness" :label="$t('Thickness')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="width" :label="$t('Width')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="height" :label="$t('Height')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="state" :label="$t('Task State')" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div |
| | | :style="{ backgroundColor: scope.row.state === 0 ? '' : '#00FFFF', width: '105%', height: '125%', lineHeight: '50px' }"> |
| | | {{ scope.row.state >= 0 ? scope.row.state == 0 ? $t('Stop') : $t('Start') : "" }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="state" :label="$t('Task State')" align="center"> |
| | | <template slot-scope='scope'> |
| | | {{ scope.row.state >= 0 ? scope.row.state == 0 ? $t('Stop') : $t('Start') : "" }} |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column prop="method" :label="$t('Task Method')" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div style="text-align: center;width: 105%;"> |
| | | {{ scope.row.state >= 0 ? (scope.row.method == 0 ? $t('Out') : $t('All Out')) : "" }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="line" :label="$t('Task Line')"> |
| | | </el-table-column> |
| | | <el-table-column width="380" :label="$t('Operate')"> |
| | | |
| | | <template slot-scope='scope'> |
| | | <el-select v-model="selected[scope.$index]" :placeholder="$t('Line')" |
| | | v-show="scope.row.state >= 0 ? true : false"> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" @click="StartChange(scope.row.flowcard, scope.row.orderstate)"> |
| | | {{ scope.row.orderstate > 0 ? $t('stop work') : $t('start work') }}</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;margin-left: 6px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index], scope.row.line)"> |
| | | {{ 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="deleteTasks(scope.row.flowcard)"> |
| | |
| | | <el-table :data="this.StorageCageAddInfo" :height="700" border style="width: 100%;overflow: auto;"> |
| | | <el-table-column prop="flowcard" :label="$t('Flowcard')"></el-table-column> |
| | | <el-table-column prop="tier" :label="$t('Tier')"></el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')"></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="films" :label="$t('Films')"></el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')"></el-table-column> |
| | | <el-table-column :label="$t('Operate')"> |
| | | <template slot-scope='scope'> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | |
| | | Disabled, SelectPermissionByUserName, currentUsername, CompleteQueue, |
| | | isAllowReorderings, |
| | | |
| | | UpdateStroageCageByCell, FinishTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure, StartChange, deleteTasks,SaveMeasure |
| | | UpdateStroageCageByCell, FinishTask,TerminateTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure, StartChange, deleteTasks,SaveMeasure |
| | | } from "../../api/home"; |
| | | |
| | | |
| | |
| | | |
| | | dataList: [], |
| | | tableData1: [], |
| | | tableData2: [], |
| | | Measuermode: false, |
| | | confirm1: false, |
| | | confirm2: false, |
| | |
| | | Measure: false, |
| | | StorageCage: false, |
| | | Taskqueue: false, |
| | | Outqueue: false, |
| | | StorageCageAdd: false, |
| | | StorageCageInfo: [], |
| | | StorageCageForm: { |
| | |
| | | this.StorageCage = true; |
| | | } else if (i == 4) { |
| | | this.Taskqueue = true; |
| | | }else if (i == 5) { |
| | | this.Outqueue = true; |
| | | } |
| | | }, |
| | | init() { |
| | |
| | | } |
| | | |
| | | this.tableData1 = obj.OrderTask[0]; |
| | | this.tableData2 = obj.OrderTask[0]; |
| | | this.LastQueue = obj.LastQueue[0]; |
| | | |
| | | //是否允许出片 |
| | |
| | | } |
| | | }); |
| | | }, |
| | | //结束进/出片任务 |
| | | TerminateTask(id) { |
| | | TerminateTask(id).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | //修改理片笼玻璃信息 |
| | | UpdateStroageCageByCell(cell, nownum, num) { |
| | | if (nownum == null && num == 1) { |