Commit 9d5a680d by 张珈源

feat(ckgl/kcpd): 新增处理盈亏功能和业务组织字段

- 在库存盘点配置中添加处理盈亏按钮组件
- 为mesWarehouseInventoryRelaList表添加业务组织字段
- 从数据模型中移除重复的业务组织字段定义
- 更新工作流权限配置以支持新的按钮和字段
- 优化API文件中的注释和代码结构
- 添加获取和删除库存信息的相关接口文档注释
parent d90b2d7f
......@@ -15,6 +15,7 @@ enum Api {
MesWarehouseInventory = '/ckgl/kcpd',
Inventory = '/ckgl/kczb/Inventory',
Export = '/ckgl/kcpd/export',
}
export async function getMesWarehouseInventoryPage(
......@@ -32,6 +33,9 @@ export async function getMesWarehouseInventoryPage(
);
}
/**
* @description: 获取MesWarehouseInventory信息
*/
export async function getMesWarehouseInventory(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<MesWarehouseInventoryPageModel>(
{
......@@ -74,6 +78,9 @@ export async function updateMesWarehouseInventory(
);
}
/**
* @description: 删除MesWarehouseInventory(批量删除)
*/
export async function deleteMesWarehouseInventory(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
......@@ -88,7 +95,7 @@ export async function deleteMesWarehouseInventory(ids: string[], mode: ErrorMess
export async function exportMesWarehouseInventory(
params?: object,
mode: ErrorMessageMode = 'modal',
mode: ErrorMessageMode = 'modal'
) {
return defHttp.download(
{
......@@ -103,6 +110,7 @@ export async function exportMesWarehouseInventory(
);
}
export async function getInventoryByFilter(
params: InventoryFilterParams,
mode: ErrorMessageMode = 'modal',
......
......@@ -129,6 +129,8 @@ export interface MesWarehouseInventoryRelaModel {
pdid: string;
cpbh: string;
cp: string;
cplx: string;
......@@ -139,6 +141,8 @@ export interface MesWarehouseInventoryRelaModel {
pdsl: string;
ywzz: string;
p1: string;
p2: string;
......
......@@ -163,4 +163,3 @@
</script>
\ No newline at end of file
......@@ -359,6 +359,50 @@ export const formProps: FormProps = {
},
],
},
{
span: 2,
list: [
{
key: 'f0dcaa5c8080475f94114c779b55bd7f',
label: '处理盈亏',
type: 'button',
component: 'Button',
colProps: { span: 24 },
componentProps: {
name: '处理盈亏',
buttonStyleType: 'primary',
buttonWidth: '',
buttonHeight: '',
datasourceType: 'api',
prefix: '',
suffix: '',
labelField: 'label',
valueField: 'value',
apiConfig: {
path: 'CodeGeneration/assoc-selection',
method: 'GET',
apiId: 'ac61f579074c465aaf017d64284a44a3',
outputParams: [
{ name: 'label', tableTitle: 'label' },
{ name: 'value', tableTitle: 'value' },
],
},
dicOptions: [],
disabled: false,
isShow: true,
margin: '10px',
events: {},
modal: null,
type: 1,
event: [],
tooltipConfig: { visible: false, title: '提示文本' },
span: 7,
width: '',
height: '',
},
},
],
},
],
componentProps: {
gutter: 0,
......@@ -719,6 +763,37 @@ export const formProps: FormProps = {
mainKey: 'mesWarehouseInventoryRelaList',
columns: [
{
key: 'a64dec69ac534215b055bd63e16d0f77',
title: '业务组织',
dataIndex: 'ywzz',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入业务组织',
maxlength: null,
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: '提示文本' },
},
},
{
key: '63c46f68444c4092aff3d711a0e4f1c4',
title: '产品',
dataIndex: 'cp',
......@@ -897,36 +972,6 @@ export const formProps: FormProps = {
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' },
],
span: '24',
......
......@@ -45,6 +45,21 @@ export const permissionList = [
options: {},
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '处理盈亏',
isSubTable: false,
showChildren: true,
type: 'button',
key: 'f0dcaa5c8080475f94114c779b55bd7f',
children: [],
options: {},
},
{
required: true,
view: true,
edit: true,
......@@ -180,6 +195,21 @@ export const permissionList = [
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseInventoryRelaList',
fieldName: '业务组织',
fieldId: 'ywzz',
type: 'Input',
key: 'a64dec69ac534215b055bd63e16d0f77',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseInventoryRelaList',
fieldName: '产品',
fieldId: 'cp',
type: 'XjrSelect',
......
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