Commit fb89aec5 by sunhaiwei

产品信息页面添加是否启用批次字段

parent aae663c2
...@@ -28,6 +28,8 @@ export interface MesBaseProductInfoPageModel { ...@@ -28,6 +28,8 @@ export interface MesBaseProductInfoPageModel {
cplx: string; cplx: string;
bzzl: string; bzzl: string;
sfqypc: string;
} }
/** /**
...@@ -101,6 +103,8 @@ export interface MesBaseProductInfoModel { ...@@ -101,6 +103,8 @@ export interface MesBaseProductInfoModel {
modifyUserId: string; modifyUserId: string;
p1: string; p1: string;
sfqypc: string;
} }
/** /**
......
import { FormProps, FormSchema } from '/@/components/Form'; import { FormProps, FormSchema } from '/@/components/Form';
import { BasicColumn } from '/@/components/Table'; import { BasicColumn } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload';
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
...@@ -137,6 +136,19 @@ export const columns: BasicColumn[] = [ ...@@ -137,6 +136,19 @@ export const columns: BasicColumn[] = [
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: undefined,
}, },
{
resizable: true,
dataIndex: 'sfqypc',
title: '是否启用批次',
componentType: 'switch',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
]; ];
//表头合并配置 //表头合并配置
export const headerMergingData = []; export const headerMergingData = [];
...@@ -686,6 +698,29 @@ export const formProps: FormProps = { ...@@ -686,6 +698,29 @@ export const formProps: FormProps = {
style: { width: '100%' }, style: { width: '100%' },
}, },
}, },
{
key: '1c96dccdc764461690cb631d5cc2662b',
field: 'sfqypc',
label: '是否启用批次',
type: 'switch',
component: 'Switch',
colProps: { span: 24 },
defaultValue: 1,
componentProps: {
span: 7,
defaultValue: 1,
checkedChildren: '',
unCheckedChildren: '',
checkedColor: '#1C8DFF',
unCheckedColor: '#bbbdbf',
showLabel: true,
disabled: false,
events: {},
isShow: true,
tooltipConfig: { visible: false, title: '提示文本' },
style: {},
},
},
], ],
}, },
{ {
...@@ -846,7 +881,6 @@ export const formProps: FormProps = { ...@@ -846,7 +881,6 @@ export const formProps: FormProps = {
}, },
], ],
}, },
], ],
componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true }, componentProps: { tabPosition: 'top', size: 'default', type: 'line', isShow: true },
}, },
......
...@@ -207,6 +207,23 @@ export const permissionList = [ ...@@ -207,6 +207,23 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '是否启用批次',
fieldId: 'sfqypc',
isSubTable: false,
showChildren: true,
type: 'switch',
key: '1c96dccdc764461690cb631d5cc2662b',
children: [],
options: {},
defaultValue: 1,
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '型号', fieldName: '型号',
fieldId: 'xh', fieldId: 'xh',
isSubTable: false, isSubTable: false,
......
...@@ -28,7 +28,14 @@ ...@@ -28,7 +28,14 @@
</template> </template>
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.componentType === 'switch'">
<a-switch
v-model:checked="record[column.dataIndex]"
:unCheckedValue="0"
:checkedValue="1"
:disabled="true"
/>
</template>
<template v-if="column.dataIndex === 'action'"> <template v-if="column.dataIndex === 'action'">
......
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