Compare commits
4 Commits
f6f258c9b7
...
faababd9a4
Author | SHA1 | Date | |
---|---|---|---|
faababd9a4 | |||
c7f52fa107 | |||
28018815b7 | |||
bad1423acd |
@@ -1,8 +1,7 @@
|
|||||||
import type { FormSchemaGetter } from '#/adapter/form';
|
import type { FormSchemaGetter } from '#/adapter/form';
|
||||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||||
import { getDictOptions } from '#/utils/dict';
|
import { getDictOptions } from '#/utils/dict';
|
||||||
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
|
import {renderDict} from "#/utils/render";
|
||||||
import {meterReadingTypeList} from '#/api/property/costManagement/meterReadingType';
|
|
||||||
|
|
||||||
export const querySchema: FormSchemaGetter = () => [
|
export const querySchema: FormSchemaGetter = () => [
|
||||||
{
|
{
|
||||||
@@ -27,7 +26,12 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '费用类型',
|
title: '费用类型',
|
||||||
field: 'itemId',
|
field: 'costType',
|
||||||
|
slots: {
|
||||||
|
default: ({ row }) => {
|
||||||
|
return renderDict(row.costType, 'wy_cbfylx');
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '抄表类型',
|
title: '抄表类型',
|
||||||
@@ -97,7 +101,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
// return {
|
// return {
|
||||||
// api: async ()=>{
|
// api: async ()=>{
|
||||||
// console.log(values);
|
// console.log(values);
|
||||||
|
|
||||||
// const rows = await costItemSettingList({pageSize:1000000000,pageNum:1,costType:values.costType});
|
// const rows = await costItemSettingList({pageSize:1000000000,pageNum:1,costType:values.costType});
|
||||||
// return rows;
|
// return rows;
|
||||||
// },
|
// },
|
||||||
@@ -118,7 +122,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
// return {
|
// return {
|
||||||
// api: async()=>{
|
// api: async()=>{
|
||||||
// const rows = await meterReadingTypeList({pageSize:1000000000,pageNum:1,costType:values.costType=='5'?0:1});
|
// const rows = await meterReadingTypeList({pageSize:1000000000,pageNum:1,costType:values.costType=='5'?0:1});
|
||||||
// return rows;
|
// return rows;
|
||||||
// },
|
// },
|
||||||
// resultField:'rows',
|
// resultField:'rows',
|
||||||
// labelField:'name',
|
// labelField:'name',
|
||||||
|
@@ -29,15 +29,6 @@ const formOptions: VbenFormProps = {
|
|||||||
},
|
},
|
||||||
schema: querySchema(),
|
schema: querySchema(),
|
||||||
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4',
|
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4',
|
||||||
// 处理区间选择器RangePicker时间格式 将一个字段映射为两个字段 搜索/导出会用到
|
|
||||||
// 不需要直接删除
|
|
||||||
// fieldMappingTime: [
|
|
||||||
// [
|
|
||||||
// 'createTime',
|
|
||||||
// ['params[beginTime]', 'params[endTime]'],
|
|
||||||
// ['YYYY-MM-DD 00:00:00', 'YYYY-MM-DD 23:59:59'],
|
|
||||||
// ],
|
|
||||||
// ],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const gridOptions: VxeGridProps = {
|
const gridOptions: VxeGridProps = {
|
||||||
|
@@ -44,8 +44,8 @@ async function handleOpenChange(open: boolean) {
|
|||||||
<DescriptionsItem label="访客身份证">
|
<DescriptionsItem label="访客身份证">
|
||||||
{{ visitorTodoDetail.idCard }}
|
{{ visitorTodoDetail.idCard }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="人脸图片">
|
<DescriptionsItem label="人脸图片" v-if="visitorTodoDetail.facePictures" :span="2">
|
||||||
{{ visitorTodoDetail.facePictures }}
|
<img :src="visitorTodoDetail.facePictures" alt="图片加载失败" class="w-[100px] h-[100px]"/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="所属公司">
|
<DescriptionsItem label="所属公司">
|
||||||
{{ visitorTodoDetail.visitorUnit}}
|
{{ visitorTodoDetail.visitorUnit}}
|
||||||
@@ -65,7 +65,7 @@ async function handleOpenChange(open: boolean) {
|
|||||||
/>
|
/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="拜访时间">
|
<DescriptionsItem label="拜访时间">
|
||||||
{{ visitorTodoDetail.visitingBeginTime+' - '+visitorTodoDetail.visitingBeginTime }}
|
{{ visitorTodoDetail.visitingBeginTime+' - '+visitorTodoDetail.visitingEndTime }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<!-- <DescriptionsItem label="是否预约车位" v-if="visitorTodoDetail.bookingParkingSpace!=null">-->
|
<!-- <DescriptionsItem label="是否预约车位" v-if="visitorTodoDetail.bookingParkingSpace!=null">-->
|
||||||
<!-- <component-->
|
<!-- <component-->
|
||||||
|
Reference in New Issue
Block a user