From a94f19a21fe2098811339aa916869b0ab923536c Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 26 Dec 2022 17:15:08 +0800
Subject: [PATCH] 添加车辆变更审批

---
 src/const/applicationCarChange/applicationCarChange.js |  230 +++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 180 insertions(+), 50 deletions(-)

diff --git a/src/const/applicationCarChange/applicationCarChange.js b/src/const/applicationCarChange/applicationCarChange.js
index f1d6b79..65a2c9d 100644
--- a/src/const/applicationCarChange/applicationCarChange.js
+++ b/src/const/applicationCarChange/applicationCarChange.js
@@ -1,3 +1,7 @@
+const labelWidth = '15%'
+import store from "@/store";
+const user = store.getters.userInfo
+const userId = user.user_id
 export default {
   height:'auto',
   calcHeight: 30,
@@ -9,6 +13,7 @@
   viewBtn: true,
   selection: true,
   dialogClickModal: false,
+  menu:false,
   column: [
     {
       label: "主键",
@@ -18,88 +23,213 @@
       editDisplay: false,
       viewDisplay: false,
       hide: true,
+      display:false,
     },
     {
-      label: "申请表主键",
-      prop: "applicationId",
+      label: "申请编号",
+      labelWidth:labelWidth,
+      prop: "no",
+      type: "select",
+      dicUrl: "/api/application/application/getAll?status=10&&userId="+userId,
+      props:{
+        label:"no",
+        value:"no"
+      },
+      typeformat(item, label) {
+        return `${item[label]}`
+      },
+      rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}]
+    },
+    {
+      label: "变更原因",
+      span: 12,
+      labelWidth:labelWidth,
+      prop: "reason",
+      type: "select",
+      dicUrl: "/api/blade-system/dict-biz/dictionary?code=car_change_reason",
+      props:{
+        label:"dictValue",
+        value:"dictKey"
+      }
+    },
+    {
+      label: "变更车牌号",
+      prop: "carLicense",
+      type: "input",
+      labelWidth:labelWidth,
+    },
+    {
+      label: "厂牌型号",
+      prop: "carModel",
+      labelWidth:labelWidth,
       type: "input",
     },
     {
-      label: "变更车辆的车牌",
-      prop: "licenseUrl",
+      label: "变更挂车牌号",
+      prop: "trailerLicense",
       type: "input",
+      labelWidth:labelWidth,
     },
     {
-      label: "租户id",
-      prop: "tenantId",
+      label: "挂车厂牌型号",
+      prop: "trailerModel",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
     },
     {
-      label: "创建人",
-      prop: "createUser",
+      label: "装备质量",
+      prop: "equipmentWeight",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
+      append:'吨',
     },
     {
-      label: "创建部门",
-      prop: "createDept",
+      label: "轴数",
+      prop: "shaftNumber",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
+      append:'轴',
     },
     {
-      label: "创建时间",
-      prop: "createTime",
+      label: "轮胎数",
+      prop: "tireNumber",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
     },
     {
-      label: "修改人",
-      prop: "updateUser",
+      label: "轴距",
+      prop: "wheelbase",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
+      append:'米',
     },
     {
-      label: "修改时间",
-      prop: "updateTime",
-      type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
-    },
-    {
-      label: "状态",
+      label: "办理进度",
       prop: "status",
+      type: "select",
+      props: {
+        label: "dictValue",
+        value: "dictKey"
+      },
+      dicUrl:'/api/blade-system/dict-biz/dictionary?code=application_status',
+      addDisplay: false,
+      editDisplay: false,
+      viewDisplay: false,
+      display:false,
+    },
+  ]
+}
+
+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: "主键",
+      prop: "id",
       type: "input",
       addDisplay: false,
       editDisplay: false,
       viewDisplay: false,
       hide: true,
+      display:false,
+      disabled:true,
     },
     {
-      label: "是否已删除",
-      prop: "isDeleted",
+      label: "申请编号",
+      labelWidth:labelWidth,
+      disabled:true,
+      prop: "no",
+      type: "select",
+      dicUrl: "/api/application/application/getAll?status=10&&userId="+userId,
+      props:{
+        label:"no",
+        value:"no"
+      },
+      typeformat(item, label) {
+        return `${item[label]}`
+      },
+      rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}]
+    },
+    {
+      label: "变更原因",
+      disabled:true,
+      span: 12,
+      labelWidth:labelWidth,
+      prop: "reason",
+      type: "select",
+      dicUrl: "/api/blade-system/dict-biz/dictionary?code=car_change_reason",
+      props:{
+        label:"dictValue",
+        value:"dictKey"
+      }
+    },
+    {
+      label: "变更车牌号",
+      disabled:true,
+      prop: "carLicense",
       type: "input",
-      addDisplay: false,
-      editDisplay: false,
-      viewDisplay: false,
-      hide: true,
+      labelWidth:labelWidth,
+    },
+    {
+      label: "厂牌型号",
+      disabled:true,
+      prop: "carModel",
+      labelWidth:labelWidth,
+      type: "input",
+    },
+    {
+      label: "变更挂车牌号",
+      disabled:true,
+      prop: "trailerLicense",
+      type: "input",
+      labelWidth:labelWidth,
+    },
+    {
+      label: "挂车厂牌型号",
+      disabled:true,
+      prop: "trailerModel",
+      type: "input",
+      labelWidth:labelWidth,
+    },
+    {
+      label: "装备质量",
+      disabled:true,
+      prop: "equipmentWeight",
+      type: "input",
+      labelWidth:labelWidth,
+      append:'吨',
+    },
+    {
+      label: "轴数",
+      disabled:true,
+      prop: "shaftNumber",
+      type: "input",
+      labelWidth:labelWidth,
+      append:'轴',
+    },
+    {
+      label: "轮胎数",
+      disabled:true,
+      prop: "tireNumber",
+      type: "input",
+      labelWidth:labelWidth,
+    },
+    {
+      label: "轴距",
+      disabled:true,
+      prop: "wheelbase",
+      type: "input",
+      labelWidth:labelWidth,
+      append:'米',
     },
   ]
 }

--
Gitblit v1.9.3