-
+
{{ row.xmdh }} {{ row.xmmc }}
-
-
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
import { queryBatch, queryQcSample, queryBatchXm } from '@/api/liswork/qualityControl'
import { templateRef } from '@vueuse/core'
+import { ElMessage } from 'element-plus'
const yq = defineModel()
@@ -153,18 +182,18 @@ const columns = ref([
{ title: '备注', field: 'bk', resizable: true, align: 'center', width: 100 },
{ title: '仪器', field: 'yq', resizable: true, align: 'center', },
])
-const topTableData = ref([])
+const topTableData: any = ref([])
const topColumns = [
- { label: '项目代号', prop: 'xmdh', visible: true, slot: 'xmdh', width: 150 },
- { label: '靶值', prop: 'zkbz', visible: true, align: 'center', },
- { label: 'Sd', prop: 'sd', visible: true, align: 'center', },
- { label: 'Cv', prop: 'cv', visible: true, align: 'center', },
- { label: '开始日期', prop: 'ksrq', visible: true, align: 'center', },
- { label: '结束日期', prop: 'stopdate', visible: true, align: 'center', },
- { label: '波长', prop: 'bc', visible: true, align: 'center', },
- { label: '方法', prop: 'ff', visible: true, align: 'center', },
- { label: '试剂', prop: 'sjph', visible: true, align: 'center', },
- { label: '目标CV(%)', prop: 'qccv', visible: true, align: 'center', },
+ { title: '项目代号', field: 'xmdh', resizable: true, slotName: 'xmdh', width: 150 },
+ { title: '靶值', field: 'zkbz', resizable: true, align: 'center', slotName: 'zkbz' },
+ { title: 'Sd', field: 'sd', resizable: true, align: 'center', slotName: 'sd' },
+ { title: 'Cv', field: 'cv', resizable: true, align: 'center', slotName: 'cv' },
+ { title: '开始日期', field: 'ksrq', resizable: true, align: 'center', slotName: 'ksrq', width: 100 },
+ { title: '结束日期', field: 'stopdate', resizable: true, align: 'center', slotName: 'stopdate', width: 100 },
+ { title: '波长', field: 'bc', resizable: true, align: 'center', slotName: 'bc', },
+ { title: '方法', field: 'ff', resizable: true, align: 'center', slotName: 'ff', },
+ { title: '试剂', field: 'sjph', resizable: true, align: 'center', slotName: 'sjph', },
+ { title: '目标CV(%)', field: 'qccv', resizable: true, align: 'center', slotName: 'qccv', width: 80 },
]
const bottomTableData = ref([])
const bottomColumns = ref([
@@ -195,6 +224,13 @@ const rowClick = (row: any) => {
})
}
+const dateClick = () => {
+ if (!topTableData.value[0].ksrq) return
+ topTableData.value.forEach((item: any) => {
+ item.ksrq = topTableData.value[0].ksrq
+ })
+}
+
const addHandle = () => {
visible.value = true
}
@@ -231,7 +267,7 @@ const getBatchList = () => {
const getXmList = () => {
queryBatchXm({ yq: yq.value, }).then((res: any) => {
topTableData.value = res.data
- rowClick(topTableData.value[0])
+ // rowClick(topTableData.value[0])
})
}
@@ -265,4 +301,8 @@ watch(yq, (val) => {
height: 100%;
}
}
+
+:deep(.el-input__prefix) {
+ display: none;
+}
\ No newline at end of file