大件运输联网系统前端代码
guoshilong
2023-01-02 29bf5936bf1da2eea81f3abe07dc738f5267c42c
src/const/application/application.js
@@ -17,10 +17,12 @@
  border: true,
  index: true,
  viewBtn: false,
  addBtn:false,
  delBtn:false,
  editBtn:false,
  selection: true,
  dialogClickModal: false,
  menu:false,
  group: [
    {
      label: '基本信息',
@@ -33,6 +35,7 @@
          prop: "name",
          type: "input",
          labelWidth:labelWidth,
          disabled:false,
          rules: [{required: true, message: "请输入经办人姓名", trigger: ['blur','change']}]
        },
        {
@@ -40,6 +43,7 @@
          prop: "idCard",
          type: "input",
          labelWidth:labelWidth,
          disabled:false,
          rules: [{required: true, trigger: ['blur','change'],validator:idCardValidate}]
        },
        {
@@ -49,47 +53,73 @@
          span:12,
          row:true,
          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: "通行路线",
@@ -97,7 +127,8 @@
          type: "textarea",
          row:true,
          minRows:2,
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
        {
          label: "通行桥涵",
@@ -105,7 +136,8 @@
          type: "textarea",
          row:true,
          minRows:2,
          labelWidth:labelWidth
          labelWidth:labelWidth,
          disabled:false,
        },
      ]
    },
@@ -121,6 +153,7 @@
          type: 'upload',
          loadText: '附件上传中,请稍等',
          span: 24,
          disabled:false,
          propsHttp:propsHttp,
          action: uploadUrl
        },
@@ -130,6 +163,7 @@
          type: 'upload',
          loadText: '附件上传中,请稍等',
          span: 24,
          disabled:false,
          propsHttp:propsHttp,
          action: uploadUrl
        },
@@ -145,12 +179,14 @@
          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:{
@@ -162,6 +198,7 @@
          label: "货物类别",
          prop: "goodsType",
          labelWidth:labelWidth,
          disabled:false,
          type: "select",
          dicUrl: "/api/blade-system/dict-biz/dictionary?code=goods_type",
          props:{
@@ -173,12 +210,14 @@
          label: "轴荷分布",
          prop: "axialLoad",
          labelWidth:labelWidth,
          disabled:false,
          type: "input",
          append:'轴',
        },
        {
          label: "货物重量",
          labelWidth:labelWidth,
          disabled:false,
          prop: "weight",
          type: "input",
          append:'吨',
@@ -186,6 +225,7 @@
        {
          label: "车货总重量",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allWeight",
          type: "input",
          append:'吨',
@@ -193,6 +233,7 @@
        {
          label: "货物最大长度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "length",
          type: "input",
          append:'米',
@@ -200,6 +241,7 @@
        {
          label: "货物最大宽度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "width",
          type: "input",
          append:'米',
@@ -207,6 +249,7 @@
        {
          label: "货物最大高度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "height",
          type: "input",
          append:'米',
@@ -216,6 +259,7 @@
        {
          label: "车货最大长度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allLength",
          type: "input",
          append:'米',
@@ -223,6 +267,7 @@
        {
          label: "车货最大宽度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allWidth",
          type: "input",
          append:'米',
@@ -230,6 +275,7 @@
        {
          label: "车货最大高度",
          labelWidth:labelWidth,
          disabled:false,
          prop: "allHeight",
          type: "input",
          append:'米',
@@ -241,6 +287,7 @@
          labelWidth:'10%',
          span: 24,
          minRows:2,
          disabled:false,
        },
      ]
    },