Browse Source

厂区班组维护

master
songguoqiang 7 months ago
parent
commit
0241d893a8
  1. 4
      src/views/eam/basic/classType/classType.data.ts
  2. 7
      src/views/eam/basic/classType/index.vue

4
src/views/eam/basic/classType/classType.data.ts

@ -106,7 +106,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
label: '班组类型',
field: 'type',
dictType: DICT_TYPE.CLASS_TYPE,
isSearch: false,
isSearch: true,
dictClass: 'string',
sort: 'custom',
form: {
@ -121,7 +121,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '所属厂区编号',
field: 'factoryAreaNumber',
isSearch: false,
isSearch: true,
sort: 'custom',
form: {
// labelMessage: '信息提示说明!!!',

7
src/views/eam/basic/classType/index.vue

@ -165,7 +165,8 @@ const formsSuccess = async (formType,data) => {
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
try{
if (formType === 'create') {
await ClassTypeApi.createClassType(data)
message.success(t('common.createSuccess'))
} else {
@ -174,6 +175,10 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
}finally {
basicFormRef.value.formLoading=false
}
}
/** 详情操作 */

Loading…
Cancel
Save