|
|
@ -1,6 +1,9 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
import * as getBusinessTypeApi from '@/api/wms/businesstype/index' |
|
|
@ -17,6 +20,12 @@ export const ProductredressRequestMainRules = reactive({ |
|
|
|
autoAgree: [required], |
|
|
|
autoExecute: [required], |
|
|
|
directCreateRecord: [required], |
|
|
|
workshopCode: [ |
|
|
|
{ required: true, message: '请选择车间代码', trigger: 'change' } |
|
|
|
], |
|
|
|
productionLineCode: [ |
|
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -55,6 +64,106 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '车间代码', |
|
|
|
field: 'workshopCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择车间', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '车间信息', |
|
|
|
searchAllSchemas: Workshop.allSchemas, |
|
|
|
searchPage: WorkshopApi.getWorkshopPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生产线代码', |
|
|
|
field: 'productionLineCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
tableForm: { |
|
|
|
enterSearch: true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择生产线代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '生产线信息', |
|
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'workshopCode', |
|
|
|
value: 'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择生产线代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '生产线信息', |
|
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'workshopCode', |
|
|
|
value: 'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '车间代码',
|
|
|
|
// field: 'workshopCode',
|
|
|
|