| | |
| | | |
| | | const labelWidth = '20%' |
| | | import store from "@/store"; |
| | | const user = store.getters.userInfo |
| | | const userId = user.user_id |
| | | export default { |
| | | height:'auto', |
| | | calcHeight: 30, |
| | |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | display:false, |
| | | }, |
| | | { |
| | | label: "申请表主键", |
| | | prop: "application", |
| | | type: "input", |
| | | label: "申请编号", |
| | | labelWidth:'10%', |
| | | prop: "no", |
| | | span:24, |
| | | type: "select", |
| | | dicUrl: "/api/application/application/getAll?status=10&&userId="+userId, |
| | | props:{ |
| | | label:"no", |
| | | value:"no" |
| | | }, |
| | | typeformat(item, label, value) { |
| | | console.log(item,label,value) |
| | | return `${item[label]}` |
| | | }, |
| | | rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}] |
| | | }, |
| | | { |
| | | label: "延期时间", |
| | | prop: "delayTime", |
| | | type: "input", |
| | | label: "通行开始时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayStartTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:false, |
| | | }, |
| | | { |
| | | label: "租户id", |
| | | prop: "tenantId", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "通行开始时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayEndTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:false, |
| | | }, |
| | | { |
| | | label: "创建人", |
| | | prop: "createUser", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "行驶路线", |
| | | span:12, |
| | | row: true, |
| | | labelWidth:labelWidth, |
| | | prop: "pathWay", |
| | | type: "textarea", |
| | | minRows:2, |
| | | }, |
| | | { |
| | | label: "创建部门", |
| | | prop: "createDept", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "延期原因", |
| | | span: 12, |
| | | row:true, |
| | | labelWidth:labelWidth, |
| | | prop: "reason", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=delay_reason", |
| | | props:{ |
| | | label:"dictValue", |
| | | value:"dictKey" |
| | | } |
| | | }, |
| | | { |
| | | label: "创建时间", |
| | | prop: "createTime", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "备注", |
| | | labelWidth:labelWidth, |
| | | prop: "remark", |
| | | type: "textarea", |
| | | minRows:2, |
| | | }, |
| | | ] |
| | | } |
| | | |
| | | 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: "申请编号", |
| | | labelWidth:'10%', |
| | | prop: "no", |
| | | span:24, |
| | | type: "select", |
| | | disabled:true, |
| | | dicUrl: "/api/application/application/getAll?status=10", |
| | | props:{ |
| | | label:"no", |
| | | value:"no" |
| | | }, |
| | | }, |
| | | { |
| | | label: "修改人", |
| | | prop: "updateUser", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "通行开始时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayStartTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:true, |
| | | }, |
| | | { |
| | | label: "修改时间", |
| | | prop: "updateTime", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "通行开始时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayEndTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:true, |
| | | }, |
| | | { |
| | | label: "状态", |
| | | prop: "status", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "行驶路线", |
| | | span:12, |
| | | row: true, |
| | | labelWidth:labelWidth, |
| | | disabled:true, |
| | | prop: "pathWay", |
| | | type: "textarea", |
| | | minRows:2, |
| | | }, |
| | | { |
| | | label: "是否已删除", |
| | | prop: "isDeleted", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | label: "延期原因", |
| | | span: 12, |
| | | row:true, |
| | | labelWidth:labelWidth, |
| | | prop: "reason", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=delay_reason", |
| | | props:{ |
| | | label:"dictValue", |
| | | value:"dictKey" |
| | | }, |
| | | disabled:true, |
| | | }, |
| | | { |
| | | label: "备注", |
| | | labelWidth:labelWidth, |
| | | prop: "remark", |
| | | type: "textarea", |
| | | minRows:2, |
| | | disabled:true, |
| | | }, |
| | | ] |
| | | } |