diff --git a/components/sample/auncel-select-popup.vue b/components/sample/auncel-select-popup.vue
index b8e86ed..5b5416e 100644
--- a/components/sample/auncel-select-popup.vue
+++ b/components/sample/auncel-select-popup.vue
@@ -250,8 +250,7 @@ function getWeightStyle(auncel) {
display: flex;
justify-content: center;
align-items: center;
- background-color: #000;
- opacity: 0.6;
+ background-color: rgba(31, 41, 55, 0.55);
color: #fff;
font-weight: 500;
z-index: 10;
diff --git a/nx/api/assayTask.js b/nx/api/assayTask.js
index 0b8b99b..e580b86 100644
--- a/nx/api/assayTask.js
+++ b/nx/api/assayTask.js
@@ -12,6 +12,15 @@ const getAssayTaskList = params => {
}
})
}
+const getAssayTaskPage = params => {
+ return request({
+ url: '/qms/business-assay-task/page',
+ method: 'GET',
+ params: {
+ ...params
+ }
+ })
+}
// 获取样品列表
const getAssayTaskDataList = params => {
return request({
@@ -20,6 +29,13 @@ const getAssayTaskDataList = params => {
method: 'GET'
})
}
+const getAssayTaskDetailList = params => {
+ return request({
+ url: `/qms/business-assay-task-detail/list`,
+ params,
+ method: 'GET'
+ })
+}
// 获取样品分析配置数据
const getSampleAnalysisByTaskId = businessAssayTaskId => {
return request({
@@ -192,6 +208,17 @@ const submitTask = params => {
})
}
+const taskIngredients = params => {
+ return request({
+ url: '/qms/bus/sample/analysis/issuedIngredients',
+ method: 'POST',
+ params,
+ custom: {
+ showSuccess: true
+ }
+ })
+}
+
// 撤销提交任务明细
const redoAssayTaskDetail = params => {
return request({
@@ -230,13 +257,11 @@ const reportAssayTask = id => {
})
}
-const rollbackAssayTask = id => {
+const rollbackAssayTask = data => {
return request({
- url: taskPrefix + '/rollbackAssayTask',
+ url: '/qms/bus/sample/analysis/rollbackAnalysisSample',
method: 'POST',
- params: {
- id
- }
+ data
})
}
@@ -262,7 +287,9 @@ const queryQmsDicSampleProcessCodeList = () => {
export default {
getAssayTaskList,
+ getAssayTaskPage,
getAssayTaskDataList,
+ getAssayTaskDetailList,
getSampleAnalysisByTaskId,
batchSampleAndQcAnalysisByTaskId,
saveBatchSmpleAndQcAnalysis,
@@ -283,5 +310,6 @@ export default {
createRollbackApply,
rollbackAssayTask,
submitTask,
+ taskIngredients,
queryQmsDicSampleProcessCodeList
}
diff --git a/nx/hooks/usePageListData.js b/nx/hooks/usePageListData.js
index a18ad9c..2a97791 100644
--- a/nx/hooks/usePageListData.js
+++ b/nx/hooks/usePageListData.js
@@ -7,9 +7,7 @@ export function useListData({ searchParams, api, needInitListData = false, proce
const loadingData = ref(true)
const pageParams = reactive({
pageNo: 1,
- pageSize: 10,
- order: 'desc',
- column: 'createTime'
+ pageSize: 5
})
const total = ref(0)
const loadStatus = ref('loadmore')
@@ -21,12 +19,12 @@ export function useListData({ searchParams, api, needInitListData = false, proce
...unref(searchParams),
...pageParams
}
- let { records, total: pageTotal } = await api(params)
+ let { list, total: pageTotal } = await api(params)
total.value = pageTotal
if (processData) {
- records = processData(records)
+ list = processData(list)
}
- return records
+ return list
}
// 页面底部触底加载更多
diff --git a/pages.json b/pages.json
index bb35813..c968102 100644
--- a/pages.json
+++ b/pages.json
@@ -21,7 +21,7 @@
{
"path": "pages/index/index",
"style": {
- "navigationBarTitleText": "系统选择"
+ "navigationBarTitleText": "模块选择"
}
},
{
@@ -171,6 +171,7 @@
"path": "pages/analysis/sample/sample-work-list",
"style": {
"navigationBarTitleText": "样品分析列表",
+ "enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},
diff --git a/pages/analysis/auncel/auncel-status.vue b/pages/analysis/auncel/auncel-status.vue
index 7b9be1a..78c4cd0 100644
--- a/pages/analysis/auncel/auncel-status.vue
+++ b/pages/analysis/auncel/auncel-status.vue
@@ -1,22 +1,25 @@
-
-
-
-
-
-
- {{ getWeightText(auncel) }}
+
+
+
+
+
+
+
+ {{ getWeightText(auncel) }}
+
+ {{ auncel.weightUnit }}
- {{ auncel.weightUnit }}
-
-
-
+ 天平断开
+
+
+
@@ -114,7 +117,7 @@ function handleDeviceStatus(res) {
if (item.id === res.deviceId) {
item.isConnected = res.connected
if (res.connected == 0) {
- item.weightData = '天平断开'
+ item.weightData = ''
item.weightUnit = ''
item.weightStable = 0
}
@@ -135,7 +138,7 @@ function handleConnClose() {
function getWeightText(auncel) {
if (auncel.isConnected !== 1) {
- return '天平断开'
+ return ''
}
return auncel.weightData || ''
}
@@ -175,7 +178,21 @@ function getWeightStyle(auncel) {
padding: 10px;
box-sizing: border-box;
}
-
+.shade {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: rgba(31, 41, 55, 0.55);
+ color: #fff;
+ font-weight: 500;
+ z-index: 10;
+ border-radius: 8px;
+}
.auncel-header {
display: flex;
flex-direction: column;
diff --git a/pages/analysis/index/index.vue b/pages/analysis/index/index.vue
index b089d1b..d7f6d20 100644
--- a/pages/analysis/index/index.vue
+++ b/pages/analysis/index/index.vue
@@ -1,6 +1,12 @@
-
+
@@ -26,12 +32,21 @@ const popupShow = ref(false)
const isAllowAgainPrint = ref(false)
const menuItemList = ref([
- // { url: '/pages/analysis/sample/sample-receive', otherConf: { icon: 'arrow-downward' }, name: '收样' },
- { url: '/pages/analysis/sample/sample-work-list', otherConf: { icon: 'edit-pen-fill' }, name: '样品分析' },
- // { url: '/pages/analysis/sample/sample-report', otherConf: { icon: 'arrow-upward' }, name: '数据上报' },
- { url: '/pages/analysis/sample/sample-report-search', otherConf: { icon: 'search' }, name: '待审数据' },
- // { url: '/pages/analysis/sample/sample-print', otherConf: { icon: 'file-text-fill' }, name: '单据补打' },
- { url: '/pages/analysis/setting/setting', otherConf: { icon: 'setting-fill' }, name: '系统设置' }
+ {
+ url: '/pages/analysis/sample/sample-work-list',
+ otherConf: { icon: '/static/images/menus/sampleAnalysis.png' },
+ name: '样品分析'
+ },
+ {
+ url: '/pages/analysis/sample/sample-report-search',
+ otherConf: { icon: '/static/images/menus/records.png' },
+ name: '分析记录'
+ },
+ {
+ url: '/pages/analysis/auncel/auncel-status',
+ otherConf: { icon: '/static/images/menus/balance.png' },
+ name: '天平查看'
+ }
])
// 计算属性
diff --git a/pages/analysis/sample/components/task-item.vue b/pages/analysis/sample/components/task-item.vue
index 260d6e7..4856973 100644
--- a/pages/analysis/sample/components/task-item.vue
+++ b/pages/analysis/sample/components/task-item.vue
@@ -3,8 +3,11 @@
-
- {{ seq }}
+
+
+
+ {{ seq }}
+
{{ task.taskNo }}
diff --git a/pages/analysis/sample/sample-report-search.vue b/pages/analysis/sample/sample-report-search.vue
index 0ec8c3a..0a6b3fa 100644
--- a/pages/analysis/sample/sample-report-search.vue
+++ b/pages/analysis/sample/sample-report-search.vue
@@ -1,11 +1,10 @@
-
+
任务列表
-
+ >
+
+
+
+
+
+
@@ -33,33 +39,30 @@
-
-
-
+
+
+
【{{ index + 1 }}】
-
+
{{ sample.sampleAssayCode }}
- {{ getDataSourceTypeShow(sample.dataSourceType) }}{{ sample.sampleName }}
+ {{ sample.sampleName }}
-
+
- {{ sample.assayProject }}
+
-
+
@@ -88,20 +91,16 @@