| | |
| | | password: '', |
| | | }); |
| | | const blind = ref(false) |
| | | const blindMode = ref(false) |
| | | const blindModeNumber = ref('') |
| | | const errorInfo = ref(true) |
| | | const loadData = ref([]); |
| | | const findMachine = ref([]); |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | const fetchData = async () => { |
| | | //扫码回车提交 |
| | | //alert(searchs.value); |
| | | searchs.value = ""; |
| | | } |
| | | |
| | | const filterTableData = computed(() => |
| | | loadData.value.filter( |
| | | (data) => |
| | | !searchs.value || data.scanId.toLowerCase().includes(searchs.value.toLowerCase()) |
| | | ) |
| | | ) |
| | | |
| | | //下拉框模式选择 |
| | | const modevalue = ref('') |
| | | |
| | | const options = [ |
| | | { |
| | | value: '1', |
| | | label: '标准', |
| | | }, |
| | | { |
| | | value: '2', |
| | | label: '定制', |
| | | }, |
| | | { |
| | | value: '3', |
| | | label: '手动', |
| | | } |
| | | ] |
| | | //模式选择时进行处理 |
| | | const modeChange = async () => { |
| | | if(modevalue.value=='3'){ |
| | | //当是手动模式时弹窗提示 设置上片数量 |
| | | blindMode.value = true; |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | <template> |
| | | <div ref="content" style="padding:0 20px;"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | |
| | | <el-dialog v-model="blindMode" top="30vh" style="text-align: center;width: 600px;" @close="handleDialogClose"> |
| | | <!-- 手动模式输入数量 --> |
| | | <div style="text-align: none;font-size: 20px;margin-bottom: 20px;"> |
| | | 手动输入模式 |
| | | </div> |
| | | <div> |
| | | 手动输入上片数量: |
| | | <el-input v-model="blindModeNumber" style="width: 200px;" type="Number" id="blindMode" @keyup.enter="fetchData"></el-input> |
| | | </div> |
| | | <!-- <div> |
| | | <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 2)">确认</el-button> |
| | | <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 2)">取消</el-button> |
| | | </div> --> |
| | | </el-dialog> |
| | | <hr /> |
| | | <br> |
| | | <div id="search"> |
| | | <!-- 功能 --> |
| | | |
| | | <div class="flex flex-wrap gap-4 items-center"> |
| | | 上片机运行模式: |
| | | <el-select v-model="modevalue" @change="modeChange" placeholder="请选择模式" size="large" style="width: 220px"> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> |
| | | </el-select> |
| | | <span @click="modeChange" style="margin-left: 40px;">上片数量:{{ blindModeNumber}}</span> |
| | | |
| | | </div> |
| | | <br> |
| | | <el-button :type="(findMachine['state'] == '暂停' ? 'danger' : 'success')" id="ButtonMachineStatus" |
| | | @click="machineStatus((findMachine['state'] == '暂停' ? '开工' : '暂停'))">{{ findMachine['state'] == '开工' ? |
| | | $t('functionState.start') : $t('functionState.stop') }}</el-button> |
| | |
| | | <el-popover placement="bottom" title="筛选" :width="200" trigger="click"> |
| | | <el-input v-model="searchs" type="primary" id="ReportSubmission" @keyup.enter="fetchData"></el-input> |
| | | <template #reference> |
| | | <el-icon><Filter /></el-icon> |
| | | <el-icon> |
| | | <Filter /> |
| | | </el-icon> |
| | | </template> |
| | | </el-popover> |
| | | <el-icon><CaretTop /></el-icon> |
| | | <el-icon><CaretBottom /></el-icon> |
| | | <el-icon> |
| | | <CaretTop /> |
| | | </el-icon> |
| | | <el-icon> |
| | | <CaretBottom /> |
| | | </el-icon> |
| | | <!-- <el-input v-model="searchs" type="primary" id="ReportSubmission" @keyup.enter="fetchData"></el-input> --> |
| | | <!-- <el-input size="small" placeholder="Type to search" /> --> |
| | | </div> |