Browse Source

BUG修改

master
parent
commit
7c7537bf01
  1. 33
      src/views/eam/basic/item/item.data.ts
  2. 18
      src/views/eam/basic/location/location.data.ts
  3. 1
      src/views/eam/basic/locationArea/locationArea.data.ts
  4. 77
      src/views/eam/item/itemAccounts/itemAccounts.data.ts

33
src/views/eam/basic/item/item.data.ts

@ -3,23 +3,13 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const ItemRules = reactive({ export const ItemRules = reactive({
name: [ number: [
{ required: true, message: '请输入备件名称', trigger: 'blur' }, { required: true, message: '请输入备件编号', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
uom: [ uom: [
{ required: true, message: '请选择备件单位', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
maxInventory: [
{ required: true, message: '请输入最高库存', trigger: 'blur' }
],
minInventory: [
{ required: true, message: '请输入最高库存', trigger: 'blur' }
],
classification: [
{ required: true, message: '请输入ABC分类', trigger: 'blur' }
],
}) })
export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([
@ -49,7 +39,7 @@ export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([
])) ]))
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '件编码', label: '件编码',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -59,7 +49,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '件名称', label: '件名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -175,10 +165,21 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: '价格', label: '价格',
field: 'price', field: 'price',
sort: 'custom', sort: 'custom',
isSearch: false,
table: { table: {
width: 110 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
}, },
{ {
label: '描述', label: '描述',

18
src/views/eam/basic/location/location.data.ts

@ -11,7 +11,6 @@ export const LocationRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
name: [ name: [
{ required: true, message: '请输入库位名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
areaNumber: [ areaNumber: [
@ -43,6 +42,23 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
field: 'areaNumber', field: 'areaNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库区编号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '库区信息', // 查询弹窗标题
searchAllSchemas: LocationArea.allSchemas, // 查询弹窗所需类
searchPage: LocationAreaApi.getLocationAreaPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: "TRUE",
isMainValue: false
}]
}
}
}, },
{ {
label: '创建时间', label: '创建时间',

1
src/views/eam/basic/locationArea/locationArea.data.ts

@ -8,7 +8,6 @@ export const LocationAreaRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
name: [ name: [
{ required: true, message: '请输入库区名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

77
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -135,21 +135,6 @@ export const ItemAccounts = useCrudSchemas(
width: 130 width: 130
}, },
}, },
// {
// label: '库位类型',
// field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// },
{ {
label: '库区类型', label: '库区类型',
field: 'type', field: 'type',
@ -188,21 +173,6 @@ export const ItemAccounts = useCrudSchemas(
} }
}, },
}, },
// {
// label: '库位类型',
// field: 'type',
// dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
// dictClass: 'string',
// isSearch: true,
// isTable: true,
// sort: 'custom',
// table: {
// width: 130
// },
// form: {
// component: 'Select'
// }
// },
{ {
label: '库存数量', label: '库存数量',
field: 'qty', field: 'qty',
@ -218,6 +188,53 @@ export const ItemAccounts = useCrudSchemas(
} }
} }
}, },
{
label: '单位',
field: 'uom',
sort: 'custom',
isSearch: false,
table: {
width: 110
},
},
{
label: '规格型号',
field: 'specifications',
sort: 'custom',
isSearch: false,
table: {
width: 110
},
},
{
label: 'ABC分类',
field: 'classification',
sort: 'custom',
dictType: DICT_TYPE.CLASSIFICATION,
dictClass: 'string',
isTable: true,
table: {
width: 100
} ,
},
{
label: '使用地点',
field: 'usePlace',
sort: 'custom',
isSearch: false,
table: {
width: 110
},
},
{
label: '项目',
field: 'project',
sort: 'custom',
isSearch: false,
table: {
width: 110
},
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

Loading…
Cancel
Save