Compare commits
2 Commits
882e1f7452
...
c761c8ba0c
Author | SHA1 | Date | |
---|---|---|---|
c761c8ba0c | |||
553a915027 |
@ -20,7 +20,7 @@ export interface AttendanceAreaVO {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
reamark: string;
|
reamark: string;
|
||||||
|
areaDevice?: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AttendanceAreaForm extends BaseEntity {
|
export interface AttendanceAreaForm extends BaseEntity {
|
||||||
@ -43,7 +43,6 @@ export interface AttendanceAreaForm extends BaseEntity {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
reamark?: string;
|
reamark?: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AttendanceAreaQuery extends PageQuery {
|
export interface AttendanceAreaQuery extends PageQuery {
|
||||||
@ -63,7 +62,7 @@ export interface AttendanceAreaQuery extends PageQuery {
|
|||||||
reamark?: string;
|
reamark?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日期范围参数
|
* 日期范围参数
|
||||||
*/
|
*/
|
||||||
params?: any;
|
params?: any;
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,9 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
|
|
||||||
if (isUpdate.value && id) {
|
if (isUpdate.value && id) {
|
||||||
const record = await attendanceAreaInfo(id);
|
const record = await attendanceAreaInfo(id);
|
||||||
|
record.deviceManageId = record.areaDevice
|
||||||
|
.map((device: any) => device.remoteSisDeviceManage?.id || '')
|
||||||
|
.filter((id: string) => id);
|
||||||
await formApi.setValues(record);
|
await formApi.setValues(record);
|
||||||
}
|
}
|
||||||
await markInitialized();
|
await markInitialized();
|
||||||
|
@ -201,7 +201,7 @@ const modalSchema = [
|
|||||||
fieldName: 'signType',
|
fieldName: 'signType',
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options:getDictOptions('wy_bjqdfs')
|
options: getDictOptions('wy_bjqdfs'),
|
||||||
},
|
},
|
||||||
dependencies: {
|
dependencies: {
|
||||||
show: () => (isReadonly.value ? true : false),
|
show: () => (isReadonly.value ? true : false),
|
||||||
@ -213,10 +213,11 @@ const modalSchema = [
|
|||||||
fieldName: 'signImgUrl',
|
fieldName: 'signImgUrl',
|
||||||
component: 'ImageUpload',
|
component: 'ImageUpload',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
helpMessage:false
|
helpMessage: false,
|
||||||
},
|
},
|
||||||
dependencies: {
|
dependencies: {
|
||||||
show: (formValue) => (isReadonly.value&&formValue.signImgUrl ? true : false),
|
show: (formValue) =>
|
||||||
|
isReadonly.value && formValue.signImgUrl ? true : false,
|
||||||
triggerFields: [''],
|
triggerFields: [''],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -289,7 +290,6 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
if (!isOpen) {
|
if (!isOpen) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
console.log(isReadonly.value);
|
|
||||||
|
|
||||||
// 查询服务地址树形结构
|
// 查询服务地址树形结构
|
||||||
setupCommunitySelect();
|
setupCommunitySelect();
|
||||||
@ -314,6 +314,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
}
|
}
|
||||||
if ((isUpdate.value || isReadonly.value) && id) {
|
if ((isUpdate.value || isReadonly.value) && id) {
|
||||||
const record: any = await clean_orderInfo(id);
|
const record: any = await clean_orderInfo(id);
|
||||||
|
|
||||||
if (record.starTime) record.starTime = dayjs(record.starTime);
|
if (record.starTime) record.starTime = dayjs(record.starTime);
|
||||||
if (record.endTime) record.endTime = dayjs(record.endTime);
|
if (record.endTime) record.endTime = dayjs(record.endTime);
|
||||||
editUnitId.value = record.unitId || '';
|
editUnitId.value = record.unitId || '';
|
||||||
@ -496,7 +497,6 @@ async function handleConfirm() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const data = cloneDeep(await formApi.getValues());
|
const data = cloneDeep(await formApi.getValues());
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
// 单位数据缓存
|
// 单位数据缓存
|
||||||
if (unitListData.length === 0) {
|
if (unitListData.length === 0) {
|
||||||
@ -537,7 +537,6 @@ async function handleClosed() {
|
|||||||
// 获取服务地址
|
// 获取服务地址
|
||||||
async function setupCommunitySelect() {
|
async function setupCommunitySelect() {
|
||||||
const areaList = await communityTree(4);
|
const areaList = await communityTree(4);
|
||||||
console.log(areaList);
|
|
||||||
|
|
||||||
// 选中后显示在输入框的值 即父节点 / 子节点
|
// 选中后显示在输入框的值 即父节点 / 子节点
|
||||||
// addFullName(areaList, 'areaName', ' / ');
|
// addFullName(areaList, 'areaName', ' / ');
|
||||||
|
@ -6,7 +6,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
|||||||
import { getDictOptions } from '#/utils/dict';
|
import { getDictOptions } from '#/utils/dict';
|
||||||
import { renderDict } from '#/utils/render';
|
import { renderDict } from '#/utils/render';
|
||||||
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
|
import { costItemSettingList } from '#/api/property/costManagement/costItemSetting';
|
||||||
import { userList } from '#/api/system/user';
|
import { personList } from '#/api/property/resident/person';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询表单 schema
|
* 查询表单 schema
|
||||||
@ -23,12 +23,12 @@ export const querySchema: FormSchemaGetter = () => [
|
|||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const rows = await userList({ pageSize: 1000000000, pageNum: 1 });
|
const rows = await personList({ pageSize: 1000000000, pageNum: 1 });
|
||||||
return rows;
|
return rows;
|
||||||
},
|
},
|
||||||
resultField: 'rows',
|
resultField: 'rows',
|
||||||
labelField: 'userName',
|
labelField: 'userName',
|
||||||
valueField: 'userId',
|
valueField: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -141,7 +141,11 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const rows = await costItemSettingList({ pageSize: 1000000000, pageNum: 1, costType: '2' });
|
const rows = await costItemSettingList({
|
||||||
|
pageSize: 1000000000,
|
||||||
|
pageNum: 1,
|
||||||
|
costType: '2',
|
||||||
|
});
|
||||||
return rows;
|
return rows;
|
||||||
},
|
},
|
||||||
resultField: 'rows',
|
resultField: 'rows',
|
||||||
@ -208,12 +212,12 @@ export const addModalSchema: FormSchemaGetter = () => [
|
|||||||
rules: 'required',
|
rules: 'required',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const rows = await userList({ pageSize: 1000000000, pageNum: 1 });
|
const rows = await personList({ pageSize: 1000000000, pageNum: 1 });
|
||||||
return rows;
|
return rows;
|
||||||
},
|
},
|
||||||
resultField: 'rows',
|
resultField: 'rows',
|
||||||
labelField: 'userName',
|
labelField: 'userName',
|
||||||
valueField: 'userId',
|
valueField: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -242,7 +246,11 @@ export const addModalSchema: FormSchemaGetter = () => [
|
|||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const rows = await costItemSettingList({ pageSize: 1000000000, pageNum: 1, costType: '2' });
|
const rows = await costItemSettingList({
|
||||||
|
pageSize: 1000000000,
|
||||||
|
pageNum: 1,
|
||||||
|
costType: '2',
|
||||||
|
});
|
||||||
return rows;
|
return rows;
|
||||||
},
|
},
|
||||||
resultField: 'rows',
|
resultField: 'rows',
|
||||||
|
@ -48,11 +48,11 @@ const schema = [
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
api: async () => {
|
api: async () => {
|
||||||
const res = await personList({ pageSize: 1000000000, pageNum: 1 });
|
const res = await personList({ pageSize: 1000000000, pageNum: 1 });
|
||||||
return res.rows.map((item: any) => ({
|
return res;
|
||||||
label: item.userName,
|
|
||||||
value: item.id,
|
|
||||||
}));
|
|
||||||
},
|
},
|
||||||
|
resultField: 'rows',
|
||||||
|
labelField: 'userName',
|
||||||
|
valueField: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user