| | |
| | | endTime: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | currentPage2.value = 1; |
| | | ElMessage.success(response.message); |
| | | tableDatax.value = response.data.records; |
| | | totalRecords.value = response.data.total/2 || 0 |
| | |
| | | endTime: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | currentPage2.value = 1; |
| | | ElMessage.success(response.message); |
| | | tableDatax.value = response.data.records; |
| | | totalRecords.value = response.data.total/2 || 0 |
| | |
| | | <el-input v-model="rawGlassThickness" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('Mounting.thickness')" /> |
| | | <el-input v-model="rawGlassfilmsId" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('workOrder.coatingtypesbe')" /> |
| | | <el-input v-model="slot" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('workOrder.upnumber')" /> |
| | | <el-select |
| | | :placeholder="$t('searchOrder.taskstatus')" |
| | | clearable |
| | | style="width: 270px;margin-left: 10px;" |
| | | v-model="taskStateList"> |
| | | <el-option |
| | | v-for="item in optionsa" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | <el-select v-model="selectValuesa[0]" filterable :placeholder="$t('searchOrder.taskstatus')" clearable |
| | | style="width: 200px;margin-left: 10px;"> |
| | | <el-option :label="$t('searchOrder.empty')" value="0"></el-option> |
| | | <el-option :label="$t('film.execution')" value="1"></el-option> |
| | | <el-option :label="$t('searchOrder.endtask')" value="2"></el-option> |
| | | </el-select> |
| | | <el-date-picker v-model="timeRange" type="datetimerange" range-separator="至" :start-placeholder="$t('reportmanage.starttime')" |
| | | style="margin-left: 15px;" value-format = "YYYY-MM-DD hh:mm:ss" |
| | |
| | | <el-table-column prop="rawGlassWidth" align="center" :label="$t('Mounting.width')" min-width="80" /> |
| | | <el-table-column prop="rawGlassHeight" align="center" :label="$t('Mounting.height')" min-width="80" /> |
| | | <el-table-column prop="rawGlassThickness" align="center" :label="$t('Mounting.thickness')" min-width="80" /> |
| | | <el-table-column prop="rawGlassFilmsId" align="center" :label="$t('basicData.coatingtypes')" min-width="80" /> |
| | | <el-table-column prop="slot" align="center" :label="$t('workOrder.upnumber')" min-width="80" /> |
| | | <el-table-column prop="totalCount" align="center" :label="$t('basicData.tonumber')" min-width="80" /> |
| | | <el-table-column prop="finishCount" align="center" :label="$t('basicData.finishnumber')" min-width="80" /> |
| | |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | align="center" |
| | | :label="$t('sorter.taskRunning')" |
| | | min-width="80" |
| | |
| | | {{ getStatusTexta(scope.row.taskRunning) }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column prop="formattedCreateTime" align="center" :label="$t('reportmanage.starttime')" min-width="100" /> |
| | | <el-table-column prop="formattedUpdateTime" align="center" :label="$t('reportmanage.endtime')" min-width="100" /> |
| | | </el-table> |
| | |
| | | const globalDate = inject('globalDate'); |
| | | const router = useRouter() |
| | | const timeRange = ref([]) |
| | | const taskStateList = reactive([]); |
| | | const selectValuesa = reactive([]); |
| | | const tableDatax = ref([]) |
| | | const currentPage2 = ref(1) |
| | | const totalRecords = ref(0) |
| | |
| | | rawGlassThickness: '', |
| | | rawGlassWidth: '', |
| | | rawGlassfilmsId: '', |
| | | slot: '', |
| | | slot: 0, |
| | | station: 1, |
| | | taskStateList: '', |
| | | taskStateList: [], |
| | | beginDate: startTime, |
| | | endDate: getglobalDate |
| | | }) |
| | |
| | | }; |
| | | const historicala = async (page) => { |
| | | try { |
| | | let pslot= '' |
| | | let celllist=[] |
| | | if(selectValuesa[0]!=null&&selectValuesa[0]!='undefined'){ |
| | | if(selectValuesa[0]!=""){ |
| | | celllist=[selectValuesa[0]]; |
| | | } |
| | | } |
| | | if(slot.value != ""){ |
| | | pslot = slot.value |
| | | }else{ |
| | | pslot = '0' |
| | | } |
| | | let page = window.localStorage.getItem('pagenumber') |
| | | let startTime = window.localStorage.getItem('startTime') |
| | | const response = await request.post("/loadGlass/loadglassdevicetaskhistory/queryLoadGlassHistoryTask", { |
| | | pageNo: page, |
| | | pageSize: 20, |
| | | rawGlassHeight: '', |
| | | rawGlassThickness: '', |
| | | rawGlassWidth: '', |
| | | rawGlassfilmsId: '', |
| | | slot: '', |
| | | rawGlassHeight: rawGlassHeight.value, |
| | | rawGlassThickness: rawGlassThickness.value, |
| | | rawGlassWidth: rawGlassWidth.value, |
| | | rawGlassfilmsId: rawGlassfilmsId.value, |
| | | slot: pslot, |
| | | station: 1, |
| | | taskStateList: '', |
| | | beginDate: startTime, |
| | | endDate: getglobalDate |
| | | taskStateList: celllist, |
| | | beginDate: (timeRange.value && timeRange.value[0]) || '', |
| | | endDate: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | // 历史查询点击 |
| | | const sethistorical = async () => { |
| | | try { |
| | | let pslot= '' |
| | | let celllist=[] |
| | | if(selectValuesa[0]!=null&&selectValuesa[0]!='undefined'){ |
| | | if(selectValuesa[0]!=""){ |
| | | celllist=[selectValuesa[0]]; |
| | | } |
| | | } |
| | | if(slot.value != ""){ |
| | | pslot = slot.value |
| | | }else{ |
| | | pslot = '0' |
| | | } |
| | | let startTime = window.localStorage.getItem('startTime') |
| | | let page = window.localStorage.getItem('pagenumber') |
| | | console.log(page); |
| | |
| | | rawGlassThickness: rawGlassThickness.value, |
| | | rawGlassWidth: rawGlassWidth.value, |
| | | rawGlassfilmsId: rawGlassfilmsId.value, |
| | | slot: slot.value, |
| | | slot: pslot, |
| | | station: 1, |
| | | taskStateList: '', |
| | | taskStateList: celllist, |
| | | beginDate: (timeRange.value && timeRange.value[0]) || '', |
| | | endDate: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | currentPage2.value = 1 |
| | | ElMessage.success(response.message); |
| | | const formattedData = response.data.records.map(record => ({ |
| | | ...record, |
| | |
| | | case 1: |
| | | return 'success'; |
| | | case 2: |
| | | return 'success'; |
| | | return 'info'; |
| | | } |
| | | } |
| | | function getStatusTextb(taskState: number) { |
| | |
| | | return t('basicData.up'); |
| | | } |
| | | } |
| | | const optionsa = [ |
| | | { |
| | | value: 0, |
| | | label: t('searchOrder.empty'), |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: t('film.execution'), |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: t('searchOrder.endtask'), |
| | | } |
| | | ] |
| | | onMounted(() => { |
| | | parseAndSetTime(); |
| | | historical(); |
| | |
| | | <el-input v-model="rawGlassThickness" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('Mounting.thickness')" /> |
| | | <el-input v-model="rawGlassfilmsId" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('workOrder.coatingtypesbe')" /> |
| | | <el-input v-model="slot" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('workOrder.upnumber')" /> |
| | | <el-select |
| | | :placeholder="$t('searchOrder.taskstatus')" |
| | | clearable |
| | | style="width: 270px;margin-left: 10px;" |
| | | v-model="taskStateList"> |
| | | <el-option |
| | | v-for="item in optionsa" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | <el-select v-model="selectValuesa[0]" filterable :placeholder="$t('searchOrder.taskstatus')" clearable |
| | | style="width: 200px;margin-left: 10px;"> |
| | | <el-option :label="$t('searchOrder.empty')" value="0"></el-option> |
| | | <el-option :label="$t('film.execution')" value="1"></el-option> |
| | | <el-option :label="$t('searchOrder.endtask')" value="2"></el-option> |
| | | </el-select> |
| | | <el-date-picker v-model="timeRange" type="datetimerange" range-separator="至" :start-placeholder="$t('reportmanage.starttime')" |
| | | style="margin-left: 15px;" value-format = "YYYY-MM-DD hh:mm:ss" |
| | |
| | | <el-table-column prop="rawGlassWidth" align="center" :label="$t('Mounting.width')" min-width="80" /> |
| | | <el-table-column prop="rawGlassHeight" align="center" :label="$t('Mounting.height')" min-width="80" /> |
| | | <el-table-column prop="rawGlassThickness" align="center" :label="$t('Mounting.thickness')" min-width="80" /> |
| | | <el-table-column prop="rawGlassFilmsId" align="center" :label="$t('basicData.coatingtypes')" min-width="80" /> |
| | | <el-table-column prop="slot" align="center" :label="$t('workOrder.upnumber')" min-width="80" /> |
| | | <el-table-column prop="totalCount" align="center" :label="$t('basicData.tonumber')" min-width="80" /> |
| | | <el-table-column prop="finishCount" align="center" :label="$t('basicData.finishnumber')" min-width="80" /> |
| | |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | align="center" |
| | | :label="$t('sorter.taskRunning')" |
| | | min-width="80" |
| | |
| | | {{ getStatusTexta(scope.row.taskRunning) }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column prop="formattedCreateTime" align="center" :label="$t('reportmanage.starttime')" min-width="100" /> |
| | | <el-table-column prop="formattedUpdateTime" align="center" :label="$t('reportmanage.endtime')" min-width="100" /> |
| | | </el-table> |
| | |
| | | const globalDate = inject('globalDate'); |
| | | const router = useRouter() |
| | | const timeRange = ref([]) |
| | | const taskStateList = reactive([]); |
| | | const selectValuesa = reactive([]); |
| | | const tableDatax = ref([]) |
| | | const currentPage2 = ref(1) |
| | | const totalRecords = ref(0) |
| | |
| | | rawGlassThickness: '', |
| | | rawGlassWidth: '', |
| | | rawGlassfilmsId: '', |
| | | slot: '', |
| | | slot: 0, |
| | | station: 2, |
| | | taskStateList: '', |
| | | taskStateList: [], |
| | | beginDate: startTime, |
| | | endDate: getglobalDate |
| | | }) |
| | | if (response.code == 200) { |
| | | currentPage2.value = 1 |
| | | ElMessage.success(response.message); |
| | | const formattedData = response.data.records.map(record => ({ |
| | | ...record, |
| | |
| | | }; |
| | | const historicala = async (page) => { |
| | | try { |
| | | let pslot= '' |
| | | let celllist=[] |
| | | if(selectValuesa[0]!=null&&selectValuesa[0]!='undefined'){ |
| | | if(selectValuesa[0]!=""){ |
| | | celllist=[selectValuesa[0]]; |
| | | } |
| | | } |
| | | if(slot.value != ""){ |
| | | pslot = slot.value |
| | | }else{ |
| | | pslot = '0' |
| | | } |
| | | let page = window.localStorage.getItem('pagenumber') |
| | | let startTime = window.localStorage.getItem('startTime') |
| | | const response = await request.post("/loadGlass/loadglassdevicetaskhistory/queryLoadGlassHistoryTask", { |
| | | pageNo: page, |
| | | pageSize: 20, |
| | | rawGlassHeight: '', |
| | | rawGlassThickness: '', |
| | | rawGlassWidth: '', |
| | | rawGlassfilmsId: '', |
| | | slot: '', |
| | | rawGlassHeight: rawGlassHeight.value, |
| | | rawGlassThickness: rawGlassThickness.value, |
| | | rawGlassWidth: rawGlassWidth.value, |
| | | rawGlassfilmsId: rawGlassfilmsId.value, |
| | | slot: pslot, |
| | | station: 2, |
| | | taskStateList: '', |
| | | beginDate: startTime, |
| | | endDate: getglobalDate |
| | | taskStateList: celllist, |
| | | beginDate: (timeRange.value && timeRange.value[0]) || '', |
| | | endDate: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | |
| | | // 历史查询点击 |
| | | const sethistorical = async () => { |
| | | try { |
| | | let pslot= '' |
| | | let celllist=[] |
| | | if(selectValuesa[0]!=null&&selectValuesa[0]!='undefined'){ |
| | | if(selectValuesa[0]!=""){ |
| | | celllist=[selectValuesa[0]]; |
| | | } |
| | | } |
| | | if(slot.value != ""){ |
| | | pslot = slot.value |
| | | }else{ |
| | | pslot = '0' |
| | | } |
| | | let startTime = window.localStorage.getItem('startTime') |
| | | let page = window.localStorage.getItem('pagenumber') |
| | | console.log(page); |
| | |
| | | rawGlassThickness: rawGlassThickness.value, |
| | | rawGlassWidth: rawGlassWidth.value, |
| | | rawGlassfilmsId: rawGlassfilmsId.value, |
| | | slot: slot.value, |
| | | slot: pslot, |
| | | station: 2, |
| | | taskStateList: '', |
| | | taskStateList: celllist, |
| | | beginDate: (timeRange.value && timeRange.value[0]) || '', |
| | | endDate: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | |
| | | case 1: |
| | | return 'success'; |
| | | case 2: |
| | | return 'success'; |
| | | return 'info'; |
| | | } |
| | | } |
| | | function getStatusTextb(taskState: number) { |
| | |
| | | return t('basicData.up'); |
| | | } |
| | | } |
| | | const optionsa = [ |
| | | { |
| | | value: 0, |
| | | label: t('searchOrder.empty'), |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: t('film.execution'), |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: t('searchOrder.endtask'), |
| | | } |
| | | ] |
| | | onMounted(() => { |
| | | parseAndSetTime(); |
| | | historical(); |
| | |
| | | const buttonEnabledStatus = ref({}); |
| | | const globalDate = inject('globalDate'); |
| | | import { inject } from 'vue'; |
| | | import { tr } from "element-plus/es/locale"; |
| | | const tableData = ref([]) |
| | | const titleSelectJson = ref({ |
| | | engineerId: [], |
| | |
| | | if (data.LoadOneState != null) { |
| | | cuttingMachineStatusColor.value = data.LoadOneState[0] == 1 ? 'green' : '#911005'; |
| | | } |
| | | if (data.stationOne != null) { |
| | | data.stationOne[0].forEach((station) => { |
| | | if(station.patternThickness !== undefined){ |
| | | station.haspatternThickness=false; |
| | | }else{ |
| | | station.haspatternThickness=true; |
| | | } |
| | | // stationInfos[station.patternThickness] = { |
| | | // haspatternThickness: station.patternThickness !== undefined, |
| | | // }; |
| | | }); |
| | | |
| | | console.log(data.stationOne); |
| | | if (data.list!=null) { |
| | | tableDataa.value = data.list[0].slice(0, 2); |
| | | }else { |
| | | tableDataa.value = '' |
| | | tableDataa.value = []; |
| | | } |
| | | if (data.stationOne != null) { |
| | | // data.stationOne[0].forEach(station => { |
| | | // stationInfos[station.slot] = { |
| | | // hasValidDimension: station.patternHeight !== null && station.patternHeight !== '' || |
| | | // station.patternThickness !== null && station.patternThickness !== '' |
| | | // }; |
| | | // console.log(station); |
| | | // console.log(stationInfos[station.slot]); |
| | | |
| | | // }); |
| | | data.stationOne[0].forEach((station) => { |
| | | stationInfos[station.patternHeight] = { |
| | | hasPatternHeight: station.patternHeight !== null && station.patternHeight !== '', |
| | | }; |
| | | // buttonEnabledStatus.value[workstationId] = hasValidDimension; |
| | | console.log(station); |
| | | console.log(stationInfos[station.patternHeight]); |
| | | }); |
| | | } |
| | | // if (data.stationOne != null) { |
| | | // // 初始化按钮状态对象 |
| | | // buttonEnabledStatus.value = {}; |
| | | // data.stationOne[0].forEach((station, index) => { |
| | | // const workstationId = station.workstationId; |
| | | // const hasValidDimension = station.patternHeight !== null && station.patternHeight !== '' || |
| | | // station.patternThickness !== null && station.patternThickness !== ''; |
| | | // buttonEnabledStatus.value[workstationId] = hasValidDimension; |
| | | // console.log(station.workstationId); |
| | | |
| | | // }); |
| | | // } |
| | | if(data.loadTask1!=null){ |
| | | tableData.value = data.loadTask1[0] |
| | | window.localStorage.setItem('engineeringIda', tableData.value[0].engineeringId) |
| | |
| | | canSelectProjectc.value = false; |
| | | tableData.value = ''; |
| | | } |
| | | }; |
| | | // 检查按钮是否可用 |
| | | // const isButtonEnabled = (slot: string) => { |
| | | // return buttonEnabledStatus.value[slot] || false; |
| | | // }; |
| | | const isButtonEnabled = (patternHeight: string) => { |
| | | return stationInfos[patternHeight]?.hasValidDimension ?? false; |
| | | }; |
| | | onBeforeUnmount(() => { |
| | | closeWebSocket(); |
| | |
| | | <el-table-column prop="number" align="center" :label="$t('basicData.quantity')" min-width="80"/> |
| | | <el-table-column fixed="right" :label="$t('film.operate')" align="center"> |
| | | <template #default="scope"> |
| | | <el-button size="mini" :disabled="!isButtonEnabled(scope.row.patternHeight)" type="text" plain @click="handleptask(scope.row.workstationId)">{{ $t('basicData.rackreset') }}</el-button> |
| | | <el-button size="mini" :disabled="(!stationInfos[scope.row.patternThickness])" type="text" plain @click="handleptask(scope.row.workstationId)">{{ $t('basicData.rackreset') }}{{ scope.row.haspatternThickness}}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | pageNo: page, |
| | | pageSize: 20, |
| | | glassId: glassId.value, |
| | | taskState: '', |
| | | taskType: '', |
| | | startTime: startTime, |
| | | endTime: getglobalDate |
| | | taskState: taskState.value, |
| | | taskType: taskType.value, |
| | | startTime: (timeRange.value && timeRange.value[0]) || '', |
| | | endTime: (timeRange.value && timeRange.value[1]) || '', |
| | | }) |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |