大件运输联网系统前端代码
guoshilong
2023-01-02 29bf5936bf1da2eea81f3abe07dc738f5267c42c
src/const/application/application.js
@@ -1,3 +1,5 @@
import {idCardValidate, mobileValidate} from "@/util/formValidator";
const uploadUrl = '/api/blade-resource/oss/endpoint/put-file-attach'
const propsHttp = {
  url:'link',
@@ -6,6 +8,7 @@
const labelWidth = '25%'
const urlLabelWidth='17%'
export default {
  tabs:true,
  height: 'auto',
  calcHeight: 30,
  tip: false,
@@ -14,10 +17,12 @@
  border: true,
  index: true,
  viewBtn: false,
  addBtn:false,
  delBtn:false,
  editBtn:false,
  selection: true,
  dialogClickModal: false,
  menu:false,
  group: [
    {
      label: '基本信息',
@@ -29,13 +34,17 @@
          label: "经办人姓名",
          prop: "name",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
          rules: [{required: true, message: "请输入经办人姓名", trigger: ['blur','change']}]
        },
        {
          label: "经办人身份证号",
          prop: "idCard",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
          rules: [{required: true, trigger: ['blur','change'],validator:idCardValidate}]
        },
        {
          label: "手机号",
@@ -43,47 +52,74 @@
          type: "input",
          span:12,
          row:true,
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
          rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}]
        },
        // {
        //   label: "通行开始时间",
        //   prop: "startPassTime",
        //   type: "date",
        //   format:'yyyy-MM-dd',
        //   valueFormat:'yyyy-MM-dd',
        //   labelWidth:labelWidth,
        //   disabled:false,
        //   pickerOptions: {
        //     disabledDate(time) {
        //       return time.getTime() < Date.now();
        //     },
        //   }
        // },
        // {
        //   label: "通行结束时间",
        //   prop: "endPassTime",
        //   type: "date",
        //   format:'yyyy-MM-dd',
        //   valueFormat:'yyyy-MM-dd',
        //   labelWidth:labelWidth,
        //   disabled:false,
        // },
        {
          label: "通行开始时间",
          prop: "startTime",
          type: "date",
          label: "通行时间段",
          prop: "passTime",
          type: "daterange",
          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
          labelWidth:labelWidth,
          disabled:false,
          pickerOptions: {
            disabledDate(time) {
              return time.getTime() < Date.now();
            },
          }
        },
        {
          label: "起运机构",
          prop: "transportDept",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "途径省份",
          prop: "passProvince",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "出发地",
          prop: "departure",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "目的地",
          prop: "destination",
          type: "input",
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "通行路线",
@@ -91,7 +127,8 @@
          type: "textarea",
          row:true,
          minRows:2,
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "通行桥涵",
@@ -99,7 +136,8 @@
          type: "textarea",
          row:true,
          minRows:2,
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
      ]
    },
@@ -115,6 +153,7 @@
          type: 'upload',
          loadText: '附件上传中,请稍等',
          span: 24,
          disabled:false,
          propsHttp:propsHttp,
          action: uploadUrl
        },
@@ -124,6 +163,7 @@
          type: 'upload',
          loadText: '附件上传中,请稍等',
          span: 24,
          disabled:false,
          propsHttp:propsHttp,
          action: uploadUrl
        },
@@ -139,18 +179,45 @@
          label: "货物信息",
          prop: "goodsName",
          labelWidth:labelWidth,
          disabled:false,
          type: "input",
        },
        {
          label: "货物分类",
          prop: "goodsCategory",
          labelWidth:labelWidth,
          disabled:false,
          type: "select",
          dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_category",
          props:{
            label:"dictValue",
            value:"dictKey"
          }
        },
        {
          label: "货物类别",
          prop: "goodsType",
          labelWidth:labelWidth,
          disabled:false,
          type: "select",
          dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_type",
          props:{
            label:"dictValue",
            value:"dictKey"
          }
        },
        {
          label: "轴荷分布",
          prop: "axialLoad",
          labelWidth:labelWidth,
          disabled:false,
          type: "input",
          append:'轴',
        },
        {
          label: "货物重量",
          labelWidth:labelWidth,
          disabled:false,
          prop: "weight",
          type: "input",
          append:'吨',
@@ -158,6 +225,7 @@
        {
          label: "车货总重量",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allWeight",
          type: "input",
          append:'吨',
@@ -165,6 +233,7 @@
        {
          label: "货物最大长度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "length",
          type: "input",
          append:'米',
@@ -172,6 +241,7 @@
        {
          label: "货物最大宽度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "width",
          type: "input",
          append:'米',
@@ -179,6 +249,7 @@
        {
          label: "货物最大高度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "height",
          type: "input",
          append:'米',
@@ -188,6 +259,7 @@
        {
          label: "车货最大长度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allLength",
          type: "input",
          append:'米',
@@ -195,6 +267,7 @@
        {
          label: "车货最大宽度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allWidth",
          type: "input",
          append:'米',
@@ -202,6 +275,7 @@
        {
          label: "车货最大高度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allHeight",
          type: "input",
          append:'米',
@@ -213,6 +287,7 @@
          labelWidth:'10%',
          span: 24,
          minRows:2,
          disabled:false,
        },
      ]
    },
@@ -349,15 +424,17 @@
      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",
@@ -408,17 +485,44 @@
      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%'
    // }
  ]
}