import {idCardValidate, mobileValidate} from "@/util/formValidator"; const uploadUrl = '/api/blade-resource/oss/endpoint/put-file-attach' const propsHttp = { url:'link', res: 'data' } const labelWidth = '25%' const urlLabelWidth='17%' export default { tabs:true, height: 'auto', calcHeight: 30, tip: false, searchShow: true, searchMenuSpan: 6, border: true, index: true, viewBtn: false, delBtn:false, editBtn:false, selection: true, dialogClickModal: false, group: [ { label: '基本信息', collapse: true, prop: 'basicInfo', arrow:false, column: [ { label: "经办人姓名", prop: "name", type: "input", labelWidth:labelWidth, rules: [{required: true, message: "请输入经办人姓名", trigger: ['blur','change']}] }, { label: "经办人身份证号", prop: "idCard", type: "input", labelWidth:labelWidth, rules: [{required: true, trigger: ['blur','change'],validator:idCardValidate}] }, { label: "手机号", prop: "phone", type: "input", span:12, row:true, labelWidth:labelWidth, rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}] }, { label: "通行开始时间", prop: "startTime", type: "date", format:'yyyy-MM-dd', valueFormat:'yyyy-MM-dd', labelWidth:labelWidth }, { label: "通行结束时间", prop: "endTime", type: "date", format:'yyyy-MM-dd', valueFormat:'yyyy-MM-dd', labelWidth:labelWidth }, { label: "起运机构", prop: "transportDept", type: "input", labelWidth:labelWidth }, { label: "途径省份", prop: "passProvince", type: "input", labelWidth:labelWidth }, { label: "出发地", prop: "departure", type: "input", labelWidth:labelWidth }, { label: "目的地", prop: "destination", type: "input", labelWidth:labelWidth }, { label: "通行路线", prop: "pathway", type: "textarea", row:true, minRows:2, labelWidth:labelWidth }, { label: "通行桥涵", prop: "passBridge", type: "textarea", row:true, minRows:2, labelWidth:labelWidth }, ] }, { label: '附件上传', collapse: true, prop: 'url', arrow:false, column: [ { label: "护送方案", prop: "schemeUrl", type: 'upload', loadText: '附件上传中,请稍等', span: 24, propsHttp:propsHttp, action: uploadUrl }, { label: "运输计划", prop: "planUrl", type: 'upload', loadText: '附件上传中,请稍等', span: 24, propsHttp:propsHttp, action: uploadUrl }, ] }, { label: '车辆货物信息', collapse: true, prop: 'goods', arrow: false, column: [ { label: "货物信息", prop: "goodsName", labelWidth:labelWidth, type: "input", }, { label: "货物分类", prop: "goodsCategory", labelWidth:labelWidth, type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_category", props:{ label:"dictValue", value:"dictKey" } }, { label: "货物类别", prop: "goodsType", labelWidth:labelWidth, type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_type", props:{ label:"dictValue", value:"dictKey" } }, { label: "轴荷分布", prop: "axialLoad", labelWidth:labelWidth, type: "input", append:'轴', }, { label: "货物重量", labelWidth:labelWidth, prop: "weight", type: "input", append:'吨', }, { label: "车货总重量", labelWidth:labelWidth, prop: "allWeight", type: "input", append:'吨', }, { label: "货物最大长度", labelWidth:labelWidth, prop: "length", type: "input", append:'米', }, { label: "货物最大宽度", labelWidth:labelWidth, prop: "width", type: "input", append:'米', }, { label: "货物最大高度", labelWidth:labelWidth, prop: "height", type: "input", append:'米', span:12, row:true }, { label: "车货最大长度", labelWidth:labelWidth, prop: "allLength", type: "input", append:'米', }, { label: "车货最大宽度", labelWidth:labelWidth, prop: "allWidth", type: "input", append:'米', }, { label: "车货最大高度", labelWidth:labelWidth, prop: "allHeight", type: "input", append:'米', }, { label: "备注", prop: "remark", type: "textarea", labelWidth:'10%', span: 24, minRows:2, }, ] }, { label: '运输车辆信息', collapse: true, prop: 'car', arrow:false, column: [ { 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: '相关证件图片', collapse: true, prop: 'url', arrow:false, column: [ { label: "道路运输经营许可证图片", labelWidth:urlLabelWidth, prop: "roadLicenseUrl", type: 'upload', span: 24, listType: 'picture-card', accept:'image/png, image/jpeg', propsHttp:propsHttp, action: uploadUrl }, { label: "经办人身份证", labelWidth:urlLabelWidth, prop: "idLicenseUrl", type: 'upload', span: 24, listType: 'picture-card', accept:'image/png, image/jpeg', limit:2, propsHttp: propsHttp, action:uploadUrl }, { label: "车辆行驶证", labelWidth:urlLabelWidth, prop: "licenseUrl", type: 'upload', span: 24, listType: 'picture-card', accept:'image/png, image/jpeg', propsHttp:propsHttp, action: uploadUrl }, { label: "车货照片", labelWidth:urlLabelWidth, prop: "skeletonUrl", type: 'upload', span: 24, listType: 'picture-card', accept:'image/png, image/jpeg', propsHttp:propsHttp, action: uploadUrl }, { label: "授权委托书", labelWidth:urlLabelWidth, prop: "attorneyUrl", type: 'upload', span: 24, listType: 'picture-card', accept:'image/png, image/jpeg', propsHttp:propsHttp, action: uploadUrl }, ] }, ], column: [ { label: "申请编号", prop: "id", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, hide:true, }, { label: "申请编号", prop: "no", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, { label: "车牌号", prop: "licensePlate", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, { 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, }, { label: "企业名称", prop: "enterpriseName", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, { label: "法定代表人", prop: "legalPerson", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, { label: "货物名称", prop: "goodsName", type: "input", addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, { label: "货物分类", prop: "goodsCategory", labelWidth:labelWidth, type: "select", dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_category", props:{ label:"dictValue", value:"dictKey" }, addDisplay: false, editDisplay: false, viewDisplay: false, display:false, }, // { // label: "完善意见", // prop: "suggestion", // type: "textarea", // addDisplay: false, // editDisplay: false, // viewDisplay: false, // display: true, // hide: true, // span:24, // labelWidth:'10%' // }, // { // label: "批复意见", // prop: "comment", // type: "textarea", // addDisplay: false, // editDisplay: false, // viewDisplay: false, // display: true, // hide: true, // span:24, // labelWidth:'10%' // } ] }