| | |
| | | import {idCardValidate, mobileValidate} from "@/util/formValidator"; |
| | | |
| | | const uploadUrl = '/api/blade-resource/oss/endpoint/put-file-attach' |
| | | const propsHttp = { |
| | | url:'link', |
| | |
| | | const labelWidth = '25%' |
| | | const urlLabelWidth='17%' |
| | | export default { |
| | | tabs:true, |
| | | height: 'auto', |
| | | calcHeight: 30, |
| | | tip: false, |
| | |
| | | label: "经办人姓名", |
| | | prop: "name", |
| | | type: "input", |
| | | labelWidth:labelWidth |
| | | labelWidth:labelWidth, |
| | | rules: [{required: true, message: "请输入经办人姓名", trigger: ['blur','change']}] |
| | | }, |
| | | { |
| | | label: "经办人身份证号", |
| | | prop: "idCard", |
| | | type: "input", |
| | | labelWidth:labelWidth |
| | | labelWidth:labelWidth, |
| | | rules: [{required: true, trigger: ['blur','change'],validator:idCardValidate}] |
| | | }, |
| | | { |
| | | label: "手机号", |
| | |
| | | type: "input", |
| | | span:12, |
| | | row:true, |
| | | labelWidth:labelWidth |
| | | labelWidth:labelWidth, |
| | | rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}] |
| | | }, |
| | | { |
| | | 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: "轴荷分布", |
| | |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | display:false, |
| | | hide:true, |
| | | }, |
| | | // { |
| | | // label: "申请编号", |
| | | // prop: "no", |
| | | // type: "input", |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // viewDisplay: false, |
| | | // }, |
| | | { |
| | | label: "申请编号", |
| | | prop: "no", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | display:false, |
| | | }, |
| | | { |
| | | label: "车牌号", |
| | | prop: "licensePlate", |
| | |
| | | viewDisplay: false, |
| | | display:false, |
| | | }, |
| | | |
| | | { |
| | | label: "完善意见", |
| | | prop: "suggestion", |
| | | type: "textarea", |
| | | 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, |
| | | hide: true, |
| | | span:24, |
| | | labelWidth:'10%' |
| | | 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%' |
| | | // } |
| | | ] |
| | | } |