|
@ -1,4 +1,6 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
|
|
import { LocationArea, LocationAreaRules } from '../../basic/locationArea/locationArea.data' |
|
|
|
|
|
import * as LocationAreaApi from '@/api/eam/basic/locationArea' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const CountadjustPlanRules = reactive({ |
|
|
export const CountadjustPlanRules = reactive({ |
|
@ -26,7 +28,7 @@ export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '盘点类型', |
|
|
label: '盘点类型', |
|
|
field: 'classification', |
|
|
field: 'classificationView', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.CLASSIFICATION, |
|
|
dictType: DICT_TYPE.CLASSIFICATION, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
@ -34,38 +36,63 @@ export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isForm: true, |
|
|
isForm: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component:'Select', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
multiple: true, |
|
|
|
|
|
disabled: false |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
|
|
|
multiple: true, |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
|
disabled: false |
|
|
disabled: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否账内库', |
|
|
label: '是否账内库', |
|
|
field: 'isInAccount', |
|
|
field: 'isInAccountView', |
|
|
|
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
isForm: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 140 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select', |
|
|
|
|
|
inactiveValue: 'FALSE', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'Switch', |
|
|
component:'Select', |
|
|
value: 'TRUE', |
|
|
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
inactiveValue: 'FALSE', |
|
|
multiple: true, |
|
|
activeValue: 'TRUE' |
|
|
disabled: false |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
multiple: true, |
|
|
|
|
|
type: 'Select', |
|
|
|
|
|
disabled: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '库区编号', |
|
|
|
|
|
field: 'areaNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
multiple: true, |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库区编号', // 输入框占位文本
|
|
|
|
|
|
searchField: 'number', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库区', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: LocationArea.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationAreaApi.getLocationAreaPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|