update
init
This commit is contained in:
@@ -0,0 +1,267 @@
|
||||
import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||
import { getName } from '/@/views/interveneNew/compoents/utils';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const status = [
|
||||
{
|
||||
label: '待开始',
|
||||
value: '0',
|
||||
},
|
||||
{
|
||||
label: '结算中',
|
||||
value: '1',
|
||||
},
|
||||
{
|
||||
label: '已完成',
|
||||
value: '2',
|
||||
},
|
||||
{
|
||||
label: '结算异常',
|
||||
value: '3',
|
||||
},
|
||||
{
|
||||
label: '队列中',
|
||||
value: '5',
|
||||
},
|
||||
];
|
||||
|
||||
export const schemas: FormSchema[] = [
|
||||
{
|
||||
label: '结算名称',
|
||||
field: 'settleName',
|
||||
component: 'Input',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: '是否产生通讯费用',
|
||||
field: 'hasComFee',
|
||||
component: 'RadioGroup',
|
||||
defaultValue: true,
|
||||
componentProps: () => {
|
||||
return {
|
||||
options: [
|
||||
{
|
||||
label: '是',
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
label: '否',
|
||||
value: false,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '通讯费',
|
||||
field: 'comFeePerMonth',
|
||||
component: 'Input',
|
||||
componentProps: () => {
|
||||
return {
|
||||
suffix: '元',
|
||||
};
|
||||
},
|
||||
ifShow: ({ values }) => values.hasComFee,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false,
|
||||
},
|
||||
];
|
||||
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '结算名称',
|
||||
dataIndex: 'settleName',
|
||||
},
|
||||
{
|
||||
title: '结算起始月份',
|
||||
dataIndex: '2',
|
||||
customRender: ({ record }) => {
|
||||
return (
|
||||
record?.configPeriods &&
|
||||
record?.configPeriods.length > 0 &&
|
||||
record?.configPeriods[0]?.yearValue + '-' + record?.configPeriods[0]?.monthValue
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '结算结束月份',
|
||||
dataIndex: '3',
|
||||
customRender: ({ record }) => {
|
||||
return (
|
||||
record?.configPeriods &&
|
||||
record?.configPeriods.length > 0 &&
|
||||
record?.configPeriods[record?.configPeriods.length - 1]?.yearValue +
|
||||
'-' +
|
||||
record?.configPeriods[record?.configPeriods.length - 1]?.monthValue
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '结算状态',
|
||||
dataIndex: 'settleStatus',
|
||||
customRender: ({ text }) => {
|
||||
return getName(text, status);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
},
|
||||
{
|
||||
title: '结算开始时间',
|
||||
dataIndex: 'lastGenerateTime',
|
||||
},
|
||||
{
|
||||
title: '结算完成时间',
|
||||
dataIndex: 'lastFinishedTime',
|
||||
},
|
||||
{
|
||||
title: '错误信息',
|
||||
dataIndex: 'errorMsg',
|
||||
defaultHidden: true,
|
||||
},
|
||||
{
|
||||
title: '结算操作',
|
||||
dataIndex: 'a',
|
||||
fixed: 'right',
|
||||
width: 220,
|
||||
},
|
||||
{
|
||||
title: '配置操作',
|
||||
dataIndex: 'b',
|
||||
fixed: 'right',
|
||||
width: 150,
|
||||
},
|
||||
];
|
||||
|
||||
export const detailColumn: BasicColumn[] = [
|
||||
{
|
||||
title: '专家编号',
|
||||
dataIndex: 'doctorNo',
|
||||
},
|
||||
{
|
||||
title: '专家名称',
|
||||
dataIndex: 'doctorName',
|
||||
},
|
||||
{
|
||||
title: '专家职称',
|
||||
dataIndex: 'doctorTitle_dictText',
|
||||
},
|
||||
{
|
||||
title: '医院',
|
||||
dataIndex: 'hospitalName',
|
||||
},
|
||||
{
|
||||
title: '单价(元)',
|
||||
dataIndex: 'doctorPrice',
|
||||
},
|
||||
{
|
||||
title: '回复次数',
|
||||
dataIndex: 'consultCount',
|
||||
},
|
||||
{
|
||||
title: '通讯费(元)',
|
||||
dataIndex: 'comFee',
|
||||
},
|
||||
{
|
||||
title: '咨询费(元)',
|
||||
dataIndex: 'consultFee',
|
||||
},
|
||||
{
|
||||
title: '结算费(元)',
|
||||
dataIndex: 'settleInvoice',
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'a',
|
||||
width: 150,
|
||||
},
|
||||
];
|
||||
|
||||
export const monthColumn: BasicColumn[] = [
|
||||
...detailColumn.slice(0, 5),
|
||||
{
|
||||
title: '结算年份',
|
||||
dataIndex: 'yearValue',
|
||||
},
|
||||
{
|
||||
title: '结算月份',
|
||||
dataIndex: 'monthValue',
|
||||
},
|
||||
...detailColumn.slice(5),
|
||||
];
|
||||
|
||||
export const consultColumn: BasicColumn[] = [
|
||||
{
|
||||
title: '专家编号',
|
||||
dataIndex: 'doctorNo',
|
||||
},
|
||||
{
|
||||
title: '专家名称',
|
||||
dataIndex: 'doctorName',
|
||||
},
|
||||
{
|
||||
title: '专家职称',
|
||||
dataIndex: 'doctorTitle_dictText',
|
||||
},
|
||||
{
|
||||
title: '医院',
|
||||
dataIndex: 'hospitalName',
|
||||
},
|
||||
{
|
||||
title: '科室',
|
||||
dataIndex: 'departmentName',
|
||||
},
|
||||
{
|
||||
title: '单位',
|
||||
dataIndex: 'secondDepartName',
|
||||
},
|
||||
{
|
||||
title: '部门',
|
||||
dataIndex: 'userDepartName',
|
||||
},
|
||||
{
|
||||
title: '员工名称',
|
||||
dataIndex: 'userName',
|
||||
},
|
||||
{
|
||||
title: '身份证号',
|
||||
dataIndex: 'userIdCard',
|
||||
},
|
||||
{
|
||||
title: '生日',
|
||||
dataIndex: 'userBirthday',
|
||||
customRender: ({ text }) => {
|
||||
return text && dayjs(text).format('YYYY-MM-DD');
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '年龄',
|
||||
dataIndex: 'userAge',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: '性别',
|
||||
dataIndex: 'userSex_dictText',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: '用户咨询时间',
|
||||
dataIndex: 'userConsultTime',
|
||||
},
|
||||
{
|
||||
title: '专家首次回复时间',
|
||||
dataIndex: 'doctorFirstReplyTime',
|
||||
},
|
||||
{
|
||||
title: '订单状态',
|
||||
dataIndex: 'sessionStatus_dictText',
|
||||
},
|
||||
];
|
||||
|
||||
export const pageStatus = [{}];
|
||||
Reference in New Issue
Block a user