feat:工单处理权重修改为处理优先级
Some checks failed
/ Explore-Gitea-Actions (push) Failing after 5m21s

This commit is contained in:
2025-08-21 17:11:47 +08:00
parent ee9b7017f4
commit a43cb1b390
15 changed files with 130 additions and 57 deletions

View File

@@ -90,7 +90,7 @@ export const modalSchema: FormSchemaGetter = () => [
{
label: '反馈类型',
fieldName: 'feedbackType',
component: 'Select',
component: 'TreeSelect',
rules: 'selectRequired',
},
{
@@ -160,7 +160,15 @@ export const modalSchema: FormSchemaGetter = () => [
},
rules:'selectRequired'
},
{
label: '工单id',
fieldName: 'orderId',
component: 'Input',
dependencies: {
show: () => false,
triggerFields: [''],
},
},
{
label: '转至工单',//转至工单
fieldName: 'isWorkOrder',
@@ -170,7 +178,11 @@ export const modalSchema: FormSchemaGetter = () => [
options: getDictOptions('wy_sf'),
optionType: 'button',
},
defaultValue:'0',
rules:'selectRequired'
defaultValue:'1',
rules:'selectRequired',
dependencies: {
show: (formValue) => !formValue.orderId,
triggerFields: ['orderId'],
},
},
];

View File

@@ -37,10 +37,12 @@ async function handleOpenChange(open: boolean) {
<Descriptions v-if="feedbacksDetail" size="small" :column="2" bordered
:labelStyle="{width:'120px'}">
<DescriptionsItem label="反馈类型">
{{ feedbacksDetail.feedbackType }}
{{ feedbacksDetail.feedbackTypeName }}
</DescriptionsItem>
<DescriptionsItem label="反馈人">
{{ feedbacksDetail.feedbackPersion+'-'+feedbacksDetail.feedbackPersionPhone }}
<span>
{{ feedbacksDetail.feedbackPersionName||''+'-'+feedbacksDetail.feedbackPersionPhone }}
</span>
</DescriptionsItem>
<DescriptionsItem label="反馈内容" :span="2">
{{ feedbacksDetail.feedbackContent }}

View File

@@ -15,7 +15,9 @@ import {defaultFormValueGetter, useBeforeCloseDiff} from '#/utils/popup';
import {modalSchema} from './data';
import type {FeedbacksVO} from "#/api/property/customerService/feedbacks/model";
import {workOrdersTypeList} from "#/api/property/businessManagement/workOrdersType";
import {
workOrdersTypeTree
} from "#/api/property/businessManagement/workOrdersType";
const emit = defineEmits<{ reload: [] }>();
@@ -101,28 +103,38 @@ async function handleClosed() {
}
async function initWorkOrderTypeOption() {
let params = {
pageSize: 1000,
pageNum: 1
}
const res = await workOrdersTypeList(params)
formApi.updateSchema([{
componentProps: () => ({
options: res.rows,
showSearch: true,
optionFilterProp: 'orderTypeName',
fieldNames: {label: 'orderTypeName', value: 'id'},
}),
fieldName: 'feedbackType',
}])
const options = await workOrdersTypeTree()
formApi.updateSchema([
{
componentProps: () => ({
class: 'w-full',
fieldNames: {
key: 'id',
label: 'orderTypeName',
value: 'id',
children: 'children',
},
placeholder: '请选择反馈类型',
showSearch: true,
treeData: options,
treeDefaultExpandAll: true,
treeLine: { showLeafIcon: false },
treeNodeFilterProp: 'orderTypeName',
treeNodeLabelProp: 'orderTypeName',
}),
fieldName: 'feedbackType',
},
]);
}
</script>
<template>
<BasicModal :title="title">
<BasicForm>
<template #person>
<span v-if="detail">{{ detail.feedbackPersion + '-' + detail.feedbackPersionPhone }}</span>
<span v-if="detail">
{{ detail.feedbackPersionName||'' + '-' + detail.feedbackPersionPhone }}</span>
</template>
</BasicForm>
</BasicModal>

View File

@@ -175,7 +175,7 @@ async function handleDelete(row: Required<QuestionnaireForm>) {
</ghost-button>
</Popconfirm>
<ghost-button
v-access:code="['property:questionnaire:info']"
v-access:code="['property:questionnaire:statistics']"
@click.stop="handleEdit(row)"
>
统计分析