1、工单处理
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-09 18:12:28 +08:00
parent 43b1af937b
commit f93b6d356b
6 changed files with 214 additions and 56 deletions

View File

@@ -2,6 +2,8 @@ import type {FormSchemaGetter} from '#/adapter/form';
import type {VxeGridProps} from '#/adapter/vxe-table';
import {renderDict} from "#/utils/render";
import {getDictOptions} from "#/utils/dict";
import {h} from "vue";
import {Rate} from "ant-design-vue";
export const querySchema: FormSchemaGetter = () => [
@@ -15,12 +17,6 @@ export const querySchema: FormSchemaGetter = () => [
fieldName: 'orderName',
label: '工单名称',
},
{
component: 'Select',
componentProps: {},
fieldName: 'type',
label: '工单类型',
},
{
component: 'Select',
componentProps: {
@@ -44,13 +40,8 @@ export const columns: VxeGridProps['columns'] = [
minWidth: 180,
},
{
title: '工单类型',
field: 'type',
slots: {
default: ({row}) => {
return renderDict(row.type, 'wy_gdlx');
},
},
title: '派单时间',
field: 'dispatchTime',
width: 100,
},
{
@@ -63,26 +54,6 @@ export const columns: VxeGridProps['columns'] = [
},
width: 100,
},
{
title: '派单时间',
field: 'dispatchTime',
width: 100,
},
{
title: '发起人姓名',
field: 'initiatorName',
width: 100,
},
{
title: '发起人手机号',
field: 'initiatorPhone',
width: 100,
},
{
title: '处理人姓名',
field: 'handler',
width: 100,
},
{
title: '地址',
field: 'location',
@@ -101,12 +72,26 @@ export const columns: VxeGridProps['columns'] = [
{
title: '评价',
field: 'serviceEvalua',
width: 100,
width: 180,
slots:{
default: ({ row }) => {
return h(Rate, {
value: row.serviceEvalua || 0,
disabled: true,
});
},
},
},
{
title: '是否超时',
field: 'isTimeOut',
width: 100,
slots: {
default: ({row}) => {
return renderDict(row.status, 'wy_sf');
},
},
},
{
field: 'action',
@@ -136,7 +121,7 @@ export const modalSchema: FormSchemaGetter = () => [
{
label: '工单类型',
fieldName: 'type',
component: 'Select',
component: 'ApiSelect',
componentProps: {},
rules: 'selectRequired',
},
@@ -169,11 +154,6 @@ export const modalSchema: FormSchemaGetter = () => [
rules: 'selectRequired',
},
// {
// label: '发起人手机号',
// fieldName: 'initiatorPhone',
// component: 'Input',
// },
{
label: '处理人',
fieldName: 'handler',