| | |
| | | <div style="height: 600px;"> |
| | | <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;" v-loading="loading"> |
| | | <div style="display: flex; flex-direction: row; align-items: center; margin-bottom: 10px;"> |
| | | <el-button id="searchButton" type="success" @click="dialogFormVisiblea = true"> |
| | | <el-button id="searchButton" type="success" @click="handlezhiban"> |
| | | {{ $t('hellow.createtask') }} |
| | | </el-button> |
| | | <el-button style="margin-left: 20px;" id="searchButton" type="success" @click="handleBinda"> |
| | |
| | | <el-dialog v-model="dialogFormVisiblea" top="5vh" width="85%"> |
| | | <el-table ref="table" style="margin-top: 20px;height: 500px;" |
| | | :data="tableDatab" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}"> |
| | | <el-table-column prop="deviceId" fixed align="center" :label="$t('hellow.cardnumber')" min-width="80"/> |
| | | <el-table-column prop="slot" fixed align="center" :label="$t('hellow.layernumber')" min-width="80"/> |
| | | <el-table-column prop="patternWidth" align="center" :label="$t('hellow.thickness')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.coatingtypes')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.totalnumber')" min-width="80"/> |
| | | <el-table-column prop="flowCardId" fixed align="center" :label="$t('hellow.cardnumber')" min-width="80"/> |
| | | <el-table-column prop="layer" fixed align="center" :label="$t('hellow.layernumber')" min-width="80"/> |
| | | <el-table-column prop="thickness" align="center" :label="$t('hellow.thickness')" min-width="80"/> |
| | | <el-table-column prop="filmsId" align="center" :label="$t('hellow.coatingtypes')" min-width="80"/> |
| | | <el-table-column prop="sumCount" align="center" :label="$t('hellow.totalnumber')" min-width="80"/> |
| | | <el-table-column prop="realCount" align="center" :label="$t('hellow.realpieces')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.pairsnumber')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.missingnumber')" min-width="80"/> |
| | | <!-- <el-table-column prop="damageCount" align="center" :label="$t('hellow.brokenpieces')" min-width="80"/> --> |
| | | <!-- <el-table-column prop="lackCount" align="center" :label="$t('hellow.missingnumber')" min-width="80"/> --> |
| | | <el-table-column fixed="right" :label="$t('hellow.operate')" align="center" width="270"> |
| | | <template #default="scope"> |
| | | <el-button size="mini" type="text" plain @click="finisha(scope.row)">{{ $t('hellow.claimquest') }}</el-button> |
| | | <el-button size="mini" type="text" plain @click="dialogFormVisibleb = true">{{ |
| | | <el-button size="mini" type="text" plain @click="handleBindRack(scope.row)">{{ |
| | | $t('hellow.missingfilms') |
| | | }} |
| | | </el-button> |
| | |
| | | <el-dialog v-model="dialogFormVisibleb" top="7vh" width="70%" height="500"> |
| | | <div style="margin-top: -20px;text-align: center;margin-left: 400px;"> |
| | | <el-form-item :label="$t('hellow.cardnumbera')" style="width: 14vw"> |
| | | {{ temperingtotal }} |
| | | {{ currentRow.flowCardId }} |
| | | </el-form-item> |
| | | </div> |
| | | <el-table ref="table" style="margin-top: 20px;height: 400px;" |
| | | :data="tableDatac" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}"> |
| | | <el-table-column prop="patternWidth" align="center" :label="$t('hellow.thickness')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.coatingtypes')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.height')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.width')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.totalnumber')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.missingnumber')" min-width="80"/> |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('hellow.brokenpieces')" min-width="80"/> |
| | | <el-table-column prop="thickness" align="center" :label="$t('hellow.thickness')" min-width="80"/> |
| | | <el-table-column prop="filmsId" align="center" :label="$t('hellow.coatingtypes')" min-width="80"/> |
| | | <el-table-column prop="height" align="center" :label="$t('hellow.height')" min-width="80"/> |
| | | <el-table-column prop="width" align="center" :label="$t('hellow.width')" min-width="80"/> |
| | | <el-table-column prop="totalCount" align="center" :label="$t('hellow.totalnumber')" min-width="80"/> |
| | | <el-table-column prop="lackCount" align="center" :label="$t('hellow.missingnumber')" min-width="80"/> |
| | | <el-table-column prop="damageCount" align="center" :label="$t('hellow.brokenpieces')" min-width="80"/> |
| | | <div style="float: right;margin-bottom: 5px;"> |
| | | <el-pagination layout="prev, pager, next" :total="50"/> |
| | | </div> |
| | |
| | | </template> |
| | | <script setup> |
| | | import {ElMessage, ElMessageBox} from 'element-plus' |
| | | import {onBeforeUnmount, onMounted, onUnmounted, ref} from "vue"; |
| | | import {onBeforeUnmount, onMounted, onUnmounted, ref, reactive} from "vue"; |
| | | import request from "@/utils/request" |
| | | import {closeWebSocket} from '@/utils/WebSocketService'; |
| | | import {useI18n} from 'vue-i18n' |
| | | |
| | | const {t} = useI18n() |
| | | const blinda = ref(false) |
| | | const blindb = ref(false) |
| | | const tableDataa = ref([]) |
| | | const tableDatab = ref([]) |
| | | const tableDatac = ref([]) |
| | | const flowCard = ref('') |
| | | const dialogFormVisiblea = ref(false) |
| | | const dialogFormVisibleb = ref(false) |
| | | const currentRow = reactive({}); // 当前行的数据 |
| | | |
| | | const tableDatab = [ |
| | | { |
| | | layoutSequence: 'Tom', |
| | | }, |
| | | { |
| | | layoutSequence: '2016-05-02', |
| | | name: 'Tom', |
| | | address: 'No. 189, Grove St, Los Angeles', |
| | | }, |
| | | ] |
| | | let socket = null; |
| | | // const socketUrl = `ws://${WebSocketHost}:${host}/api/temperingGlass/api/talk/screen`; |
| | | // const handleMessage = (data) => { |
| | |
| | | const handleBindb = (row) => { |
| | | blindb.value = true; |
| | | }; |
| | | const handlezhiban = () => { |
| | | dialogFormVisiblea.value = true; |
| | | fetchFlowCardId(); |
| | | }; |
| | | const handleBindRack = (row) => { |
| | | const { flowCardId, layer } = row; |
| | | currentRow.flowCardId = row.flowCardId; // 直接设置响应式属性 |
| | | dialogFormVisibleb.value = true; |
| | | fetchFlowBind(flowCardId, layer); |
| | | }; |
| | | // 创建任务 |
| | | const fetchFlowCardId = async () => { |
| | | try { |
| | | const response = await request.post('/hollowGlass/hollowGlassRelationInfo/queryHollowAllFlowCard') |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | | console.log(response.data.NG24111426A001); |
| | | |
| | | tableDatab.value = response.data.NG24111426A001; |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | } |
| | | } |
| | | // 缺片详情 |
| | | const fetchFlowBind = async (flowCardId, layer) => { |
| | | try { |
| | | var url="/hollowGlass/hollowGlassRelationInfo/queryLackByFlowCard?flowCardId="+flowCardId + "&layer=" + layer; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | | tableDatac.value = response.data; |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | } |
| | | } |
| | | // 开始任务 |
| | | const handlea = async () => { |
| | | try { |