1、增加处理人、反馈时间回显

2、工单详情中去掉处理人、反馈时间没有值的特殊处理
This commit is contained in:
1378012178@qq.com 2026-03-10 17:11:04 +08:00
parent 71abc697ac
commit 4ea50fcab3
3 changed files with 47 additions and 35 deletions

View File

@ -1,31 +1,31 @@
import {BasicColumn} from '/@/components/Table'; import { BasicColumn } from '/@/components/Table';
import {FormSchema} from '/@/components/Table'; import { FormSchema } from '/@/components/Table';
import { rules} from '/@/utils/helper/validator'; import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils'; import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils'; import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '机构名称', title: '机构名称',
align: "center", align: 'center',
dataIndex: 'orgName', dataIndex: 'orgName',
width:260 width: 260,
}, },
{ {
title: '机构编码', title: '机构编码',
align: "center", align: 'center',
dataIndex: 'orgCode', dataIndex: 'orgCode',
width:120 width: 120,
}, },
{ {
title: '平台类型', title: '平台类型',
align: "center", align: 'center',
dataIndex: 'platType_dictText' dataIndex: 'platType_dictText',
}, },
{ {
title: '工单类型', title: '工单类型',
align: "center", align: 'center',
dataIndex: 'workType_dictText' dataIndex: 'workType_dictText',
}, },
// { // {
// title: '标题', // title: '标题',
@ -35,42 +35,54 @@ export const columns: BasicColumn[] = [
// }, // },
{ {
title: '工单状态', title: '工单状态',
align: "center", align: 'center',
dataIndex: 'status_dictText' dataIndex: 'status_dictText',
}, },
{ {
title: '提交人', title: '提交人',
align: "center", align: 'center',
dataIndex: 'createBy' dataIndex: 'createBy',
}, },
{ {
title: '提交时间', title: '提交时间',
align: "center", align: 'center',
dataIndex: 'createTime' dataIndex: 'createTime',
}, },
{ {
title: '处理人', title: '处理人',
align: "center", align: 'center',
dataIndex: 'handleBy' dataIndex: 'handleBy',
customRender: ({ text }) => {
if (!!text) {
return text;
}
return '-';
},
}, },
{ {
title: '反馈时间', title: '反馈时间',
align: "center", align: 'center',
dataIndex: 'replyTime' dataIndex: 'replyTime',
customRender: ({ text }) => {
if (!!text) {
return text;
}
return '-';
},
}, },
]; ];
// 高级查询数据 // 高级查询数据
export const superQuerySchema = { export const superQuerySchema = {
orgId: {title: '机构ID',order: 0,view: 'text', type: 'string',}, orgId: { title: '机构ID', order: 0, view: 'text', type: 'string' },
orgCode: {title: '机构编码',order: 1,view: 'text', type: 'string',}, orgCode: { title: '机构编码', order: 1, view: 'text', type: 'string' },
orgName: {title: '机构名称',order: 2,view: 'text', type: 'string',}, orgName: { title: '机构名称', order: 2, view: 'text', type: 'string' },
platType: {title: '平台类型pc wechat pad',order: 3,view: 'text', type: 'string',}, platType: { title: '平台类型pc wechat pad', order: 3, view: 'text', type: 'string' },
title: {title: '标题',order: 4,view: 'text', type: 'string',}, title: { title: '标题', order: 4, view: 'text', type: 'string' },
content: {title: '描述',order: 5,view: 'text', type: 'string',}, content: { title: '描述', order: 5, view: 'text', type: 'string' },
status: {title: '状态 0待接收 1处理中 3已解决 4工单异常 5外部原因',order: 6,view: 'text', type: 'string',}, status: { title: '状态 0待接收 1处理中 3已解决 4工单异常 5外部原因', order: 6, view: 'text', type: 'string' },
createBy: {title: '创建人',order: 7,view: 'text', type: 'string',}, createBy: { title: '创建人', order: 7, view: 'text', type: 'string' },
createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',}, createTime: { title: '创建时间', order: 8, view: 'datetime', type: 'string' },
replyTime: {title: '反馈时间',order: 9,view: 'datetime', type: 'string',}, replyTime: { title: '反馈时间', order: 9, view: 'datetime', type: 'string' },
handleBy: {title: '处理人',order: 10,view: 'text', type: 'string',}, handleBy: { title: '处理人', order: 10, view: 'text', type: 'string' },
}; };

View File

@ -63,13 +63,13 @@
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="处理人" v-bind="validateInfos.handleBy" id="WorkOrderForm-handleBy" name="handleBy"> <a-form-item label="处理人" v-bind="validateInfos.handleBy" id="WorkOrderForm-handleBy" name="handleBy">
<a-input :value="formData.handleBy ? formData.handleBy : '暂未处理'" disabled allow-clear></a-input> <a-input :value="formData.handleBy" disabled allow-clear></a-input>
<!-- {{ formData.handleBy ? formData.handleBy : '暂未处理' }} --> <!-- {{ formData.handleBy ? formData.handleBy : '暂未处理' }} -->
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="反馈时间" v-bind="validateInfos.replyTime" id="WorkOrderForm-replyTime" name="replyTime"> <a-form-item label="反馈时间" v-bind="validateInfos.replyTime" id="WorkOrderForm-replyTime" name="replyTime">
<a-input :value="formData.replyTime ? formData.replyTime : '暂未处理'" disabled allow-clear></a-input> <a-input :value="formData.replyTime" disabled allow-clear></a-input>
<!-- {{ formData.replyTime ? formData.replyTime : '暂未处理' }} --> <!-- {{ formData.replyTime ? formData.replyTime : '暂未处理' }} -->
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@ -89,7 +89,7 @@ function add() {
* @param record * @param record
*/ */
function edit(record) { function edit(record) {
title.value = disableSubmit.value ? '详情' : '编辑'; title.value = disableSubmit.value ? '工单详情' : '编辑';
visible.value = true; visible.value = true;
nextTick(() => { nextTick(() => {
registerForm.value.edit(record); registerForm.value.edit(record);