diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue index 824572f..9d9e488 100644 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue @@ -399,7 +399,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择筹建日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -503,7 +503,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择考核日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -564,7 +564,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择有效日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> @@ -599,7 +599,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择发证日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue index 824572f..9d9e488 100644 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue @@ -399,7 +399,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择筹建日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -503,7 +503,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择考核日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -564,7 +564,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择有效日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> @@ -599,7 +599,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择发证日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue index bbaae75..b2ef7cf 100644 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ b/src/views/business/schedule/interchangeReceipt/selectOrder.vue @@ -147,6 +147,7 @@ message: '请选中', type: 'warning', }) + return } // 将选择好的样品传给父组件 emits('confirmCheckout', checkoutList.value) diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue index 824572f..9d9e488 100644 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue @@ -399,7 +399,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择筹建日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -503,7 +503,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择考核日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -564,7 +564,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择有效日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> @@ -599,7 +599,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择发证日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue index bbaae75..b2ef7cf 100644 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ b/src/views/business/schedule/interchangeReceipt/selectOrder.vue @@ -147,6 +147,7 @@ message: '请选中', type: 'warning', }) + return } // 将选择好的样品传给父组件 emits('confirmCheckout', checkoutList.value) diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue index 37bfead..b6f79f9 100644 --- a/src/views/customer/advice/adviceList.vue +++ b/src/views/customer/advice/adviceList.vue @@ -245,7 +245,7 @@ v-model="timeRange" type="datetimerange" range-separator="到" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" start-placeholder="投诉查询开始时间" end-placeholder="投诉查询结束时间" diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue index 824572f..9d9e488 100644 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue @@ -399,7 +399,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择筹建日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -503,7 +503,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择考核日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -564,7 +564,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择有效日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> @@ -599,7 +599,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择发证日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue index bbaae75..b2ef7cf 100644 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ b/src/views/business/schedule/interchangeReceipt/selectOrder.vue @@ -147,6 +147,7 @@ message: '请选中', type: 'warning', }) + return } // 将选择好的样品传给父组件 emits('confirmCheckout', checkoutList.value) diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue index 37bfead..b6f79f9 100644 --- a/src/views/customer/advice/adviceList.vue +++ b/src/views/customer/advice/adviceList.vue @@ -245,7 +245,7 @@ v-model="timeRange" type="datetimerange" range-separator="到" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" start-placeholder="投诉查询开始时间" end-placeholder="投诉查询结束时间" diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index d440968..b6c115c 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -18,7 +18,15 @@ managerPoinLocation: string // 管理点位置 remark: string // 备注 updateTime: null | string // 更新时间 - + approvalStatusName: string // 审批状态名称 +} +// 标准配套设备表头类型 +export interface columnsType { + text: string + value: string + align: string + required: boolean + width?: string } // 下拉框类型 export interface IOptions { @@ -142,3 +150,20 @@ export interface IManageChecklist { id: string } +export interface IButton { + name: string // 按钮名称 + type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' + proxy?: string // 权限 + show?: Function // 是否显示 +} +export interface menuType { + name: string + value: string +} +// 字典 +export interface dictType { + id: string + name: string + value: string | number + label?: string // 基本信息添加的信息名称 +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts index 6afd53a..f12a3bd 100644 --- a/src/api/device/checkList.ts +++ b/src/api/device/checkList.ts @@ -107,6 +107,14 @@ data, }) } +// 设备检修列表编辑-未通过-驳回编辑 +export function failUpdateEquipmentApply(data: object) { + return request({ + url: '/equipmentApply/failUpdate', + method: 'post', + data, + }) +} // 设备检修保养验收单保存 export function addAcceptanceCheck(data: object) { diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue index 9cbd57f..2490650 100644 --- a/src/components/AddressSelect/AddressSelect.vue +++ b/src/components/AddressSelect/AddressSelect.vue @@ -11,6 +11,13 @@ default: () => [], }, /** + * 是否显示详细地址 + */ + isShowDetailedAddress: { + type: Boolean, + default: true, + }, + /** * 是否可编辑 */ disabled: { @@ -160,7 +167,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.province" placeholder="省" - :disabled="detail" + :disabled="detail || !addressObj.country" class="address-select" @change="provinceChange" > @@ -184,7 +191,7 @@ v-if="!detail && (addressObj.country === '' || addressObj.country === 'CN')" v-model="addressObj.city" placeholder="市" - :disabled="detail" + :disabled="detail || !addressObj.province" class="address-select" @change="cityChange" > @@ -209,7 +216,7 @@ v-model="addressObj.area" placeholder="区/县" class="address-select" - :disabled="detail" + :disabled="detail || !addressObj.city" @change="areaChange" > props.approvalRecordData, (newValue) => { diff --git a/src/components/buttonBox/buttonBox.ts b/src/components/buttonBox/buttonBox.ts index 96daa58..b339554 100644 --- a/src/components/buttonBox/buttonBox.ts +++ b/src/components/buttonBox/buttonBox.ts @@ -1,4 +1,5 @@ export interface IMenu { name: string // 名字 - id: string + id?: string + value?: string } diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 2fe1125..77e2576 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -410,9 +410,9 @@ }, }, { - path: 'maintenanceList/:type/:id?/:processId?', + path: 'maintenanceList/:type/:id?/:approvalStatusName?/:processId?', name: 'maintenanceAdd', - component: () => import('@/views/device/deviceMaintenance/components/listPageAdd.vue'), + component: () => import('@/views/device/deviceMaintenance/components/maintenanceDetail.vue'), meta: { title: '设备检修列表', icon: 'ep:key', diff --git a/src/views/business/bench/bench.vue b/src/views/business/bench/bench.vue index 2e90deb..f846c51 100644 --- a/src/views/business/bench/bench.vue +++ b/src/views/business/bench/bench.vue @@ -190,13 +190,13 @@ myTestsPieTitle.value = 41 }, 1) // 按钮跳转数据 -const buttomTypes = ref([ - { id: '1', text: '证书打印', url: '/train/trainLog' }, - { id: '2', text: '环境记录单', url: '/person/remind' }, - { id: '3', text: '原始记录', url: '/source/list' }, - { id: '4', text: '现场检测申请', url: '/measureDept/ks' }, - { id: '5', text: '分包项目登记', url: '/measureDept/gcz' }, - { id: '6', text: '分包方档案', url: '/person/list' }, +const buttonTypes = ref([ + { id: '1', text: '证书打印', url: '/schedule/certPrintList' }, + { id: '2', text: '环境记录单', url: '/lab/environmentalList' }, + { id: '3', text: '原始记录', url: '/lab/primitiveLogList' }, + { id: '4', text: '现场检测申请', url: '' }, + { id: '5', text: '分包项目登记', url: '' }, + { id: '6', text: '分包方档案', url: '' }, ]) // 当前进行中样品状态数据 const statusData = ref([ @@ -205,6 +205,15 @@ { name: '检测中', number: '135' }, { name: '成编制报告', number: '135' }, ]) +const router = useRouter() + +// 点击按钮组 +const handleClickButton = (id: string) => { + const index = buttonTypes.value.findIndex(item => item.id === id) + if (index !== -1 && buttonTypes.value[index].url) { + router.push(buttonTypes.value[index].url) + } +} function calcBlockSize() { // 计算工作台区域高度 - 顶部-面包屑-边距 @@ -222,7 +231,6 @@
{{ item.text }}
@@ -352,7 +361,6 @@ diff --git a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue index 824572f..9d9e488 100644 --- a/src/views/business/lab/reportOnCredentials/components/baseInfo.vue +++ b/src/views/business/lab/reportOnCredentials/components/baseInfo.vue @@ -399,7 +399,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择筹建日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -503,7 +503,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择考核日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :disabled="buttonType === 'detail'" /> @@ -564,7 +564,7 @@ type="datetime" style="width: 100%;" :placeholder="buttonType === 'detail' ? '' : '请选择有效日期'" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> @@ -599,7 +599,7 @@ type="datetime" :placeholder="buttonType === 'detail' ? '' : '请选择发证日期'" style="width: 100%;" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" disabled /> diff --git a/src/views/business/schedule/interchangeReceipt/selectOrder.vue b/src/views/business/schedule/interchangeReceipt/selectOrder.vue index bbaae75..b2ef7cf 100644 --- a/src/views/business/schedule/interchangeReceipt/selectOrder.vue +++ b/src/views/business/schedule/interchangeReceipt/selectOrder.vue @@ -147,6 +147,7 @@ message: '请选中', type: 'warning', }) + return } // 将选择好的样品传给父组件 emits('confirmCheckout', checkoutList.value) diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue index 37bfead..b6f79f9 100644 --- a/src/views/customer/advice/adviceList.vue +++ b/src/views/customer/advice/adviceList.vue @@ -245,7 +245,7 @@ v-model="timeRange" type="datetimerange" range-separator="到" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" start-placeholder="投诉查询开始时间" end-placeholder="投诉查询结束时间" diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts index d440968..b6c115c 100644 --- a/src/views/device/deviceMaintenance/checkList_interface.ts +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -18,7 +18,15 @@ managerPoinLocation: string // 管理点位置 remark: string // 备注 updateTime: null | string // 更新时间 - + approvalStatusName: string // 审批状态名称 +} +// 标准配套设备表头类型 +export interface columnsType { + text: string + value: string + align: string + required: boolean + width?: string } // 下拉框类型 export interface IOptions { @@ -142,3 +150,20 @@ export interface IManageChecklist { id: string } +export interface IButton { + name: string // 按钮名称 + type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' + proxy?: string // 权限 + show?: Function // 是否显示 +} +export interface menuType { + name: string + value: string +} +// 字典 +export interface dictType { + id: string + name: string + value: string | number + label?: string // 基本信息添加的信息名称 +} diff --git a/src/views/device/deviceMaintenance/components/listApproval.vue b/src/views/device/deviceMaintenance/components/listApproval.vue index bf45d1e..a236a10 100644 --- a/src/views/device/deviceMaintenance/components/listApproval.vue +++ b/src/views/device/deviceMaintenance/components/listApproval.vue @@ -59,6 +59,7 @@ text: '验收单编号', value: 'applyNo', align: 'center', + width: '160', }, { text: '验收单名称', @@ -84,6 +85,7 @@ text: '检修日期', value: 'createTime', align: 'center', + width: '120', }, { text: '审批状态', @@ -96,12 +98,6 @@ const buttonArray = ref([]) // 选中的内容 const checkoutList = ref([]) -// 文件上传input -const fileRef = ref() -// 删除id -const deleteId = ref('') -// 详情id -const infoId = ref('0') // 装载时间数组 const checkTime = ref('') // 点击按钮 @@ -183,9 +179,7 @@ const searchList = () => { fetchData(false) } -const cancelEvent = () => { - console.log('cancel!') -} + // 点击重置 const clearList = () => { listQuery.value = { @@ -383,7 +377,7 @@ v-model="checkTime" type="datetimerange" range-separator="到" - format="YYYY/MM/DD HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" start-placeholder="检查日期开始时间" end-placeholder="检查日期结束时间" @@ -398,10 +392,10 @@