import * as vars from "@/variableSet/columns"; export const columns = [ { label: '编号', align: 'left', prop: 'locationGroupNo', width: vars.timeWidth, fixed: 'left', tooltip: true, }, { label: '名称', align: 'left', prop: 'locationGroupName', width: vars.timeWidth, fixed: 'left', }, { label: '工厂', align: 'left', prop: 'werks', fixed: 'left', width: vars.timeWidth, }, { label: '仓库编号', align: 'left', prop: 'lgort', width: vars.timeWidth, }, { label: '描述', align: 'left', prop: 'description', width: vars.timeWidth, tooltip: true, }, { label: '审核状态', align: 'left', prop: 'auditState', dataType: 'slot', slot: 'auditState', width: vars.timeWidth, }, { label: '审核人姓名', align: 'left', prop: 'auditUserName', width: vars.timeWidth, }, { label: '审核日期时间', align: 'left', prop: 'auditDateTime', width: vars.timeWidth, }, { 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: 'locationGroupName', label: '名称:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, { field: 'locationGroupNo', label: '编号:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, { field: 'lgort', label: '仓库编号:', labelWidth: 80, component: 'Input', componentProps: { placeholder: '请输入', }, }, // { // field: 'state', // label: '状态:', // labelWidth: 80, // component: 'Select', // componentProps: { // options: [ // { label: '启用', value: '1' }, // { label: '禁用', value: '0' }, // ], // }, // multiple: false, // }, ]; export const formatData = { locationGroupId: undefined, locationGroupNo: undefined, werks: undefined, locationGroupName: undefined, lgort: undefined, description: undefined, state: undefined, displayOrder: undefined, createdUserId: undefined, createdUserName: undefined, createdDateTime: undefined, auditState: undefined, auditUserId: undefined, auditUserName: undefined, auditDateTime: undefined, auditOpinion: undefined, lastUpdatedUserId: undefined, lastUpdatedUserName: undefined, lastUpdatedDateTime: undefined, isDeleted: undefined }; export const formrRquired = { locationGroupId: [ { required: true, message: "库位组ID不能为空", trigger: "blur" } ], locationGroupNo: [ { required: true, message: "库位组编号不能为空", trigger: "blur" } ], werks: [ { required: true, message: "工厂不能为空", trigger: "blur" } ], locationGroupName: [ { required: true, message: "库位组名称不能为空", trigger: "blur" } ], lgort: [ { required: true, message: "仓库编号不能为空", trigger: "blur" } ], description: [ { required: true, message: "描述不能为空", trigger: "blur" } ], state: [ { required: true, message: "状态不能为空", trigger: "blur" } ], displayOrder: [ { required: true, message: "排序不能为空", trigger: "blur" } ], createdUserId: [ { required: true, message: "创建人id不能为空", trigger: "blur" } ], createdUserName: [ { required: true, message: "创建人姓名不能为空", trigger: "blur" } ], createdDateTime: [ { required: true, message: "创建日期时间不能为空", trigger: "blur" } ], auditState: [ { required: true, message: "审核状态不能为空", trigger: "blur" } ], auditUserId: [ { required: true, message: "审核人ID不能为空", trigger: "blur" } ], auditUserName: [ { required: true, message: "审核人姓名不能为空", trigger: "blur" } ], auditDateTime: [ { required: true, message: "审核日期时间不能为空", trigger: "blur" } ], auditOpinion: [ { required: true, message: "审核意见不能为空", trigger: "blur" } ], lastUpdatedUserId: [ { required: true, message: "最后更新人id不能为空", trigger: "blur" } ], lastUpdatedUserName: [ { required: true, message: "最后更新人姓名不能为空", trigger: "blur" } ], lastUpdatedDateTime: [ { required: true, message: "最后更新时间不能为空", trigger: "blur" } ], isDeleted: [ { required: true, message: "是否删除不能为空", trigger: "blur" } ] } export const formatDataItem = [ { label: "编号", prop: 'locationGroupNo', component: 'input', // readonly: true }, { label: "名称", prop: 'locationGroupName', component: 'input' }, { label: "工厂", prop: 'werks', component: 'select', }, { label: "仓库编号", prop: 'lgort', component: 'input' }, // { // label: "是否启用", // prop: 'isUseLocation', // component: 'select' // }, // { // label: "管理员名称", // prop: 'userId', // component: 'input' // }, // { // label: "管理员电话", // prop: 'userPhone', // component: 'input' // }, // { // label: "坐标X", // prop: 'lowerDeviation', // component: 'inputNumber' // }, // { // label: "坐标Y", // prop: 'standardHigh', // component: 'inputNumber' // }, { label: "描述", prop: 'description', component: 'textarea' }, ]