Commit ef0a7c28 by 金民

feat(scjh): 更新生产计划配置和表单字段

- 修改搜索表单项:将计划编号字段替换为订单编号字段
- 移除重复的订单编号表单项
- 删除客户项目号表格列
- 交换状态和业务组织字段的显示顺序
- 清理下拉选择组件的空参数配置
- 在产品详情中新增产品ID字段配置
- 更新API模型接口定义以匹配新的字段结构
- 添加工作流权限配置中的产品ID字段权限设置
parent bc65f91b
import {
MesProductionPlanPageModel,
MesProductionPlanPageParams,
MesProductionPlanPageResult,
} from './model/ScjhModel';
import { MesProductionPlanPageModel, MesProductionPlanPageParams, MesProductionPlanPageResult } from './model/ScjhModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
......@@ -17,10 +14,7 @@ enum Api {
/**
* @description: 查询MesProductionPlan分页列表
*/
export async function getMesProductionPlanPage(
params: MesProductionPlanPageParams,
mode: ErrorMessageMode = 'modal',
) {
export async function getMesProductionPlanPage(params: MesProductionPlanPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<MesProductionPlanPageResult>(
{
url: Api.Page,
......@@ -50,10 +44,7 @@ export async function getMesProductionPlan(id: String, mode: ErrorMessageMode =
/**
* @description: 新增MesProductionPlan
*/
export async function addMesProductionPlan(
mesProductionPlan: Recordable,
mode: ErrorMessageMode = 'modal',
) {
export async function addMesProductionPlan(mesProductionPlan: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.MesProductionPlan,
......@@ -68,10 +59,7 @@ export async function addMesProductionPlan(
/**
* @description: 更新MesProductionPlan
*/
export async function updateMesProductionPlan(
mesProductionPlan: Recordable,
mode: ErrorMessageMode = 'modal',
) {
export async function updateMesProductionPlan(mesProductionPlan: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.MesProductionPlan,
......
......@@ -6,11 +6,11 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface MesProductionPlanPageParams extends BasicPageParams {
jhbh: string;
ddbh: string;
ssgs: string;
zt: string;
ddbh: string;
}
/**
......@@ -23,13 +23,11 @@ export interface MesProductionPlanPageModel {
jhbh: string;
khxmh: string;
kh: string;
zt: string;
ssgs: string;
zt: string;
}
/**
......
......@@ -222,4 +222,3 @@
});
</script>
\ No newline at end of file
......@@ -3,9 +3,15 @@ import { BasicColumn } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [
// {
// field: 'jhbh',
// label: '计划编号',
// defaultValue: undefined,
// component: 'Input',
// },
{
field: 'jhbh',
label: '计划编号',
field: 'ddbh',
label: '订单编号',
defaultValue: undefined,
component: 'Input',
},
......@@ -39,12 +45,6 @@ export const searchFormSchema: FormSchema[] = [
getPopupContainer: () => document.body,
},
},
{
field: 'ddbh',
label: '订单编号',
defaultValue: '',
component: 'Input',
},
];
export const columns: BasicColumn[] = [
......@@ -76,19 +76,6 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'khxmh',
title: '客户项目号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'kh',
title: '客户',
componentType: 'select',
......@@ -102,8 +89,8 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'zt',
title: '状态',
dataIndex: 'ssgs',
title: '业务组织',
componentType: 'select',
fixed: false,
......@@ -115,8 +102,8 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'ssgs',
title: '业务组织',
dataIndex: 'zt',
title: '状态',
componentType: 'select',
fixed: false,
......@@ -422,7 +409,6 @@ export const formProps: FormProps = {
],
defaultSelect: '',
datasourceType: 'api',
params: null,
labelField: 'label',
valueField: 'value',
apiConfig: {
......@@ -489,7 +475,6 @@ export const formProps: FormProps = {
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
params: { itemId: '2015724355955159041' },
defaultSelect: null,
itemId: '2015724355955159041',
style: { width: '100%' },
},
......@@ -522,6 +507,38 @@ export const formProps: FormProps = {
mainKey: 'mesProductionPlanProductList',
columns: [
{
key: 'd762849da7e741a7b004c1c81b91593a',
title: '产品ID',
dataIndex: 'cpid',
componentType: 'Input',
defaultValue: '',
componentProps: {
width: '100%',
span: '',
defaultValue: '',
placeholder: '请输入产品ID产品ID',
maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false,
allowClear: false,
showLabel: true,
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: false,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'id',
},
},
{
key: 'cd0038f42bc64c189b3821f0e2061321',
title: '物料编号',
dataIndex: 'cpbh',
......
......@@ -154,6 +154,21 @@ export const permissionList = [
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionPlanProductList',
fieldName: '产品ID',
fieldId: 'cpid',
type: 'Input',
key: 'd762849da7e741a7b004c1c81b91593a',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesProductionPlanProductList',
fieldName: '物料编号',
fieldId: 'cpbh',
type: 'Input',
......
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