Commit 74cd62ad by 张珈源

feat(ckgl/cgdh): 添加厂商批次字段支持

- 在CgdhModel.ts中为四个接口模型添加cspc字段定义
- 在config.ts中配置厂商批次字段的表单组件和表格列
- 将原有的总数量字段位置调整,新增厂商批次字段配置
- 更新workflowPermission.ts中的工作流权限配置映射
- 移除多余的数据源默认选择配置项
parent 2be08900
...@@ -13,6 +13,8 @@ export interface MesWarehouseArrivedPageParams extends BasicPageParams { ...@@ -13,6 +13,8 @@ export interface MesWarehouseArrivedPageParams extends BasicPageParams {
zdr: string; zdr: string;
ywzz: string; ywzz: string;
cspc: string;
} }
/** /**
...@@ -38,6 +40,8 @@ export interface MesWarehouseArrivedPageModel { ...@@ -38,6 +40,8 @@ export interface MesWarehouseArrivedPageModel {
ywzz: string; ywzz: string;
bz: string; bz: string;
cspc: string;
} }
/** /**
...@@ -64,6 +68,8 @@ export interface MesWarehouseArrivedModel { ...@@ -64,6 +68,8 @@ export interface MesWarehouseArrivedModel {
ywzz: string; ywzz: string;
cspc: string;
fj: string; fj: string;
bz: string; bz: string;
...@@ -121,6 +127,8 @@ export interface MesWarehouseArrivedInfoModel { ...@@ -121,6 +127,8 @@ export interface MesWarehouseArrivedInfoModel {
xqbm: string; xqbm: string;
cspc: string;
sfzp: string; sfzp: string;
sfzj: string; sfzj: string;
......
...@@ -56,6 +56,12 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -56,6 +56,12 @@ export const searchFormSchema: FormSchema[] = [
getPopupContainer: () => document.body, getPopupContainer: () => document.body,
}, },
}, },
{
field: 'cspc',
label: '厂商批次',
defaultValue: undefined,
component: 'Input',
},
]; ];
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
...@@ -175,6 +181,19 @@ export const columns: BasicColumn[] = [ ...@@ -175,6 +181,19 @@ export const columns: BasicColumn[] = [
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: undefined,
}, },
{
resizable: true,
dataIndex: 'cspc',
title: '厂商批次',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
]; ];
//表头合并配置 //表头合并配置
export const headerMergingData = []; export const headerMergingData = [];
...@@ -349,7 +368,6 @@ export const formProps: FormProps = { ...@@ -349,7 +368,6 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' }, { key: 3, label: 'Option 3', value: 'Option 3' },
], ],
defaultSelect: null,
datasourceType: 'dic', datasourceType: 'dic',
params: { itemId: '2010533622867509249' }, params: { itemId: '2010533622867509249' },
labelField: 'name', labelField: 'name',
...@@ -395,7 +413,6 @@ export const formProps: FormProps = { ...@@ -395,7 +413,6 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' }, { key: 3, label: 'Option 3', value: 'Option 3' },
], ],
defaultSelect: null,
datasourceType: 'dic', datasourceType: 'dic',
params: { itemId: '2010539474382962690' }, params: { itemId: '2010539474382962690' },
labelField: 'name', labelField: 'name',
...@@ -510,7 +527,6 @@ export const formProps: FormProps = { ...@@ -510,7 +527,6 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' }, { key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' }, { key: 3, label: 'Option 3', value: 'Option 3' },
], ],
defaultSelect: null,
datasourceType: 'dic', datasourceType: 'dic',
params: { itemId: '2015724355955159041' }, params: { itemId: '2015724355955159041' },
labelField: 'name', labelField: 'name',
...@@ -536,27 +552,35 @@ export const formProps: FormProps = { ...@@ -536,27 +552,35 @@ export const formProps: FormProps = {
span: 8, span: 8,
list: [ list: [
{ {
key: '4ca80a2d3a8244bc8d3380b6b0457c25', key: 'ac1495dbcbde4305b9e30167b92fcc7b',
field: 'zsl', field: 'cspc',
label: '总数量', label: '厂商批次',
type: 'number', type: 'input',
component: 'InputNumber', component: 'Input',
colProps: { span: 24 }, colProps: { span: 24 },
defaultValue: 0, defaultValue: '',
componentProps: { componentProps: {
width: '100%', width: '100%',
span: 7, span: 7,
defaultValue: 0, defaultValue: '',
min: 0, placeholder: '请输入厂商批次',
step: 1, maxlength: null,
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: false, disabled: false,
allowClear: false,
showLabel: true, showLabel: true,
controls: true,
required: false, required: false,
subTotal: false,
isShow: false,
rules: [], rules: [],
events: {}, events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' }, tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' }, style: { width: '100%' },
}, },
...@@ -664,6 +688,37 @@ export const formProps: FormProps = { ...@@ -664,6 +688,37 @@ export const formProps: FormProps = {
}, },
], ],
}, },
{
span: 8,
list: [
{
key: '4ca80a2d3a8244bc8d3380b6b0457c25',
field: 'zsl',
label: '总数量',
type: 'number',
component: 'InputNumber',
colProps: { span: 24 },
defaultValue: 0,
componentProps: {
width: '100%',
span: 7,
defaultValue: 0,
min: 0,
step: 1,
disabled: false,
showLabel: true,
controls: true,
required: false,
subTotal: false,
isShow: false,
rules: [],
events: {},
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
},
],
},
], ],
componentProps: { componentProps: {
gutter: 16, gutter: 16,
...@@ -855,7 +910,6 @@ export const formProps: FormProps = { ...@@ -855,7 +910,6 @@ export const formProps: FormProps = {
span: '', span: '',
defaultValue: '', defaultValue: '',
placeholder: '', placeholder: '',
maxlength: null,
prefix: '', prefix: '',
suffix: '', suffix: '',
addonBefore: '', addonBefore: '',
...@@ -984,6 +1038,37 @@ export const formProps: FormProps = { ...@@ -984,6 +1038,37 @@ export const formProps: FormProps = {
}, },
}, },
{ {
key: 'd5ad3321ea444ead9034b6acb9e376a8',
title: '厂商批次',
dataIndex: 'cspc',
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: 'd2d0c0c885684a99a792beb3dc3415ba', key: 'd2d0c0c885684a99a792beb3dc3415ba',
title: '是否赠品', title: '是否赠品',
dataIndex: 'sfzp', dataIndex: 'sfzp',
......
...@@ -122,15 +122,15 @@ export const permissionList = [ ...@@ -122,15 +122,15 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '总数量', fieldName: '厂商批次',
fieldId: 'zsl', fieldId: 'cspc',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'number', type: 'input',
key: '4ca80a2d3a8244bc8d3380b6b0457c25', key: 'ac1495dbcbde4305b9e30167b92fcc7b',
children: [], children: [],
options: {}, options: {},
defaultValue: 0, defaultValue: '',
}, },
{ {
required: false, required: false,
...@@ -184,6 +184,23 @@ export const permissionList = [ ...@@ -184,6 +184,23 @@ export const permissionList = [
defaultValue: '', defaultValue: '',
}, },
{ {
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '总数量',
fieldId: 'zsl',
isSubTable: false,
showChildren: true,
type: 'number',
key: '4ca80a2d3a8244bc8d3380b6b0457c25',
children: [],
options: {},
defaultValue: 0,
},
{
required: true, required: true,
view: true, view: true,
edit: true, edit: true,
...@@ -355,6 +372,21 @@ export const permissionList = [ ...@@ -355,6 +372,21 @@ export const permissionList = [
isSaveTable: false, isSaveTable: false,
showChildren: false, showChildren: false,
tableName: 'mesWarehouseArrivedInfoList', tableName: 'mesWarehouseArrivedInfoList',
fieldName: '厂商批次',
fieldId: 'cspc',
type: 'Input',
key: 'd5ad3321ea444ead9034b6acb9e376a8',
children: [],
},
{
required: true,
view: true,
edit: true,
disabled: false,
isSubTable: false,
isSaveTable: false,
showChildren: false,
tableName: 'mesWarehouseArrivedInfoList',
fieldName: '是否赠品', fieldName: '是否赠品',
fieldId: 'sfzp', fieldId: 'sfzp',
type: 'Input', 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