| | |
| | | class="rect" |
| | | @click="showDialog(rect.glassId)" |
| | | :style="{ position: 'absolute', |
| | | top: `${rect.yAxis}px`, left: `${rect.xAxis}px`, width: `${rect.width}px`, height: `${rect.height}px`, |
| | | top: `${rect.yAxisa}px`, left: `${rect.xAxisa}px`, width: `${rect.width}px`, height: `${rect.height}px`, |
| | | backgroundColor: rect.isActive ? '#ADFF2F' : getRectColor(rect.state) |
| | | }"> |
| | | <div class="centered-text"> |
| | |
| | | if (existingRect) { |
| | | return { |
| | | ...existingRect, |
| | | xAxis: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxis: rect.yAxis * scaleFactory, |
| | | width: rect.width * scaleFactor, |
| | | height: rect.height * scaleFactory, |
| | | widtha: rect.width, |
| | | heighta: rect.height, |
| | | xAxisa: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxisa: rect.yAxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | height: rect.edgHeight * scaleFactory, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | state: rect.state, |
| | | // 保持 isActive 状态不变 |
| | | }; |
| | |
| | | // 如果不存在,则添加新矩形,默认 isActive 为 false |
| | | return { |
| | | ...rect, |
| | | xAxis: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxis: rect.yAxis * scaleFactory, |
| | | width: rect.width * scaleFactor, |
| | | height: rect.height * scaleFactory, |
| | | widtha: rect.width, |
| | | heighta: rect.height, |
| | | xAxisa: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxisa: rect.yAxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | height: rect.edgHeight * scaleFactory, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | state: rect.state, |
| | | isActive: false, |
| | | glassId: rect.glassId, |
| | |
| | | class="rect" |
| | | @click="showDialog(rect.glassId)" |
| | | :style="{ position: 'absolute', |
| | | top: `${rect.yAxis}px`, left: `${rect.xAxis}px`, width: `${rect.edgWidth}px`, height: `${rect.edgHeight}px`, |
| | | top: `${rect.yAxisa}px`, left: `${rect.xAxisa}px`, width: `${rect.width}px`, height: `${rect.height}px`, |
| | | backgroundColor: rect.isActive ? '#ADFF2F' : getRectColor(rect.state) |
| | | }"> |
| | | <div class="centered-text"> |
| | |
| | | if (existingRect) { |
| | | return { |
| | | ...existingRect, |
| | | xAxis: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor, |
| | | yAxis: rect.yAxis * scaleFactory, |
| | | edgWidth: rect.edgWidth * scaleFactor, |
| | | edgHeight: rect.edgHeight * scaleFactory, |
| | | xAxisa: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxisa: rect.yAxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | height: rect.edgHeight * scaleFactory, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | state: rect.state, |
| | |
| | | // 如果不存在,则添加新矩形,默认 isActive 为 false |
| | | return { |
| | | ...rect, |
| | | xAxis: (6000 - (rect.xAxis + rect.edgWidth)) * scaleFactor, |
| | | yAxis: rect.yAxis * scaleFactory, |
| | | edgWidth: rect.edgWidth * scaleFactor, |
| | | edgHeight: rect.edgHeight * scaleFactory, |
| | | xAxisa: (6000 - (rect.xAxis + rect.width)) * scaleFactor, |
| | | yAxisa: rect.yAxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | height: rect.edgHeight * scaleFactory, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | state: rect.state, |
| | |
| | | class="rect" |
| | | @click="showDialog(rect.glassId)" |
| | | :style="{ position: 'absolute', |
| | | top: `${rect.yaxis}px`, left: `${rect.xaxis}px`, width: `${rect.edgWidth}px`, height: `${rect.edgHeight}px`, |
| | | top: `${rect.yaxisa}px`, left: `${rect.xaxisa}px`, width: `${rect.width}px`, height: `${rect.height}px`, |
| | | backgroundColor: rect.isActive ? '#ADFF2F' : getRectColor(rect.state) |
| | | }" |
| | | > |
| | |
| | | var url="/cacheGlass/taskCache/queryCutDrawingByEngineerId?engineerId="+engineerId.value+ "&patternSequence=" + 1; |
| | | const response = await request.post(url) |
| | | if (response.code === 200) { |
| | | |
| | | const rawRects = response.data.currentCutDrawing; |
| | | rawData.value = response.data; |
| | | totalPages.value = response.data.totalPatternSequence; |
| | |
| | | const scaleFactory = 750/3300; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxis: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor, |
| | | yaxis: rect.yaxis * scaleFactory, |
| | | xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor, |
| | | yaxisa: rect.yaxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor , |
| | | widtha: rect.edgWidth , |
| | | heighta: rect.edgHeight , |
| | |
| | | const scaleFactory = 750/3300; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxis: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor, |
| | | yaxis: rect.yaxis * scaleFactory, |
| | | xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor, |
| | | yaxisa: rect.yaxis * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor , |
| | | widtha: rect.edgWidth , |
| | | heighta: rect.edgHeight , |
| | |
| | | ); |
| | | if (confirmResult === 'confirm') { |
| | | const response = await request.post("/cacheVerticalGlass/bigStorageCageDetails/appointTemperingEngineerId",{ |
| | | engineerId: row.engineer_id |
| | | engineerId: row.engineerId |
| | | }); |
| | | if (response.code === 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | console.error('发生错误:', error); |
| | | } |
| | | }; |
| | | // 指定工程 |
| | | // 取消指定 |
| | | const broked = async() => { |
| | | try { |
| | | const confirmResult = await ElMessageBox.confirm( |