|
|
@ -1,5 +1,14 @@ |
|
|
|
import {BasicColumn, FormSchema} from '/@/components/Table'; |
|
|
|
import {BasicColumn, FormSchema} from '/@/components/Table'; |
|
|
|
import {render} from '/@/utils/common/renderUtils'; |
|
|
|
import {render} from '/@/utils/common/renderUtils'; |
|
|
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user'; |
|
|
|
|
|
|
|
import {computed, unref, onMounted, nextTick, ref, onBeforeMount} from 'vue'; |
|
|
|
|
|
|
|
import {useTimeoutFn} from "@/hooks/core/useTimeout"; |
|
|
|
|
|
|
|
import step from "@/views/demo/page/form/step/index.vue"; |
|
|
|
|
|
|
|
import {getMenus} from "@/router/menus"; |
|
|
|
|
|
|
|
import {cloneDeep} from "lodash-es"; |
|
|
|
|
|
|
|
import {forEach} from "@/utils/helper/treeHelper"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//列表数据 |
|
|
|
//列表数据 |
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -20,7 +29,8 @@ export const columns: BasicColumn[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '项目类别', |
|
|
|
title: '项目类别', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'projectTypeid' |
|
|
|
// dataIndex: 'projectTypeid_dictText' |
|
|
|
|
|
|
|
dataIndex: 'projectTypeid_dictText' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '项目书状态', |
|
|
|
title: '项目书状态', |
|
|
@ -99,17 +109,21 @@ export const formSchema: FormSchema[] = [ |
|
|
|
field: 'sysOrgCode', |
|
|
|
field: 'sysOrgCode', |
|
|
|
component: 'JSelectDept', |
|
|
|
component: 'JSelectDept', |
|
|
|
componentProps: {}, |
|
|
|
componentProps: {}, |
|
|
|
|
|
|
|
defaultValue: useUserStore().getUserInfo?.orgCode, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '负责人', |
|
|
|
label: '负责人', |
|
|
|
field: 'projectCharger', |
|
|
|
field: 'projectCharger', |
|
|
|
component: 'JSelectUser', |
|
|
|
component: 'JSelectUser', |
|
|
|
componentProps: {}, |
|
|
|
componentProps: {}, |
|
|
|
|
|
|
|
defaultValue: useUserStore().getUserInfo?.username, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '项目类别', |
|
|
|
label: '项目类别', |
|
|
|
field: 'projectTypeid', |
|
|
|
field: 'projectTypeid', |
|
|
|
component: 'Input', |
|
|
|
component: 'Input', |
|
|
|
|
|
|
|
dynamicDisabled: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
label: '批次', |
|
|
@ -391,6 +405,11 @@ export const superQuerySchema = { |
|
|
|
projectCharger: {title: '负责人', order: 30, view: 'sel_user', type: 'string',}, |
|
|
|
projectCharger: {title: '负责人', order: 30, view: 'sel_user', type: 'string',}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// (function (){ |
|
|
|
|
|
|
|
// alert('1111111'); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// })(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 流程表单调用这个方法获取formSchema |
|
|
|
* 流程表单调用这个方法获取formSchema |
|
|
|
* @param param |
|
|
|
* @param param |
|
|
@ -399,3 +418,4 @@ export function getBpmFormSchema(_formData): FormSchema[] { |
|
|
|
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema |
|
|
|
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema |
|
|
|
return formSchema; |
|
|
|
return formSchema; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|