将开源版本的修改打补丁应用到商业版

This commit is contained in:
wsm
2026-04-09 19:36:52 +08:00
parent d8e3a63df1
commit 7cf7a03983
105 changed files with 18321 additions and 2386 deletions
@@ -0,0 +1,138 @@
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',
dataIndex: 'sortNo',
},
{
title: '问题分类',
align: 'center',
dataIndex: 'problemType',
},
{
title: '具体措施',
align: 'center',
dataIndex: 'specificMeasure',
},
{
title: '完成时限',
align: 'center',
dataIndex: 'completionDeadline',
customRender: ({ text }) => {
text = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;
return text;
},
},
{
title: '责任部门',
align: 'center',
dataIndex: 'responsibleDept_dictText',
},
{
title: '完成情况',
align: 'center',
dataIndex: 'completionStatus',
},
{
title: '是否可发起',
align: 'center',
width: 150,
dataIndex: 'isLaunchable_dictText',
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '序号',
field: 'sortNo',
component: 'InputNumber',
},
{
label: '问题分类',
field: 'problemType',
component: 'Input',
},
{
label: '具体措施',
field: 'specificMeasure',
component: 'Input',
},
{
label: '完成时限',
field: 'completionDeadline',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD',
},
},
{
label: '责任部门',
field: 'responsibleDept',
component: 'JSelectDept',
componentProps: ({ formActionType, formModel }) => {
return {
sync: false,
checkStrictly: true,
defaultExpandLevel: 2,
onSelect: (options, values) => {
const { updateSchema } = formActionType;
//所属部门修改后更新负责部门下拉框数据
updateSchema([
{
field: 'departIds',
componentProps: { options },
},
]);
//update-begin---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
if (!values) {
formModel.departIds = [];
return;
}
//update-end---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
//所属部门修改后更新负责部门数据
formModel.departIds && (formModel.departIds = formModel.departIds.filter((item) => values.value.indexOf(item) > -1));
},
};
},
},
{
label: '完成情况',
field: 'completionStatus',
component: 'Input',
},
// TODO 主键隐藏字段,目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];
// 高级查询数据
export const superQuerySchema = {
sortNo: { title: '序号', order: 0, view: 'number', type: 'number' },
problemType: { title: '问题分类', order: 1, view: 'text', type: 'string' },
specificMeasure: { title: '具体措施', order: 2, view: 'text', type: 'string' },
completionDeadline: { title: '完成时限', order: 3, view: 'date', type: 'string' },
responsibleDept: { title: '责任部门', order: 4, view: 'text', type: 'string' },
completionStatus: { title: '完成情况', order: 5, view: 'text', type: 'string' },
};
/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[] {
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
}