|
@ -1,8 +1,8 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { ItemAccounts } from '@/views/eam/item/itemAccounts/itemAccounts.data' |
|
|
import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data' |
|
|
import * as ItemAccountsApi from '@/api/eam/item/itemAccounts' |
|
|
import * as ItemAccountsApi from '@/api/eam/itemAccounts' |
|
|
import * as DeviceMoldItemsApi from '@/api/eam/basic/deviceMaintenance' |
|
|
//import * as DeviceMoldItemsApi from '@/api/eam/basic/deviceMaintenance'
|
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
const { t } = useI18n() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
@ -43,23 +43,23 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
// {
|
|
|
label: '状态', |
|
|
// label: '状态',
|
|
|
field: 'status', |
|
|
// field: 'status',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
dictType: DICT_TYPE.ITEM_APPLY_STATUS, |
|
|
// dictType: DICT_TYPE.ITEM_APPLY_STATUS,
|
|
|
dictClass: 'string', |
|
|
// dictClass: 'string',
|
|
|
isSearch: true, |
|
|
// isSearch: true,
|
|
|
isTable: true, |
|
|
// isTable: true,
|
|
|
isForm: false, |
|
|
// isForm: false,
|
|
|
table: { |
|
|
// table: {
|
|
|
width: 150 |
|
|
// width: 150
|
|
|
}, |
|
|
// },
|
|
|
tableForm: { |
|
|
// tableForm: {
|
|
|
type: 'Select', |
|
|
// type: 'Select',
|
|
|
disabled: false |
|
|
// disabled: false
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '描述', |
|
|
label: '描述', |
|
|
field: 'name', |
|
|
field: 'name', |
|
@ -156,66 +156,66 @@ export const ItemApplyDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
// {
|
|
|
label: '类型', |
|
|
// label: '类型',
|
|
|
field: 'type', |
|
|
// field: 'type',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, |
|
|
// dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
|
|
|
dictClass: 'string', |
|
|
// dictClass: 'string',
|
|
|
isSearch: true, |
|
|
// isSearch: true,
|
|
|
isTable: true, |
|
|
// isTable: true,
|
|
|
table: { |
|
|
// table: {
|
|
|
width: 150 |
|
|
// width: 150
|
|
|
}, |
|
|
// },
|
|
|
tableForm: { |
|
|
// tableForm: {
|
|
|
type: 'Select', |
|
|
// type: 'Select',
|
|
|
disabled: false |
|
|
// disabled: false
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
label: '设备/模具编号', |
|
|
// label: '设备/模具编号',
|
|
|
field: 'deviceNumber', |
|
|
// field: 'deviceNumber',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
isSearch: true, |
|
|
// isSearch: true,
|
|
|
tableForm: { |
|
|
// tableForm: {
|
|
|
isInpuFocusShow: true, |
|
|
// isInpuFocusShow: true,
|
|
|
searchListPlaceholder: '请选择单号', |
|
|
// searchListPlaceholder: '请选择单号',
|
|
|
searchField: 'number', |
|
|
// searchField: 'number',
|
|
|
searchTitle: '单号信息', |
|
|
// searchTitle: '单号信息',
|
|
|
searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
|
|
|
// searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
|
|
|
// searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
// searchCondition: [{
|
|
|
key: 'available', |
|
|
// key: 'available',
|
|
|
value: "TRUE", |
|
|
// value: "TRUE",
|
|
|
isMainValue: false |
|
|
// isMainValue: false
|
|
|
}, { |
|
|
// }, {
|
|
|
key: 'type', |
|
|
// key: 'type',
|
|
|
value: "type", |
|
|
// value: "type",
|
|
|
isMainValue: true |
|
|
// isMainValue: true
|
|
|
} |
|
|
// }
|
|
|
] |
|
|
// ]
|
|
|
}, |
|
|
// },
|
|
|
form: { |
|
|
// form: {
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
// componentProps: {
|
|
|
isSearchList: true, |
|
|
// isSearchList: true,
|
|
|
searchListPlaceholder: '请选择单号', |
|
|
// searchListPlaceholder: '请选择单号',
|
|
|
searchField: 'number', |
|
|
// searchField: 'number',
|
|
|
searchTitle: '单号信息', |
|
|
// searchTitle: '单号信息',
|
|
|
searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
|
|
|
// searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
|
|
|
// searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
// searchCondition: [{
|
|
|
key: 'available', |
|
|
// key: 'available',
|
|
|
value: "TRUE", |
|
|
// value: "TRUE",
|
|
|
isMainValue: false |
|
|
// isMainValue: false
|
|
|
}, { |
|
|
// }, {
|
|
|
key: 'type', |
|
|
// key: 'type',
|
|
|
value: "type", |
|
|
// value: "type",
|
|
|
isMainValue: true |
|
|
// isMainValue: true
|
|
|
}] |
|
|
// }]
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '申领数量', |
|
|
label: '申领数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|