diff --git a/components/sample/auncel-select-popup.vue b/components/sample/auncel-select-popup.vue
index c011615..f358e63 100644
--- a/components/sample/auncel-select-popup.vue
+++ b/components/sample/auncel-select-popup.vue
@@ -49,7 +49,7 @@ const props = defineProps({
}
})
-const emit = defineEmits(['update:showAuncelSelector'])
+const emit = defineEmits(['update:showAuncelSelector', 'doSelect'])
// 响应式数据
const auncelList = ref([])
@@ -64,15 +64,12 @@ const open = () => {
}
const close = () => {
- console.log('auncel-selector close触发')
auncelList.value = []
- uni.$emit('auncelSelector_close')
closeDeviceListener()
emit('update:showAuncelSelector', false)
}
const getPageData = () => {
- uni.showLoading({ title: '加载中...' })
nx.$api.laboratory
.getDeviceLaboratoryListBy({
deviceType: 'auncel',
@@ -93,11 +90,6 @@ const getPageData = () => {
controlRealName: ''
}))
auncelList.value = dataList
- uni.hideLoading()
- })
- .catch(err => {
- console.error('加载天平列表失败:', err)
- uni.hideLoading()
})
}
@@ -109,7 +101,7 @@ const doSelect = index => {
return
}
- if (currentAuncel.controlRealName && currentAuncel.controlRealName !== userInfo.value.realname) {
+ if (currentAuncel.controlRealName && currentAuncel.controlRealName !== userInfo.value.nickname) {
uni.showToast({
title: `当前天平正被“${currentAuncel.controlRealName}”使用,请选择其他天平!`,
icon: 'none'
@@ -132,15 +124,15 @@ const doSelect = index => {
deviceCode: currentAuncel.code,
deviceName: currentAuncel.name,
isControl: true,
- controlRealName: userInfo.value.realname
+ controlRealName: userInfo.value.nickname
}
}
const sendControl = () => {
const controlData = JSON.stringify(controlDevice)
nx.$measure.send(controlData)
- console.log('controlDevice', controlData)
- uni.$emit('auncelSelector_doSelect', controlDevice)
+ emit('update:showAuncelSelector', false)
+ emit('doSelect', controlDevice)
}
if (delayFlag) {
@@ -159,7 +151,7 @@ const releaseDeviceControl = deviceId => {
data: {
deviceId,
isControl: false,
- controlRealName: userInfo.value.realname
+ controlRealName: userInfo.value.nickname
}
}
nx.$measure.send(JSON.stringify(controlDevice))
diff --git a/nx/api/assayTask.js b/nx/api/assayTask.js
index 4ea479f..16e0838 100644
--- a/nx/api/assayTask.js
+++ b/nx/api/assayTask.js
@@ -54,7 +54,10 @@ const execSendSample = data => {
return request({
url: '/qms/bus/qmsBusAssayTask/sendSample',
method: 'POST',
- data: data
+ data: data,
+ custom: {
+ showSuccess: true
+ }
})
}
diff --git a/pages.json b/pages.json
index 4ca7e0b..bb35813 100644
--- a/pages.json
+++ b/pages.json
@@ -160,13 +160,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/analysis/sample/sample-look",
- "style": {
- "navigationBarTitleText": "找样理样",
- "navigationStyle": "custom"
- }
- },
{
"path": "pages/analysis/sample/sample-receive",
"style": {
@@ -174,13 +167,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/analysis/sample/sample-weigh",
- "style": {
- "navigationBarTitleText": "样品称重",
- "navigationStyle": "custom"
- }
- },
{
"path": "pages/analysis/sample/sample-work-list",
"style": {
@@ -209,20 +195,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/analysis/auncel/auncel-weigh",
- "style": {
- "navigationBarTitleText": "样品称重",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/analysis/auncel/auncel-select",
- "style": {
- "navigationBarTitleText": "选择天平",
- "navigationStyle": "custom"
- }
- },
{
"path": "pages/analysis/sample/sample-report",
"style": {
@@ -237,20 +209,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/analysis/sample/sample-send",
- "style": {
- "navigationBarTitleText": "送样",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/analysis/sample/sample-review",
- "style": {
- "navigationBarTitleText": "样重复核",
- "navigationStyle": "custom"
- }
- },
{
"path": "pages/analysis/sample/sample-print",
"style": {
diff --git a/pages/analysis/auncel/auncel-weigh.vue b/pages/analysis/auncel/auncel-weigh.vue
deleted file mode 100644
index df89715..0000000
--- a/pages/analysis/auncel/auncel-weigh.vue
+++ /dev/null
@@ -1,839 +0,0 @@
-
-
-
-
-
-
-
- 待称重样品
-
-
-
-
-
- {{ currentAuncel.code === '' ? '电子天平' : currentAuncel.code }}
-
-
-
-
-
- 已称重样品
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.dataSourceType | getDataSourceTypeShow }}{{ sample.goodsName }}
-
-
-
-
-
-
-
-
-
-
-
- 顺序称重:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ currentSample.sort }}】 {{ currentSample.dataSourceType | getDataSourceTypeShow }}
-
-
-
- {{ currentSample.sampleCode }}
-
-
-
-
-
-
-
-
-
- 号杯
-
-
-
-
-
- %
-
-
-
-
-
-
-
-
- 号杯
-
-
-
-
-
-
-
-
-
- {{ currentAuncel.weightData }}
-
- {{ currentAuncel.weightUnit }}
-
-
-
-
-
-
-
- 确认采集
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
- {{ sample.cupNum }}号杯
-
-
- {{ sample.remarks }}
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.dataSourceType | getDataSourceTypeShow }}{{ sample.goodsName }}
-
-
- {{ sample.sampleWeight }} g
- 撤销
-
-
-
-
-
-
-
-
-
- 立即提交
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/analysis/sample/sample-look.vue b/pages/analysis/sample/sample-look.vue
deleted file mode 100644
index df7b44c..0000000
--- a/pages/analysis/sample/sample-look.vue
+++ /dev/null
@@ -1,237 +0,0 @@
-
-
-
-
-
-
- 任务列表
-
-
-
-
-
- 样品列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ task.taskNo }}
-
-
- {{ task.taskName }}
-
-
-
- {{ task.taskOperTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.sampleName }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/analysis/sample/sample-review.vue b/pages/analysis/sample/sample-review.vue
deleted file mode 100644
index 21f8d0b..0000000
--- a/pages/analysis/sample/sample-review.vue
+++ /dev/null
@@ -1,423 +0,0 @@
-
-
-
-
-
-
- 任务列表
-
-
-
-
-
- 样品列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ task.taskNo }}
-
-
- {{ task.taskName }}
-
-
-
- {{ task.taskOperTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.dataSourceType | getDataSourceTypeShow }}{{ sample.sampleName }}
-
-
- {{ sample.sampleWeight }} g
-
-
-
-
- {{ sample.cupNum }}号杯
-
-
- {{ sample.remarks }}
-
-
- {{ sample.measureTime | getWeightTimeShow }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 任务单退回复核
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/analysis/sample/sample-send.vue b/pages/analysis/sample/sample-send.vue
deleted file mode 100644
index 3e67ddf..0000000
--- a/pages/analysis/sample/sample-send.vue
+++ /dev/null
@@ -1,425 +0,0 @@
-
-
-
-
-
-
-
- 任务列表
-
-
-
-
-
- 样品列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ task.taskNo }}
-
-
- {{ task.taskName }}
-
-
-
- {{ task.taskOperTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.dataSourceType | getDataSourceTypeShow }}{{ sample.sampleName }}
-
-
-
- 状态异常:{{ sample.sampleProcessNo }}
-
-
-
-
-
-
-
-
-
-
-
-
- 确认送样
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/analysis/sample/sample-weigh.vue b/pages/analysis/sample/sample-weigh.vue
deleted file mode 100644
index 21580b0..0000000
--- a/pages/analysis/sample/sample-weigh.vue
+++ /dev/null
@@ -1,319 +0,0 @@
-
-
-
-
-
-
- 任务列表
-
-
-
-
-
- 样品列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ task.taskNo }}
-
-
- {{ task.taskName }}
-
-
-
- {{ task.taskOperTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 【{{ sample.sort }}】
-
-
-
-
- {{ sample.sampleCode }}
-
-
- {{ sample.dataSourceType | getDataSourceTypeShow }}{{ sample.sampleName }}
-
-
-
- {{ sample.sampleWeight }} g
-
-
-
-
-
-
-
-
-
-
-
-
-
- 开始秤样
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/analysis/sample/sample-work-detail.vue b/pages/analysis/sample/sample-work-detail.vue
index 404c243..d310afd 100644
--- a/pages/analysis/sample/sample-work-detail.vue
+++ b/pages/analysis/sample/sample-work-detail.vue
@@ -44,7 +44,7 @@
v-for="(sample, index) in leftList"
:key="index"
class="u-tab-item"
- :class="[current == index ? 'u-tab-item-active' : '']"
+ :class="[current.value === index ? 'u-tab-item-active' : '']"
:data-current="index"
@tap.stop="switchSample(index, false)"
>
@@ -60,22 +60,22 @@
提交指派单
-
+
-
+
{{ currentAuncel.code }}
-
-
+
+
- {{ fields.title }}
+ {{ fields.title }}
+
-
+
{{ field.valueText }}
请选择
dicPickerConfirm(event, field)"
/>
-
- {{
+
+ {{
field.placeholder
}}
{{ field.value }}
@@ -190,11 +193,13 @@
ref="auncelSelector"
v-model:showAuncelSelector="showAuncelSelector"
:previousAuncelId="currentAuncel.id"
+ @doSelect="auncelDoSelect"
>
-
+