From 1e376296b2d8abbcdd051b1e75d860353c8bb19d Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 16 Dec 2022 17:09:08 +0800
Subject: [PATCH] 添加审核工作流

---
 src/const/application/application.js |   93 +++++++++++++++++++++++++++++++++++++---------
 1 files changed, 75 insertions(+), 18 deletions(-)

diff --git a/src/const/application/application.js b/src/const/application/application.js
index d1bd05b..b8111b9 100644
--- a/src/const/application/application.js
+++ b/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,
@@ -29,13 +32,15 @@
           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: "手机号",
@@ -43,7 +48,8 @@
           type: "input",
           span:12,
           row:true,
-          labelWidth:labelWidth
+          labelWidth:labelWidth,
+          rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}]
         },
         {
           label: "通行开始时间",
@@ -140,6 +146,28 @@
           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: "轴荷分布",
@@ -349,15 +377,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 +438,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%'
+    // }
   ]
 }

--
Gitblit v1.9.3