| | |
| | | <template> |
| | | <div style="height: 500px;"> |
| | | <div style="display: flex;"> |
| | | <el-input v-model="engineerId" style="margin-left: 15px;margin-top: 10px;width: 240px" :placeholder="$t('order.projectnumber')" @blur="handleBlur"/> |
| | | <el-input v-model="engineerId" style="margin-left: 15px;margin-top: 10px;width: 240px" :placeholder="$t('order.projectnumber')"/> |
| | | <el-button type="primary" style="margin-left: 10px;margin-top: 10px;" @click="sethistorical()">{{$t('reportmanage.inquire')}}</el-button> |
| | | <el-pagination |
| | | v-model:current-page="currentPage" |
| | |
| | | style="margin-top: 10px;" |
| | | /> |
| | | </div> |
| | | <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 800px;" v-loading="loading"> |
| | | <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 800px;"> |
| | | <el-scrollbar height="750px" width="1400px" style="background-color: #e9e9eb;"> |
| | | <div style="position: relative;"> |
| | | <div |
| | |
| | | const totalPages = ref(0); |
| | | const pageSize = ref(1); |
| | | const currentPage = ref(''); |
| | | const realwidth = ref(''); |
| | | const realheight = ref(''); |
| | | const disabled = false; |
| | | const size = 'small'; |
| | | const rawData = ref([]); |
| | |
| | | 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 scaleFactor = 1621.78/6000; |
| | | const scaleFactory = 750/3300; |
| | | realwidth.value = response.data.upPattenUsage.width; |
| | | realheight.value = response.data.upPattenUsage.height; |
| | | const realx = realwidth.value; |
| | | const realy = realheight.value; |
| | | const scaleFactor = 1621.78/realx; |
| | | const scaleFactory = 750/realy; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxisa: rect.xaxis * scaleFactor * 1.1, |
| | | yaxisa: (3300 - (rect.yaxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | // xaxisa: (6000 -(rect.xaxis + rect.edgWidth)) * scaleFactor * 1.1, |
| | | // yaxisa: rect.yaxis * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | widtha: rect.edgWidth , |
| | | xaxisa: rect.xaxis * scaleFactor, |
| | | yaxisa: (realy - (rect.yaxis + rect.edgHeight )) * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight , |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | height: rect.edgHeight * scaleFactory, |
| | | state: rect.state |
| | | })); |
| | | currentPage.value = 1; |
| | |
| | | const response = await request.post(url) |
| | | if (response.code === 200) { |
| | | const rawRects = response.data.currentCutDrawing; |
| | | console.log(response.data); |
| | | rawData.value = response.data; |
| | | const scaleFactor = 1621.78/6000; |
| | | const scaleFactory = 750/3300; |
| | | realwidth.value = response.data.upPattenUsage.width; |
| | | realheight.value = response.data.upPattenUsage.height; |
| | | const realx = realwidth.value; |
| | | const realy = realheight.value; |
| | | const scaleFactor = 1621.78/realx; |
| | | const scaleFactory = 750/realy; |
| | | adjustedRects.value = rawRects.map(rect => ({ |
| | | ...rect, |
| | | xaxisa: rect.xaxis * scaleFactor * 1.1, |
| | | yaxisa: (3300 - (rect.yaxis + rect.edgHeight + 300)) * scaleFactory * 1.1, |
| | | width: rect.edgWidth * scaleFactor * 1.1, |
| | | widtha: rect.edgWidth , |
| | | heighta: rect.edgHeight , |
| | | height: rect.edgHeight * scaleFactory * 1.1, |
| | | xaxisa: rect.xaxis * scaleFactor, |
| | | yaxisa: (realy - (rect.yaxis + rect.edgHeight )) * scaleFactory, |
| | | width: rect.edgWidth * scaleFactor, |
| | | widtha: rect.edgWidth, |
| | | heighta: rect.edgHeight, |
| | | height: rect.edgHeight * scaleFactory, |
| | | state: rect.state |
| | | })); |
| | | } |