删除旧代码

This commit is contained in:
1378012178@qq.com 2026-02-28 09:38:51 +08:00
parent b51fd4f356
commit 3665a826ce
5 changed files with 0 additions and 1447 deletions

View File

@ -1,90 +0,0 @@
import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/service/appraisal/list',
approval='/service/appraisal/approval',
save='/service/appraisal/add',
edit='/service/appraisal/edit',
deleteOne = '/service/appraisal/delete',
deleteBatch = '/service/appraisal/deleteBatch',
importExcel = '/service/appraisal/importExcel',
exportXls = '/service/appraisal/exportXls',
queryDataById = '/service/appraisal/queryById',
subList = '/service/appraisal/queryAppraisalSubByMainId',
}
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
/**
* api
*/
export const getImportUrl = Api.importExcel;
/**
*
* @param params
*/
export const queryAppraisalSubByMainId = (id) => defHttp.get({url: Api.subList, params:{ id }});
/**
*
* @param params
*/
export const list = (params) =>
defHttp.get({url: Api.list, params});
/**
*
* @param params
*/
export const approval = (params,) => {
return defHttp.post({url: Api.approval, params});
}
/**
*
*/
export const deleteOne = (params,handleSuccess) => {
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/**
*
* @param params
*/
export const batchDelete = (params, handleSuccess) => {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除选中数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
});
}
/**
*
* @param params
*/
export const saveOrUpdate = (params, isUpdate) => {
let url = isUpdate ? Api.edit : Api.save;
return defHttp.post({url: url, params});
}
/**
* id查询数据
* @param params
*/
export const queryDataById = (id) => defHttp.get({url: Api.queryDataById, params:{ id }});

View File

@ -1,737 +0,0 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '单号',
align:"center",
dataIndex: 'orderNo'
},
{
title: '手动拍照',
align:"center",
dataIndex: 'manuallyPicPath'
},
{
title: '手动录制',
align:"center",
dataIndex: 'manuallyMp4Path'
},
{
title: '工单类型',
align:"center",
dataIndex: 'orderType_dictText'
},
{
title: '执行类型',
align:"center",
dataIndex: 'optType_dictText'
},
{
title: '护理单元名称',
align:"center",
dataIndex: 'nuName'
},
{
title: '长者名称',
align:"center",
dataIndex: 'elderName'
},
{
title: '执行人',
align:"center",
dataIndex: 'optNames'
},
// {
// title: '员工姓名',
// align:"center",
// dataIndex: 'employeeName'
// },
{
title: '是否指令包',
align:"center",
dataIndex: 'izPackage_dictText'
},
{
title: '指令名称',
align:"center",
dataIndex: 'directiveName'
},
{
title: '周期类型',
align:"center",
dataIndex: 'cycleType'
},
// {
// title: '是否开始',
// align:"center",
// dataIndex: 'izStart_dictText'
// },
{
title: '是否完成',
align:"center",
dataIndex: 'izFinish_dictText'
},
// {
// title: '发起人姓名',
// align:"center",
// dataIndex: 'initiatorName'
// },
{
title: '是否超时',
align:"center",
dataIndex: 'izTimeout_dictText'
},
{
title: '预计开始时间',
align:"center",
dataIndex: 'startTime'
},
{
title: '预计结束时间',
align:"center",
dataIndex: 'endTime'
},
// {
// title: '实际开始员工',
// align:"center",
// dataIndex: 'beginEmp'
// },
{
title: '实际开始时间',
align:"center",
dataIndex: 'beginTime'
},
// {
// title: '实际结束员工',
// align:"center",
// dataIndex: 'finishEmp'
// },
{
title: '实际结束时间',
align:"center",
dataIndex: 'finishTime'
},
{
title: '服务时长(分钟)',
align:"center",
dataIndex: 'serviceDuration'
},
{
title: '服务容错时长',
align:"center",
dataIndex: 'timeoutDuration'
},
{
title: '收费价格',
align:"center",
dataIndex: 'tollPrice'
},
{
title: '提成价格',
align:"center",
dataIndex: 'comPrice'
},
{
title: '实际提成价格',
align:"center",
dataIndex: 'realComPrice'
},
{
title: '考核状态',
align:"center",
dataIndex: 'appraisalStatus_dictText'
},
{
title: '考核时间',
align:"center",
dataIndex: 'appraisalTime'
},
{
title: '考核人',
align:"center",
dataIndex: 'appraisalName'
},
];
//子表列表数据
export const subColumns: BasicColumn[] = [
{
title: '单号',
align:"center",
dataIndex: 'orderNo'
},
{
title: '手动拍照',
align:"center",
dataIndex: 'manuallyPicPath'
},
{
title: '手动录制',
align:"center",
dataIndex: 'manuallyMp4Path'
},
{
title: '摄像头录制',
align:"center",
dataIndex: 'tplinkPath'
},
{
title: '分类标签',
align:"center",
dataIndex: 'instructionTagName'
},
{
title: '服务类别',
align:"center",
dataIndex: 'categoryName'
},
{
title: '服务类型',
align:"center",
dataIndex: 'typeName'
},
{
title: '指令名称',
align:"center",
dataIndex: 'directiveName'
},
{
title: '服务时长(分钟)',
align:"center",
dataIndex: 'serviceDuration'
},
// {
// title: '收费价格',
// align:"center",
// dataIndex: 'tollPrice'
// },
// {
// title: '提成价格',
// align:"center",
// dataIndex: 'comPrice'
// },
];
//表单配置
export const jVxeSubColumns: JVxeColumn[] = [
{
title: '单号',
key: 'orderNo',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '工单类型 1护理;2医疗:3仓库;4行政',
key: 'orderType',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '主表IDnu_biz_nu_directive_order.id',
key: 'mainId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '护理单元IDnu_base_info.id',
key: 'nuId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '护理单元名称',
key: 'nuName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '长者IDnu_biz_elder_info.id',
key: 'elderId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '长者名称',
key: 'elderName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '员工ID',
key: 'employeeId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '员工姓名',
key: 'employeeName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '分类标签',
key: 'instructionTagId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '分类标签名称',
key: 'instructionTagName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务类别IDnu_config_service_category.id',
key: 'categoryId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务类别名称',
key: 'categoryName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务类型IDnu_config_service_type.id',
key: 'typeId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务类型名称',
key: 'typeName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令IDnu_config_service_directive.id',
key: 'directiveId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令名称',
key: 'directiveName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '周期类型ID',
key: 'cycleTypeId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '周期类型',
key: 'cycleType',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '周期值',
key: 'cycleValue',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令图片大图',
key: 'previewFile',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令图片小图',
key: 'previewFileSmall',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '语音文件',
key: 'mp3File',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '视频文件',
key: 'mp4File',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务时长(分钟)',
key: 'serviceDuration',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务说明',
key: 'serviceContent',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '收费价格',
key: 'tollPrice',
type: JVxeTypes.inputNumber,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '提成价格',
key: 'comPrice',
type: JVxeTypes.inputNumber,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '实际提成价格',
key: 'realComPrice',
type: JVxeTypes.inputNumber,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令包ID',
key: 'packageId',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务指令包名称',
key: 'packageName',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '是否是服务指令包 Y是 N否',
key: 'izPackage',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '开始时间',
key: 'startTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '结束时间',
key: 'endTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '实际开始时间',
key: 'beginTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '实际结束时间',
key: 'finishTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '是否开始 Y是 N否',
key: 'izStart',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '是否完成 Y是 N否',
key: 'izFinish',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '创建人',
key: 'createBy',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '创建日期',
key: 'createTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '更新人',
key: 'updateBy',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '更新日期',
key: 'updateTime',
type: JVxeTypes.datetime,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: 'tplink下载地址',
key: 'tplinkPath',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '手动拍照',
key: 'manuallyPicPath',
type: JVxeTypes.textarea,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '手动录制',
key: 'manuallyMp4Path',
type: JVxeTypes.textarea,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '执行类型 1单人 2协助 3转单',
key: 'optType',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '服务容错时长end_time + 这个时间) 小于 begin_time算超时',
key: 'timeoutDuration',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '是否超时 Y超时 N未超时',
key: 'izTimeout',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '实际执行人id多个 主要执行人+协助人',
key: 'optIds',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '实际执行人名称(多个); 主要执行人+协助人',
key: 'optNames',
type: JVxeTypes.input,
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
]
// 高级查询数据
export const superQuerySchema = {
orderNo: {title: '单号',order: 0,view: 'text', type: 'string',},
orderType: {title: '工单类型 1护理;2医疗:3仓库;4行政',order: 1,view: 'text', type: 'string',},
optType: {title: '执行类型 1单人 2协助 3转单',order: 2,view: 'text', type: 'string',},
poolId: {title: '数据池主表IDnu_biz_nu_directive_data_pool.id',order: 3,view: 'text', type: 'string',},
bizId: {title: '服务指令计划ID,nu_biz_nu_customer_care_server.id;即时指令计划ID,nu_biz_nu_customer_care_server_instant.id',order: 4,view: 'text', type: 'string',},
bizType: {title: '业务类型',order: 5,view: 'text', type: 'string',},
nuName: {title: '护理单元名称',order: 7,view: 'text', type: 'string',},
elderId: {title: '长者IDnu_biz_elder_info.id',order: 8,view: 'text', type: 'string',},
elderName: {title: '长者名称',order: 9,view: 'text', type: 'string',},
employeeId: {title: '员工ID',order: 10,view: 'text', type: 'string',},
employeeName: {title: '员工姓名',order: 11,view: 'text', type: 'string',},
directiveId: {title: '服务指令IDnu_config_service_directive.id',order: 12,view: 'text', type: 'string',},
directiveName: {title: '服务指令名称',order: 13,view: 'text', type: 'string',},
cycleTypeId: {title: '周期类型ID',order: 14,view: 'text', type: 'string',},
cycleType: {title: '周期类型',order: 15,view: 'text', type: 'string',},
cycleValue: {title: '周期值',order: 16,view: 'text', type: 'string',},
previewFile: {title: '服务指令图片大图',order: 17,view: 'text', type: 'string',},
previewFileSmall: {title: '服务指令图片小图',order: 18,view: 'text', type: 'string',},
mp3File: {title: '语音文件',order: 19,view: 'text', type: 'string',},
mp4File: {title: '视频文件',order: 20,view: 'text', type: 'string',},
serviceDuration: {title: '服务时长(分钟)',order: 21,view: 'text', type: 'string',},
serviceContent: {title: '服务说明',order: 22,view: 'text', type: 'string',},
izPackage: {title: '是否是服务指令包 Y是 N否',order: 23,view: 'text', type: 'string',},
tollPrice: {title: '收费价格',order: 24,view: 'number', type: 'number',},
comPrice: {title: '提成价格',order: 25,view: 'number', type: 'number',},
realComPrice: {title: '实际提成价格',order: 26,view: 'number', type: 'number',},
startTime: {title: '开始时间',order: 27,view: 'datetime', type: 'string',},
endTime: {title: '结束时间',order: 28,view: 'datetime', type: 'string',},
beginEmp: {title: '实际开始员工',order: 29,view: 'text', type: 'string',},
beginTime: {title: '实际开始时间',order: 30,view: 'datetime', type: 'string',},
finishEmp: {title: '实际结束员工',order: 31,view: 'text', type: 'string',},
finishTime: {title: '实际结束时间',order: 32,view: 'datetime', type: 'string',},
izStart: {title: '是否开始 Y是 N否',order: 33,view: 'text', type: 'string',},
izFinish: {title: '是否完成 Y是 N否',order: 34,view: 'text', type: 'string',},
initiatorId: {title: '发起人ID',order: 35,view: 'text', type: 'string',},
initiatorName: {title: '发起人姓名',order: 36,view: 'text', type: 'string',},
createEmp: {title: '创建人',order: 37,view: 'text', type: 'string',},
createBy: {title: '创建人',order: 38,view: 'text', type: 'string',},
createTime: {title: '创建日期',order: 39,view: 'datetime', type: 'string',},
updateEmp: {title: '更新人',order: 40,view: 'text', type: 'string',},
updateBy: {title: '更新人',order: 41,view: 'text', type: 'string',},
updateTime: {title: '更新日期',order: 42,view: 'datetime', type: 'string',},
remarks: {title: '备注',order: 44,view: 'text', type: 'string',},
timeoutDuration: {title: '服务容错时长end_time + 这个时间) 小于 begin_time算超时',order: 45,view: 'text', type: 'string',},
izTimeout: {title: '是否超时 Y超时 N未超时',order: 46,view: 'text', type: 'string',},
optIds: {title: '实际执行人id多个 主要执行人+协助人',order: 47,view: 'text', type: 'string',},
optNames: {title: '实际执行人名称(多个); 主要执行人+协助人',order: 48,view: 'text', type: 'string',},
manuallyPicPath: {title: '手动拍照',order: 49,view: 'textarea', type: 'string',},
manuallyMp4Path: {title: '手动录制',order: 50,view: 'textarea', type: 'string',},
appraisalStatus: {title: '考核状态 0未考核 1通过 2未通过',order: 51,view: 'list', type: 'string',dictCode: 'appraisal_status',},
appraisalTime: {title: '考核时间',order: 52,view: 'datetime', type: 'string',},
appraisalId: {title: '考核人ID',order: 53,view: 'text', type: 'string',},
appraisalName: {title: '考核人',order: 54,view: 'text', type: 'string',},
//子表高级查询
nuBizNuDirectiveOrderInfo: {
title: 'nu_biz_nu_directive_order_info',
view: 'table',
fields: {
orderNo: {title: '单号',order: 0,view: 'text', type: 'string',},
orderType: {title: '工单类型 1护理;2医疗:3仓库;4行政',order: 1,view: 'text', type: 'string',},
mainId: {title: '主表IDnu_biz_nu_directive_order.id',order: 2,view: 'text', type: 'string',},
nuId: {title: '护理单元IDnu_base_info.id',order: 3,view: 'text', type: 'string',},
nuName: {title: '护理单元名称',order: 4,view: 'text', type: 'string',},
elderId: {title: '长者IDnu_biz_elder_info.id',order: 5,view: 'text', type: 'string',},
elderName: {title: '长者名称',order: 6,view: 'text', type: 'string',},
employeeId: {title: '员工ID',order: 7,view: 'text', type: 'string',},
employeeName: {title: '员工姓名',order: 8,view: 'text', type: 'string',},
instructionTagId: {title: '分类标签',order: 9,view: 'text', type: 'string',},
instructionTagName: {title: '分类标签名称',order: 10,view: 'text', type: 'string',},
categoryId: {title: '服务类别IDnu_config_service_category.id',order: 11,view: 'text', type: 'string',},
categoryName: {title: '服务类别名称',order: 12,view: 'text', type: 'string',},
typeId: {title: '服务类型IDnu_config_service_type.id',order: 13,view: 'text', type: 'string',},
typeName: {title: '服务类型名称',order: 14,view: 'text', type: 'string',},
directiveId: {title: '服务指令IDnu_config_service_directive.id',order: 15,view: 'text', type: 'string',},
directiveName: {title: '服务指令名称',order: 16,view: 'text', type: 'string',},
cycleTypeId: {title: '周期类型ID',order: 17,view: 'text', type: 'string',},
cycleType: {title: '周期类型',order: 18,view: 'text', type: 'string',},
cycleValue: {title: '周期值',order: 19,view: 'text', type: 'string',},
previewFile: {title: '服务指令图片大图',order: 20,view: 'text', type: 'string',},
previewFileSmall: {title: '服务指令图片小图',order: 21,view: 'text', type: 'string',},
mp3File: {title: '语音文件',order: 22,view: 'text', type: 'string',},
mp4File: {title: '视频文件',order: 23,view: 'text', type: 'string',},
serviceDuration: {title: '服务时长(分钟)',order: 24,view: 'text', type: 'string',},
serviceContent: {title: '服务说明',order: 25,view: 'text', type: 'string',},
tollPrice: {title: '收费价格',order: 26,view: 'number', type: 'number',},
comPrice: {title: '提成价格',order: 27,view: 'number', type: 'number',},
realComPrice: {title: '实际提成价格',order: 28,view: 'number', type: 'number',},
packageId: {title: '服务指令包ID',order: 29,view: 'text', type: 'string',},
packageName: {title: '服务指令包名称',order: 30,view: 'text', type: 'string',},
izPackage: {title: '是否是服务指令包 Y是 N否',order: 31,view: 'text', type: 'string',},
startTime: {title: '开始时间',order: 32,view: 'datetime', type: 'string',},
endTime: {title: '结束时间',order: 33,view: 'datetime', type: 'string',},
beginTime: {title: '实际开始时间',order: 34,view: 'datetime', type: 'string',},
finishTime: {title: '实际结束时间',order: 35,view: 'datetime', type: 'string',},
izStart: {title: '是否开始 Y是 N否',order: 36,view: 'text', type: 'string',},
izFinish: {title: '是否完成 Y是 N否',order: 37,view: 'text', type: 'string',},
createBy: {title: '创建人',order: 38,view: 'text', type: 'string',},
createTime: {title: '创建日期',order: 39,view: 'datetime', type: 'string',},
updateBy: {title: '更新人',order: 40,view: 'text', type: 'string',},
updateTime: {title: '更新日期',order: 41,view: 'datetime', type: 'string',},
tplinkPath: {title: 'tplink下载地址',order: 43,view: 'text', type: 'string',},
manuallyPicPath: {title: '手动拍照',order: 44,view: 'textarea', type: 'string',},
manuallyMp4Path: {title: '手动录制',order: 45,view: 'textarea', type: 'string',},
optType: {title: '执行类型 1单人 2协助 3转单',order: 46,view: 'text', type: 'string',},
timeoutDuration: {title: '服务容错时长end_time + 这个时间) 小于 begin_time算超时',order: 47,view: 'text', type: 'string',},
izTimeout: {title: '是否超时 Y超时 N未超时',order: 48,view: 'text', type: 'string',},
optIds: {title: '实际执行人id多个 主要执行人+协助人',order: 49,view: 'text', type: 'string',},
optNames: {title: '实际执行人名称(多个); 主要执行人+协助人',order: 50,view: 'text', type: 'string',},
}
},
};

View File

@ -1,161 +0,0 @@
<template>
<a-spin :spinning="confirmLoading">
<JFormContainer :disabled="disabled">
<template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="AppraisalForm">
<a-row>
<a-col :span="24">
<a-form-item label="单号" v-bind="validateInfos.orderNo" id="AppraisalForm-orderNo" name="orderNo">
<a-input v-model:value="formData.orderNo" placeholder="请输入单号" disabled="true" ></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="审核状态" v-bind="validateInfos.appraisalStatus" id="AppraisalForm-appraisalStatus" name="appraisalStatus">
<a-radio-group v-model:value="formData.appraisalStatus" name="appraisalStatus">
<a-radio value="1">通过</a-radio>
<a-radio value="2">拒绝</a-radio>
</a-radio-group>
</a-form-item>
</a-col>
<a-col :span="24" v-if="formData.appraisalStatus == '2'">
<a-form-item label="审核意见" v-bind="validateInfos.appraisalComments" id="AppraisalForm-appraisalComments" name="appraisalComments">
<a-textarea v-model:value="formData.appraisalComments" :rows="4" placeholder="请输入审核意见" />
</a-form-item>
</a-col>
</a-row>
</a-form>
</template>
</JFormContainer>
</a-spin>
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import { getValueType } from '/@/utils';
import { approval } from '../appraisal.api';
import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { useUserStore } from '/@/store/modules/user';
import dayjs from 'dayjs';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({})},
formBpm: { type: Boolean, default: true }
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const dataSource = ref([]);
const userStore = useUserStore();
const formData = reactive<Record<string, any>>({
id: '',
orderNo: '',
appraisalStatus: '',
appraisalComments: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 4 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 20 } });
const confirmLoading = ref<boolean>(false);
//
const validatorRules = reactive({
});
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
return false;
}else{
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
const tmpData = {};
Object.keys(formData).forEach((key) => {
if(record.hasOwnProperty(key)){
tmpData[key] = record[key]
}
})
//
Object.assign(formData, tmpData);
formData.appraisalStatus = '1';
});
}
/**
* 提交数据
*/
async function submitForm() {
try {
//
await validate();
} catch ({ errorFields }) {
if (errorFields) {
const firstField = errorFields[0];
if (firstField) {
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
}
}
return Promise.reject(errorFields);
}
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await approval(model)
.then((res) => {
emit('ok');
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({
add,
edit,
submitForm,
});
</script>
<style lang="less" scoped>
.antd-modal-form {
padding: 14px;
}
</style>

View File

@ -1,82 +0,0 @@
<template>
<a-drawer :title="title" :width="width" v-model:visible="visible" :closable="true"
:footer-style="{ textAlign: 'right' }" @close="handleCancel">
<AppraisalForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></AppraisalForm>
<template #footer>
<a-button type="primary" style="margin-right: 8px" @click="handleCancel">关闭</a-button>
<a-button type="primary" @click="handleOk" v-if="!disableSubmit">确认</a-button>
</template>
</a-drawer>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import AppraisalForm from './AppraisalForm.vue'
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
const title = ref<string>('');
const width = ref<string>('800');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '详情' : '服务考核';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback() {
handleCancel();
emit('success');
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style lang="less">
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>
<style lang="less" scoped></style>

View File

@ -1,377 +0,0 @@
<template>
<div class="p-2">
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form ref="formRef" @keyup.enter.native="reload" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
<a-col :lg="6">
<a-form-item name="startTime">
<template #label><span title="开始时间">开始时间</span></template>
<a-date-picker show-time valueFormat="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" v-model:value="queryParam.startTime" allow-clear />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="endTime">
<template #label><span title="结束时间">结束时间</span></template>
<a-date-picker show-time valueFormat="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" v-model:value="queryParam.endTime" allow-clear />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="appraisalStatus">
<template #label><span title="考核状态">考核状态</span></template>
<j-dict-select-tag v-model:value="queryParam.appraisalStatus"
dictCode="appraisal_status" placeholder="选择考核状态"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :lg="6">
<a-form-item name="orderNo">
<template #label><span title="单号">单号</span></template>
<JInput v-model:value="queryParam.orderNo" placeholder="输入单号" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="orderType">
<template #label><span title="工单类型">工单类型</span></template>
<j-dict-select-tag v-model:value="queryParam.orderType"
dictCode="service_instruction_tag" placeholder="选择工单类型"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="optType">
<template #label><span title="执行类型">执行类型</span></template>
<j-dict-select-tag v-model:value="queryParam.optType"
dictCode="directive_order_opt_type" placeholder="选择执行类型"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="nuId">
<template #label><span title="护理单元">护理单元</span></template>
<j-dict-select-tag v-model:value="queryParam.nuId"
:dictCode="`nu_base_info,nu_name,nu_id,del_flag = 0 order by nu_id asc`" placeholder="选择护理单元"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="employeeId">
<template #label><span title="员工">员工</span></template>
<j-select-multiple v-model:value="queryParam.employeeId"
:dictCode="`nu_biz_employees_info,name,id,del_flag = 0 order by id asc`" placeholder="选择员工"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="elderId">
<template #label><span title="长者">长者</span></template>
<j-dict-select-tag v-model:value="queryParam.elderId"
:dictCode="`nu_biz_elder_info,name,id,del_flag = 0 order by id asc`" placeholder="选择长者"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="izPackage">
<template #label><span title="服务包">服务包</span></template>
<j-dict-select-tag v-model:value="queryParam.izPackage"
dictCode="is_open" placeholder="是否服务包"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="izFinish">
<template #label><span title="执行">执行</span></template>
<j-dict-select-tag v-model:value="queryParam.izFinish"
dictCode="is_open" placeholder="是否执行"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item name="izTimeout">
<template #label><span title="超时">超时</span></template>
<j-dict-select-tag v-model:value="queryParam.izTimeout"
dictCode="is_open" placeholder="是否超时"
allowClear :ignoreDisabled="true" />
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="reload">查询</a-button>
<a-button preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
</a>
</a-col>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!--引用表格-->
<!-- <BasicTable @register="registerTable" :rowSelection="rowSelection">-->
<BasicTable @register="registerTable">
<!--插槽:table标题-->
<template #tableTitle>
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete">
<Icon icon="ant-design:delete-outlined"></Icon>
删除
</a-menu-item>
</a-menu>
</template>
<a-button>批量操作
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>-->
<!-- 高级查询 -->
<!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" />-->
</template>
<!--操作栏-->
<template #action="{ record }">
<!-- <TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>-->
<TableAction :actions="getTableAction(record)"/>
</template>
<!--字段回显插槽-->
<template v-slot:bodyCell="{ column, record, index, text }">
</template>
<template #expandedRowRender="{ record }">
<a-table :columns="subColumns" :data-source="record.appraisalSubList" :pagination="false">
</a-table>
</template>
</BasicTable>
<!-- 表单区域 -->
<AppraisalModal ref="registerModal" @success="handleSuccess"></AppraisalModal>
</div>
</template>
<script lang="ts" name="directiveorder-directiveOrder" setup>
import {ref, reactive, computed, unref} from 'vue';
import {BasicTable, useTable, TableAction} from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage'
import {useModal} from '/@/components/Modal';
import AppraisalModal from './components/AppraisalModal.vue'
import {columns,subColumns,superQuerySchema} from './appraisal.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './appraisal.api';
import {downloadFile} from '/@/utils/common/renderUtils';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
import { cloneDeep } from "lodash-es";
import { useUserStore } from '/@/store/modules/user';
const formRef = ref();
const queryParam = reactive<any>({});
const checkedKeys = ref<Array<string | number>>([]);
//model
const registerModal = ref();
const userStore = useUserStore();
//table
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
tableProps:{
title: '服务考核',
api: list,
columns,
canResize:false,
useSearchForm: false,
striped: true,
showIndexColumn: true,
actionColumn: {
width: 140,
fixed:'right'
},
beforeFetch: async (params) => {
// let rangerQuery = await setRangeQuery();
// return Object.assign(params, rangerQuery);
return Object.assign(params, queryParam);
},
},
exportConfig: {
name:"服务考核",
url: getExportUrl,
params: queryParam,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
})
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
//
// const superQueryConfig = reactive(superQuerySchema);
/**
* 高级查询事件
*/
// function handleSuperQuery(params) {
// Object.keys(params).map((k) => {
// queryParam[k] = params[k];
// });
// reload();
// }
/**
* 新增事件
*/
// function handleAdd() {
// openModal(true, {
// isUpdate: false,
// showFooter: true,
// });
// }
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
// openModal(true, {
// record,
// isUpdate: true,
// showFooter: false,
// });
}
/**
* 删除事件
*/
// async function handleDelete(record) {
// await deleteOne({id: record.id}, handleSuccess);
// }
/**
* 批量删除事件
*/
// async function batchHandleDelete() {
// await batchDelete({ids: selectedRowKeys.value},handleSuccess);
// }
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
function getTableAction(record){
let action = [];
if(record.appraisalStatus == '0'){
action.push({
label: '考核',
onClick: handleEdit.bind(null, record)
})
}
if(record.orderType != '1'){
action.push({
label: '业务数据',
onClick: handleDetail.bind(null, record),
},)
}
return action;
}
/**
* 下拉操作栏
*/
// function getDropDownAction(record){
// return [
// {
// label: '',
// onClick: handleDetail.bind(null, record),
// },
// {
// label: '',
// popConfirm: {
// title: '',
// confirm: handleDelete.bind(null, record),
// placement: 'topLeft'
// },
// }
// ]
// }
/* ----------------------以下为原生查询需要添加的-------------------------- */
const toggleSearchStatus = ref<boolean>(false);
const labelCol = reactive({
xs:24,
sm:4,
xl:6,
xxl:4
});
const wrapperCol = reactive({
xs: 24,
sm: 20,
});
/**
* 重置
*/
function searchReset() {
formRef.value.resetFields();
selectedRowKeys.value = [];
//
reload();
}
// let rangeField = 'startTime,endTime,'
/**
* 设置范围查询条件
*/
// async function setRangeQuery(){
// let queryParamClone = cloneDeep(queryParam);
// if (rangeField) {
// let fieldsValue = rangeField.split(',');
// fieldsValue.forEach(item => {
// if (queryParamClone[item]) {
// let range = queryParamClone[item];
// queryParamClone[item+'_begin'] = range[0];
// queryParamClone[item+'_end'] = range[1];
// delete queryParamClone[item];
// } else {
// queryParamClone[item+'_begin'] = '';
// queryParamClone[item+'_end'] = '';
// }
// })
// }
// return queryParamClone;
// }
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
padding: 0;
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
.ant-form-item:not(.ant-form-item-with-help){
margin-bottom: 16px;
height: 32px;
}
:deep(.ant-picker),:deep(.ant-input-number){
width: 100%;
}
}
</style>