diff --git a/admin/src/views/pm/check/in-or-out/components/CheckIn.vue b/admin/src/views/pm/check/in-or-out/components/CheckIn.vue index b10f017..21cb062 100644 --- a/admin/src/views/pm/check/in-or-out/components/CheckIn.vue +++ b/admin/src/views/pm/check/in-or-out/components/CheckIn.vue @@ -16,9 +16,48 @@ + + + + + + + + + + + + + + + + label="钥匙交接状态" + :formatter="sysYesNoFormatter"> + label="是否申请装修" + :formatter="sysYesNoFormatter"> item.id === cellValue) - return owner ? `${owner.ownerName} (${owner.id})` : cellValue + return owner ? `${owner.ownerName}` : cellValue } else if (row.userType === '2') { // 租户类型 const tenant = this.tenantList.find(item => item.id === cellValue) - return tenant ? `${tenant.tenantName} (${tenant.id})` : cellValue + return tenant ? `${tenant.tenantName}` : cellValue } return cellValue }, @@ -338,10 +388,16 @@ const tenantHouse = this.tenantHouseList.find(item => item.id === cellValue) if (tenantHouse) { // 构建更友好的租赁信息显示格式 - return `月租金: ${tenantHouse.rentAmount || 0}元 - ${tenantHouse.rentBeginTime || ''}至${tenantHouse.rentEndTime || ''}` + return `${tenantHouse.rentBeginTime || ''}至${tenantHouse.rentEndTime || ''}` } return cellValue }, + // 是/否字典格式化 + sysYesNoFormatter(row, column, cellValue) { + if (!cellValue) return '' + const dict = this.dict.type.sys_yes_no?.find(item => item.value === cellValue) + return dict ? dict.label : cellValue + }, } } diff --git a/admin/src/views/pm/check/in-or-out/components/CheckOut.vue b/admin/src/views/pm/check/in-or-out/components/CheckOut.vue index bad27c7..84d0439 100644 --- a/admin/src/views/pm/check/in-or-out/components/CheckOut.vue +++ b/admin/src/views/pm/check/in-or-out/components/CheckOut.vue @@ -1,6 +1,11 @@ + + diff --git a/admin/src/views/pm/pmowner/index.vue b/admin/src/views/pm/pmowner/index.vue index 6ab10c6..6a3dd52 100644 --- a/admin/src/views/pm/pmowner/index.vue +++ b/admin/src/views/pm/pmowner/index.vue @@ -1,20 +1,8 @@