diff --git a/src/api/liswork/qualityControl/index.ts b/src/api/liswork/qualityControl/index.ts index 5508b86..dfd350a 100644 --- a/src/api/liswork/qualityControl/index.ts +++ b/src/api/liswork/qualityControl/index.ts @@ -107,3 +107,11 @@ export function queryValXmdh(data?: Object) { params: data }) } +// 查询质控品录入 +export function getqcval(data?: Object) { + return request({ + url: '/qc/getqcval', + method: 'get', + params: data + }) +} diff --git a/src/components/SelectTable/index.vue b/src/components/SelectTable/index.vue index 910a045..be27bb9 100644 --- a/src/components/SelectTable/index.vue +++ b/src/components/SelectTable/index.vue @@ -30,11 +30,19 @@
- - + --> + + +
@@ -78,7 +86,7 @@ const filterData = ref<{ [key: string]: any; pinyinMap: Record } // 存储预处理后的带拼音数据 const processedTableData = ref<{ [key: string]: any; pinyinMap: Record }[]>([]); const currentIndex = ref(-1); - +const currentRow = ref(null) // 字典数据存储 const dictData = ref>({}); // 预处理数据:生成拼音信息 @@ -113,8 +121,8 @@ const visibleChange = (val: any) => { currentIndex.value = filterData.value.findIndex(item => item[props.value!] === props.data); if (currentIndex.value >= 0) { - tableRef.value.setCurrentRow(filterData.value[currentIndex.value]); - tableRef.value.setScrollTop(currentIndex.value * 30); + tableRef.value.setCurrentRow(filterData.value[currentIndex.value]) + tableRef.value.scrollToRow(filterData.value[currentIndex.value]) } }, 10); } @@ -233,11 +241,8 @@ const handleKeydown = (e: any) => { currentIndex.value = Math.min(maxIndex, currentIndex.value + 1); } - tableRef.value.setCurrentRow(filterData.value[currentIndex.value]); - - // 滚动到当前行 - tableRef.value.setScrollTop(currentIndex.value * 30); - + tableRef.value.setCurrentRow(filterData.value[currentIndex.value]) + tableRef.value.scrollToRow(filterData.value[currentIndex.value]) // 回车确认 if (e.key === "Enter") { const currentRow = filterData.value[currentIndex.value]; @@ -284,11 +289,18 @@ const filterDataHandle = () => { }); if (filterData.value.length > 0) { - tableRef.value.setScrollTop(0) - tableRef.value.setCurrentRow(filterData.value[0]); + nextTick(() => { + tableRef.value.setCurrentRow(filterData.value[0]) + tableRef.value.scrollToRow(filterData.value[0]) + }); } }; +const currentChange = (params: { row: any }) => { + currentRow.value = params.row + handleRowChange(params.row) +} + const handleRowChange = (val: any) => { emits("update:data", props.value ? val[props.value] : val); setLabel(val); @@ -316,11 +328,44 @@ const clearHandle = () => { }; - \ No newline at end of file diff --git a/src/views/liswork/qualityControl/index.vue b/src/views/liswork/qualityControl/index.vue index 5570068..666f675 100644 --- a/src/views/liswork/qualityControl/index.vue +++ b/src/views/liswork/qualityControl/index.vue @@ -250,7 +250,7 @@ const getDeptTree = async (): Promise => { onMounted(() => { - getDictData('MD', 'TK') + getDictData('MD', 'LOT') }) // ========== 初始化 ========== getDeptTree() diff --git a/src/views/liswork/qualityControl/setEnterResult/components/dateTime.vue b/src/views/liswork/qualityControl/setEnterResult/components/dateTime.vue new file mode 100644 index 0000000..47f7e9e --- /dev/null +++ b/src/views/liswork/qualityControl/setEnterResult/components/dateTime.vue @@ -0,0 +1,172 @@ +/** +* @file dateTime.vue 日期录入 +* @author: w +* @since: 2026-01-13 +*/ + + + + + + + \ No newline at end of file diff --git a/src/views/liswork/qualityControl/setEnterResult/components/project.vue b/src/views/liswork/qualityControl/setEnterResult/components/project.vue new file mode 100644 index 0000000..8240653 --- /dev/null +++ b/src/views/liswork/qualityControl/setEnterResult/components/project.vue @@ -0,0 +1,161 @@ +/** +* @file index.vue 质控结果手工录入 +* @author: w +* @since: 2026-01-05 +*/ + + + + + + \ No newline at end of file diff --git a/src/views/liswork/qualityControl/setEnterResult/index.vue b/src/views/liswork/qualityControl/setEnterResult/index.vue index 9acf51c..31a71b2 100644 --- a/src/views/liswork/qualityControl/setEnterResult/index.vue +++ b/src/views/liswork/qualityControl/setEnterResult/index.vue @@ -1,163 +1,357 @@ /** -* @file index.vue 质控结果手工录入 +* @file index.vue 质控 * @author: w -* @since: 2026-01-05 +* @since: 2025-12-29 */ - \ No newline at end of file