diff --git a/src/router/index.js b/src/router/index.js index 03d096db..396e6984 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -68,7 +68,7 @@ export const constantRoutes = [ children: [ { path: 'index', - component: () => import('@/views/screen/wsScreen/index'), + component: () => import('@/views/index_2'), name: 'Index', meta: { title: '首页', icon: 'dashboard', affix: true } }, diff --git a/src/views/EquipmentEntryApply/equipmentInput/add.vue b/src/views/EquipmentEntryApply/equipmentInput/add.vue index ef28dfda..7e7cd878 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/add.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/add.vue @@ -300,7 +300,7 @@ :value="form.inspectionList" :limit="3" :fileSize="10" - :fileType="['doc', 'docx', 'ppt', 'pdf']" + :fileType="['jpg', 'png', 'pdf']" @change="handleInspectionChange" /> @@ -311,7 +311,7 @@ :value="form.purchaseInvoices" :limit="3" :fileSize="10" - :fileType="['pdf', 'jpg', 'png', 'jpeg']" + :fileType="['jpg', 'png', 'pdf']" @change="handlePurchaseInvoicesChange" /> diff --git a/src/views/EquipmentEntryApproval/EquipmentDetailList.vue b/src/views/EquipmentEntryApproval/EquipmentDetailList.vue index 216d2f92..1b344051 100644 --- a/src/views/EquipmentEntryApproval/EquipmentDetailList.vue +++ b/src/views/EquipmentEntryApproval/EquipmentDetailList.vue @@ -207,7 +207,7 @@ a.orderNumber.localeCompare(b.orderNumber)) + let maxLength = 0 + this.tableData.forEach((item) => { + if (item.propertyVoList && item.propertyVoList.length > maxLength) { + maxLength = item.propertyVoList.length + } + }) + maxLength = maxLength > 0 ? maxLength * 2 : 0 + this.columns2 = this.columns.slice(0, this.columns.length - 18 + maxLength) }) .catch(error => { console.error('获取装备申请列表失败:', error) diff --git a/src/views/EquipmentEntryApproval/equipmentInput/index.vue b/src/views/EquipmentEntryApproval/equipmentInput/index.vue index e3d077fa..ad9bdbe4 100644 --- a/src/views/EquipmentEntryApproval/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApproval/equipmentInput/index.vue @@ -206,7 +206,7 @@ a.orderNumber.localeCompare(b.orderNumber)) + let maxLength = 0 + this.tableData.forEach((item) => { + if (item.propertyVoList && item.propertyVoList.length > maxLength) { + maxLength = item.propertyVoList.length + } + }) + maxLength = maxLength > 0 ? maxLength * 2 : 0 + this.columns2 = this.columns.slice(0, this.columns.length - 18 + maxLength) }) .catch(error => { console.error('获取装备申请列表失败:', error) diff --git a/src/views/EquipmentLedger/index.vue b/src/views/EquipmentLedger/index.vue index c650ffc1..2bf385ed 100644 --- a/src/views/EquipmentLedger/index.vue +++ b/src/views/EquipmentLedger/index.vue @@ -28,7 +28,7 @@ @click="getDeviceListByTreeSearch" title="查询" @keyup.enter.native="getDeviceListByTreeSearch" - style="margin-left: 10px;font-size: 16px;color: #C0C4CC" + style="margin-left: 10px; font-size: 16px; color: #c0c4cc" /> @@ -118,7 +118,7 @@ filterable style="width: 100%" > - + @@ -131,23 +131,18 @@ filterable style="width: 100%" > - + - + - + @@ -163,7 +158,7 @@ @change="majorChange" style="width: 100%" > - + @@ -191,7 +186,7 @@ - + @@ -247,12 +242,12 @@ - + - + @@ -263,23 +258,18 @@ clearable style="width: 100%" > - + - + - + @@ -290,12 +280,7 @@