| | |
| | | const cuttingMachineStatusColor = ref('#911005'); |
| | | const tableDataa = ref<any[]>([]); |
| | | const tableDatab = ref<any[]>([]); |
| | | // const tableData = ref([]) |
| | | const tableData = reactive([]); |
| | | const tableData = ref([]) |
| | | const filteredData = computed(() => { |
| | | // applyFilters 函数应该在某处定义,用于根据当前筛选条件过滤数据 |
| | | return applyFilters(tableData, currentFilters); |
| | |
| | | // 当前筛选条件,应该是一个响应式变量,用于存储用户选择的筛选值 |
| | | const currentFilters = ref<{ state?: string }>({}); |
| | | const filterTag = (value: string, row: any) => { |
| | | // return String(row.state) === value; |
| | | return row.state === value |
| | | }; |
| | | // 应用筛选条件的函数 |
| | |
| | | try { |
| | | const response = await request.get("/loadGlass/up-patten-usage/prioritylist"); |
| | | if (response.code === 200) { |
| | | tableData.splice(0, tableData.length, ...response.data); |
| | | tableData.value = response.data |
| | | // tableData.splice(0, tableData.length, ...response.data); |
| | | ElMessage.error(response.message); |
| | | window.localStorage.setItem('engineeringIda', tableData[0].engineeringId) |
| | | } |
| | |
| | | tableDataa.value = data.list[0].slice(0, 2); |
| | | if(data.loadTask1.length !=0){ |
| | | tableData.value = data.loadTask1[0] |
| | | // tableData.splice(0, tableData.length, ...data.loadTask1[0]); |
| | | window.localStorage.setItem('engineeringIda', tableData.value[0].engineeringId) |
| | | canSelectProjecta.value = false; |
| | | canSelectProjectb.value = false; |
| | |
| | | console.error('发生错误:', error); |
| | | } |
| | | }; |
| | | // 架子复位 |
| | | const handleptask = async() => { |
| | | try { |
| | | const confirmResult = await ElMessageBox.confirm( |
| | | t('basicData.prackreset'), |
| | | t('workOrder.prompt'), |
| | | { |
| | | confirmButtonText: t('workOrder.yes'), |
| | | cancelButtonText: t('workOrder.cancel'), |
| | | type: 'warning', |
| | | } |
| | | ); |
| | | if (confirmResult === 'confirm') { |
| | | var url="/loadGlass/rawGlassStorageDetails/shelfReset?slot="+ 1; |
| | | const response = await request.post(url) |
| | | if (response.code === 200) { |
| | | ElMessage.success(response.message); |
| | | } else { |
| | | ElMessage.error(response.msg); |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.error('发生错误:', error); |
| | | } |
| | | }; |
| | | function getStatusType2(filmRemove) { |
| | | switch (filmRemove) { |
| | | case 0: |
| | |
| | | <el-table-column prop="patternHeight" align="center" :label="$t('basicData.height')" min-width="80"/> |
| | | <el-table-column prop="filmsId" align="center" :label="$t('basicData.coatingtypes')" min-width="80"/> |
| | | <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" width="70"> |
| | | <template #default="scope"> |
| | | <el-button size="mini" type="text" plain @click="handleptask()">{{ $t('basicData.rackreset') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |