-
@@ -324,15 +305,6 @@
v-model="searchQuery.createTime" type="datetime" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="创建时间"
/>
-
@@ -341,8 +313,8 @@
-
-
+
+
查看
-
+
编辑
-
+
提交
-
-
+
+
同意
-
+
驳回
-
+
拒绝
-
+
取消
-
+
删除
diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts
index 7fa6610..9de249a 100644
--- a/src/api/business/cert.ts
+++ b/src/api/business/cert.ts
@@ -2,7 +2,7 @@
* 证书打印
*/
import request from '../index'
-import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface.ts'
+import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface'
// 证书打印列表
export function getCertList(data: ICertPrintSearch) {
@@ -45,6 +45,7 @@
return request({
url: '/business/certificatePrint/export',
method: 'post',
+ responseType: 'blob',
data,
})
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 9d4ec40..6c5dbf3 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -19,4 +19,5 @@
DEVICE_BORROW_APPROVAL = 'clsbjysp', // 设备借用申请
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
+ BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
}
diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts
index 4f274f3..12d7290 100644
--- a/src/views/business/schedule/certPrint/cert-interface.ts
+++ b/src/views/business/schedule/certPrint/cert-interface.ts
@@ -8,7 +8,12 @@
certificateReportType: string // 证书类型
printNum: number | '' // 打印次数 -未打印和全部用
approvalStatus: string // 审批状态-审批查询用
+ orderId: string // 委托书id
formId: string // 审批用formId
+ reason: string // 操作原因
+ sampleId: string // 样品id
+ status: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5)
+ ids?: []
offset: number
limit: number
}
@@ -39,6 +44,9 @@
approvalStatusName?: string // 审批状态
taskId?: string // 任务id
id: string // 主键
+ reason?: string // 操作原因
+ sampleId?: string // 样品id
+ status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5)
}
// 证书详情
@@ -89,21 +97,21 @@
// 证书导出
export interface ICertExport {
- orderId: number
- reason: string
- sampleId: number
- status: string
+ orderId: string
+ reason?: string // 操作原因
+ sampleId?: string // 样品id
+ status?: string // 状态变更(无需检测状态7,收入状态2,归还6,回退状态2.5.1,终止5)
}
// 证书同意/拒绝
export interface ICertApprove {
- comments: number
+ comments: string
id?: string
taskId: string
}
// 证书发起
export interface ICertInitiate {
- formId: number
+ formId: string
id: string
}
diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue
index 21b7a5f..3daa2b5 100644
--- a/src/views/business/schedule/certPrint/certList.vue
+++ b/src/views/business/schedule/certPrint/certList.vue
@@ -1,32 +1,25 @@
-
-
-
-
- {{ item.name }}
-
-
-
+
diff --git a/src/views/device/stateManage/components/templateAdd.vue b/src/views/device/stateManage/components/templateAdd.vue
index e11a9cd..05ba922 100644
--- a/src/views/device/stateManage/components/templateAdd.vue
+++ b/src/views/device/stateManage/components/templateAdd.vue
@@ -32,7 +32,7 @@
const dialogSelectDiviceVisible = ref(false) // 控制选择设备对话框显隐
const selectIndex = ref() // 点击选择的index--点击第几行
const borrowList = ref
([])
-
+const processId = ref('')
// 状态管理
const ruleForm1 = ref({
applyType: $route.query.applyType, // 申请类型
@@ -207,6 +207,7 @@
if (title.value !== '新建') {
console.log(row.id)
detailApply({ id: row.id }).then((res) => {
+ processId.value = res.data.processId // 流程id存在的时候赋值
ruleForm2.value = res.data
borrowList.value = res.data.equipmentInfoList
})
@@ -216,6 +217,7 @@
// 状态管理
if ($route.query.title !== '新建') {
detailStatus({ id: $route.params.id }).then((res) => {
+ processId.value = res.data.processId // 流程id存在的时候赋值
ruleForm1.value = res.data
ruleForm1.value.applyUnit = res.data.applyUnit
ruleForm1.value.equipmentNo = res.data.applyNo
@@ -241,7 +243,7 @@
if (valid) {
if (borrowList.value.length > 0) {
// 整理数据
- delete ruleForm2.value.equipmentInfoList // 去除显示的列表
+ // delete ruleForm2.value.equipmentInfoList // 去除显示的列表
ruleForm2.value.applyType = '2'
const params = {
...ruleForm2.value,
@@ -839,8 +841,9 @@
-
+
+
+