Commit 1b36ac0a by 宋春膨

refactor(sbgl): 重构设备管理模块配置和接口定义

- 移除设备类型、设备状态、负责人、公司等字段配置
- 删除规格型号、整机编码、厂家、出厂编号等表单字段
- 移除保修期日期、本次检验日期等范围选择器配置
- 清空表单时间字段映射配置
- 移除相关字段的表格列定义
- 更新API模型定义,移除对应的字段类型
- 修改必填字段验证规则
- 统一开发环境API地址为localhost
parent 2686386c
...@@ -8,7 +8,7 @@ const config = { ...@@ -8,7 +8,7 @@ const config = {
IM_WS_URL:"ws://192.168.0.162:8878/im",// IM socket 地址 IM_WS_URL:"ws://192.168.0.162:8878/im",// IM socket 地址
} }
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
config.baseUrl = 'http://192.168.0.139:8080'; config.baseUrl = 'http://localhost:8080';
} else { } else {
config.baseUrl = 'http://192.168.0.72:8080'; config.baseUrl = 'http://192.168.0.72:8080';
} }
......
...@@ -17,7 +17,7 @@ VITE_DROP_CONSOLE = false ...@@ -17,7 +17,7 @@ VITE_DROP_CONSOLE = false
# 接口地址 # 接口地址
# 如果没有跨域问题,直接在这里配置即可 # 如果没有跨域问题,直接在这里配置即可
# VITE_GLOB_API_URL=http://192.168.8.73:8080 # VITE_GLOB_API_URL=http://192.168.8.73:8080
VITE_GLOB_API_URL=http://192.168.8.83:8080 VITE_GLOB_API_URL=http://localhost:8080
# 文件上传接口 可选 # 文件上传接口 可选
VITE_GLOB_UPLOAD_URL = /system/oss/upload VITE_GLOB_UPLOAD_URL = /system/oss/upload
......
...@@ -7,34 +7,6 @@ export interface MesEquipmentFileInfoPageParams extends BasicPageParams { ...@@ -7,34 +7,6 @@ export interface MesEquipmentFileInfoPageParams extends BasicPageParams {
sbmc: string; sbmc: string;
sbbm: string; sbbm: string;
sblx: string;
sbzt: string;
fzr: string;
gs: string;
ggxh: string;
zjbm: string;
cj: string;
ccbh: string;
zcdm: string;
syz: string;
bxqrq: string;
bcjyrq: string;
xcjyrq: string;
bz: string;
} }
/** /**
...@@ -53,27 +25,7 @@ export interface MesEquipmentFileInfoPageModel { ...@@ -53,27 +25,7 @@ export interface MesEquipmentFileInfoPageModel {
ggxh: string; ggxh: string;
zjbm: string;
cj: string;
fzr: string;
gs: string;
ccbh: string;
zcdm: string;
syz: string;
bxqrq: string;
bcjyrq: string;
xcjyrq: string; xcjyrq: string;
bz: string;
} }
/** /**
......
...@@ -14,188 +14,6 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -14,188 +14,6 @@ export const searchFormSchema: FormSchema[] = [
defaultValue: undefined, defaultValue: undefined,
component: 'Input', component: 'Input',
}, },
{
field: 'sblx',
label: '设备类型',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/jcxx//cjcx/getEquipmentType',
method: 'GET',
apiId: 'cd65b71f0c124581b331f52db2f9566b',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select lxid as value,lxmc as label from mes_equipment_dict where delete_mark = 0 and lxbm = \'type\' and zt = 1";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'sbzt',
label: '设备状态',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/jcxx//cjcx/getEquipmentStatus',
method: 'GET',
apiId: '265de6946ca24f5588374a54ac3c6484',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select lxid as value,lxmc as label from mes_equipment_dict where delete_mark = 0 and lxbm = \'status\' and zt = 1";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'fzr',
label: '负责人',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/bmxx/getEmployeeList',
method: 'GET',
apiId: 'copy1765432049337d61208',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select *,id as value,name as label from roke_employee where active = 1 and delete_mark = 0";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'gs',
label: '公司',
defaultValue: undefined,
component: 'XjrSelect',
componentProps: {
datasourceType: 'api',
apiConfig: {
path: '/bmxx/getCompanyList',
method: 'GET',
apiId: 'copy1765431632890d13798',
apiParams: [
{ key: '1', title: 'Query Params', tableInfo: [] },
{ key: '2', title: 'Header', tableInfo: [] },
{ key: '3', title: 'Body' },
],
script:
'var sql="select id as value,name as label from res_company";\r\nreturn db.select(sql);',
},
labelField: 'label',
valueField: 'value',
mode: 'multiple',
showSearch: true,
getPopupContainer: () => document.body,
},
},
{
field: 'ggxh',
label: '规格型号',
defaultValue: undefined,
component: 'Input',
},
{
field: 'zjbm',
label: '整机编码',
defaultValue: undefined,
component: 'Input',
},
{
field: 'cj',
label: '厂家',
defaultValue: undefined,
component: 'Input',
},
{
field: 'ccbh',
label: '出厂编号',
defaultValue: undefined,
component: 'Input',
},
{
field: 'zcdm',
label: '注册代码',
defaultValue: undefined,
component: 'Input',
},
{
field: 'syz',
label: '使用证编号',
defaultValue: undefined,
component: 'Input',
},
{
field: 'bxqrq',
label: '保修期日期',
defaultValue: undefined,
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm:ss',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
{
field: 'bcjyrq',
label: '本次检验日期',
defaultValue: undefined,
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm:ss',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
{
field: 'xcjyrq',
label: '下次检验日期',
defaultValue: undefined,
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm:ss',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
{
field: 'bz',
label: '备注',
defaultValue: undefined,
component: 'Input',
},
]; ];
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
...@@ -266,123 +84,6 @@ export const columns: BasicColumn[] = [ ...@@ -266,123 +84,6 @@ export const columns: BasicColumn[] = [
{ {
resizable: true, resizable: true,
dataIndex: 'zjbm',
title: '整机编码',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'cj',
title: '厂家',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'fzr',
title: '负责人',
componentType: 'select',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'gs',
title: '公司',
componentType: 'select',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'ccbh',
title: '出厂编号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'zcdm',
title: '注册代码',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'syz',
title: '使用证编号',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'bxqrq',
title: '保修期日期',
componentType: 'date',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'bcjyrq',
title: '本次检验日期',
componentType: 'date',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'xcjyrq', dataIndex: 'xcjyrq',
title: '下次检验日期', title: '下次检验日期',
componentType: 'date', componentType: 'date',
...@@ -393,19 +94,6 @@ export const columns: BasicColumn[] = [ ...@@ -393,19 +94,6 @@ export const columns: BasicColumn[] = [
styleConfig: undefined, styleConfig: undefined,
listStyle: undefined, listStyle: undefined,
}, },
{
resizable: true,
dataIndex: 'bz',
title: '备注',
componentType: 'textarea',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
},
]; ];
//表头合并配置 //表头合并配置
export const headerMergingData = []; export const headerMergingData = [];
...@@ -1267,7 +955,7 @@ export const formProps: FormProps = { ...@@ -1267,7 +955,7 @@ export const formProps: FormProps = {
disabled: false, disabled: false,
allowClear: false, allowClear: false,
showLabel: true, showLabel: true,
required: false, required: true,
rules: [], rules: [],
events: {}, events: {},
listStyle: '', listStyle: '',
......
...@@ -196,9 +196,7 @@ ...@@ -196,9 +196,7 @@
formConfig: { formConfig: {
labelWidth: 100, labelWidth: 100,
schemas: searchFormSchema, schemas: searchFormSchema,
fieldMapToTime: [['bxqrq', ['bxqrqStart', 'bxqrqEnd'], 'YYYY-MM-DD HH:mm:ss ', true], fieldMapToTime: [],
['bcjyrq', ['bcjyrqStart', 'bcjyrqEnd'], 'YYYY-MM-DD HH:mm:ss ', true],
['xcjyrq', ['xcjyrqStart', 'xcjyrqEnd'], 'YYYY-MM-DD HH:mm:ss ', true],],
showResetButton: false, showResetButton: false,
}, },
bordered:false, bordered:false,
......
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