diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index 3a8447f..63f09d2 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -127,7 +127,7 @@ }) } -// 申请编辑 +// 申请编辑--草稿箱、已取消 export function updateStandardEquipmentApply(data: object) { return request({ url: '/standard/updateStandardEquipmentApply', @@ -136,6 +136,15 @@ }) } +// 申请编辑--未通过-驳回 +export function failUpdateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/failUpdate', + method: 'post', + data, + }) +} + // 批量添加标准装置底部计量人员 export function setBatchAdd(data: object) { return request({ diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index 3a8447f..63f09d2 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -127,7 +127,7 @@ }) } -// 申请编辑 +// 申请编辑--草稿箱、已取消 export function updateStandardEquipmentApply(data: object) { return request({ url: '/standard/updateStandardEquipmentApply', @@ -136,6 +136,15 @@ }) } +// 申请编辑--未通过-驳回 +export function failUpdateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/failUpdate', + method: 'post', + data, + }) +} + // 批量添加标准装置底部计量人员 export function setBatchAdd(data: object) { return request({ diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 85dc752..eff72d0 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -171,7 +171,7 @@ text-align: center; line-height: 20px; border-radius: 50%; - background: rgb(0 0 0 / 30%); - color: #fff; + background: #f5f7fa; + color: #bbabb2; cursor: pointer; } diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index 3a8447f..63f09d2 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -127,7 +127,7 @@ }) } -// 申请编辑 +// 申请编辑--草稿箱、已取消 export function updateStandardEquipmentApply(data: object) { return request({ url: '/standard/updateStandardEquipmentApply', @@ -136,6 +136,15 @@ }) } +// 申请编辑--未通过-驳回 +export function failUpdateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/failUpdate', + method: 'post', + data, + }) +} + // 批量添加标准装置底部计量人员 export function setBatchAdd(data: object) { return request({ diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 85dc752..eff72d0 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -171,7 +171,7 @@ text-align: center; line-height: 20px; border-radius: 50%; - background: rgb(0 0 0 / 30%); - color: #fff; + background: #f5f7fa; + color: #bbabb2; cursor: pointer; } diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index 510917f..35ae777 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -231,6 +231,9 @@ // 打印 const bindLabel = (row: ICerPrintList) => { // 判断状态第一次可以直接打印,之后的打印需要审批 + console.log('oooooo') + console.log(row) + if (row.printNum == 0) { ElMessageBox.confirm( '确定要打印吗?', @@ -241,6 +244,9 @@ type: 'warning', }, ).then(() => { + console.log('-----------') + + console.log(row) exportCert({ orderId: row.orderId, reason: row.reason, sampleId: row.sampleId, status: row.status }).then((res) => { console.log(res) }) diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index 3a8447f..63f09d2 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -127,7 +127,7 @@ }) } -// 申请编辑 +// 申请编辑--草稿箱、已取消 export function updateStandardEquipmentApply(data: object) { return request({ url: '/standard/updateStandardEquipmentApply', @@ -136,6 +136,15 @@ }) } +// 申请编辑--未通过-驳回 +export function failUpdateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/failUpdate', + method: 'post', + data, + }) +} + // 批量添加标准装置底部计量人员 export function setBatchAdd(data: object) { return request({ diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 85dc752..eff72d0 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -171,7 +171,7 @@ text-align: center; line-height: 20px; border-radius: 50%; - background: rgb(0 0 0 / 30%); - color: #fff; + background: #f5f7fa; + color: #bbabb2; cursor: pointer; } diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index 510917f..35ae777 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -231,6 +231,9 @@ // 打印 const bindLabel = (row: ICerPrintList) => { // 判断状态第一次可以直接打印,之后的打印需要审批 + console.log('oooooo') + console.log(row) + if (row.printNum == 0) { ElMessageBox.confirm( '确定要打印吗?', @@ -241,6 +244,9 @@ type: 'warning', }, ).then(() => { + console.log('-----------') + + console.log(row) exportCert({ orderId: row.orderId, reason: row.reason, sampleId: row.sampleId, status: row.status }).then((res) => { console.log(res) }) diff --git a/src/views/customer/bench/bench.vue b/src/views/customer/bench/bench.vue index 3b8f274..5e7d1d8 100644 --- a/src/views/customer/bench/bench.vue +++ b/src/views/customer/bench/bench.vue @@ -205,6 +205,7 @@ align="center" :label="item.text" :width="item.width" + show-overflow-tooltip /> @@ -260,6 +261,7 @@ align="center" :label="item.text" :width="item.width" + show-overflow-tooltip /> @@ -294,6 +296,7 @@ :prop="item.value" align="center" :label="item.text" + show-overflow-tooltip /> diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts index 3a8447f..63f09d2 100644 --- a/src/api/device/standard.ts +++ b/src/api/device/standard.ts @@ -127,7 +127,7 @@ }) } -// 申请编辑 +// 申请编辑--草稿箱、已取消 export function updateStandardEquipmentApply(data: object) { return request({ url: '/standard/updateStandardEquipmentApply', @@ -136,6 +136,15 @@ }) } +// 申请编辑--未通过-驳回 +export function failUpdateStandardEquipmentApply(data: object) { + return request({ + url: '/standard/failUpdate', + method: 'post', + data, + }) +} + // 批量添加标准装置底部计量人员 export function setBatchAdd(data: object) { return request({ diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 85dc752..eff72d0 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -171,7 +171,7 @@ text-align: center; line-height: 20px; border-radius: 50%; - background: rgb(0 0 0 / 30%); - color: #fff; + background: #f5f7fa; + color: #bbabb2; cursor: pointer; } diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index 510917f..35ae777 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -231,6 +231,9 @@ // 打印 const bindLabel = (row: ICerPrintList) => { // 判断状态第一次可以直接打印,之后的打印需要审批 + console.log('oooooo') + console.log(row) + if (row.printNum == 0) { ElMessageBox.confirm( '确定要打印吗?', @@ -241,6 +244,9 @@ type: 'warning', }, ).then(() => { + console.log('-----------') + + console.log(row) exportCert({ orderId: row.orderId, reason: row.reason, sampleId: row.sampleId, status: row.status }).then((res) => { console.log(res) }) diff --git a/src/views/customer/bench/bench.vue b/src/views/customer/bench/bench.vue index 3b8f274..5e7d1d8 100644 --- a/src/views/customer/bench/bench.vue +++ b/src/views/customer/bench/bench.vue @@ -205,6 +205,7 @@ align="center" :label="item.text" :width="item.width" + show-overflow-tooltip /> @@ -260,6 +261,7 @@ align="center" :label="item.text" :width="item.width" + show-overflow-tooltip /> @@ -294,6 +296,7 @@ :prop="item.value" align="center" :label="item.text" + show-overflow-tooltip /> diff --git a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue index 319f2c7..5b7e7c7 100644 --- a/src/views/device/deviceMaintenance/components/listApprovalAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApprovalAdd.vue @@ -3,6 +3,7 @@ import { ref } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' +import dayjs from 'dayjs' import type { IColumnsType, IlistApprovalAddTypes, dictType } from '../checkList_interface' import checkList from './checkList.vue' import { acceptanceCheckInfo, addAcceptanceCheck, equipmentApplyInfo, failUpdateAcceptanceCheckInfo, submitAcceptanceCheck, updateAcceptanceCheckInfo } from '@/api/device/checkList' @@ -11,10 +12,11 @@ import showPhoto from '@/views/system/tool/showPhoto.vue' import { getDictByCode } from '@/api/system/dict' import { SCHEDULE } from '@/utils/scheduleDict' - +import useUserStore from '@/store/modules/user' const infoId = ref('') // id const approvalStatusName = ref('') // 审批状态名称 const pageType = ref('add') // 页面类型: add,edit, detail +const user = useUserStore() // 用户信息 const textMap: { [key: string]: string } = { add: '新建', edit: '编辑', @@ -348,6 +350,8 @@ } onMounted(async () => { formInline.value.processId = $route.params.processId as string // 任务id + formInline.value.overhaulPerson = user.name + formInline.value.checkDate = dayjs().format('YYYY-MM-DD') // 编辑和详情页面获取详情信息 if (pageType.value !== 'add') { getInfo() // 获取详情信息 @@ -385,7 +389,7 @@ @@ -404,7 +408,7 @@