import * as vars from "@/variableSet/columns"; export const columns = [ { label: '检验项目编号', align: 'left', prop: 'checkItemNo', width: vars.checkItemNo, fixed: 'left', tooltip: true, }, { label: '检验项目名称', align: 'left', prop: 'checkItemName', width: vars.checkItemName, fixed: 'left', }, { label: '统计类型', prop: 'checkType', width: vars.checkType, dataType: 'slot', slot: 'checkType' }, { label: '技术要求', align: 'left', prop: 'checkStandard', width: vars.checkStandard, }, { label: '参考标准值', align: 'left', prop: 'standardVal', width: vars.standardVal, }, { label: '参考上限值', align: 'left', prop: 'standardHigh', width: vars.standardHigh, }, { label: '参考下限值', align: 'left', prop: 'standardLow', width: vars.standardLow, }, { label: '检验工具', align: 'left', prop: 'checkTool', width: vars.checkTool, }, { label: '是否自动判断', align: 'left', prop: 'isAutoCheck', width: vars.isAutoCheck, dataType: 'slot', slot: 'isAutoCheck' }, { label: '是否必填', align: 'left', prop: 'isRequired', width: vars.isRequired, dataType: 'slot', slot: 'isRequired' }, { label: '是否SPC', align: 'left', prop: 'isToSpc', width: vars.isToSpc, dataType: 'slot', slot: 'isToSpc' }, { label: '单位', align: 'left', prop: 'unit', width: vars.unit, }, { label: '是否启用', prop: 'status', width: vars.status, dataType: 'slot', slot: 'status' }, { label: '备注', align: 'left', prop: 'description', width: vars.description, tooltip: true, }, { label: '最后更新人姓名', align: 'left', prop: 'lastUpdatedUserName', width: vars.lastUpdatedUserName, }, { label: '最后更新日期时间', align: 'left', prop: 'lastUpdatedDateTime', width: vars.lastUpdatedDateTime, }, { dataType: 'option', label: '操作', width: '80', align: 'center', fixed: 'right', hasPermi: 'iqc_checkItem_check', operation: [ { name: '查看', size: 'mini', plain: true, typeText: 4 } ] } ]; export const searchFormSchema = [ { field: 'checkItemNo', label: '检验项目编号:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, { field: 'checkItemName', label: '检验项目名称:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, { field: 'checkType', label: '统计类型:', labelWidth: 80, component: 'Select', componentProps: { options: [ { label: '定性', value: 1 }, { label: '定量', value: 3 }, ], }, multiple: false, }, { field: 'checkStandard', label: '技术要求:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, ]; export const formatData = { checkItemId: undefined, checkItemNo: undefined, checkItemName: undefined, bizType: 10, checkItemType: undefined, materialId: undefined, materialCatagoryId: undefined, procedureId: undefined, checkItemCategoryId: undefined, checkItemControlId: undefined, checkItemControlType: undefined, checkItemControlParameter: undefined, checkTool: undefined, checkType: undefined, checkStandard: undefined, standardVal: undefined, upperDeviation: undefined, lowerDeviation: undefined, standardHigh: undefined, standardLow: undefined, unit: undefined, isRequired: undefined, isSelfExternal: undefined, isAutoCheck: undefined, isToSpc: undefined, isSupplierCheckItem: undefined, description: undefined, displayOrder: undefined, status: undefined, createdUserId: undefined, createdUserName: undefined, createdDateTime: undefined, lastUpdatedUserId: undefined, lastUpdatedUserName: undefined, lastUpdatedDateTime: undefined, isDeleted: undefined }; export const formrRquired = { checkItemName: [ { required: true, message: "检验项目名称不能为空", trigger: "blur" } ], checkType: [ { required: true, message: "统计类型", trigger: "change" } ], unit: [ { required: true, message: "计量单位不能为空", trigger: "blur" } ], upperDeviation: [{ required: true, message: "上偏差不能为空", trigger: "blur" }], lowerDeviation: [{ required: true, message: "下偏差不能为空", trigger: "blur" }], unit: [ { required: true, message: "计量单位不能为空", trigger: "blur" } ], standardHigh: [{ required: true, message: "参考上限值不能为空", trigger: "blur" }], standardLow: [{ required: true, message: "参考下限值不能为空", trigger: "blur" }], } export const formatDataItem = [ { label: "检验项目编号", prop: 'checkItemNo', component: 'input', readonly: true }, { label: "检验项目名称", prop: 'checkItemName', component: 'input' }, { label: "统计类型", prop: 'checkType', component: 'select', }, { label: "库位组", prop: 'locationGroupNo', component: 'select', }, { label: "技术要求", prop: 'checkStandard', component: 'input' }, { label: "检验工具", prop: 'checkTool', component: 'input' }, { label: "参考标准值", prop: 'standardVal', component: 'inputNumber' }, { label: "上公差", prop: 'upperDeviation', component: 'inputNumber' }, { label: "下公差", prop: 'lowerDeviation', component: 'inputNumber' }, { label: "参考上限值", prop: 'standardHigh', component: 'inputNumber' }, { label: "参考下限值", prop: 'standardLow', component: 'inputNumber' }, { label: "是否自动判断", prop: 'isAutoCheck', component: 'select' }, { label: "是否必填", prop: 'isRequired', component: 'select' }, { label: "是否SPC", prop: 'isToSpc', component: 'select' }, { label: "单位", prop: 'unit', component: 'input' }, { label: "备注", prop: 'description', component: 'textarea' }, { label: "状态", prop: 'status', component: 'select' }, ]