parent
71abc697ac
commit
4ea50fcab3
|
|
@ -1,31 +1,31 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { BasicColumn } from '/@/components/Table';
|
||||
import { FormSchema } from '/@/components/Table';
|
||||
import { rules } from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '机构名称',
|
||||
align: "center",
|
||||
align: 'center',
|
||||
dataIndex: 'orgName',
|
||||
width:260
|
||||
width: 260,
|
||||
},
|
||||
{
|
||||
title: '机构编码',
|
||||
align: "center",
|
||||
align: 'center',
|
||||
dataIndex: 'orgCode',
|
||||
width:120
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: '平台类型',
|
||||
align: "center",
|
||||
dataIndex: 'platType_dictText'
|
||||
align: 'center',
|
||||
dataIndex: 'platType_dictText',
|
||||
},
|
||||
{
|
||||
title: '工单类型',
|
||||
align: "center",
|
||||
dataIndex: 'workType_dictText'
|
||||
align: 'center',
|
||||
dataIndex: 'workType_dictText',
|
||||
},
|
||||
// {
|
||||
// title: '标题',
|
||||
|
|
@ -35,42 +35,54 @@ export const columns: BasicColumn[] = [
|
|||
// },
|
||||
{
|
||||
title: '工单状态',
|
||||
align: "center",
|
||||
dataIndex: 'status_dictText'
|
||||
align: 'center',
|
||||
dataIndex: 'status_dictText',
|
||||
},
|
||||
{
|
||||
title: '提交人',
|
||||
align: "center",
|
||||
dataIndex: 'createBy'
|
||||
align: 'center',
|
||||
dataIndex: 'createBy',
|
||||
},
|
||||
{
|
||||
title: '提交时间',
|
||||
align: "center",
|
||||
dataIndex: 'createTime'
|
||||
align: 'center',
|
||||
dataIndex: 'createTime',
|
||||
},
|
||||
{
|
||||
title: '处理人',
|
||||
align: "center",
|
||||
dataIndex: 'handleBy'
|
||||
align: 'center',
|
||||
dataIndex: 'handleBy',
|
||||
customRender: ({ text }) => {
|
||||
if (!!text) {
|
||||
return text;
|
||||
}
|
||||
return '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '反馈时间',
|
||||
align: "center",
|
||||
dataIndex: 'replyTime'
|
||||
align: 'center',
|
||||
dataIndex: 'replyTime',
|
||||
customRender: ({ text }) => {
|
||||
if (!!text) {
|
||||
return text;
|
||||
}
|
||||
return '-';
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
orgId: {title: '机构ID',order: 0,view: 'text', type: 'string',},
|
||||
orgCode: {title: '机构编码',order: 1,view: 'text', type: 'string',},
|
||||
orgName: {title: '机构名称',order: 2,view: 'text', type: 'string',},
|
||||
platType: {title: '平台类型pc wechat pad',order: 3,view: 'text', type: 'string',},
|
||||
title: {title: '标题',order: 4,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',},
|
||||
createBy: {title: '创建人',order: 7,view: 'text', type: 'string',},
|
||||
createTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',},
|
||||
replyTime: {title: '反馈时间',order: 9,view: 'datetime', type: 'string',},
|
||||
handleBy: {title: '处理人',order: 10,view: 'text', type: 'string',},
|
||||
orgId: { title: '机构ID', order: 0, view: 'text', type: 'string' },
|
||||
orgCode: { title: '机构编码', order: 1, view: 'text', type: 'string' },
|
||||
orgName: { title: '机构名称', order: 2, view: 'text', type: 'string' },
|
||||
platType: { title: '平台类型pc wechat pad', order: 3, view: 'text', type: 'string' },
|
||||
title: { title: '标题', order: 4, 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' },
|
||||
createBy: { title: '创建人', order: 7, view: 'text', type: 'string' },
|
||||
createTime: { title: '创建时间', order: 8, view: 'datetime', type: 'string' },
|
||||
replyTime: { title: '反馈时间', order: 9, view: 'datetime', type: 'string' },
|
||||
handleBy: { title: '处理人', order: 10, view: 'text', type: 'string' },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -63,13 +63,13 @@
|
|||
</a-col>
|
||||
<a-col :span="12">
|
||||
<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 : '暂未处理' }} -->
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<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 : '暂未处理' }} -->
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function add() {
|
|||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
title.value = disableSubmit.value ? '工单详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
|
|
|
|||
Loading…
Reference in New Issue