diff --git a/src/views/EquipmentEntryApply/EquipmentDetailList.vue b/src/views/EquipmentEntryApply/EquipmentDetailList.vue
index a5474c4e..b7b2439f 100644
--- a/src/views/EquipmentEntryApply/EquipmentDetailList.vue
+++ b/src/views/EquipmentEntryApply/EquipmentDetailList.vue
@@ -96,9 +96,9 @@
-
+
+ min-width="200" />
@@ -145,7 +145,7 @@
查看
-
@@ -240,6 +240,7 @@ export default {
pageSize: 10
},
manufacturerList: [],
+ columns2: [],
columns: [
{ key: 26, label: `特征项1`, prop: 'featureItem1', visible: true },
{ key: 27, label: `特征值1`, prop: 'featureValue1', visible: true },
@@ -298,6 +299,18 @@ export default {
// 按 orderNumber 排序,确保相同订单连续
this.tableData.sort((a, b) => 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)
+
+ setTimeout(() => {
+ this.$refs.tableRef.doLayout()
+ }, 200)
})
.catch(error => {
console.error('获取装备申请列表失败:', error)
diff --git a/src/views/EquipmentEntryApply/equipmentInput/add.vue b/src/views/EquipmentEntryApply/equipmentInput/add.vue
index f2d26383..2224f8ee 100644
--- a/src/views/EquipmentEntryApply/equipmentInput/add.vue
+++ b/src/views/EquipmentEntryApply/equipmentInput/add.vue
@@ -12,7 +12,7 @@
{{ pageTitle }}
@@ -512,7 +512,13 @@ export default {
},
// 返回上一页
goBack() {
- this.$tab.closePage()
+ // this.$tab.closePage()
+ this.$router.go(-1)
+ },
+ close() {
+ this.$tab.closePage({ path: '/equipment/equipment-input/add' }).then(() => {
+ this.$router.go(-1)
+ })
},
deviceTypeChange(val) {
if (val === 0) {
diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue
index ee586693..3f51e451 100644
--- a/src/views/EquipmentEntryApply/equipmentInput/index.vue
+++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue
@@ -170,7 +170,6 @@
align="center"
show-overflow-tooltip
column-key="orderNumber"
- fixed
min-width="200"
/>
@@ -205,7 +204,7 @@
-
+
-
-
+
+
@@ -257,7 +256,7 @@
-
+ /> -->
-
+
-
+
@@ -390,6 +390,10 @@ export default {
})
maxLength = maxLength > 0 ? maxLength * 2 : 0
this.columns2 = this.columns.slice(0, this.columns.length - 18 + maxLength)
+
+ setTimeout(() => {
+ this.$refs.tableRef.doLayout()
+ }, 200)
})
.catch(error => {
console.error('获取装备申请列表失败:', error)
diff --git a/src/views/EquipmentEntryApproval/equipmentInput/index.vue b/src/views/EquipmentEntryApproval/equipmentInput/index.vue
index ad9bdbe4..b4c8d03e 100644
--- a/src/views/EquipmentEntryApproval/equipmentInput/index.vue
+++ b/src/views/EquipmentEntryApproval/equipmentInput/index.vue
@@ -141,11 +141,11 @@
重置
-
+
全部通过
-
+
全部驳回
@@ -154,11 +154,11 @@
-
+
-
+
@@ -238,23 +238,25 @@
-
- 查看
+
+ 查看
- 通过
+ 通过
- 驳回
+ 驳回
@@ -350,7 +352,7 @@ export default {
},
mounted() {
const { orderId, status, orderStatus, isAddVisible, isApprovalVisible } = this.$route.query
- this.isAddVisible = isAddVisible == 'true'
+ this.isAddVisible = isAddVisible
if (orderId) {
this.queryParams.orderId = orderId
this.orderStatus = status || orderStatus
@@ -387,6 +389,10 @@ export default {
})
maxLength = maxLength > 0 ? maxLength * 2 : 0
this.columns2 = this.columns.slice(0, this.columns.length - 18 + maxLength)
+
+ setTimeout(() => {
+ this.$refs.tableRef.doLayout()
+ }, 200)
})
.catch(error => {
console.error('获取装备申请列表失败:', error)
diff --git a/src/views/EquipmentLedger/index.vue b/src/views/EquipmentLedger/index.vue
index 2bf385ed..c0cd78a0 100644
--- a/src/views/EquipmentLedger/index.vue
+++ b/src/views/EquipmentLedger/index.vue
@@ -319,6 +319,7 @@
0 ? maxLength * 2 : 0
this.columns2 = this.columns.slice(0, this.columns.length - 18 + maxLength)
+
+ setTimeout(() => {
+ this.$refs.tableRef.doLayout()
+ }, 200)
} catch (error) {
// this.$message.error('获取设备列表失败:' + (error.message || '未知错误'))
console.error(error)