+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset as number - 1) * (listQuery.limit as number) + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/api/business/fieldTest/apply.ts b/src/api/business/fieldTest/apply.ts
new file mode 100644
index 0000000..a4947d1
--- /dev/null
+++ b/src/api/business/fieldTest/apply.ts
@@ -0,0 +1,60 @@
+/**
+ * 现场检测审批
+ */
+import request from '../../index'
+import type { IListQuery } from '@/views/business/fieldTest/approve/approve-interface'
+
+// 列表查询
+export function getFieldTestApproveList(data: IListQuery) {
+ return request({
+ url: `/business/siteExecutive/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delFieldTestApproveList(data: any) {
+ return request({
+ url: '/business/siteExecutive/batchDelete',
+ method: 'post',
+ data,
+ })
+}
+
+// 提交
+export function submit(data: { formId: any; id: string; processId?: string }) {
+ return request({
+ url: '/business/siteExecutive/submit',
+ method: 'post',
+ data,
+ })
+}
+
+// 新增
+export function addFieldTestApproveList(data: object) {
+ return request({
+ url: '/business/siteExecutive/save',
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过-驳回编辑
+export function failUpdateFieldTestApprove(data: object) {
+ return request({
+ url: '/business/siteExecutive/failUpdate',
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑
+export function updateFieldTestApprove(data: object) {
+ return request({
+ url: '/business/siteExecutive/draftUpdate',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/src/api/business/fieldTest/record.ts b/src/api/business/fieldTest/record.ts
new file mode 100644
index 0000000..2c10aab
--- /dev/null
+++ b/src/api/business/fieldTest/record.ts
@@ -0,0 +1,42 @@
+/**
+ * 现场检测审批
+ */
+import request from '../../index'
+import type { IListQuery } from '@/views/business/fieldTest/record/record-interface'
+
+// 列表查询
+export function getFieldTestRecordList(data: IListQuery) {
+ return request({
+ url: `/business/siteExecutive/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delFieldTestApproveList(data: any) {
+ return request({
+ url: '/business/siteExecutive/batchDelete',
+ method: 'post',
+ data,
+ })
+}
+
+// 新增
+export function addFieldTestApproveList(data: object) {
+ return request({
+ url: '/business/siteExecutive/save',
+ method: 'post',
+ data,
+ })
+}
+
+// 编辑
+export function updateFieldTestApprove(data: object) {
+ return request({
+ url: '/business/siteExecutive/draftUpdate',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/src/api/business/subpackage/certificate.ts b/src/api/business/subpackage/certificate.ts
index a7e59fd..dba2e12 100644
--- a/src/api/business/subpackage/certificate.ts
+++ b/src/api/business/subpackage/certificate.ts
@@ -22,3 +22,22 @@
data,
})
}
+
+// 新建
+export function addCertificateList(data: Object) {
+ return request({
+ url: '/business/outsourceCertificate/add',
+ method: 'post',
+ responseType: 'blob',
+ data,
+ })
+}
+// 编辑
+export function updateCertificateList(data: Object) {
+ return request({
+ url: '/business/outsourceCertificate/update',
+ method: 'post',
+ responseType: 'blob',
+ data,
+ })
+}
diff --git a/src/router/modules/business.ts b/src/router/modules/business.ts
index 456fe93..5427add 100644
--- a/src/router/modules/business.ts
+++ b/src/router/modules/business.ts
@@ -504,18 +504,6 @@
auth: '/subpackage/certificate',
},
},
- // {
- // path: 'subpackage/certificate/detail/:id?',
- // name: 'subpackageCertificateDetail',
- // component: () => import('@/views/business/subpackage/certificate/edit.vue'),
- // meta: {
- // title: '分包证书管理',
- // icon: 'ep:key',
- // sidebar: false,
- // breadcrumb: true,
- // activeMenu: '/subpackage/certificate',
- // },
- // },
{
path: ':type/:id?',
name: 'subpackageCertificateDetail',
@@ -543,7 +531,7 @@
children: [
{
path: 'record',
- name: 'Record',
+ name: 'FieldTestRecord',
component: () => import('@/views/business/fieldTest/record/list.vue'),
meta: {
title: '现场检测记录',
@@ -552,8 +540,20 @@
},
},
{
+ path: 'record/:type/:id?',
+ name: 'FieldTestRecordDetail',
+ component: () => import('@/views/business/fieldTest/record/edit.vue'),
+ meta: {
+ title: '现场检测记录详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/fieldTest/record',
+ },
+ },
+ {
path: 'approve',
- name: 'Approve',
+ name: 'FieldTestApprove',
component: () => import('@/views/business/fieldTest/approve/list.vue'),
meta: {
title: '现场检测审批',
@@ -561,6 +561,18 @@
auth: '/fieldTest/approve',
},
},
+ {
+ path: 'approve/:type/:id?',
+ name: 'FieldTestApproveDetail',
+ component: () => import('@/views/business/fieldTest/approve/edit.vue'),
+ meta: {
+ title: '现场检测审批详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/fieldTest/approve',
+ },
+ },
],
},
]
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 49d2fec..4aa5ed1 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -26,4 +26,5 @@
BUSINESS_SUBPACKAGE_RECORD = 'ywglfbfda', // 分包方档案
BUSINESS_SUBPACKAGE_APPROVE = 'ywglfbfzg', // 分包方资格资格审批
BUSINESS_SUBPACKAGE_MANAGE = 'ywglfbzsgl', // 分包方证书管理
+ BUSINESS_FIELDTEST_APPROVE = 'ywglxcjc', // 现场检测审批
}
diff --git a/src/views/business/fieldTest/approve/approve-interface.ts b/src/views/business/fieldTest/approve/approve-interface.ts
new file mode 100644
index 0000000..aad0410
--- /dev/null
+++ b/src/views/business/fieldTest/approve/approve-interface.ts
@@ -0,0 +1,66 @@
+// 列表查询
+export interface IListQuery {
+ approvalStatus: string // 审批状态类型code
+ customerName: string // 委托方名称
+ directorName: string // 负责人
+ formId: string // 表单id
+ siteExecutiveNo: string // 现场检测编号
+ limit: number
+ offset: number
+}
+
+// 表格数据
+export interface IList {
+ id: string // 主键
+ siteExecutiveNo: string // 现场检测编号
+ customerName: string // 委托方名称
+ director: string // 联系人
+ phone: string // 电话
+ fullAddress: string // 委托方地址
+ executiveItem: string // 现场测试、校准或检定项目
+ directorName: string // 负责人
+ applyTime: string // 申请时间
+ approvalStatusName: string // 审批状态
+ processId: string // 流程实例id
+ taskId: string // 任务id-审批时使用
+}
+
+// 字典
+export interface dictType {
+ id: string
+ name: string
+ value: string | number
+ label?: string // 基本信息添加的信息名称
+}
+
+export interface IForm {
+ siteExecutiveNo: string // 现场检测编号
+ siteExecutiveName: string // 现场检测名字
+ applyPerson: string // 申请人
+ applyPersonName: string // 申请人名称
+ applyTime: string // 申请时间
+ directorName: string // 负责人
+ taskSource: string // 任务来源-字典code
+ taskSourceName: string // 任务来源-字典value
+ orderCode: string // 委托书编号
+ orderId: string // 委托书id
+ customerId: string // 委托方id
+ customerNo: string // 委托方代码
+ phone: string // 委托方电话
+ deliverer: string // 送检人
+ delivererTel: string // 送样人联系方式
+ customerName: string // 委托方名称
+ customerAddress: string // 委托方地址
+ preCost: string // 预计计量费用
+ preStartTime: string // 预计开始时间
+ preEndTime: string // 预计结束时间
+ executiveAddress: string // 检测地址
+ executiveEnvironment: string // 现场环境条件
+ executiveItem: string // 现场测试、校准或检定项目
+ hazardSourceAndPreventionMethod: string // 主要危害源及预防措施
+ meterStaffList: any // 现场测试、校准或检定人员
+ equipmentInfoList: any // 携带仪器设备
+ remark: string // 备注
+ processId: string // 流程实例id
+}
+
diff --git a/src/views/business/fieldTest/approve/edit.vue b/src/views/business/fieldTest/approve/edit.vue
new file mode 100644
index 0000000..c9be5b6
--- /dev/null
+++ b/src/views/business/fieldTest/approve/edit.vue
@@ -0,0 +1,797 @@
+
+
+
+