diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index e2ff064..27faff8 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -12,6 +12,7 @@ import { UploadFile, addApi, confirmDrafts, submitFile } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' import showPhoto from '@/views/system/tool/showPhoto.vue' +import { SCHEDULE } from '@/utils/scheduleDict' const $route = useRoute() const $router = useRouter() const ruleFormRef = ref() // from组件 @@ -36,6 +37,7 @@ createUser: '', // 创建人 createUserId: '', // 创建人id id: '', + formId: SCHEDULE.FILE_APPROVAL, }) // 表单 const rules = ref({ fileName: [{ required: true, message: '名称不能为空', trigger: 'blur' }], @@ -130,7 +132,7 @@ confirmDrafts(ruleForm).then((res) => { if (res.code == 200) { console.log(res.data, '保存成功') - submitFile({ id: res.data.id }).then((res) => { + submitFile({ id: res.data.id, formId: SCHEDULE.FILE_APPROVAL }).then((res) => { formEl?.resetFields() ElMessage.success('提交成功') $router.go(-1) @@ -234,20 +236,18 @@ - - + + - - - - + + diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index e2ff064..27faff8 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -12,6 +12,7 @@ import { UploadFile, addApi, confirmDrafts, submitFile } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' import showPhoto from '@/views/system/tool/showPhoto.vue' +import { SCHEDULE } from '@/utils/scheduleDict' const $route = useRoute() const $router = useRouter() const ruleFormRef = ref() // from组件 @@ -36,6 +37,7 @@ createUser: '', // 创建人 createUserId: '', // 创建人id id: '', + formId: SCHEDULE.FILE_APPROVAL, }) // 表单 const rules = ref({ fileName: [{ required: true, message: '名称不能为空', trigger: 'blur' }], @@ -130,7 +132,7 @@ confirmDrafts(ruleForm).then((res) => { if (res.code == 200) { console.log(res.data, '保存成功') - submitFile({ id: res.data.id }).then((res) => { + submitFile({ id: res.data.id, formId: SCHEDULE.FILE_APPROVAL }).then((res) => { formEl?.resetFields() ElMessage.success('提交成功') $router.go(-1) @@ -234,20 +236,18 @@ - - + + - - - - + + diff --git a/src/views/measure/file/components/approve/addDialog.vue b/src/views/measure/file/components/approve/addDialog.vue new file mode 100644 index 0000000..f7f9b42 --- /dev/null +++ b/src/views/measure/file/components/approve/addDialog.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index e2ff064..27faff8 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -12,6 +12,7 @@ import { UploadFile, addApi, confirmDrafts, submitFile } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' import showPhoto from '@/views/system/tool/showPhoto.vue' +import { SCHEDULE } from '@/utils/scheduleDict' const $route = useRoute() const $router = useRouter() const ruleFormRef = ref() // from组件 @@ -36,6 +37,7 @@ createUser: '', // 创建人 createUserId: '', // 创建人id id: '', + formId: SCHEDULE.FILE_APPROVAL, }) // 表单 const rules = ref({ fileName: [{ required: true, message: '名称不能为空', trigger: 'blur' }], @@ -130,7 +132,7 @@ confirmDrafts(ruleForm).then((res) => { if (res.code == 200) { console.log(res.data, '保存成功') - submitFile({ id: res.data.id }).then((res) => { + submitFile({ id: res.data.id, formId: SCHEDULE.FILE_APPROVAL }).then((res) => { formEl?.resetFields() ElMessage.success('提交成功') $router.go(-1) @@ -234,20 +236,18 @@ - - + + - - - - + + diff --git a/src/views/measure/file/components/approve/addDialog.vue b/src/views/measure/file/components/approve/addDialog.vue new file mode 100644 index 0000000..f7f9b42 --- /dev/null +++ b/src/views/measure/file/components/approve/addDialog.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/measure/file/components/approve/templatePage.vue b/src/views/measure/file/components/approve/templatePage.vue index 08b03c3..9b5c151 100644 --- a/src/views/measure/file/components/approve/templatePage.vue +++ b/src/views/measure/file/components/approve/templatePage.vue @@ -1,36 +1,43 @@ @@ -259,20 +255,20 @@
- + - + - + - + - + - - - - + @@ -337,22 +323,22 @@ +
diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index e2ff064..27faff8 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -12,6 +12,7 @@ import { UploadFile, addApi, confirmDrafts, submitFile } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' import showPhoto from '@/views/system/tool/showPhoto.vue' +import { SCHEDULE } from '@/utils/scheduleDict' const $route = useRoute() const $router = useRouter() const ruleFormRef = ref() // from组件 @@ -36,6 +37,7 @@ createUser: '', // 创建人 createUserId: '', // 创建人id id: '', + formId: SCHEDULE.FILE_APPROVAL, }) // 表单 const rules = ref({ fileName: [{ required: true, message: '名称不能为空', trigger: 'blur' }], @@ -130,7 +132,7 @@ confirmDrafts(ruleForm).then((res) => { if (res.code == 200) { console.log(res.data, '保存成功') - submitFile({ id: res.data.id }).then((res) => { + submitFile({ id: res.data.id, formId: SCHEDULE.FILE_APPROVAL }).then((res) => { formEl?.resetFields() ElMessage.success('提交成功') $router.go(-1) @@ -234,20 +236,18 @@ - - + + - - - - + + diff --git a/src/views/measure/file/components/approve/addDialog.vue b/src/views/measure/file/components/approve/addDialog.vue new file mode 100644 index 0000000..f7f9b42 --- /dev/null +++ b/src/views/measure/file/components/approve/addDialog.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/measure/file/components/approve/templatePage.vue b/src/views/measure/file/components/approve/templatePage.vue index 08b03c3..9b5c151 100644 --- a/src/views/measure/file/components/approve/templatePage.vue +++ b/src/views/measure/file/components/approve/templatePage.vue @@ -1,36 +1,43 @@ @@ -259,20 +255,20 @@
- + - + - + - + - + - - - - + @@ -337,22 +323,22 @@ +
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue index b45c38b..2f40ba2 100644 --- a/src/views/measure/file/components/templatePage.vue +++ b/src/views/measure/file/components/templatePage.vue @@ -8,6 +8,7 @@ // import { exportExcel } from '@/utils/exportXlsx' import { uploadApi } from '@/api/system/notice' import { exportFile } from '@/utils/exportUtils' +import { SCHEDULE } from '@/utils/scheduleDict' const props = defineProps({ name: { type: String, @@ -37,6 +38,7 @@ offset: 1, fileType: '', // 类型 ids: [] as string[], + formId: SCHEDULE.FILE_APPROVAL, }) // 查询参数 watch(() => publishTime.value, (newVal) => { if (newVal) { diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 4e41e86..7bde3f8 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -143,6 +143,18 @@ auth: '/file/approve', }, }, + { + path: 'approvedetail/:id?', + name: 'approveDetail', + component: () => import('@/views/measure/file/components/approve/addDialog.vue'), + meta: { + title: '文件审批', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/file/approve', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/handleList.vue b/src/views/device/borrow/components/handleList.vue index 3926c2d..7f3ea3e 100644 --- a/src/views/device/borrow/components/handleList.vue +++ b/src/views/device/borrow/components/handleList.vue @@ -78,25 +78,25 @@ // }).catch((_) => { // loadingTable.value = false // }) - list.value = [ - { - applyName: '借用测试设备', - applyNo: '1433223', - applyUnit: '顶级', - applyPerson: '张三', - time: '2020-12-12 00:00:00', - approvalStatusName: '审批中', - }, - { - applyName: '借用电脑', - applyNo: '1433223', - applyUnit: '徐州分中心', - applyPerson: '里斯', - time: '2020-12-12 00:00:00', - approvalStatusName: '已通过', - }, - ] as any - total.value = 2 + // list.value = [ + // { + // applyName: '借用测试设备', + // applyNo: '1433223', + // applyUnit: '顶级', + // applyPerson: '张三', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '审批中', + // }, + // { + // applyName: '借用电脑', + // applyNo: '1433223', + // applyUnit: '徐州分中心', + // applyPerson: '里斯', + // time: '2020-12-12 00:00:00', + // approvalStatusName: '已通过', + // }, + // ] as any + // total.value = 2 } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 const changePage = (val: { size?: number; page?: number }) => { diff --git a/src/views/device/stateManage/components/templateList.vue b/src/views/device/stateManage/components/templateList.vue index c1b20e7..5b7e91a 100644 --- a/src/views/device/stateManage/components/templateList.vue +++ b/src/views/device/stateManage/components/templateList.vue @@ -100,7 +100,10 @@ loadingTable.value = true getDictByCode('managerState').then((response) => { if (response.code === 200) { - console.log(response.data, 'response') + console.log(response.data, 'response') // 状态 + + // 根据闲置,封存,启封等状态获取不同的列表 + // 接口未写好 getStatusList(searchQuery).then((res) => { if (res.code === 200) { list.value = res.data.rows diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue index e2ff064..27faff8 100644 --- a/src/views/measure/file/components/addDialog.vue +++ b/src/views/measure/file/components/addDialog.vue @@ -12,6 +12,7 @@ import { UploadFile, addApi, confirmDrafts, submitFile } from '@/api/measure/file' import type { userType } from '@/views/system/user/user-interface' import showPhoto from '@/views/system/tool/showPhoto.vue' +import { SCHEDULE } from '@/utils/scheduleDict' const $route = useRoute() const $router = useRouter() const ruleFormRef = ref() // from组件 @@ -36,6 +37,7 @@ createUser: '', // 创建人 createUserId: '', // 创建人id id: '', + formId: SCHEDULE.FILE_APPROVAL, }) // 表单 const rules = ref({ fileName: [{ required: true, message: '名称不能为空', trigger: 'blur' }], @@ -130,7 +132,7 @@ confirmDrafts(ruleForm).then((res) => { if (res.code == 200) { console.log(res.data, '保存成功') - submitFile({ id: res.data.id }).then((res) => { + submitFile({ id: res.data.id, formId: SCHEDULE.FILE_APPROVAL }).then((res) => { formEl?.resetFields() ElMessage.success('提交成功') $router.go(-1) @@ -234,20 +236,18 @@ - - + + - - - - + + diff --git a/src/views/measure/file/components/approve/addDialog.vue b/src/views/measure/file/components/approve/addDialog.vue new file mode 100644 index 0000000..f7f9b42 --- /dev/null +++ b/src/views/measure/file/components/approve/addDialog.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/measure/file/components/approve/templatePage.vue b/src/views/measure/file/components/approve/templatePage.vue index 08b03c3..9b5c151 100644 --- a/src/views/measure/file/components/approve/templatePage.vue +++ b/src/views/measure/file/components/approve/templatePage.vue @@ -1,36 +1,43 @@ @@ -259,20 +255,20 @@
- + - + - + - + - + - - - - + @@ -337,22 +323,22 @@ +
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue index b45c38b..2f40ba2 100644 --- a/src/views/measure/file/components/templatePage.vue +++ b/src/views/measure/file/components/templatePage.vue @@ -8,6 +8,7 @@ // import { exportExcel } from '@/utils/exportXlsx' import { uploadApi } from '@/api/system/notice' import { exportFile } from '@/utils/exportUtils' +import { SCHEDULE } from '@/utils/scheduleDict' const props = defineProps({ name: { type: String, @@ -37,6 +38,7 @@ offset: 1, fileType: '', // 类型 ids: [] as string[], + formId: SCHEDULE.FILE_APPROVAL, }) // 查询参数 watch(() => publishTime.value, (newVal) => { if (newVal) { diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts index 585d618..b7a47a5 100644 --- a/src/views/measure/file/file-interface.ts +++ b/src/views/measure/file/file-interface.ts @@ -14,6 +14,7 @@ effectiveEndTime: string effectiveStartTime: string ids: string[] + formId: string } // 文件返回值类型 export interface fileListType {