diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/api/business/schedule/task.ts b/src/api/business/schedule/task.ts
index b9c1fa9..7cd0aaf 100644
--- a/src/api/business/schedule/task.ts
+++ b/src/api/business/schedule/task.ts
@@ -192,3 +192,20 @@
data,
})
}
+// 退检
+export function sendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure',
+ method: 'post',
+ data,
+ })
+}
+
+// 确定退检
+export function confirmSendBack(data: object) {
+ return request({
+ url: '/business/labExecutive/executive/noMeasure/confirm',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/components/excelEdit/index.vue b/src/components/excelEdit/index.vue
index bdb9ca3..2996951 100644
--- a/src/components/excelEdit/index.vue
+++ b/src/components/excelEdit/index.vue
@@ -2,61 +2,65 @@
-
-
-
-
+
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+
diff --git a/src/utils/download.ts b/src/utils/download.ts
index e7ffdb4..0851294 100644
--- a/src/utils/download.ts
+++ b/src/utils/download.ts
@@ -119,7 +119,7 @@
// 下载图片
const photo = ['jpg', 'jpeg', 'png']
const fileType = url.split('.')[url.split('.').length - 1]
- console.log(fileType, 'fileType')
+ console.log(fileType, 'fileType文件类型')
if (photo.includes(fileType)) {
// 图片 将服务器图片地址转化成本地地址
const image = new Image()
diff --git a/src/views/business/lab/certificateReportRetrieval/reportList.vue b/src/views/business/lab/certificateReportRetrieval/reportList.vue
index 9581187..e792799 100644
--- a/src/views/business/lab/certificateReportRetrieval/reportList.vue
+++ b/src/views/business/lab/certificateReportRetrieval/reportList.vue
@@ -140,7 +140,8 @@
background: 'rgba(255, 255, 255, 0.6)',
})
getPhotoUrl(row.printFileName).then((res) => {
- download(res.data, `${row.certificateName}.xlsx` as string)
+ const fileType = res.data.split('.')[res.data.split('.').length - 1]
+ download(res.data, `${row.certificateName}.${fileType}` as string)
loading.close()
}).catch(() => {
ElMessage.error('下载失败')
diff --git a/src/views/business/lab/components/sendBackDialog.vue b/src/views/business/lab/components/sendBackDialog.vue
new file mode 100644
index 0000000..d2f506a
--- /dev/null
+++ b/src/views/business/lab/components/sendBackDialog.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+ 取消
+
+
+
+
+
+
diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue
index 315e6a9..ada484b 100644
--- a/src/views/business/lab/deptMeasure/deptMeasureList.vue
+++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue
@@ -6,6 +6,7 @@
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
import DistributeDialog from '../../schedule/task/components/distributeDialog.vue'
import RollbackDialog from './../components/rollbackDialog.vue'
+import sendBackDialog from './../components/sendBackDialog.vue'
import batchDistributeDialog from '@/views/business/schedule/task/components/batchDistributeDialog.vue'
import type { ILabQuery, ITaskList, ITaskQuery } from '@/views/business/schedule/task/task-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -77,19 +78,6 @@
})
}
})
- // menu.value = menu.value.map(item => {
- // if(item.name === '待检测') {
- // return {
- // ...item,
- // name: '待分配',
- // id: '1'
- // }
- // } else {
- // return item
- // }
- // })
- console.log('-------', menu.value)
-
resolve(menu.value)
})
})
@@ -110,6 +98,7 @@
{ text: '样品属性', value: 'sampleBelongName', align: 'center', width: '100' },
{ text: '当前检定环节', value: 'currentSegment', align: 'center' },
// { text: '证书出具', value: 'certificationState', align: 'center', filter: (row: ITaskList) => { return `${row.currentCertifications}/${row.requireCertifications}` } },
+ { text: '备注', value: 'remark', align: 'center' },
])
// 表格数据
const list = ref([])
@@ -256,6 +245,12 @@
rollbackRef.value.initDialog(row)
}
+// 确定退检
+const sendBackRef = ref()
+const confirmSendBack = (row: any) => {
+ sendBackRef.value.initDialog(row, 'confirmSendBack')
+}
+
// 捡完
const mearsureOver = function (row: ITaskList) {
let param = [] as any
@@ -360,7 +355,7 @@
-
+
-
+
详情
@@ -460,10 +455,15 @@
退回
+
+ 确定退检
+
+
+
diff --git a/src/views/business/lab/excelEdit/index.vue b/src/views/business/lab/excelEdit/index.vue
index 6e7e28c..c5b8557 100644
--- a/src/views/business/lab/excelEdit/index.vue
+++ b/src/views/business/lab/excelEdit/index.vue
@@ -1,4 +1,4 @@
-
-
-
-
+