Commit 13c8299c by 张珈源

refactor(ckgl): 更新生产领料模块组件配置和字段类型

- 将领料单位字段从Input组件改为Dept组件,并添加相应属性配置
- 将领料人字段从Input组件改为User组件,并配置选择器属性
- 更新表格列定义中的组件类型为对应的选择器组件
- 调整表单布局配置中的组件类型和属性设置
- 修改工作流权限配置中的字段类型定义
- 添加单据编号字段到数据模型接口
- 更新按钮配置中的打印功能ID
parent 7fe9c7af
......@@ -17,6 +17,8 @@ export interface MesWarehousePromaterialPageParams extends BasicPageParams {
export interface MesWarehousePromaterialPageModel {
id: string;
djbh: string;
djrq: string;
lldw: string;
......@@ -27,8 +29,6 @@ export interface MesWarehousePromaterialPageModel {
kgy: string;
djbh: string;
bz: string;
}
......
......@@ -13,19 +13,40 @@ export const searchFormSchema: FormSchema[] = [
field: 'lldw',
label: '领料单位',
defaultValue: undefined,
component: 'Input',
component: 'Dept',
componentProps: {
placeholder: '请选择',
getPopupContainer: () => document.body,
},
},
{
field: 'llr',
label: '领料人',
defaultValue: undefined,
component: 'Input',
component: 'User',
componentProps: {
suffix: 'ant-design:setting-outlined',
placeholder: '请选择',
},
},
];
export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'djbh',
title: '单据编号',
componentType: 'auto-code',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'djrq',
title: '单据日期',
componentType: 'date',
......@@ -41,26 +62,26 @@ export const columns: BasicColumn[] = [
resizable: true,
dataIndex: 'lldw',
title: '领料单位',
componentType: 'input',
componentType: 'organization',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'llr',
title: '领料人',
componentType: 'input',
componentType: 'user',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
listStyle: undefined,
},
{
......@@ -91,19 +112,6 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'djbh',
title: '单据编号',
componentType: 'auto-code',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'bz',
title: '备注',
componentType: 'input',
......@@ -258,34 +266,23 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: '2e1a848d54b144d994cb147279cc1b96',
key: '70dd6f50e807416eafb7ca0ea7fdc401',
field: 'lldw',
label: '领料单位',
type: 'input',
component: 'Input',
type: 'organization',
component: 'Dept',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '请输入领料单位',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
width: '100%',
orgzType: 0,
placeholder: '请选择领料单位',
isShowAllName: false,
showLabel: true,
disabled: false,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
......@@ -296,34 +293,27 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: '602d674a8361431fa689d42f72bf4662',
key: '2e8683cce6cd40dea3d890b3d421a588',
field: 'llr',
label: '领料人',
type: 'input',
component: 'Input',
type: 'user',
component: 'User',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
width: '100%',
defaultValue: '',
placeholder: '请输入领料人',
placeholder: '请选择领料人',
userType: 0,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
disabled: false,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
multiple: true,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
......
......@@ -43,11 +43,10 @@ export const permissionList = [
fieldId: 'lldw',
isSubTable: false,
showChildren: true,
type: 'input',
key: '2e1a848d54b144d994cb147279cc1b96',
type: 'organization',
key: '70dd6f50e807416eafb7ca0ea7fdc401',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
......@@ -60,8 +59,8 @@ export const permissionList = [
fieldId: 'llr',
isSubTable: false,
showChildren: true,
type: 'input',
key: '602d674a8361431fa689d42f72bf4662',
type: 'user',
key: '2e8683cce6cd40dea3d890b3d421a588',
children: [],
options: {},
defaultValue: '',
......
......@@ -134,7 +134,7 @@
//展示在列表内的按钮
const actionButtons = ref<string[]>(["view","edit","delete"]);
const buttonConfigs = computed(()=>{
const list = [{"buttonId":"2010557152968171520","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2010557152972365824","name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true,"isEnableLock":true},{"name":"打印","code":"print","icon":"ant-design:printer-outlined","isDefault":true,"isUse":true},{"buttonId":"2010557152972365825","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]
const list = [{"buttonId":"2010557152968171520","name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"buttonId":"2010557152972365824","name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true,"isEnableLock":true},{"buttonId":"2013779484670955520","name":"打印","code":"print","icon":"ant-design:printer-outlined","isDefault":true,"isUse":true},{"buttonId":"2010557152972365825","name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]
return filterButtonAuth(list);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment