This commit is contained in:
2025-09-12 10:00:09 +08:00
19 changed files with 176 additions and 95 deletions

View File

@@ -60,6 +60,14 @@ export interface HouseChargeVO {
chargeStatus: string; chargeStatus: string;
personId: string; personId: string;
/**
* 单位
*/
residentUnitText: string;
/**
* 单位面积
*/
area: number;
} }
export interface HouseChargeForm extends BaseEntity { export interface HouseChargeForm extends BaseEntity {

View File

@@ -36,6 +36,7 @@ export interface Resident_unitVO {
*/ */
location: string; location: string;
locations: string[]; locations: string[];
locationDetail: string;
/** /**
* 入驻时间 * 入驻时间

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 436 KiB

View File

@@ -27,7 +27,7 @@ const [BasicModal, modalApi] = useVbenModal({
}, },
}); });
const orderDetail = shallowRef<null | WorkOrdersVO>(null); const orderDetail = ref<null | WorkOrdersVO>(null);
const handleRecords = ref<HandleRecords[]>([]) const handleRecords = ref<HandleRecords[]>([])
async function handleOpenChange(open: boolean) { async function handleOpenChange(open: boolean) {

View File

@@ -35,8 +35,8 @@ export const querySchema: FormSchemaGetter = () => [
export const columns: VxeGridProps['columns'] = [ export const columns: VxeGridProps['columns'] = [
{type: 'checkbox', width: 60}, {type: 'checkbox', width: 60},
{ {
title: '房屋', title: '单位',
field: 'roomName', field: 'residentUnitText',
minWidth: 150, minWidth: 150,
}, },
{ {
@@ -104,12 +104,33 @@ export const modalSchema: FormSchemaGetter = () => [
}, },
}, },
{ {
label: '房屋', label: '单位',
fieldName: 'roomId', fieldName: 'residentUnitId',
component: 'TreeSelect', component: 'Select',
componentProps: { componentProps: {
}, },
rules: 'selectRequired', rules: 'selectRequired',
formItemClass: 'col-span-2',
},
{
label: '入驻房间',
fieldName: 'roomInfo',
component: 'Input',
dependencies: {
show: (fromValue) => fromValue.residentUnitId,
triggerFields: ['residentUnitId'],
},
formItemClass: 'col-span-2',
},
{
label: '单位面积',
fieldName: 'area',
component: 'Input',
dependencies: {
show: (fromValue) => fromValue.residentUnitId,
triggerFields: ['residentUnitId'],
},
formItemClass: 'col-span-2',
}, },
{ {
label: '业主', label: '业主',

View File

@@ -59,11 +59,11 @@ async function handleOpenChange(open: boolean) {
<DescriptionsItem label="计费时间"> <DescriptionsItem label="计费时间">
{{ houseChargeDetail.startTime + ' 至 ' + houseChargeDetail.endTime }} {{ houseChargeDetail.startTime + ' 至 ' + houseChargeDetail.endTime }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="房间"> <DescriptionsItem label="单位">
{{ room?.roomNumber }} {{ houseChargeDetail?.residentUnitText }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="房间面积"> <DescriptionsItem label="单位面积">
{{ `建筑面积:${room?.area} 套内面积:${room?.insideInArea}` }} {{ `${houseChargeDetail?.area} (㎡)` }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="单价"> <DescriptionsItem label="单价">
{{ costItem?.unitPrice }} {{ costItem?.unitPrice }}

View File

@@ -121,11 +121,11 @@ async function handleClosed() {
<DescriptionsItem label="计费起始"> <DescriptionsItem label="计费起始">
{{ record.startTime }} {{ record.startTime }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="房间"> <DescriptionsItem label="单位">
{{ room?.roomNumber }} {{ record.residentUnitText }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="面积(㎡)"> <DescriptionsItem label="单位面积">
{{ `${room?.area} 套内面积:${room?.insideInArea}` }} {{ `${record.area} ` }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="单价"> <DescriptionsItem label="单价">
{{ costItem?.unitPrice }} {{ costItem?.unitPrice }}

View File

@@ -20,6 +20,7 @@ import type { CostItemSettingVO } from '#/api/property/costManagement/costItemSe
import { getDictOptions } from '#/utils/dict'; import { getDictOptions } from '#/utils/dict';
import { personList } from '#/api/property/resident/person'; import { personList } from '#/api/property/resident/person';
import { renderDictValue } from '#/utils/render'; import { renderDictValue } from '#/utils/render';
import {resident_unitInfo, resident_unitList} from "#/api/property/resident/unit";
const emit = defineEmits<{ reload: [] }>(); const emit = defineEmits<{ reload: [] }>();
@@ -32,7 +33,7 @@ const title = computed(() => {
const [BasicForm, formApi] = useVbenForm({ const [BasicForm, formApi] = useVbenForm({
commonConfig: { commonConfig: {
// 默认占满两列 // 默认占满两列
formItemClass: 'col-span-2', formItemClass: 'col-span-1',
// 默认label宽度 px // 默认label宽度 px
labelWidth: 80, labelWidth: 80,
// 通用配置项 会影响到所有表单项 // 通用配置项 会影响到所有表单项
@@ -54,7 +55,7 @@ const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff(
const [BasicModal, modalApi] = useVbenModal({ const [BasicModal, modalApi] = useVbenModal({
// 在这里更改宽度 // 在这里更改宽度
class: 'w-[550px]', class: 'w-[70%]',
fullscreenButton: false, fullscreenButton: false,
onBeforeClose, onBeforeClose,
onClosed: handleClosed, onClosed: handleClosed,
@@ -64,10 +65,10 @@ const [BasicModal, modalApi] = useVbenModal({
return null; return null;
} }
modalApi.modalLoading(true); modalApi.modalLoading(true);
await initRoomOptions(); await queryCostItemOptions(null);
await queryCostItemOptions();
await initCostTypeOptions(); await initCostTypeOptions();
await queryPersonData(); await queryPersonData();
await queryUnitData();
const { id } = modalApi.getData() as { id?: number | string }; const { id } = modalApi.getData() as { id?: number | string };
isUpdate.value = !!id; isUpdate.value = !!id;
@@ -111,46 +112,10 @@ async function handleClosed() {
resetInitialized(); resetInitialized();
} }
/**
* 房间数据
*/
async function initRoomOptions() {
const roomList = await communityTree(4);
const splitStr = '/';
handleNode(roomList, 'label', splitStr, function (node: any) {
if (node.level != 4) {
node.disabled = true;
}
});
formApi.updateSchema([
{
componentProps: () => ({
class: 'w-full',
fieldNames: {
key: 'id',
label: 'label',
value: 'code',
children: 'children',
},
placeholder: '请选择房间',
showSearch: true,
treeData: roomList,
treeDefaultExpandAll: true,
treeLine: { showLeafIcon: false },
// 筛选的字段
treeNodeFilterProp: 'label',
// 选中后显示在输入框的值
treeNodeLabelProp: 'fullName',
}),
fieldName: 'roomId',
},
]);
}
/** /**
* 查询费用项设置 * 查询费用项设置
*/ */
async function queryCostItemOptions(costType: string) { async function queryCostItemOptions(costType: string|null) {
let params = { let params = {
pageSize: 1000, pageSize: 1000,
pageNum: 1, pageNum: 1,
@@ -233,10 +198,57 @@ async function queryPersonData() {
}, },
]); ]);
} }
//查询入驻单位数据
async function queryUnitData() {
let params = {
pageSize: 1000,
pageNum: 1,
};
const res = await resident_unitList(params);
const options = res.rows.map((unit) => ({
label:unit.name,
value: unit.id,
}));
formApi.updateSchema([
{
componentProps: () => ({
options: options,
showSearch: true,
optionFilterProp: 'label',
optionLabelProp: 'label',
onChange: async (value: string) => {
if (value) {
await queryRoomByUnit(value);
}
},
}),
fieldName: 'residentUnitId',
},
]);
}
async function queryRoomByUnit(unitId: string) {
let unitInfo = await resident_unitInfo(unitId);
if(unitInfo&&unitInfo.locationDetail){
await formApi.setFieldValue('roomInfo', unitInfo.locationDetail);
await formApi.setFieldValue('area', unitInfo.area);
}
}
</script> </script>
<template> <template>
<BasicModal :title="title"> <BasicModal :title="title">
<BasicForm /> <BasicForm>
<template #roomInfo="slotProps">
<div>
{{slotProps.field.value}}
</div>
</template>
<template #area="slotProps">
<div>
{{slotProps.field.value}}
</div>
</template>
</BasicForm>
</BasicModal> </BasicModal>
</template> </template>

View File

@@ -6,7 +6,6 @@ import {cloneDeep} from '@vben/utils';
import {useVbenForm} from '#/adapter/form'; import {useVbenForm} from '#/adapter/form';
import { import {
houseChargeAdd,
houseChargeInfo, houseChargeInfo,
houseChargeUpdate houseChargeUpdate
} from '#/api/property/costManagement/houseCharge'; } from '#/api/property/costManagement/houseCharge';
@@ -123,11 +122,11 @@ async function handleClosed() {
<DescriptionsItem label="计费起始"> <DescriptionsItem label="计费起始">
{{ record.startTime }} {{ record.startTime }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="房间"> <DescriptionsItem label="单位">
{{ room?.roomNumber }} {{ record.residentUnitText }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="面积(㎡)"> <DescriptionsItem label="单位面积">
{{ `${room?.area} 套内面积:${room?.insideInArea}` }} {{ `${record.area} ` }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="单价"> <DescriptionsItem label="单价">
{{ costItem?.unitPrice }} {{ costItem?.unitPrice }}

View File

@@ -5,11 +5,11 @@ import { getDictOptions } from '#/utils/dict';
import { renderDict } from '#/utils/render'; import { renderDict } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [ export const querySchema: FormSchemaGetter = () => [
{ // {
component: 'Input', // component: 'Input',
fieldName: 'roomNumber', // fieldName: 'roomNumber',
label: '房屋', // label: '房屋',
}, // },
{ {
component: 'Select', component: 'Select',
componentProps: { componentProps: {

View File

@@ -42,7 +42,7 @@
</div> </div>
<div class="header-item"> <div class="header-item">
<span class="header-label">设备总数</span> <span class="header-label">设备总数</span>
<span class="header-value green">500</span> <span class="header-value green">{{total}}</span>
<span class="header-unit"></span> <span class="header-unit"></span>
</div> </div>
</div> </div>
@@ -160,6 +160,7 @@
<script setup lang="ts"> <script setup lang="ts">
import {getStatistics,getworkOrder,getTodayMeetCount,getHydropower,getAccessControl,getCamera,queryTwentyfourRunningDatasByPlNos,getVisitorCount} from '#/api/analytics'; import {getStatistics,getworkOrder,getTodayMeetCount,getHydropower,getAccessControl,getCamera,queryTwentyfourRunningDatasByPlNos,getVisitorCount} from '#/api/analytics';
import AnalyticsTrends from './analytics-trends.vue'; import AnalyticsTrends from './analytics-trends.vue';
import { computed } from 'vue';
import { Radio } from 'ant-design-vue'; import { Radio } from 'ant-design-vue';
import {EchartsUI, useEcharts} from "@vben/plugins/echarts"; import {EchartsUI, useEcharts} from "@vben/plugins/echarts";
@@ -194,10 +195,11 @@ const handleTodayMeetCount = async () => {
}; };
// 水 // 水
const water = ref(); const water = ref();
const waterTotal = ref();
const { renderEcharts: renderWater } = useEcharts(water); const { renderEcharts: renderWater } = useEcharts(water);
async function fetchWater() { async function fetchWater() {
const data = await getHydropower() const data = await getHydropower()
const total = data.water.off + data.water.on; waterTotal.value = data.water.off + data.water.on;
const waterData = [ const waterData = [
{ name: '离线', value: data.water.off }, { name: '离线', value: data.water.off },
{ name: '在线', value: data.water.on } { name: '在线', value: data.water.on }
@@ -229,7 +231,7 @@ async function fetchWater() {
label: { label: {
show: true, show: true,
position: 'center', position: 'center',
formatter: `${total}`, formatter: `${waterTotal.value}`,
fontSize: 14, fontSize: 14,
color: '#fff', color: '#fff',
fontWeight: 'bold' fontWeight: 'bold'
@@ -250,10 +252,11 @@ async function fetchWater() {
} }
// 电 // 电
const electricity = ref(); const electricity = ref();
const electricityTotal = ref();
const { renderEcharts: renderElectricity } = useEcharts(electricity); const { renderEcharts: renderElectricity } = useEcharts(electricity);
async function fetchElectricity() { async function fetchElectricity() {
const data = await getHydropower() const data = await getHydropower()
const total = data.power.off + data.power.on; electricityTotal.value = data.power.off + data.power.on;
const electricityData = [ const electricityData = [
{ name: '离线', value: data.power.off }, { name: '离线', value: data.power.off },
{ name: '在线', value: data.power.on } { name: '在线', value: data.power.on }
@@ -285,7 +288,7 @@ async function fetchElectricity() {
label: { label: {
show: true, show: true,
position: 'center', position: 'center',
formatter: `${total}`, formatter: `${electricityTotal.value}`,
fontSize: 14, fontSize: 14,
color: '#fff', color: '#fff',
fontWeight: 'bold' fontWeight: 'bold'
@@ -306,10 +309,11 @@ async function fetchElectricity() {
} }
// 门禁 // 门禁
const accessControl = ref(); const accessControl = ref();
const accessControlTotal = ref();
const { renderEcharts: renderAccessControl } = useEcharts(accessControl); const { renderEcharts: renderAccessControl } = useEcharts(accessControl);
async function fetchAccessControl() { async function fetchAccessControl() {
const data = await getAccessControl() const data = await getAccessControl()
const total = data.off + data.on; accessControlTotal.value = data.off + data.on;
const accessControlData = [ const accessControlData = [
{ name: '离线', value: data.off }, { name: '离线', value: data.off },
{ name: '在线', value: data.on } { name: '在线', value: data.on }
@@ -341,7 +345,7 @@ async function fetchAccessControl() {
label: { label: {
show: true, show: true,
position: 'center', position: 'center',
formatter: `${total}`, formatter: `${accessControlTotal.value}`,
fontSize: 14, fontSize: 14,
color: '#fff', color: '#fff',
fontWeight: 'bold' fontWeight: 'bold'
@@ -362,10 +366,11 @@ async function fetchAccessControl() {
} }
// 摄像头 // 摄像头
const camera = ref(); const camera = ref();
const cameraTotal = ref();
const { renderEcharts: renderCamera } = useEcharts(camera); const { renderEcharts: renderCamera } = useEcharts(camera);
async function fetchCamera() { async function fetchCamera() {
const data = await getCamera() const data = await getCamera()
const total = data.off + data.on; cameraTotal.value = data.off + data.on;
const cameraData = [ const cameraData = [
{ name: '离线', value: data.off }, { name: '离线', value: data.off },
{ name: '在线', value: data.on } { name: '在线', value: data.on }
@@ -397,7 +402,7 @@ async function fetchCamera() {
label: { label: {
show: true, show: true,
position: 'center', position: 'center',
formatter: `${total}`, formatter: `${cameraTotal.value}`,
fontSize: 14, fontSize: 14,
color: '#fff', color: '#fff',
fontWeight: 'bold' fontWeight: 'bold'
@@ -416,6 +421,9 @@ async function fetchCamera() {
] ]
}) })
} }
const total = computed(() => {
return Number(waterTotal.value) + Number(electricityTotal.value) + Number(cameraTotal.value) + Number(accessControlTotal.value);
});
//顶部 电 //顶部 电
const powerMonth = ref(); const powerMonth = ref();
const powerYear = ref(); const powerYear = ref();
@@ -530,14 +538,30 @@ const initBarChart = async () => {
const initPowerChart = async () => { const initPowerChart = async () => {
if (!powerChart.value) return; if (!powerChart.value) return;
const chart = echarts.init(powerChart.value); const chart = echarts.init(powerChart.value);
await getVisitorCount() const res = await getVisitorCount()
console.log(await getVisitorCount(),252) const visitorData = [];
const invitationData = [];
res.forEach(item => {
const { type, todayCounts } = item;
Object.entries(todayCounts).forEach(([date, count]) => {
const dataItem = { date, value: count };
if (type === "访客") {
visitorData.push(dataItem);
} else if (type === "邀约") {
invitationData.push(dataItem);
}
});
});
const dates = visitorData.map(item => item.date);
const visitor = visitorData.map(item => item.value);
const invitation = invitationData.map(item => item.value);
console.log(dates,1,visitor,2,invitation)
const option = { const option = {
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
grid: { left: 40, right: 20, top: 50, bottom: 20 }, grid: { left: 40, right: 20, top: 50, bottom: 20 },
xAxis: { xAxis: {
type: 'category', type: 'category',
data: [80, 120, 100, 180, 150, 120, 60, 40], data: dates,
axisLine: { lineStyle: { color: '#3ec6ff' } }, axisLine: { lineStyle: { color: '#3ec6ff' } },
axisLabel: { color: '#fff' }, axisLabel: { color: '#fff' },
}, },
@@ -549,8 +573,8 @@ const initPowerChart = async () => {
}, },
series: [ series: [
{ {
name: '车流', name: '访客',
data: [80, 180, 100, 180, 150, 120, 60, 40], data: visitor,
type: 'line', type: 'line',
smooth: true, smooth: true,
itemStyle: { color: '#b388ff' }, itemStyle: { color: '#b388ff' },
@@ -560,8 +584,8 @@ const initPowerChart = async () => {
symbolSize: 0, symbolSize: 0,
}, },
{ {
name: '去年', name: '邀约',
data: [80, 120, 100, 180, 150, 120, 60, 40], data: invitation,
type: 'line', type: 'line',
smooth: true, smooth: true,
itemStyle: { color: '#ffb300' }, itemStyle: { color: '#ffb300' },
@@ -680,7 +704,7 @@ onBeforeUnmount(() => {
} }
.mian { .mian {
height: 100vh; height: 100vh;
background: url('../../../assets/property/bg1.png'); background: url('../../../assets/property/bg.png');
background-size: 100% 100%; background-size: 100% 100%;
background-color: #081b3a; background-color: #081b3a;
display: flex; display: flex;

View File

@@ -1,11 +1,20 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, shallowRef } from 'vue'; import { ref, shallowRef } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { Descriptions, DescriptionsItem, Image, Tag,Divider } from 'ant-design-vue'; import {
Descriptions,
DescriptionsItem,
Divider,
Image,
Tag,
} from 'ant-design-vue';
import { queryAlarmEventAttachmentsList } from '#/api/sis/alarmEventAttachments'; import { queryAlarmEventAttachmentsList } from '#/api/sis/alarmEventAttachments';
import type { AlarmEventAttachmentsVO } from '#/api/sis/alarmEventAttachments/model'; import type { AlarmEventAttachmentsVO } from '#/api/sis/alarmEventAttachments/model';
import { fallImg } from '../../common'; import { fallImg } from '../../common';
import {alarmEventProcessList, queryResult} from '#/api/sis/alarmEventProcess'; import {
alarmEventProcessList,
queryResult,
} from '#/api/sis/alarmEventProcess';
import type { AlarmEventProcessVO } from '#/api/sis/alarmEventProcess/model'; import type { AlarmEventProcessVO } from '#/api/sis/alarmEventProcess/model';
const [BasicModal, modalApi] = useVbenModal({ const [BasicModal, modalApi] = useVbenModal({
@@ -34,8 +43,8 @@ async function handleOpenChange(open: boolean) {
} }
// 加载事件附件信息 // 加载事件附件信息
currFiles.value = await queryAlarmEventAttachmentsList(id); currFiles.value = await queryAlarmEventAttachmentsList(id);
const d = await queryResult(id) const d = await queryResult(id);
console.log(d) console.log(d);
// 加载处理流程 // 加载处理流程
loadProcessList(); loadProcessList();
modalApi.modalLoading(false); modalApi.modalLoading(false);
@@ -80,11 +89,11 @@ function loadProcessList() {
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="设备IP" <DescriptionsItem label="设备IP"
>{{ warningDetail.deviceIp }} >{{ warningDetail.deviceIp }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="设备名称" <DescriptionsItem label="设备名称"
>{{ warningDetail.deviceName }} >{{ warningDetail.deviceName }}
</DescriptionsItem> </DescriptionsItem>
<DescriptionsItem label="预警位置" :span="2"> <DescriptionsItem label="预警位置" :span="2">
{{ warningDetail.deviceName }} {{ warningDetail.deviceName }}
@@ -131,7 +140,8 @@ function loadProcessList() {
:column="2" :column="2"
bordered bordered
:labelStyle="{ width: '120px' }" :labelStyle="{ width: '120px' }"
style="margin-bottom: 30px"> style="margin-bottom: 30px"
>
<DescriptionsItem label="处理状态"> <DescriptionsItem label="处理状态">
<Tag> <Tag>
{{ warningDetail.stateName }} {{ warningDetail.stateName }}

View File

@@ -34,6 +34,15 @@ export const querySchema: FormSchemaGetter = () => [
fieldName: 'level', fieldName: 'level',
label: '预警级别', label: '预警级别',
}, },
{
component: 'Select',
componentProps: {
getPopupContainer,
options: getDictOptions(DictEnum.alarm_state, true),
},
fieldName: 'state',
label: '事件状态',
},
]; ];
export const columns: VxeGridProps['columns'] = [ export const columns: VxeGridProps['columns'] = [

View File

@@ -48,7 +48,7 @@ const gridOptions: VxeGridProps = {
return await alarmEventsList({ return await alarmEventsList({
pageNum: page.currentPage, pageNum: page.currentPage,
pageSize: page.pageSize, pageSize: page.pageSize,
state: 10, // state: 10,
...formValues, ...formValues,
}); });
}, },

View File

@@ -11,7 +11,6 @@ import type { AlarmEventProcessVO } from '#/api/sis/alarmEventProcess/model';
const [BasicModal, modalApi] = useVbenModal({ const [BasicModal, modalApi] = useVbenModal({
onOpenChange: handleOpenChange, onOpenChange: handleOpenChange,
onClosed() { onClosed() {
// warningDetail.value = null;
modalApi.close(); modalApi.close();
}, },
}); });

View File

@@ -17,7 +17,6 @@ import type { AlarmEventProcessVO } from '#/api/sis/alarmEventProcess/model';
const [BasicModal, modalApi] = useVbenModal({ const [BasicModal, modalApi] = useVbenModal({
onOpenChange: handleOpenChange, onOpenChange: handleOpenChange,
onClosed() { onClosed() {
// warningDetail.value = null;
modalApi.close(); modalApi.close();
}, },
}); });

View File

@@ -32,7 +32,6 @@ const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff(
currentGetter: defaultFormValueGetter(formApi), currentGetter: defaultFormValueGetter(formApi),
}, },
); );
let currentSelectData: any = null;
const [BasicModal, modalApi] = useVbenModal({ const [BasicModal, modalApi] = useVbenModal({
class: 'w-[70%]', class: 'w-[70%]',
fullscreenButton: false, fullscreenButton: false,
@@ -89,8 +88,8 @@ async function handleConfirm() {
}; };
await alarmEventComplete(params); await alarmEventComplete(params);
resetInitialized(); resetInitialized();
emit('reload');
modalApi.close(); modalApi.close();
emit('reload');
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} finally { } finally {