const labelWidth = '15%' import store from "@/store"; const user = store.getters.userInfo const userId = user.user_id export default { height:'auto', calcHeight: 30, tip: false, searchShow: true, searchMenuSpan: 6, border: true, index: true, addBtn:false, viewBtn: true, selection: true, dialogClickModal: false, menu:false, column: [ { label: "主键", prop: "id", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, display:false, }, { label: "申请编号", labelWidth:labelWidth, prop: "no", type: "select", dicUrl: "/api/application/application/getAll?status=10&&passStatus=1&&userId="+userId, props:{ label:"no", value:"no" }, typeformat(item, label) { return `${item[label]}` }, rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}] }, { label: "变更原因", span: 12, labelWidth:labelWidth, prop: "reason", type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=car_change_reason", props:{ label:"dictValue", value:"dictKey" } }, { label: "变更车牌号", prop: "carLicense", type: "input", labelWidth:labelWidth, }, { label: "厂牌型号", prop: "carModel", labelWidth:labelWidth, type: "input", }, { label: "变更挂车牌号", prop: "trailerLicense", type: "input", labelWidth:labelWidth, }, { label: "挂车厂牌型号", prop: "trailerModel", type: "input", labelWidth:labelWidth, }, { label: "装备质量", prop: "equipmentWeight", type: "input", labelWidth:labelWidth, append:'吨', }, { label: "轴数", prop: "shaftNumber", type: "input", labelWidth:labelWidth, append:'轴', }, { label: "轮胎数", prop: "tireNumber", type: "input", labelWidth:labelWidth, }, { label: "轴距", prop: "wheelbase", type: "input", labelWidth:labelWidth, append:'米', }, { label: "办理进度", prop: "status", type: "select", props: { label: "dictValue", value: "dictKey" }, dicUrl:'/api/blade-system/dict-biz/dictionary?code=application_status', addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, ] } export const detailOption={ height:'auto', calcHeight: 30, tip: false, submitBtn:false, emptyBtn:false, border: true, index: true, selection: true, dialogClickModal: false, detail:true, column: [ { label: "主键", prop: "id", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, display:false, disabled:true, }, { label: "申请编号", labelWidth:labelWidth, disabled:true, prop: "no", type: "select", dicUrl: "/api/application/application/getAll?status=10&&userId="+userId, props:{ label:"no", value:"no" }, typeformat(item, label) { return `${item[label]}` }, rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}] }, { label: "变更原因", disabled:true, span: 12, labelWidth:labelWidth, prop: "reason", type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=car_change_reason", props:{ label:"dictValue", value:"dictKey" } }, { label: "变更车牌号", disabled:true, prop: "carLicense", type: "input", labelWidth:labelWidth, }, { label: "厂牌型号", disabled:true, prop: "carModel", labelWidth:labelWidth, type: "input", }, { label: "变更挂车牌号", disabled:true, prop: "trailerLicense", type: "input", labelWidth:labelWidth, }, { label: "挂车厂牌型号", disabled:true, prop: "trailerModel", type: "input", labelWidth:labelWidth, }, { label: "装备质量", disabled:true, prop: "equipmentWeight", type: "input", labelWidth:labelWidth, append:'吨', }, { label: "轴数", disabled:true, prop: "shaftNumber", type: "input", labelWidth:labelWidth, append:'轴', }, { label: "轮胎数", disabled:true, prop: "tireNumber", type: "input", labelWidth:labelWidth, }, { label: "轴距", disabled:true, prop: "wheelbase", type: "input", labelWidth:labelWidth, append:'米', }, ] }