|
@ -9,6 +9,7 @@ import * as LocationApi from '@/api/wms/location' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
import * as getBusinessTypeApi from '@/api/wms/businesstype/index' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const ContainerMainRequestRules = reactive({ |
|
|
export const ContainerMainRequestRules = reactive({ |
|
@ -27,6 +28,17 @@ const queryParams = { |
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
const requestsettingData = data?.list[0] || {} |
|
|
const requestsettingData = data?.list[0] || {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const businessTypeQueryParams = { |
|
|
|
|
|
pageSize:10, |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
code:'ScrapContainerManage', |
|
|
|
|
|
name:'器具报废管理' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) |
|
|
|
|
|
const businessTypeData =businessTypeValue?.list[0]||{} |
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
// 获取当前操作人的部门
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
const userStore = useUserStore() |
|
|
const userStore = useUserStore() |
|
@ -63,6 +75,49 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '到库位代码',
|
|
|
|
|
|
// field: 'toLocationCode',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// tableForm:{
|
|
|
|
|
|
// isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
|
|
// searchField: 'code',
|
|
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
|
|
// searchPage: LocationApi.selectBusinessTypeToLocation,
|
|
|
|
|
|
// searchCondition: [{
|
|
|
|
|
|
// key: 'businessType',
|
|
|
|
|
|
// value: businessTypeData.code,
|
|
|
|
|
|
// },{
|
|
|
|
|
|
// key: 'isIn',
|
|
|
|
|
|
// value: 'in',
|
|
|
|
|
|
// isMainValue: false
|
|
|
|
|
|
// }]
|
|
|
|
|
|
// },
|
|
|
|
|
|
// form: {
|
|
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
|
|
// searchField: 'code',
|
|
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
|
|
// searchPage: LocationApi.selectBusinessTypeToLocation,
|
|
|
|
|
|
// searchCondition: [{
|
|
|
|
|
|
// key: 'businessType',
|
|
|
|
|
|
// value: businessTypeData.code,
|
|
|
|
|
|
// },{
|
|
|
|
|
|
// key: 'isIn',
|
|
|
|
|
|
// value: 'in',
|
|
|
|
|
|
// isMainValue: false
|
|
|
|
|
|
// }]
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '类型', |
|
|
label: '类型', |
|
|
field: 'type', |
|
|
field: 'type', |
|
@ -96,16 +151,18 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'mainRemark', |
|
|
field: 'mainRemark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: true |
|
|
isForm: true, |
|
|
|
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
|
field: 'departmentCode', |
|
|
field: 'departmentCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
return userDeptArray.find((account) => account.id == cellValue)?.name |
|
|
return userDeptArray.find((account) => account.id == cellValue)?.name |
|
@ -218,7 +275,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTable: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -227,8 +286,6 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTable: true, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
@ -236,8 +293,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 130 |
|
|
width: 130 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: true |
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -267,6 +325,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
isDetail: true, |
|
|
isDetail: true, |
|
|
|
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
@ -277,8 +336,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '扩展属性', |
|
|
label: '扩展属性', |
|
|
field: 'extraProperties', |
|
|
field: 'extraProperties', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false |
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '并发乐观锁', |
|
|
label: '并发乐观锁', |
|
@ -288,13 +348,15 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
value: 0 |
|
|
value: 0 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false |
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '地点ID', |
|
|
label: '地点ID', |
|
|
field: 'siteId', |
|
|
field: 'siteId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
@ -357,14 +419,14 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '器具号', |
|
|
label: '器具号', |
|
|
field: 'containerNumber', |
|
|
field: 'containerNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
tableForm: { |
|
|
tableForm:{ |
|
|
multiple: true, |
|
|
multiple:true, |
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择器具号', |
|
|
searchListPlaceholder: '请选择器具号', |
|
|
searchField: 'itemCode', |
|
|
searchField: 'itemCode', |
|
|
searchTitle: '库存余额信息', |
|
|
searchTitle: '库存余额信息', |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchPage: BalanceApi.selectConfigToBalance, |
|
|
searchPage: BalanceApi.getBalanceByQJ, |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -374,7 +436,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchField: 'itemCode', |
|
|
searchField: 'itemCode', |
|
|
searchTitle: '库存余额信息', |
|
|
searchTitle: '库存余额信息', |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
searchPage: BalanceApi.selectConfigToBalance, |
|
|
searchPage: BalanceApi.getBalanceByQJ, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -382,6 +444,9 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '来源库位代码', |
|
|
label: '来源库位代码', |
|
|
field: 'fromLocationCode', |
|
|
field: 'fromLocationCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -396,83 +461,70 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
// {
|
|
|
label: '目标库位代码', |
|
|
// label: '目标库位代码',
|
|
|
field: 'toLocationCode', |
|
|
// field: 'toLocationCode',
|
|
|
sort: 'custom', |
|
|
// sort: 'custom',
|
|
|
table: { |
|
|
// table: {
|
|
|
width: 150 |
|
|
// width: 150
|
|
|
}, |
|
|
// },
|
|
|
tableForm: { |
|
|
// tableForm: {
|
|
|
enterSearch:true, |
|
|
// enterSearch:true,
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
// isInpuFocusShow: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择到库位代码', |
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
searchField: 'code', |
|
|
// searchField: 'code',
|
|
|
searchTitle: '库位信息', |
|
|
// searchTitle: '库位信息',
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
// searchPage: LocationApi.selectPageItemAreaToLocation,
|
|
|
// 失去焦点校验参数
|
|
|
// // 失去焦点校验参数
|
|
|
verificationParams: [{ |
|
|
// verificationParams: [{
|
|
|
key: 'code', |
|
|
// key: 'code',
|
|
|
action: '==', |
|
|
// action: '==',
|
|
|
value: '', |
|
|
// value: '',
|
|
|
isMainValue: false, |
|
|
// isMainValue: false,
|
|
|
isSearch: 'true', |
|
|
// isSearch: 'true',
|
|
|
isFormModel: true, |
|
|
// isFormModel: true,
|
|
|
}] |
|
|
// }]
|
|
|
}, |
|
|
// },
|
|
|
form: { |
|
|
// form: {
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
// componentProps: {
|
|
|
enterSearch: true, |
|
|
// enterSearch: true,
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择到库位代码', |
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
searchField: 'code', |
|
|
// searchField: 'code',
|
|
|
searchTitle: '库位信息', |
|
|
// searchTitle: '库位信息',
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
// searchPage: LocationApi.selectPageItemAreaToLocation,
|
|
|
// 失去焦点校验参数
|
|
|
// // 失去焦点校验参数
|
|
|
verificationParams: [{ |
|
|
// verificationParams: [{
|
|
|
key: 'code', |
|
|
// key: 'code',
|
|
|
action: '==', |
|
|
// action: '==',
|
|
|
value: '', |
|
|
// value: '',
|
|
|
isMainValue: false, |
|
|
// isMainValue: false,
|
|
|
isSearch: 'true', |
|
|
// isSearch: 'true',
|
|
|
isFormModel: true, |
|
|
// isFormModel: true,
|
|
|
}] |
|
|
// }]
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
label: '从库存状态', |
|
|
// label: '从库存状态',
|
|
|
field: 'fromInventoryStatus', |
|
|
// field: 'fromInventoryStatus',
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
// dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
|
dictClass: 'string', |
|
|
// dictClass: 'string',
|
|
|
isTable: true, |
|
|
// isForm: false,
|
|
|
sort: 'custom', |
|
|
// isTableForm: false,
|
|
|
table: { |
|
|
// isTable: false,
|
|
|
width: 150 |
|
|
// sort: 'custom',
|
|
|
}, |
|
|
// table: {
|
|
|
tableForm: { |
|
|
// width: 150
|
|
|
disabled: true, |
|
|
// },
|
|
|
type: 'Select' |
|
|
// tableForm: {
|
|
|
}, |
|
|
// disabled: true,
|
|
|
}, |
|
|
// type: 'Select'
|
|
|
{ |
|
|
// },
|
|
|
label: '到库存状态', |
|
|
// },
|
|
|
field: 'toInventoryStatus', |
|
|
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
// {
|
|
|
// {
|
|
|
// label: '从数量',
|
|
|
// label: '从数量',
|
|
|
// field: 'fromQty',
|
|
|
// field: 'fromQty',
|
|
@ -482,7 +534,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '到数量', |
|
|
label: '数量', |
|
|
field: 'toQty', |
|
|
field: 'toQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
@ -514,11 +566,30 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '到库存状态', |
|
|
|
|
|
field: 'toInventoryStatus', |
|
|
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isTable: false, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select', |
|
|
|
|
|
disabled: true |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '子备注', |
|
|
label: '子备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTable: true |
|
|
isTable: true, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|