Commit 48ab03f8 by 张珈源

feat(ckgl/kcpd): 添加业务组织字段支持

- 在库存项接口中添加 ywzz 字段定义
- 在配置文件中添加业务组织表单项配置
- 将业务组织字段映射到盘点列表数据中
- 配置业务组织输入框的默认属性和样式
- 实现业务组织字段的数据绑定功能
parent df09ba27
...@@ -220,6 +220,7 @@ export interface InventoryFilterParams { ...@@ -220,6 +220,7 @@ export interface InventoryFilterParams {
} }
export interface InventoryItem { export interface InventoryItem {
ywzz: string;
id: string; id: string;
cpmc: string; cpmc: string;
cplx: string; cplx: string;
......
...@@ -51,6 +51,7 @@ async function handleStartInventory(_schema, formModel, formActionType) { ...@@ -51,6 +51,7 @@ async function handleStartInventory(_schema, formModel, formActionType) {
pch: item.pch, pch: item.pch,
pdsl: item.pdsl ?? 0, pdsl: item.pdsl ?? 0,
zbid: item.zbid, zbid: item.zbid,
ywzz: item.ywzz,
})) || []; })) || [];
await formActionType?.setFieldsValue?.({ mesWarehouseInventoryRelaList: list }); await formActionType?.setFieldsValue?.({ mesWarehouseInventoryRelaList: list });
formActionType?.showMessage?.(list.length ? '开始盘点成功' : '未查询到匹配数据'); formActionType?.showMessage?.(list.length ? '开始盘点成功' : '未查询到匹配数据');
...@@ -896,6 +897,36 @@ export const formProps: FormProps = { ...@@ -896,6 +897,36 @@ export const formProps: FormProps = {
listStyle: "return 'width:100%'", listStyle: "return 'width:100%'",
}, },
}, },
{
key: '27434506e48e4d63afb6b31af571b319',
title: '业务组织',
dataIndex: 'ywzz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入业务组织',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
},
},
{ title: '操作', key: 'action', fixed: 'right', width: '50px' }, { title: '操作', key: 'action', fixed: 'right', width: '50px' },
], ],
span: '24', span: '24',
......
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