import * as vars from "@/variableSet/columns"; export const columns = [ { label: '编号', align: 'left', prop: 'lgort', width: vars.checkItemNo, fixed: 'left', tooltip: true, }, { label: '名称', align: 'left', prop: 'warehouseName', width: vars.checkItemName, fixed: 'left', }, { label: '工厂', align: 'left', prop: 'werks', width: vars.checkItemName, fixed: 'left', }, { label: '类型', align: 'left', prop: 'type', width: vars.checkItemName, }, { label: '是否启用', prop: 'isUseLocation', width: vars.checkType, dataType: 'slot', slot: 'isUseLocation' }, { label: '管理员名称', align: 'left', prop: 'userName', width: vars.checkStandard, }, { label: '管理员电话', align: 'left', prop: 'userPhone', width: vars.standardVal, }, { label: '坐标X', align: 'left', prop: 'coordinateX', width: vars.standardHigh, }, { label: '坐标Y', align: 'left', prop: 'coordinateY', width: vars.standardLow, }, { 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: 'werks', // label: '工厂:', // labelWidth: 80, // component: 'Select', // componentProps: { // placeholder: '请选择', // }, // }, { field: 'warehouseName', 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 = { warehouseId: undefined, lgort: undefined, warehouseName: undefined, werks: undefined, type: undefined, isUseLocation: undefined, userId: undefined, userPhone: undefined, coordinateX: undefined, coordinateY: undefined, description: undefined, state: undefined, displayOrder: undefined, createdUserId: undefined, createdUserName: undefined, createdDateTime: undefined, lastUpdatedUserId: undefined, lastUpdatedUserName: undefined, lastUpdatedDateTime: undefined, isDeleted: undefined }; export const formrRquired = { warehouseId: [ { required: true, message: "仓库ID不能为空", trigger: "blur" } ], lgort: [ { required: true, message: "仓库编号不能为空", trigger: "blur" } ], warehouseName: [ { required: true, message: "名称不能为空", trigger: "blur" } ], werks: [ { required: true, message: "工厂不能为空", trigger: "blur" } ], type: [ { required: true, message: "类别不能为空", trigger: "change" } ], // isUseLocation: [ // { required: true, message: "0,不启用 // 1,启用不能为空", trigger: "blur" } // ], userId: [ { required: true, message: "管理员ID不能为空", trigger: "blur" } ], userPhone: [ { required: true, message: "管理员电话不能为空", trigger: "blur" } ], coordinateX: [ { required: true, message: "坐标X不能为空", trigger: "blur" } ], coordinateY: [ { required: true, message: "坐标Y不能为空", trigger: "blur" } ], // description: [ // { required: true, message: "描述不能为空", trigger: "blur" } // ], // state: [ // { required: true, message: "状态不能为空", trigger: "blur" } // ], } export const formatDataItem = [ { label: "仓库编号", prop: 'lgort', component: 'input', // readonly: true }, { label: "名称", prop: 'warehouseName', component: 'input' }, { label: "工厂", prop: 'werks', component: 'select', }, { label: "类型", prop: 'type', component: 'select' }, { label: "是否启用", prop: 'isUseLocation', component: 'select' }, { label: "管理员名称", prop: 'userId', component: 'input' }, { label: "管理员电话", prop: 'userPhone', component: 'input' }, { label: "坐标X", prop: 'coordinateX', component: 'inputNumber' }, { label: "坐标Y", prop: 'coordinateY', component: 'inputNumber' }, { label: "描述", prop: 'description', component: 'textarea' }, ]