|
|
@ -9,7 +9,6 @@ import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
|
|
|
|
import * as WorkstationApi from '@/api/wms/workstation' |
|
|
|
import { Workstation } from '@/views/wms/basicDataManage/factoryModeling/workstation/workstation.data' |
|
|
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
@ -26,6 +25,19 @@ import { TableColumn } from '@/types/table' |
|
|
|
import * as InspectionQ3Api from '@/api/qms/inspectionQ3/inspectionQ3Main' |
|
|
|
import { InspectionQ3Main } from '@/views/qms/inspectionQ3/inspectionQ3.data' |
|
|
|
|
|
|
|
import { QadCostcentre } from '@/views/wms/basicDataManage/subject/qadCostcentre/qadCostcentre.data' |
|
|
|
import * as QadCostcentreApi from '@/api/wms/qadCostcentre/index' |
|
|
|
|
|
|
|
import { QadProject } from '@/views/wms/basicDataManage/subject/qadProject/qadProject.data' |
|
|
|
import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
|
|
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
|
import * as confgiApi from '@/api/infra/config' |
|
|
|
|
|
|
|
// import * as LocationApi from '@/api/wms/location'
|
|
|
|
// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
|
|
|
|
|
|
|
@ -47,6 +59,342 @@ const userDept = userStore.userSelfInfo.dept |
|
|
|
userDept.id = userDept.id.toString() |
|
|
|
const userDeptArray: any = [userDept] |
|
|
|
|
|
|
|
const confgiDataOne = await confgiApi.queryByKey("WorkStation-IN") |
|
|
|
const confgiDataTwo = await confgiApi.queryByKey("WorkStation-OUT") |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 工位 |
|
|
|
*/ |
|
|
|
export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '名称', |
|
|
|
field: 'name', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '原料库位', |
|
|
|
field: 'rawLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.selectAreaTypeToLocation, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: confgiDataOne.areaType, |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成品库位', |
|
|
|
field: 'fgLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.selectAreaTypeToLocation, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: confgiDataTwo.areaType, |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '类型',
|
|
|
|
// field: 'type',
|
|
|
|
// dictType: DICT_TYPE.WORK_STATION_TYPE,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isTable: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '车间代码', |
|
|
|
field: 'workshopCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
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', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'workshopCode', |
|
|
|
value:'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'TRUE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生效时间', |
|
|
|
field: 'activeTime', |
|
|
|
isTable: true, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '失效时间', |
|
|
|
field: 'expireTime', |
|
|
|
isTable: true, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
|
field: 'updateTime', |
|
|
|
sort: 'custom', |
|
|
|
isDetail: true, |
|
|
|
isForm: false, |
|
|
|
isTable: true, |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
|
field: 'updater', |
|
|
|
isDetail: true, |
|
|
|
isForm: false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false , |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 生产退料申请主表 |
|
|
|
*/ |
|
|
@ -63,6 +411,25 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
|
isForm: false, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'Q3通知单号', |
|
|
|
field: 'q3Number', |
|
|
@ -127,22 +494,134 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
label: '成本中心代码', |
|
|
|
field: 'costCenterCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
enterSearch: true, |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', |
|
|
|
searchField: 'costcentreCode', |
|
|
|
searchTitle: '成本中心代码', |
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, |
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, |
|
|
|
verificationParams: [{ |
|
|
|
key: 'costcentreCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '成本中心代码', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'costcentreCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心类型', |
|
|
|
field: 'costCenterType', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isTable:false, |
|
|
|
isTableForm:false, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '原因代码', |
|
|
|
field: 'reasonCodeRequisition', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
enterSearch: true, |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成领用原因代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '领用原因代码', |
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'costcentreType', |
|
|
|
value: 'costCenterType', |
|
|
|
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: SubjectAccount.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'costcentreType', |
|
|
|
value: 'costCenterType', |
|
|
|
message: '成本中心类型不能为空!', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -281,6 +760,8 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
@ -364,7 +845,9 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
@ -598,7 +1081,16 @@ export const ProductionscrapRequestMainRules = reactive({ |
|
|
|
{ required: true, message: '请选择车间', trigger: 'change' } |
|
|
|
], |
|
|
|
productionLineCode: [ |
|
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
|
{ required: false, message: '请选择生产线代码', trigger: 'change' } |
|
|
|
], |
|
|
|
lineScrapReason: [ |
|
|
|
{ required: true, message: '请选择报废原因', trigger: 'change' } |
|
|
|
], |
|
|
|
costCenterCode: [ |
|
|
|
{ required: true, message: '请选择成本中心代码', trigger: 'change' } |
|
|
|
], |
|
|
|
reasonCodeRequisition: [ |
|
|
|
{ required: true, message: '请选择原因代码', trigger: 'change' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
@ -615,6 +1107,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
@ -684,7 +1177,8 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
key: 'productionLineCode', |
|
|
|
value: 'productionLineCode', |
|
|
|
message: '请选择生产线信息!', |
|
|
|
isMainValue: true |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
}], |
|
|
|
|
|
|
|
|
|
|
@ -712,7 +1206,9 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
key: 'productionLineCode', |
|
|
|
value: 'productionLineCode', |
|
|
|
message: '请选择生产线信息!', |
|
|
|
isMainValue: true |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
|
|
|
|
}], |
|
|
|
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
|
|
|
|
isShowTableFormSearch: true, |
|
|
@ -937,6 +1433,52 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
disabled:true, |
|
|
|
min: 0, |
|
|
|
precision: 2, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存状态', |
|
|
|
field: 'inventoryStatus', |
|
|
@ -1006,10 +1548,48 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
enterSearch: true, |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择QAD项目信息', |
|
|
|
searchField: 'projectCode', |
|
|
|
searchTitle: '选择项目代码', |
|
|
|
searchAllSchemas: QadProject.allSchemas, |
|
|
|
searchPage: QadProjectApi.getQadProjectPage, |
|
|
|
verificationParams: [{ |
|
|
|
key: 'projectCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本
|
|
|
|
searchField: 'projectCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择项目代码', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadProject.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadProjectApi.getQadProjectPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'projectCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
@ -1036,6 +1616,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
enterSearch:true, |
|
|
|
isInpuFocusShow: true, |
|
|
@ -1095,6 +1676,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
}, |
|
|
@ -1113,6 +1695,7 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|